aboutsummaryrefslogtreecommitdiff
path: root/assets/sass
diff options
context:
space:
mode:
authorOlivier Roques <oroques@fastmail.com>2021-01-31 12:09:54 +0100
committerOlivier Roques <oroques@fastmail.com>2021-01-31 12:09:54 +0100
commit281cdb775e6cb1179ffb4b166dcd5473ee0a01ce (patch)
tree6da00440f4382915881b510ab5c47f1f569b1559 /assets/sass
parent9c9511c68839f86cc0d792757c5a2a9f1ec575ee (diff)
Support appearance customization in site config
Closes #7 Closes #13
Diffstat (limited to 'assets/sass')
-rw-r--r--assets/sass/researcher.scss15
-rw-r--r--assets/sass/variables.scss7
2 files changed, 12 insertions, 10 deletions
diff --git a/assets/sass/researcher.scss b/assets/sass/researcher.scss
index df6c643..d75810f 100644
--- a/assets/sass/researcher.scss
+++ b/assets/sass/researcher.scss
@@ -1,6 +1,15 @@
-@import "variables";
+// Sizes
+$max-width: {{ .Param "style.pageWidth" }};
+$avatar-size: {{ .Param "style.avatarSize" }};
-// Internal variables
+// Colors
+$black: {{ .Param "style.colorBlack" }};
+$red: {{ .Param "style.colorRed" }};
+
+// Font
+$font-family: {{ .Param "style.fontFamily" }};
+
+// Margins
$y-small: 0.6rem;
$y-medium: 1.0rem;
@@ -36,7 +45,7 @@ $y-medium: 1.0rem;
// Style
* {
color: $black;
- font-family: "Inconsolata";
+ font-family: $font-family;
line-height: 1.2;
}
.container {
diff --git a/assets/sass/variables.scss b/assets/sass/variables.scss
deleted file mode 100644
index 637e37a..0000000
--- a/assets/sass/variables.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-// Sizes
-$max-width: 750px;
-$avatar-size: 90px;
-
-// Colors
-$black: #222222;
-$red: #dc3545;