|
@@ -57,8 +57,8 @@
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- & > p > a {
|
|
|
|
|
- text-decoration: underline;
|
|
|
|
|
|
|
+ & > p {
|
|
|
|
|
+ margin: 0 0 1rem 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
margin: 1rem 0;
|
|
margin: 1rem 0;
|
|
@@ -135,11 +135,14 @@
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
@include themify($themes) {
|
|
|
border-top: 1px solid themed('border-line-color');
|
|
border-top: 1px solid themed('border-line-color');
|
|
|
- border-bottom: 1px solid themed('border-line-color');
|
|
|
|
|
|
|
|
|
|
@include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
|
|
@include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
|
|
|
@include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
|
|
@include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @include themify($codeblock) {
|
|
|
|
|
+ background-color: themed('content-pre-background-color');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pre:not(.chroma) {
|
|
pre:not(.chroma) {
|
|
@@ -147,7 +150,7 @@
|
|
|
margin: 1rem 0;
|
|
margin: 1rem 0;
|
|
|
|
|
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
- border-left: 4px solid themed('content-pre-border-background-color');
|
|
|
|
|
|
|
+ border: 1px solid themed('content-pre-border-background-color');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -165,6 +168,7 @@
|
|
|
padding: 0.25rem 0.5rem;
|
|
padding: 0.25rem 0.5rem;
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
color: themed('content-code-color');
|
|
color: themed('content-code-color');
|
|
|
|
|
+ background-color: themed('content-code-background-color');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -179,12 +183,18 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
@include themify($themes) {
|
|
|
- border-left: 5px solid themed("single-blockquote-border-color");
|
|
|
|
|
|
|
+ border-left: 5px solid themed("single-blockquote-border-color");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
code:not([class^=language]) {
|
|
code:not([class^=language]) {
|
|
|
padding: 3px 7px;
|
|
padding: 3px 7px;
|
|
|
margin: 0 0.25rem;
|
|
margin: 0 0.25rem;
|
|
|
|
|
+ @include themify($codeblock) {
|
|
|
|
|
+ color: themed('content-code-in-pre-color');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ p > code:not([class^=language]) {
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
color: themed('content-code-color');
|
|
color: themed('content-code-color');
|
|
|
}
|
|
}
|
|
@@ -198,7 +208,6 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
p {
|
|
|
- margin: 0 0 10px 0;
|
|
|
|
|
padding: 0 1rem;
|
|
padding: 0 1rem;
|
|
|
|
|
|
|
|
code:not([class^=language]) {
|
|
code:not([class^=language]) {
|
|
@@ -224,22 +233,37 @@
|
|
|
|
|
|
|
|
&[data-dir="ltr"] {
|
|
&[data-dir="ltr"] {
|
|
|
li {
|
|
li {
|
|
|
- margin-left: 2rem;
|
|
|
|
|
|
|
+ margin-left: 3rem;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&[data-dir="rtl"] {
|
|
&[data-dir="rtl"] {
|
|
|
li {
|
|
li {
|
|
|
- margin-right: 2rem;
|
|
|
|
|
|
|
+ margin-right: 3rem;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
li {
|
|
|
& > code {
|
|
& > code {
|
|
|
padding: 2px 7px;
|
|
padding: 2px 7px;
|
|
|
|
|
+
|
|
|
|
|
+ @include themify($codeblock) {
|
|
|
|
|
+ color: themed('content-code-color') !important;
|
|
|
|
|
+ background-color: themed('content-code-background-color');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ & > p {
|
|
|
|
|
+ padding: 0 0.4rem;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
code:not([class^=language]) {
|
|
code:not([class^=language]) {
|
|
|
|
|
+ @include themify($codeblock) {
|
|
|
|
|
+ color: themed('content-code-in-pre-color');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ p > code:not([class^=language]) {
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
color: themed('content-code-color');
|
|
color: themed('content-code-color');
|
|
|
}
|
|
}
|
|
@@ -298,12 +322,17 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
th {
|
|
|
- color: themed('content-pre-header-color');
|
|
|
|
|
|
|
+ color: themed('content-pre-header-color');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
th, td {
|
|
th, td {
|
|
|
padding: 0.25rem 0.5rem;
|
|
padding: 0.25rem 0.5rem;
|
|
|
border: 1px double themed('content-pre-border-background-color');
|
|
border: 1px double themed('content-pre-border-background-color');
|
|
|
|
|
+
|
|
|
|
|
+ code {
|
|
|
|
|
+ color: themed('content-code-color') !important;
|
|
|
|
|
+ background-color: themed('content-code-background-color');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -311,6 +340,12 @@
|
|
|
code:not([class^=language]) {
|
|
code:not([class^=language]) {
|
|
|
padding: 3px 7px;
|
|
padding: 3px 7px;
|
|
|
margin: 0 0.25rem;
|
|
margin: 0 0.25rem;
|
|
|
|
|
+ @include themify($codeblock) {
|
|
|
|
|
+ color: themed('content-code-in-pre-color');
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ p > code:not([class^=language]) {
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
color: themed('content-code-color');
|
|
color: themed('content-code-color');
|
|
|
}
|
|
}
|
|
@@ -332,7 +367,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
code, pre {
|
|
code, pre {
|
|
|
- padding: 0.25rem 0.5rem;
|
|
|
|
|
|
|
+ padding: 0.25rem 1rem;
|
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
|
font-family: $code-font-stack;
|
|
font-family: $code-font-stack;
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
@@ -363,7 +398,7 @@ code:not([class^=language]) {
|
|
|
padding: 3px 0;
|
|
padding: 3px 0;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
- color: themed('content-code-color');
|
|
|
|
|
|
|
+ color: themed('content-code-in-pre-color');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -390,15 +425,14 @@ pre:not(.chroma) {
|
|
|
left: 0;
|
|
left: 0;
|
|
|
padding: 2px 7px;
|
|
padding: 2px 7px;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- height: 20px;
|
|
|
|
|
z-index: z('toc');
|
|
z-index: z('toc');
|
|
|
border-top-left-radius: 0.25rem;
|
|
border-top-left-radius: 0.25rem;
|
|
|
border-top-right-radius: 0.25rem;
|
|
border-top-right-radius: 0.25rem;
|
|
|
content: '';
|
|
content: '';
|
|
|
|
|
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
- color: themed('content-pre-header-color');
|
|
|
|
|
- background: themed('content-pre-header-background-color');
|
|
|
|
|
|
|
+ color: themed('content-pre-header-color');
|
|
|
|
|
+ background: themed('content-pre-header-background-color');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -424,7 +458,7 @@ pre:not(.chroma) {
|
|
|
top: 0;
|
|
top: 0;
|
|
|
right: 0;
|
|
right: 0;
|
|
|
z-index: z('grid');
|
|
z-index: z('grid');
|
|
|
- height: 25px;
|
|
|
|
|
|
|
+ height: 26px;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
text-align: right;
|
|
text-align: right;
|
|
@@ -442,19 +476,18 @@ pre:not(.chroma) {
|
|
|
right: 0;
|
|
right: 0;
|
|
|
z-index: z('clipboard');
|
|
z-index: z('clipboard');
|
|
|
padding: 0.125rem 0.25rem;
|
|
padding: 0.125rem 0.25rem;
|
|
|
- height: 25px;
|
|
|
|
|
|
|
+ height: 26px;
|
|
|
font-family: $title-font;
|
|
font-family: $title-font;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
font-size: 0.85rem;
|
|
font-size: 0.85rem;
|
|
|
line-height: 1.5;
|
|
line-height: 1.5;
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
- text-transform: capitalize;
|
|
|
|
|
border-top-left-radius: 0.2rem;
|
|
border-top-left-radius: 0.2rem;
|
|
|
content: attr(data-lang);
|
|
content: attr(data-lang);
|
|
|
|
|
|
|
|
@include themify($themes) {
|
|
@include themify($themes) {
|
|
|
- border-top: 1px solid themed('hr-color');
|
|
|
|
|
- border-left: 1px solid themed('hr-color');
|
|
|
|
|
|
|
+ border: 1px solid themed('border-line-color');
|
|
|
|
|
+ border-bottom: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
@@ -499,9 +532,7 @@ pre:not(.chroma) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@include themify($codeblock) {
|
|
@include themify($codeblock) {
|
|
|
- td:first-child {
|
|
|
|
|
- border-left: 4px solid themed('content-pre-border-background-color');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ border: 1px solid themed('content-pre-border-background-color');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -528,4 +559,4 @@ table:not(.lntable) {
|
|
|
padding: 2px 7px !important;
|
|
padding: 2px 7px !important;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|