UNPKG

3.07 kBSCSSView Raw
1/**
2* Font family utility
3*
4* naming convention: gl-font-{family-name}
5* Notes:
6* - Strictly based on design system typography specs
7*/
8@mixin gl-font-monospace {
9 font-family: $gl-monospace-font;
10}
11
12@mixin gl-font-regular {
13 font-family: $gl-regular-font;
14}
15
16/**
17* Font style utility
18*
19* naming convention: gl-font-style-{family-name}
20*/
21@mixin gl-font-style-italic {
22 font-style: italic;
23}
24
25@mixin gl-font-style-normal {
26 font-style: normal;
27}
28
29/**
30* Font size utility
31*
32* naming convention: gl-font-{type-scale-size}
33* Notes:
34* - Strictly based on design system type scale. See
35* $gl-type-scale for further references.
36*/
37@mixin gl-font-sm {
38 font-size: $gl-font-size-sm;
39}
40
41@mixin gl-font-base {
42 font-size: $gl-font-size;
43}
44
45@mixin gl-font-lg {
46 font-size: $gl-font-size-lg;
47}
48
49@mixin gl-font-size-h-display {
50 font-size: $gl-font-size-h-display;
51}
52
53@mixin gl-font-size-h1 {
54 font-size: $gl-font-size-h1;
55}
56
57@mixin gl-font-size-h2 {
58 font-size: $gl-font-size-h2;
59}
60
61@mixin gl-font-size-h-display-xl {
62 font-size: $gl-font-size-h-display-xl;
63}
64
65@mixin gl-font-size-h1-xl {
66 font-size: $gl-font-size-h1-xl;
67}
68
69@mixin gl-font-size-h2-xl {
70 font-size: $gl-font-size-h2-xl;
71}
72
73@mixin gl-font-size-monospace {
74 font-size: $gl-font-size-monospace;
75}
76
77@mixin gl-font-size-monospace-sm {
78 font-size: $gl-font-size-monospace-sm;
79}
80
81@mixin gl-font-size-monospace-lg {
82 font-size: $gl-font-size-monospace-lg;
83}
84
85@mixin gl-font-icon-size {
86 font-size: $default-icon-size;
87}
88
89@mixin gl-font-size-markdown-sm {
90 font-size: $gl-font-size-markdown-sm;
91}
92
93@mixin gl-font-size-markdown {
94 font-size: $gl-font-size-markdown;
95}
96
97@mixin gl-font-size-markdown-h1 {
98 font-size: $gl-font-size-markdown-h1;
99}
100
101@mixin gl-font-size-markdown-h2 {
102 font-size: $gl-font-size-markdown-h2;
103}
104
105@mixin gl-font-size-markdown-h3 {
106 font-size: $gl-font-size-markdown-h3;
107}
108
109@mixin gl-font-size-compact-markdown-h1 {
110 font-size: $gl-font-size-compact-markdown-h1;
111}
112
113/**
114* Font-weight utilities.
115*
116* naming convention: gl-font-weight-[bold|normal|number]
117*/
118
119@mixin gl-font-weight-100 {
120 font-weight: 100;
121}
122
123@mixin gl-font-weight-normal {
124 font-weight: $gl-font-weight-normal;
125}
126
127@mixin gl-font-weight-bold {
128 font-weight: $gl-font-weight-bold;
129}
130
131@mixin gl-sm-font-weight-bold {
132 @media (min-width: $breakpoint-sm) {
133 @include gl-font-weight-bold;
134 }
135}
136
137/**
138* Line height utilities.
139*
140* naming convention: gl-line-height-{line-height-in-pixels}
141* notes:
142* - Strictly based in gl-line-height-{n} variables
143*/
144@mixin gl-line-height-0 {
145 line-height: 0;
146}
147
148@mixin gl-line-height-normal {
149 line-height: $gl-line-height-16;
150}
151
152@mixin gl-line-height-20 {
153 line-height: $gl-line-height-20;
154}
155
156@mixin gl-line-height-24 {
157 line-height: $gl-line-height-24;
158}
159
160@mixin gl-line-height-28 {
161 line-height: $gl-line-height-28;
162}
163
164@mixin gl-line-height-32 {
165 line-height: $gl-line-height-32;
166}
167
168@mixin gl-line-height-36 {
169 line-height: $gl-line-height-36;
170}
171
172@mixin gl-line-height-52 {
173 line-height: $gl-line-height-52;
174}
175
176@mixin gl-reset-line-height {
177 line-height: inherit;
178}