Skip to content

Commit a127077

Browse files
committed
Lift font SCSS partials to theme root
This means that themes which include `light/css/_base.scss` (currently Dark and Status) won't be forced to have Light's font-faces included. This only really matters for Status, which uses different fonts throughout.
1 parent 49be03e commit a127077

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎res/themes/status/css/_fonts.scss‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@font-face {
2+
font-family:PostGrotesk-Medium;
3+
src:url('https://status.im/fonts/PostGrotesk-Medium.eot');
4+
src:url('https://status.im/fonts/PostGrotesk-Medium.eot?#iefix') format("embedded-opentype"),url('https://status.im/fonts/PostGrotesk-Medium.woff') format("woff"),url('https://status.im/fonts/PostGrotesk-Medium.svg#PostGrotesk-Medium') format("svg");
5+
font-weight: 400;
6+
font-style: normal;
7+
}
8+
9+
@font-face {
10+
font-family:PostGrotesk-Book;
11+
src:url('https://status.im/fonts/PostGrotesk-Book.eot');
12+
src:url('https://status.im/fonts/PostGrotesk-Book.eot?#iefix') format("embedded-opentype"),url('https://status.im/fonts/PostGrotesk-Book.woff') format("woff"),url('https://status.im/fonts/PostGrotesk-Book.svg#PostGrotesk-Book') format("svg");
13+
font-weight: 400;
14+
font-style: normal;
15+
}

‎res/themes/status/css/_status.scss‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
@font-face {
2-
font-family:PostGrotesk-Medium;
3-
src:url('https://status.im/fonts/PostGrotesk-Medium.eot');
4-
src:url('https://status.im/fonts/PostGrotesk-Medium.eot?#iefix') format("embedded-opentype"),url('https://status.im/fonts/PostGrotesk-Medium.woff') format("woff"),url('https://status.im/fonts/PostGrotesk-Medium.svg#PostGrotesk-Medium') format("svg");
5-
font-weight: 400;
6-
font-style: normal;
7-
}
8-
9-
@font-face {
10-
font-family:PostGrotesk-Book;
11-
src:url('https://status.im/fonts/PostGrotesk-Book.eot');
12-
src:url('https://status.im/fonts/PostGrotesk-Book.eot?#iefix') format("embedded-opentype"),url('https://status.im/fonts/PostGrotesk-Book.woff') format("woff"),url('https://status.im/fonts/PostGrotesk-Book.svg#PostGrotesk-Book') format("svg");
13-
font-weight: 400;
14-
font-style: normal;
15-
}
16-
171
// We deliberately prioritise Arial over Helvetica here due to diacritic problems (see _base.scss)
182
// N.B. that the status.im website uses:
193
// font-family:PostGrotesk-Book,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;

‎res/themes/status/css/status.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "_fonts.scss";
12
@import "../../../../node_modules/matrix-react-sdk/res/themes/light/css/_base.scss";
23
@import "_status.scss";
34
@import "../../../../node_modules/matrix-react-sdk/res/css/_components.scss";

0 commit comments

Comments
 (0)