2018-07-23 02:15:56 +00:00
|
|
|
pre {
|
|
|
|
border: 1px solid $gray-1;
|
|
|
|
border-radius: 2px;
|
|
|
|
tab-size: 2;
|
|
|
|
code {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%code-font {
|
|
|
|
font-family: $code-font-family;
|
|
|
|
font-size: $code-font-size;
|
|
|
|
line-height: $code-line-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
%code-in-rounded-box {
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
color: $code-color;
|
|
|
|
background-color: $code-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
%code-style-codersblock {
|
|
|
|
padding: 2px 4px;
|
|
|
|
border: 1px dashed #adb5db;
|
|
|
|
background-color: $gray-1;
|
|
|
|
}
|
|
|
|
|
2018-07-23 04:01:28 +00:00
|
|
|
//-code {
|
|
|
|
// white-space: pre-wrap;
|
|
|
|
// @extend %code-font;
|
|
|
|
// @extend %code-in-rounded-box;
|
|
|
|
//}
|
2018-07-23 02:15:56 +00:00
|
|
|
|
|
|
|
code {
|
|
|
|
@extend %code-font;
|
|
|
|
@extend %code-style-codersblock;
|
|
|
|
}
|
|
|
|
|
|
|
|
// highlight.js
|
|
|
|
.hljs {
|
|
|
|
white-space: pre;
|
|
|
|
border:none;
|
|
|
|
}
|