Merge branch 'pr/936'

Closes #814.
This commit is contained in:
Franz Liedke 2016-05-12 23:56:47 +09:00
commit 696f562b0e
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
2 changed files with 23 additions and 2 deletions

View File

@ -116,17 +116,32 @@
border-bottom: 2px dotted @body-bg; border-bottom: 2px dotted @body-bg;
margin: 1em 0; margin: 1em 0;
} }
// Inline code
code {
font-family: source-code-pro, Monaco, Consolas, "Courier New", monospace;
padding: 5px;
background: @code-bg;
color: @code-color;
line-height: 1.3;
font-size: 90%;
border-radius: 4px
}
// Code blocks
pre { pre {
border: 0; border: 0;
padding: 15px; padding: 15px;
background: darken(@body-bg, 3%); background: @code-bg;
color: #666; color: #666;
font-size: 90%; font-size: 90%;
border-radius: @border-radius; border-radius: @border-radius;
.hljs { code {
padding: 0; padding: 0;
background: none; background: none;
color: inherit;
line-height: inherit;
font-size: 100%;
border-radius: 0;
} }
} }
h1 { h1 {

View File

@ -37,6 +37,9 @@
@control-danger-color: #d66; @control-danger-color: #d66;
@overlay-bg: fade(@secondary-color, 90%); @overlay-bg: fade(@secondary-color, 90%);
@code-bg: darken(@body-bg, 3%);
@code-color: lighten(@text-color, 30%);
} }
.define-colors(true) { .define-colors(true) {
@primary-color: @config-primary-color; @primary-color: @config-primary-color;
@ -56,6 +59,9 @@
@control-danger-color: #a88; @control-danger-color: #a88;
@overlay-bg: fade(darken(@body-bg, 5%), 90%); @overlay-bg: fade(darken(@body-bg, 5%), 90%);
@code-bg: darken(@body-bg, 3%);
@code-color: #fff;
} }
@hero-bg: @control-bg; @hero-bg: @control-bg;