mirror of
https://github.com/danog/sass-site.git
synced 2024-12-14 02:17:36 +01:00
57 lines
909 B
SCSS
57 lines
909 B
SCSS
// ===========================================================================
|
|
// CODE
|
|
|
|
|
|
|
|
@import "../vendor/solarized";
|
|
|
|
// Code colors copied from pygments so I can match non-pygmented code
|
|
$code-background-color: #f4f4f4 !default;
|
|
$code-border-color: #eee !default;
|
|
$code-text-color: $midnight-blue !default;
|
|
|
|
|
|
|
|
pre,
|
|
code {
|
|
@extend %source-code-pro;
|
|
border: 1px solid #eee;
|
|
@include font-size($font-size-small);
|
|
background: $code-background-color;
|
|
color: $code-text-color;
|
|
letter-spacing: -0.05em;
|
|
}
|
|
|
|
code {
|
|
padding: .125em .5em;
|
|
line-height: $line-height-reset;
|
|
}
|
|
|
|
pre {
|
|
margin: .625em 0;
|
|
padding: .75em 1em;
|
|
text-align: left;
|
|
|
|
code {
|
|
border: 0;
|
|
padding: 0;
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.highlight {
|
|
margin: .625em 0;
|
|
|
|
code,
|
|
pre {
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
|
|
pre {
|
|
margin: {
|
|
top: 0;
|
|
bottom: 0;
|
|
}
|
|
}
|
|
} |