Merge pull request #75 from mdinger/non_pre

Generalize inline code to all themes
This commit is contained in:
Mathieu David 2015-12-23 00:50:58 +01:00
commit a2b25232d3
3 changed files with 40 additions and 8 deletions

View File

@ -270,9 +270,17 @@ h3 {
} }
} }
.light { .light {
/* Inline code */
color: #333; color: #333;
background-color: #fff; background-color: #fff;
} }
.light :not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.light .sidebar { .light .sidebar {
background-color: #fafafa; background-color: #fafafa;
color: #364149; color: #364149;
@ -318,9 +326,17 @@ h3 {
background-color: #e6e6e6; background-color: #e6e6e6;
} }
.coal { .coal {
/* Inline code */
color: #98a3ad; color: #98a3ad;
background-color: #141617; background-color: #141617;
} }
.coal :not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.coal .sidebar { .coal .sidebar {
background-color: #292c2f; background-color: #292c2f;
color: #a1adb8; color: #a1adb8;
@ -366,9 +382,17 @@ h3 {
background-color: #1f2124; background-color: #1f2124;
} }
.navy { .navy {
/* Inline code */
color: #bcbdd0; color: #bcbdd0;
background-color: #161923; background-color: #161923;
} }
.navy :not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.navy .sidebar { .navy .sidebar {
background-color: #282d3f; background-color: #282d3f;
color: #c8c9db; color: #c8c9db;
@ -414,9 +438,17 @@ h3 {
background-color: #282e40; background-color: #282e40;
} }
.rust { .rust {
/* Inline code */
color: #262625; color: #262625;
background-color: #e1e1db; background-color: #e1e1db;
} }
.rust :not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.rust .sidebar { .rust .sidebar {
background-color: #3b2e2a; background-color: #3b2e2a;
color: #c8c9db; color: #c8c9db;

View File

@ -10,14 +10,6 @@
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
} }
/* Inline code */
:not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
border-radius: 3px;
}
/* Atelier-Dune Comment */ /* Atelier-Dune Comment */
.hljs-comment { .hljs-comment {

View File

@ -1,4 +1,12 @@
.{unquote($theme-name)} { .{unquote($theme-name)} {
/* Inline code */
:not(pre) > .hljs {
display: inline-block;
vertical-align: middle;
padding: 0.1em 0.3em;
border-radius: 3px;
}
color: $fg color: $fg
background-color: $bg background-color: $bg