46 строки
727 B
SCSS
46 строки
727 B
SCSS
|
|
// Code blocks
|
|
// From Basecoat's _code.scss but with .highlighter-rouge
|
|
|
|
.highlighter-rouge {
|
|
|
|
pre {
|
|
padding: $spacer3;
|
|
overflow: auto;
|
|
font-size: 16px;
|
|
line-height: 1.45;
|
|
|
|
code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
|
|
&:before,
|
|
&:after {
|
|
content: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
code {
|
|
color: darken(saturate($main-color, 50%), 10%);
|
|
background-color: darken($main-bg-color, 5%);
|
|
}
|
|
|
|
// make code in headers a bit stronger
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
code {
|
|
background-color: darken($main-bg-color, 10%);
|
|
}
|
|
}
|