Skip to content

Commit 68b8cef

Browse files
authored
Merge pull request #151 from Bisaloo/font-variable
Use a Sass variable for default font
2 parents 34192f5 + ff079ae commit 68b8cef

File tree

10 files changed

+34
-15
lines changed

10 files changed

+34
-15
lines changed

NEWS.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1+
# varnish 1.0.5.9000 ()
2+
3+
## NEW FEATURES
4+
5+
* Two new Sass variables (`default_font` and `mono_font`) have been created to
6+
simplify the process of changing the default font and monospace font.
7+
In particular, this can be helpful for forks defining their own theme
8+
(@Bisaloo #151)
9+
* Carpentry-specific favicons are now used automatically based on the value of
10+
the `carpentry:` value in the `config.yaml` file (@Bisaloo, #152, based on a
11+
report from @zkamvar in #33).
12+
13+
114
# varnish 1.0.4 (2024-08-23)
215

316
## NEW FEATURES
417

18+
* Two new Sass variables (`default_font` and `mono_font`) have been created to
19+
simplify the process of changing the default font and monospace font.
20+
In particular, this can be helpful for forks defining their own theme
21+
(@Bisaloo #151)
522
* Carpentry-specific favicons are now used automatically based on the value of
623
the `carpentry:` value in the `config.yaml` file (@Bisaloo, #152, based on a
724
report from @zkamvar in #33).

inst/pkgdown/assets/assets/styles.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/pkgdown/assets/assets/styles.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/stylesheets/callouts.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
}
139139
.accordion-item {
140140
border-color: $black;
141-
font-family: Mulish;
141+
font-family: $default_font;
142142
font-style: normal;
143143
font-weight: normal;
144144
font-size: 1.2rem;
@@ -151,7 +151,7 @@
151151
}
152152
}
153153
.accordion-header {
154-
font-family: Mulish;
154+
font-family: $default_font;
155155
font-style: normal;
156156
font-weight: normal;
157157
font-size: 1.2rem;
@@ -197,7 +197,7 @@
197197
box-shadow: #0d6efd 0px 0px 0px 4px;
198198
}
199199
&, h3 {
200-
font-family: Mulish;
200+
font-family: $default_font;
201201
font-size: 1.2rem;
202202
font-style: normal;
203203
font-weight: normal;

source/stylesheets/codeblocks.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ div.sourceCode {
99
/* ZNK: added in 2022-01-07 */
1010

1111
pre {
12-
font-family: 'Source Code Pro', monospace;
12+
font-family: $mono_font, monospace;
1313
font-style: normal;
1414
font-weight: normal;
1515
font-size: 16px;

source/stylesheets/footer.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.footer {
22
margin-top: 25px;
3-
font-family: Mulish;
3+
font-family: $default_font;
44
font-style: normal;
55
font-weight: 300;
66
font-size: 14px;
@@ -11,4 +11,4 @@
1111

1212
.footer p{
1313
padding-left: 20px;
14-
}
14+
}

source/stylesheets/header.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
.mobile-title {
31-
font-family: Mulish;
31+
font-family: $default_font;
3232
font-style: normal;
3333
font-weight: 800;
3434
font-size: 24px;
@@ -167,7 +167,7 @@
167167
}
168168

169169
.lesson-title {
170-
font-family: Mulish;
170+
font-family: $default_font;
171171
font-style: normal;
172172
font-weight: 800;
173173
font-size: 24px;
@@ -359,7 +359,7 @@
359359

360360
.lesson-title-md {
361361
display: block;
362-
font-family: Mulish;
362+
font-family: $default_font;
363363
font-style: normal;
364364
font-weight: 800;
365365
font-size: 32px;
@@ -462,7 +462,7 @@
462462

463463
.lesson-title-md {
464464
display: inline-block;
465-
font-family: Mulish;
465+
font-family: $default_font;
466466
font-style: normal;
467467
font-weight: 800;
468468
font-size: 32px;

source/stylesheets/instructornotes.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
padding: 25px 35px;
1414
background: $light-gray;
1515
li {
16-
list-style-type: inherit;
16+
list-style-type: inherit;
1717
margin-left: 0px;
1818
margin-top:10px;
1919
margin-bottom:20px;
@@ -31,7 +31,7 @@
3131
box-shadow: #0d6efd 0px 0px 0px 4px;
3232
}
3333
&, h3 {
34-
font-family: Mulish;
34+
font-family: $default_font;
3535
font-size: 16px;
3636
font-style: normal;
3737
font-weight: normal;

source/stylesheets/styles.css.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171

7272
body {
73-
font-family: 'Mulish', sans serif;
73+
font-family: $default_font, sans serif;
7474
font-weight: $font_weight_normal;
7575
}
7676

source/stylesheets/variables.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
$font_weight_normal: 400;
22
$font_weight_bold: 800;
3+
$default_font: Mulish;
4+
$mono_font: 'Source Code Pro';
35
$asset_base_path: '../assets' !default;
46

57
$black: #383838;

0 commit comments

Comments
 (0)