Skip to content

Commit f58d7dd

Browse files
committed
cleanup globals and remove duplicated styles
1 parent 8fd2f27 commit f58d7dd

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

src/@chakra-ui/styles.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,8 @@ const styles = {
1010
* don't need the global styles anymore
1111
*/
1212
body: {
13-
bg: "background.base",
14-
lineHeight: "base",
1513
fontSize: ["sm", null, null, "md"],
1614
},
17-
a: {
18-
color: "primary.base",
19-
textDecoration: "underline",
20-
},
21-
// should be replace with https://chakra-ui.com/docs/components/list
22-
"ul, ol": {
23-
margin: "0px 0px 1.45rem 1.45rem",
24-
padding: 0,
25-
},
26-
// imported global CSS styles for list items
27-
li: {
28-
marginBottom: "calc(1.45rem / 2)",
29-
},
30-
"ol li": {
31-
paddingInlineStart: "0",
32-
},
33-
"ul li": {
34-
paddingInlineStart: "0",
35-
},
36-
"li > ol": {
37-
marginInlineStart: "1.45rem",
38-
marginBottom: "calc(1.45rem / 2)",
39-
marginTop: "calc(1.45rem / 2)",
40-
},
41-
"li > ul": {
42-
marginInlineStart: "1.45rem",
43-
marginBottom: "calc(1.45rem / 2)",
44-
marginTop: "calc(1.45rem / 2)",
45-
},
46-
47-
"li *:last-child": {
48-
marginBottom: "0",
49-
},
50-
"li > p": {
51-
marginBottom: "calc(1.45rem / 2)",
52-
},
53-
"pre, code, kbd, samp": {
54-
fontSize: "md",
55-
lineHeight: "base",
56-
fontFamily: "monospace",
57-
},
5815
},
5916
}
6017

src/styles/global.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
@apply text-primary underline;
149149
}
150150

151-
/* Should be replaced with list component styles */
151+
/* TODO: to be replaced with list component styles */
152152
ul,
153153
ol {
154154
margin: 0px 0px 1.45rem 1.45rem;
@@ -166,6 +166,7 @@
166166
& > ul {
167167
margin-inline-start: 1.45rem;
168168
margin-block: calc(1.45rem / 2);
169+
margin-top: calc(1.45rem / 2);
169170
}
170171

171172
& * {

0 commit comments

Comments
 (0)