Skip to content

Commit 7d39c4a

Browse files
committed
chore: enhance margin
1 parent 80432ef commit 7d39c4a

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
},
5353
"slidev": {
5454
"colorSchema": "both",
55-
"highlighter": "all",
5655
"defaults": {
56+
"lineNumbers": true,
57+
"highlighter": "prism",
5758
"fonts": {
5859
"provider": "none",
5960
"sans": "PT Sans",
6061
"mono": "Fira Code",
6162
"local": "PT Sans, 2MASS J1808, Fira Code"
62-
},
63-
"hightlighter": "prism"
63+
}
6464
}
6565
}
6666
}

styles/layout.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ h6 {
108108
}
109109

110110
.slidev-layout h1 + h2 {
111-
margin-top: 0 !important;
112111
color: var(--slidev-theme-primary-alternative);
113112
font-size: 1rem;
114113
}
115114

115+
.slidev-layout h1 + * {
116+
margin-top: 0.5rem !important;
117+
}
118+
116119
.slidev-layout ul li::marker {
117120
content: '> ';
118121
}
@@ -139,10 +142,6 @@ h6 {
139142
z-index: 1 !important;
140143
}
141144

142-
.slidev-layout > div > *:not(:first-child), .slidev-layout > *:not(:first-child) {
143-
margin-top: 1em;
144-
}
145-
146145
.slidev-layout.two-cols {
147146
gap: 1rem;
148147
}

0 commit comments

Comments
 (0)