Skip to content

Commit 7667900

Browse files
authored
set bold font weights for firefox (#186)
1 parent a567a47 commit 7667900

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

docs/stylesheets/nokia-fonts.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,21 @@
6565
font-weight: 700;
6666
font-style: normal;
6767
font-display: swap;
68+
}
69+
70+
@font-face {
71+
font-family: 'NokiaPureText';
72+
src: url('https://cdn.jsdelivr.net/gh/hellt/[email protected]/nokia/NokiaPureText_Bd.eot');
73+
/* IE9 Compat Modes */
74+
src: url('https://cdn.jsdelivr.net/gh/hellt/[email protected]/nokia/NokiaPureText_Bd.woff2') format('woff2'),
75+
/* Super Modern Browsers */
76+
url('https://cdn.jsdelivr.net/gh/hellt/[email protected]/nokia/NokiaPureText_Bd.woff') format('woff'),
77+
/* Pretty Modern Browsers */
78+
url('https://cdn.jsdelivr.net/gh/hellt/[email protected]/nokia/NokiaPureText_Bd.ttf') format('truetype'),
79+
/* Safari, Android, iOS */
80+
url('https://cdn.jsdelivr.net/gh/hellt/[email protected]/nokia/NokiaPureText_Bd.svg#svgFontName') format('svg');
81+
/* Legacy iOS */
82+
font-weight: bold;
83+
font-style: normal;
84+
font-display: swap;
6885
}

docs/stylesheets/nokia.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
max-width: 40rem;
3737
}
3838

39+
/* on firefox strong was getting font weight 400, which was not bold */
40+
strong,
41+
b {
42+
font-weight: bold;
43+
}
44+
3945
body,
4046
input {
4147
font-weight: 300;

0 commit comments

Comments
 (0)