Skip to content

Commit cb6b9e6

Browse files
committed
templates: Refactor callout font setting to use vars
Also change weight to be consistent with bold font's weight.
1 parent 980fcec commit cb6b9e6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

emanote/default/templates/hooks/more-head.tpl

+8-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,21 @@
1313
1414
body {
1515
font-family: 'WorkSans', sans-serif;
16+
17+
/* Set the default font weight */
1618
font-variation-settings: 'wght' 350;
19+
20+
/* Define css variables so they may be used outside of this file */
21+
--font-variation-bold: 'wght' 500;
22+
--font-variation-link: 'wght' 400;
1723
}
1824
1925
a.mavenLinkBold {
20-
font-variation-settings: 'wght' 400;
26+
font-variation-settings: var(--font-variation-link);
2127
}
2228
2329
strong {
24-
font-variation-settings: 'wght' 500;
30+
font-variation-settings: var(--font-variation-bold);
2531
}
2632
2733
h1,

emanote/default/templates/styles.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
display: flex;
7575
align-items: center;
7676
margin-bottom: 0.5em;
77-
font-variation-settings: 'wght' 600;
77+
font-variation-settings: var(--font-variation-bold);
7878
}
7979
8080
div.callout-title div.callout-title-inner {

emanote/emanote.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: emanote
3-
version: 1.3.24.0
3+
version: 1.3.24.1
44
license: AGPL-3.0-only
55
copyright: 2022 Sridhar Ratnakumar
66
maintainer: [email protected]

0 commit comments

Comments
 (0)