File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
ecosystem/theme-default/src/client/styles Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
@import ' _variables' ;
2
2
3
+ // Safari only support integer pixel value for line-height
4
+ // the original font-size is 16px, 1.375 will make line-height be 22px
5
+ $line-height : 1.375 ;
6
+
3
7
// ===============================
4
8
// Forked and modified from prismjs/themes/prism-tomorrow.css
5
9
@@ -124,7 +128,7 @@ pre[class*='language-'] {
124
128
.theme-default-content {
125
129
pre ,
126
130
pre [class *= ' language-' ] {
127
- line-height : 1.4 ;
131
+ line-height : $line-height ;
128
132
padding : 1.3rem 1.5rem ;
129
133
margin : 0.85rem 0 ;
130
134
border-radius : 6px ;
@@ -176,7 +180,7 @@ div[class*='language-'] {
176
180
top : 0 ;
177
181
left : 0 ;
178
182
width : 100% ;
179
- line-height : 1.4 ;
183
+ line-height : $line-height ;
180
184
181
185
.highlight-line {
182
186
background-color : var (--code-hl-bg-color );
@@ -218,14 +222,14 @@ div[class*='language-'] {
218
222
text-align : center ;
219
223
color : var (--code-ln-color );
220
224
padding-top : 1.25rem ;
221
- line-height : 1.4 ;
225
+ line-height : $line-height ;
222
226
counter-reset : line- number;
223
227
224
228
.line-number {
225
229
position : relative ;
226
230
z-index : 3 ;
227
231
user-select : none ;
228
- height : 1.4 em ;
232
+ height : #{ $line-height } em ;
229
233
230
234
& ::before {
231
235
counter-increment : line- number;
You can’t perform that action at this time.
0 commit comments