-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path_typography.scss
62 lines (44 loc) · 1.61 KB
/
_typography.scss
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
@use 'sass:map';
///*------------------------------------*\
// # GEL TYPOGRAPHY
//\*------------------------------------*/
// We need to check that the GEL Sass Tools are available globally
$gel-settings-available: false !default;
@if ($gel-settings-available == false) {
@warn "Missing Dependency: Have you included the GEL Sass Tools?";
}
// import the local dependancies
@import 'lib/settings';
@import 'lib/tools';
// define some output control variables
$core: true !default;
$enhanced: true !default;
// If larger font sizes enable, merge them with gel-type-settings
@if $gel-type-enable--larger-type-sizes {
$gel-type-settings: map.merge($gel-type-settings, $gel-larger-font-sizes);
}
// Output the typography styles for the 4 groups
@if $gel-type-enable--markup-output {
@each $type-class, $type-values in $gel-type-settings {
.#{$gel-type-namespace}#{$type-class},
%#{$gel-type-namespace}#{$type-class} {
@include gel-typography($type-class);
}
}
}
@if $gel-type-enable--font-family {
// Barlesque will set the correct font-family on the <body> tag but if you're working on a project
// without Barlesque you might want to enable this flag
//
body {
font-family: Helvetica, Arial, freesans, sans-serif;
}
}
@if $gel-type-enable--base-elements {
// Map the GEL Typography classes to the relevant HTML elements
//
h1 { @extend %#{$gel-type-namespace}trafalgar; }
h2 { @extend %#{$gel-type-namespace}double-pica; }
h3 { @extend %#{$gel-type-namespace}great-primer; }
h4 { @extend %#{$gel-type-namespace}pica; }
}