Skip to content

Commit

Permalink
Isolate highlight styles of code from highlight schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
iissnan committed Feb 27, 2017
1 parent e9da79a commit 2664032
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/css/_common/components/highlight/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pre, code { font-family: $code-font-family; }
code {
padding: 2px 4px;
word-wrap: break-word;
color: $highlight-foreground;
background: $highlight-background;
color: $code-foreground;
background: $code-background;
border-radius: $code-border-radius;
font-size $code-font-size;
}
Expand Down Expand Up @@ -89,14 +89,14 @@ pre {
.line { height: 20px; }
}


.gutter {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.gist table {
width: auto;

Expand Down
2 changes: 2 additions & 0 deletions source/css/_variables/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ $code-font-family = $font-family-monospace
$code-font-size = 13px
$code-font-size = unit(hexo-config('font.codes.size'), px) if hexo-config('font.codes.size') is a 'unit'
$code-border-radius = 3px
$code-foreground = $black-light
$code-background = $gainsboro



Expand Down

0 comments on commit 2664032

Please sign in to comment.