<code>に背景を追加

gh-pages
rui 2018-02-28 21:32:11 +09:00
parent 677bbb2f9b
commit 33f1ddc91b
2 changed files with 24 additions and 0 deletions

View File

@ -24,6 +24,14 @@ $line-height: 1.4em;
$selection-background: #659b4b;
$selection-font-color: #fff;
// <code>
$code-background: #f5f5f5;
$code-border: 1px solid #ccc;
$code-border-radius: 4px;
$code-color: #333;
$code-font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
$code-padding: 9.5px;
//
$container-box-shadow: 0 0 10px 0 #ddd;
$container-padding-top-mobile: 1em;

View File

@ -17,4 +17,20 @@ body {
background-color: $selection-background;
color: $selection-font-color;
}
code {
background: $code-background;
border: $code-border;
border-radius: $code-border-radius;
color: $code-color;
font-family: $code-font-family;
overflow: auto;
padding: $code-padding;
word-break: break-all;
word-wrap: break-word;
}
pre code {
display: block;
}
}