Pārlūkot izejas kodu

Make code font customizable for themes.

Arno Lepisk 5 gadi atpakaļ
vecāks
revīzija
8e5bdcc2bb
2 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 3 1
      css/theme/template/settings.scss
  2. 2 2
      css/theme/template/theme.scss

+ 3 - 1
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;
-}
+}

+ 2 - 2
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;
 }