~scrumplex/website

ref: d36d7451040a6e53fd3d74584ef332c0295e989c website/src/scss/_typography.scss -rw-r--r-- 1.3 KiB
d36d7451Sefa Eyeoglu fix: actually load custom fonts 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
@use "@fontsource/fira-sans/scss/mixins" as FiraSans;
@use "@fontsource/josefin-sans/scss/mixins" as JosefinSans;

@import "variables";

@include FiraSans.fontFace(
  $weight: 400,
  $display: fallback,
  $fontDir: "~node_modules/@fontsource/fira-sans/files"  // TODO: make this cleaner
);

@include JosefinSans.fontFace(
  $weight: 400,
  $display: fallback,
  $fontDir: "~node_modules/@fontsource/josefin-sans/files"  // TODO: ditto
);

html {
    font-size: 20px;
}

body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    @include main-font;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: $colorMuted;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    @include alt-font;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.0rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem
}

h5 {
    font-size: 1.25rem
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

blockquote {
    margin-left: 0;
    margin-right: 0;
    @extend h5;
}

blockquote > footer {
    display: block;
    @extend .text-muted;
    @extend h6;
}

a {
    color: $colorBrand;
}

.icon-2x {
    font-size: 2em;
}