Skip to content

Commit fd49de7

Browse files
author
Dorazil
committed
Add scout fonts
1 parent b87d4a0 commit fd49de7

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

frontend/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import "~nprogress/nprogress";
44
@import "scss/modals";
55
@import "scss/landing";
6+
@import "scss/fonts";
67

78
.btn-light {
89
@include button-variant($light, darken($light, 30%));

frontend/scss/fonts.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$font-cdn: 'https://cdn.skauting.cz/fonts';
2+
3+
@mixin font-face($family, $file, $weight, $style: normal, $svg-id: null) {
4+
@font-face {
5+
font-family: quote($family);
6+
src: url('#{$font-cdn}/#{$file}.eot');
7+
src: url('#{$font-cdn}/#{$file}.eot?#iefix') format('embedded-opentype'),
8+
url('#{$font-cdn}/#{$file}.woff2') format('woff2'),
9+
url('#{$font-cdn}/#{$file}.woff') format('woff'),
10+
url('#{$font-cdn}/#{$file}.otf') format('opentype'),
11+
url('#{$font-cdn}/#{$file}.svg##{if($svg-id, $svg-id, $family)}') format('svg');
12+
font-weight: $weight;
13+
font-style: $style;
14+
}
15+
}
16+
17+
@include font-face('themix', 'TheMix_LT_400', 400, normal, 'themix');
18+
@include font-face('themix', 'TheMix_LT_400i', 400, italic, 'themix');
19+
@include font-face('themix', 'TheMix_LT_700', 700, normal, 'themix');
20+
@include font-face('themix', 'TheMix_LT_700i', 700, italic, 'themix');
21+
22+
@include font-face('skautbold', 'skaut-bold-webfont', normal, normal, 'skautbold');

frontend/scss/landing.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
color: #2d4739;
4242
line-height: 66px;
4343
text-transform: uppercase;
44+
font-family: skautbold, sans-serif;
4445

4546
@media (min-width: 768px) { font-size: 3rem; text-align: left; }
4647
@media (min-width: 1000px) { font-size: 4rem; }

0 commit comments

Comments
 (0)