-
Notifications
You must be signed in to change notification settings - Fork 5
/
_base.typography.scss
131 lines (102 loc) · 2.72 KB
/
_base.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
////
/// PX-TYPOGRAPHY-DESIGN
/// Defines styles for typography.
/// @group px-typography-design
////
/// Predix font-family
/// @group px-typography-design:variables:style
/// @type String [default]
$predix-font-family: "GE Inspira Sans", sans-serif !default;
/// Load fonts locally
/// @group px-typography-design:variables:style
/// @type Boolean [default]
$predix-load-local-fonts: false !default;
/// Webfont path
/// @group px-typography-design:variables:style
/// @type String [default]
$inuit-webfont-path: 'https://cdn.predix-ui.com/px-cdn/type/2.0.0' !default;
/// Font-display descriptor value used in generating font-face rules
/// @group px-typography-design:variables:style
/// @type String [default]
$predix-font-display: auto !default;
//flip back to false when CDN fonts are available
@if $predix-load-local-fonts == true {
$inuit-webfont-path: '../px-typography-design/type';
}
@import "px-defaults-design/_settings.defaults.scss";
@import "px-colors-design/_settings.colors.scss";
@import "px-mixins-design/_tools.mixins.scss";
@include font-face('GE Inspira Sans', '#{$inuit-webfont-path}/GEInspiraSans', null, null, $predix-font-display);
@include font-face('GE Inspira Sans', '#{$inuit-webfont-path}/GEInspiraSans-Italic', normal, italic, $predix-font-display);
@include font-face('GE Inspira Sans', '#{$inuit-webfont-path}/GEInspiraSans-Bold', bold, normal, $predix-font-display);
@include font-face('GE Inspira Sans', '#{$inuit-webfont-path}/GEInspiraSans-BoldItalic', bold, italic, $predix-font-display);
html {
font-family: $predix-font-family;
}
/**
* Font weights
*/
.weight--normal {
font-weight: 400!important;
}
.weight--bold {
font-weight: 600!important;
}
/**
* the html and :host declarations cannot be adjacent to one other
* or cssmin will combine them into a single rule, breaking in
* Safari and Firefox.
*/
:host {
font-family: $predix-font-family;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}