2018-07-23 02:15:56 +00:00
|
|
|
pre {
|
2018-07-25 02:21:03 +00:00
|
|
|
//border: 1px solid $gray-1;
|
|
|
|
//border-radius: 2px;
|
2018-07-23 02:15:56 +00:00
|
|
|
tab-size: 2;
|
2018-07-25 02:21:03 +00:00
|
|
|
//width: 111%;
|
|
|
|
//margin-left: -11%;
|
|
|
|
//padding-left: 9%;
|
|
|
|
//padding-right: 2%;
|
|
|
|
//background: #29292e;
|
2018-07-23 02:15:56 +00:00
|
|
|
code {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%code-font {
|
|
|
|
font-family: $code-font-family;
|
|
|
|
font-size: $code-font-size;
|
2018-07-25 02:21:03 +00:00
|
|
|
//line-height: $code-line-height;
|
2018-07-23 02:15:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
%code-in-rounded-box {
|
2018-07-25 02:21:03 +00:00
|
|
|
border-radius: 4px;
|
2018-07-23 02:15:56 +00:00
|
|
|
padding: 2px 4px;
|
|
|
|
color: $code-color;
|
|
|
|
background-color: $code-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
%code-style-codersblock {
|
|
|
|
padding: 2px 4px;
|
2018-08-13 01:52:20 +00:00
|
|
|
border: 1px dotted #adb5db;
|
2018-07-23 02:15:56 +00:00
|
|
|
background-color: $gray-1;
|
|
|
|
}
|
|
|
|
|
2018-08-13 01:52:20 +00:00
|
|
|
%code-style-npf {
|
|
|
|
padding: .25em .5em;
|
|
|
|
color: #bf616a;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
2018-11-20 20:56:03 +00:00
|
|
|
a {
|
|
|
|
code {
|
|
|
|
color: $link-color;
|
|
|
|
}
|
|
|
|
}
|
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;
|
2018-08-13 01:52:20 +00:00
|
|
|
@extend %code-style-npf;
|
2018-07-23 02:15:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// highlight.js
|
|
|
|
.hljs {
|
2018-07-25 02:21:03 +00:00
|
|
|
font-size: $code-fence-font-size;
|
|
|
|
font-weight: 300;
|
2018-07-23 02:15:56 +00:00
|
|
|
white-space: pre;
|
2018-07-25 02:21:03 +00:00
|
|
|
border: 1px solid $gray-3;
|
|
|
|
border-radius: 4px;
|
2018-07-23 02:15:56 +00:00
|
|
|
}
|