hugo-theme-hyde-hyde/assets/scss/hyde-hyde/_code.scss

59 lines
883 B
SCSS
Raw Normal View History

pre {
2018-07-25 02:21:03 +00:00
//border: 1px solid $gray-1;
//border-radius: 2px;
tab-size: 2;
2018-07-25 02:21:03 +00:00
//width: 111%;
//margin-left: -11%;
//padding-left: 9%;
//padding-right: 2%;
//background: #29292e;
code {
white-space: pre-wrap;
}
}
%code-font {
font-family: $code-font-family;
font-size: $code-font-size;
}
%code-in-rounded-box {
2018-07-25 02:21:03 +00:00
border-radius: 4px;
padding: 2px 4px;
2018-11-29 21:29:59 +00:00
color: #bf616a;
background-color: #f9f2f4;
}
%code-style-codersblock {
padding: 2px 4px;
2018-08-13 01:52:20 +00:00
border: 1px dotted #adb5db;
background-color: $gray-1;
}
2018-08-13 01:52:20 +00:00
%code-style-npf {
2018-11-29 21:29:59 +00:00
padding: .1em .1em;
color: #ab5979;
2018-08-13 01:52:20 +00:00
border-radius: 3px;
}
a {
code {
color: $link-color;
}
}
code {
@extend %code-font;
2018-08-13 01:52:20 +00:00
@extend %code-style-npf;
}
// highlight.js
.hljs {
2018-11-29 21:29:59 +00:00
font-family: $code-font-family;
2018-07-25 02:21:03 +00:00
font-size: $code-fence-font-size;
2018-11-29 21:29:59 +00:00
line-height: $root-line-height;
white-space: pre;
2018-07-25 02:21:03 +00:00
border: 1px solid $gray-3;
border-radius: 4px;
}