Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <gevhaz@tutanota.com>2020-06-08 18:54:14 +0300
committerSimon <gevhaz@tutanota.com>2020-06-08 18:54:14 +0300
commita30c09b23e0f40cd1c57ec88c6d1a1b786e8f202 (patch)
tree4f012e9f6be1b6645eb25b79aa20b99b5af0b02b
parent44bfec39366893270344275d094104e538dfdfba (diff)
Background color for code
-rw-r--r--static/css/styles.css7
-rw-r--r--static/css/styles.scss12
2 files changed, 18 insertions, 1 deletions
diff --git a/static/css/styles.css b/static/css/styles.css
index efb0787..dab983c 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -68,8 +68,15 @@ em {
kbd, code {
font-family: Mononoki, monospace;
color: #444;
+ background-color: #f3f3f3;
font-size: 0.9em; }
+pre {
+ background-color: #f6f8fa;
+ padding: 0.5em; }
+ pre code {
+ background-color: transparent; }
+
th {
font-family: FreeSerif, serif;
font-weight: bold;
diff --git a/static/css/styles.scss b/static/css/styles.scss
index e401c2c..af12b2a 100644
--- a/static/css/styles.scss
+++ b/static/css/styles.scss
@@ -14,7 +14,8 @@ $cv-red: #b25347;
$light-text: #5f5a6f;
$very-light-text: #767676;
$medium-light-text: #4f4a5f;
-$code-background: #272822;
+$code-background: #f3f3f3;
+$codeblock-background: #f6f8fa;
$code-text: #f8f8f2;
// Breakpoints
@@ -131,9 +132,18 @@ em {
kbd, code {
font-family: Mononoki, monospace;
color: $text-color;
+ background-color: $code-background;
font-size: 0.9em;
}
+pre {
+ background-color: $codeblock-background;
+ padding: 0.5em;
+ code {
+ background-color: transparent;
+ }
+}
+
th {
font-family: FreeSerif, serif;
font-weight: bold;