Skip to content

Commit 06a098f

Browse files
committed
add back style sheet
1 parent 07dca99 commit 06a098f

File tree

2 files changed

+69
-69
lines changed

2 files changed

+69
-69
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import Markdown from 'react-markdown'
2-
import styled from 'styled-components'
32
import { LegacyStyledText } from '../../atoms'
43
import { Box } from '../../primitives'
54
import { COLORS } from '../../helix-design-system'
65
import { SPACING } from '../../ui-style-constants'
76

7+
import styles from './styles.module.css'
8+
89
export interface ReleaseNotesProps {
910
isOEMMode: boolean
1011
source?: string | null
@@ -16,7 +17,7 @@ export function ReleaseNotes(props: ReleaseNotesProps): JSX.Element {
1617
const { source, isOEMMode } = props
1718

1819
return (
19-
<div css={ReleaseNotesStyled}>
20+
<div className={styles.release_notes}>
2021
{source != null && !isOEMMode ? (
2122
<Markdown
2223
components={{
@@ -67,70 +68,3 @@ function HorizontalRule(): JSX.Element {
6768
/>
6869
)
6970
}
70-
71-
const ReleaseNotesStyled = styled.div`
72-
.release_notes {
73-
width: 100%;
74-
max-height: 100%;
75-
padding: 0 0.5rem;
76-
77-
& > h1 {
78-
font-size: var(--fs-header); /* from legacy --font-header-dark */
79-
font-weight: var(--fw-semibold); /* from legacy --font-header-dark */
80-
color: var(--c-font-dark); /* from legacy --font-header-dark */
81-
margin-bottom: 1rem;
82-
}
83-
84-
& > h2 {
85-
font-size: var(--fs-header); /* from legacy --font-header-dark */
86-
color: var(--c-font-dark); /* from legacy --font-header-dark */
87-
font-weight: var(--fw-regular);
88-
margin-top: 1rem;
89-
margin-bottom: 0.75rem;
90-
}
91-
92-
& > h3 {
93-
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
94-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
95-
font-weight: var(--fw-semibold);
96-
margin-top: 0.75rem;
97-
margin-bottom: 0.5rem;
98-
}
99-
100-
& ul,
101-
& ol {
102-
margin-left: 1.25rem;
103-
margin-bottom: 0.25rem;
104-
font-size: var(--fs-body-2);
105-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
106-
}
107-
108-
& li {
109-
margin: 0.25rem 0;
110-
font-size: var(--fs-body-2);
111-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
112-
}
113-
114-
& code {
115-
font-family: monospace;
116-
color: var(--c-font-dark);
117-
}
118-
119-
& pre {
120-
margin: 0.5rem 0;
121-
padding: 0.5rem 0.75rem;
122-
background-color: var(--c-font-dark);
123-
124-
& code {
125-
color: var(--c-font-light);
126-
}
127-
}
128-
129-
& p {
130-
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
131-
font-weight: var(--fw-regular); /* from legacy --font-body-2-dark */
132-
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
133-
margin-bottom: 1rem;
134-
}
135-
}
136-
`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
@import '../../index.module.css';
2+
3+
.release_notes {
4+
width: 100%;
5+
max-height: 100%;
6+
padding: 0 0.5rem;
7+
8+
& > h1 {
9+
font-size: var(--fs-header); /* from legacy --font-header-dark */
10+
font-weight: var(--fw-semibold); /* from legacy --font-header-dark */
11+
color: var(--c-font-dark); /* from legacy --font-header-dark */
12+
margin-bottom: 1rem;
13+
}
14+
15+
& > h2 {
16+
font-size: var(--fs-header); /* from legacy --font-header-dark */
17+
color: var(--c-font-dark); /* from legacy --font-header-dark */
18+
font-weight: var(--fw-regular);
19+
margin-top: 1rem;
20+
margin-bottom: 0.75rem;
21+
}
22+
23+
& > h3 {
24+
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
25+
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
26+
font-weight: var(--fw-semibold);
27+
margin-top: 0.75rem;
28+
margin-bottom: 0.5rem;
29+
}
30+
31+
& ul,
32+
& ol {
33+
margin-left: 1.25rem;
34+
margin-bottom: 0.25rem;
35+
font-size: var(--fs-body-2);
36+
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
37+
}
38+
39+
& li {
40+
margin: 0.25rem 0;
41+
font-size: var(--fs-body-2);
42+
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
43+
}
44+
45+
& code {
46+
font-family: monospace;
47+
color: var(--c-font-dark);
48+
}
49+
50+
& pre {
51+
margin: 0.5rem 0;
52+
padding: 0.5rem 0.75rem;
53+
background-color: var(--c-font-dark);
54+
55+
& code {
56+
color: var(--c-font-light);
57+
}
58+
}
59+
60+
& p {
61+
font-size: var(--fs-body-2); /* from legacy --font-body-2-dark */
62+
font-weight: var(--fw-regular); /* from legacy --font-body-2-dark */
63+
color: var(--c-font-dark); /* from legacy --font-body-2-dark */
64+
margin-bottom: 1rem;
65+
}
66+
}

0 commit comments

Comments
 (0)