Merge pull request #47 from leoleoasd/master
允许不格式化code与pre sivan/heti#46
This commit is contained in:
commit
71e05e2ef5
1 changed files with 29 additions and 25 deletions
|
@ -73,33 +73,37 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
$format_pre_code: true !default;
|
||||||
margin-block-start: $std-block-unit / 2;
|
|
||||||
margin-block-end: $std-block-unit / 2;
|
|
||||||
margin-inline-start: 0;
|
|
||||||
margin-inline-end: 0;
|
|
||||||
padding-block-start: $std-block-unit / 2;
|
|
||||||
padding-block-end: $std-block-unit / 2;
|
|
||||||
padding-inline-start: $std-inline-unit;
|
|
||||||
padding-inline-end: $std-inline-unit;
|
|
||||||
overflow: auto;
|
|
||||||
font-family: $font-family-mono;
|
|
||||||
white-space: pre;
|
|
||||||
word-wrap: normal;
|
|
||||||
border-radius: 4px;
|
|
||||||
background-color: hsla(0, 0%, 0%, 0.054);
|
|
||||||
|
|
||||||
@include darkmode-style {
|
@if $format_pre_code {
|
||||||
background-color: hsla(0, 0%, 100%, 0.054);
|
pre {
|
||||||
}
|
margin-block-start: $std-block-unit / 2;
|
||||||
|
margin-block-end: $std-block-unit / 2;
|
||||||
|
margin-inline-start: 0;
|
||||||
|
margin-inline-end: 0;
|
||||||
|
padding-block-start: $std-block-unit / 2;
|
||||||
|
padding-block-end: $std-block-unit / 2;
|
||||||
|
padding-inline-start: $std-inline-unit;
|
||||||
|
padding-inline-end: $std-inline-unit;
|
||||||
|
overflow: auto;
|
||||||
|
font-family: $font-family-mono;
|
||||||
|
white-space: pre;
|
||||||
|
word-wrap: normal;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: hsla(0, 0%, 0%, 0.054);
|
||||||
|
|
||||||
code {
|
@include darkmode-style {
|
||||||
margin: 0;
|
background-color: hsla(0, 0%, 100%, 0.054);
|
||||||
padding: 0;
|
}
|
||||||
border: 0;
|
|
||||||
border-radius: 0;
|
code {
|
||||||
background-color: transparent;
|
margin: 0;
|
||||||
color: inherit;
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue