Normalize code font

old
@soyjavi 2015-11-01 10:07:31 +07:00
parent ec500a5da6
commit f03ecbc8e7
3 changed files with 9 additions and 6 deletions

View File

@ -9,6 +9,3 @@ $color-divider: $color-divider;
$color-content: #fafafa;
$animation-duration: 250ms;
$animation-ease: ease-in-out;
$code-font-family: Consolas, Monaco, 'Andale Mono', monospace;
$code-font-size: 13px;

View File

@ -1,5 +1,5 @@
@mixin code-typography {
font-family: 'source-code-pro', Menlo, Consolas, 'Courier New', monospace;
font-family: 'source-code-pro', Menlo, Consolas, Monaco, 'Andale Mono', 'Courier New', monospace;
font-size: 13px;
line-height: 1.4;
}

View File

@ -1,4 +1,5 @@
@import "../globals";
@import "../mixins";
$documentation-h1-size: 3.4 * $unit;
$documentation-h2-size: 2.4 * $unit;
@ -39,13 +40,18 @@ $documentation-code-background: rgba(0, 0, 0, .0588235);
&:first-child {
background-color: red;
}
a {
color: $color-text;
text-decoration: underline;
}
}
pre {
padding: $documentation-v-offset $documentation-h-offset;
font-family: $code-font-family;
font-size: $code-font-size;
background-color: $documentation-code-background;
}
code {
@include code-typography;
}
table {
width: auto;
background-color: white;