lexi-lambda.github.io/scss/_code.scss
2015-08-22 18:50:19 -07:00

52 lines
726 B
SCSS

@import 'colors';
@import 'fonts';
pre, code {
font-family: $font-monospace;
}
p code, li code {
background-color: $color-section-background;
border-radius: 3px;
padding: 2px 5px;
}
pre code, table.sourcetable pre {
font-size: 0.9em;
line-height: 1.4em;
}
pre code {
display: block;
}
pre code, div[class^='brush: '] {
width: 100%;
overflow: auto;
}
table.sourcetable {
width: 100%;
td.linenos {
color: desaturate(darken($color-section-background, 20%), 40%);
white-space: nowrap;
width: 1%;
font-weight: 300;
}
pre {
margin: 0;
}
}
pre code, table.sourcetable {
padding: 20px;
background-color: $color-section-background;
}
td.linenos {
padding-right: 15px;
}