aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2018-11-21 08:33:56 +0100
committerGitHub <noreply@github.com>2018-11-21 08:33:56 +0100
commit87d6af2cb430be1b3170d7b8d5ade43b7222eb04 (patch)
treed75d132608362da982c31c7604affa268c5386d0 /css
parent82076c5a0b1aebe7acd0db1886be9dd6445fa68f (diff)
parent8e5bdcc2bb87da2255e5a8d3285e164c52d9fbda (diff)
downloadperl-software-in-gnu-guix-87d6af2cb430be1b3170d7b8d5ade43b7222eb04.tar
perl-software-in-gnu-guix-87d6af2cb430be1b3170d7b8d5ade43b7222eb04.tar.gz
Merge pull request #2266 from f00ale/custom_code_font
Make code font customizable for themes.
Diffstat (limited to 'css')
-rw-r--r--css/theme/template/settings.scss4
-rw-r--r--css/theme/template/theme.scss4
2 files changed, 5 insertions, 3 deletions
diff --git a/css/theme/template/settings.scss b/css/theme/template/settings.scss
index 63c02cf..5a917f8 100644
--- a/css/theme/template/settings.scss
+++ b/css/theme/template/settings.scss
@@ -28,6 +28,8 @@ $heading2Size: 2.11em;
$heading3Size: 1.55em;
$heading4Size: 1.00em;
+$codeFont: monospace;
+
// Links and actions
$linkColor: #13DAEC;
$linkColorHover: lighten( $linkColor, 20% );
@@ -40,4 +42,4 @@ $selectionColor: #fff;
// to return a background image or gradient
@mixin bodyBackground() {
background: $backgroundColor;
-} \ No newline at end of file
+}
diff --git a/css/theme/template/theme.scss b/css/theme/template/theme.scss
index a8f142d..215e2d4 100644
--- a/css/theme/template/theme.scss
+++ b/css/theme/template/theme.scss
@@ -162,7 +162,7 @@ body {
text-align: left;
font-size: 0.55em;
- font-family: monospace;
+ font-family: $codeFont;
line-height: 1.2em;
word-wrap: break-word;
@@ -171,7 +171,7 @@ body {
}
.reveal code {
- font-family: monospace;
+ font-family: $codeFont;
text-transform: none;
}