mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-13 13:38:15 -05:00
Add webfonts for 5.0 redesign (#39868)
This commit is contained in:
8
app/javascript/styles/fonts/inter-mailer.scss
Normal file
8
app/javascript/styles/fonts/inter-mailer.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-variable-font-slnt-wght.woff2')
|
||||
format('woff2-variations');
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
mso-generic-font-family: swiss;
|
||||
}
|
||||
@@ -1,8 +1,35 @@
|
||||
// Regular
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-variable-font-slnt-wght.woff2')
|
||||
format('woff2-variations');
|
||||
font-weight: 100 900;
|
||||
src: url('../../fonts/inter/inter-regular.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
mso-generic-font-family: swiss;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// Italic
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-italic.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// SemiBold (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-semibold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// SemiBold Italic (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-semibold-italic.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
7
app/javascript/styles/fonts/syne.scss
Normal file
7
app/javascript/styles/fonts/syne.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
@font-face {
|
||||
font-family: Syne;
|
||||
src: url('../../fonts/syne/syne-bold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
Reference in New Issue
Block a user