riot-web/res/themes/dharma/css/_fonts.scss

54 lines
1.4 KiB
SCSS
Raw Normal View History

2018-05-25 04:17:29 +02:00
/*
* Nunito.
* Includes extended Latin and Vietnamese character sets
2019-01-31 11:43:06 +01:00
* Current URLs are taken from
* https://github.com/alexeiva/NunitoFont/releases/tag/v3.500
* ...in order to include cyrillic.
*
* Previously, they were
* https://fonts.googleapis.com/css?family=Nunito:400,400i,600,600i,700,700i&subset=latin-ext,vietnamese
2019-01-31 11:43:06 +01:00
*
2019-01-31 11:51:26 +01:00
* We explicitly do not include Nunito's italic variants, as they are not italic enough
* and it's better to rely on the browser's built-in obliquing behaviour.
2018-05-25 04:17:29 +02:00
*/
/* the 'src' links are relative to the bundle.css, which is in a subdirectory.
*/
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 400;
2019-01-31 11:43:06 +01:00
src: url('$(res)/fonts/Nunito/Nunito-Regular.ttf') format('truetype');
2018-05-25 04:17:29 +02:00
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 600;
2019-01-31 11:43:06 +01:00
src: url('$(res)/fonts/Nunito/Nunito-SemiBold.ttf') format('truetype');
2018-05-25 04:17:29 +02:00
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
2019-01-31 11:43:06 +01:00
src: url('$(res)/fonts/Nunito/Nunito-Bold.ttf') format('truetype');
2018-05-25 04:17:29 +02:00
}
/*
* Fira Mono
* Used for monospace copy, i.e. code
*/
@font-face {
font-family: 'Fira Mono';
src: url('$(res)/fonts/Fira_Mono/FiraMono-Regular.ttf') format('truetype');
2018-05-25 04:17:29 +02:00
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Fira Mono';
src: url('$(res)/fonts/Fira_Mono/FiraMono-Bold.ttf') format('truetype');
2018-05-25 04:17:29 +02:00
font-weight: 700;
font-style: normal;
}