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

53 lines
1.3 KiB
SCSS
Raw Normal View History

2018-05-25 05:17:29 +03:00
/*
* Nunito.
* Includes extended Latin and Vietnamese character sets
2019-01-31 13:43:06 +03: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 13:43:06 +03:00
*
* Nunito's italic isn't very italic so we currently fudge italic by shearing in CSS.
2018-05-25 05:17:29 +03: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 13:43:06 +03:00
src: url('$(res)/fonts/Nunito/Nunito-Regular.ttf') format('truetype');
2018-05-25 05:17:29 +03:00
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 600;
2019-01-31 13:43:06 +03:00
src: url('$(res)/fonts/Nunito/Nunito-SemiBold.ttf') format('truetype');
2018-05-25 05:17:29 +03:00
}
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 700;
2019-01-31 13:43:06 +03:00
src: url('$(res)/fonts/Nunito/Nunito-Bold.ttf') format('truetype');
2018-05-25 05:17:29 +03: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 05:17:29 +03: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 05:17:29 +03:00
font-weight: 700;
font-style: normal;
}