Normalize code font
parent
ec500a5da6
commit
f03ecbc8e7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue