_typography.scss 4.19 KB
Newer Older
1 2 3 4 5
// lms - elements - typography
// ====================

// Scale - (6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 21, 24, 36, 48, 60, 72)

6 7
// weights
%t-ultrastrong {
8
 font-weight: 700;
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
}
%t-strong {
 font-weight: 600;
}
%t-demi-strong {
 font-weight: 500;
}
%t-regular {
 font-weight: 400;
}
%t-light {
 font-weight: 300;
}
%t-ultralight {
 font-weight: 200;
}

26
// headings/titles
27
%t-title {
28 29 30
  font-family: $f-sans-serif;
}

31 32
%t-title1 {
  @extend %t-title;
33 34 35 36
  @include font-size(60);
  @include line-height(60);
}

37 38
%t-title2 {
  @extend %t-title;
39 40 41 42
  @include font-size(48);
  @include line-height(48);
}

43
%t-title3 {
44
  @extend %t-title;
45 46 47 48
  @include font-size(36);
  @include line-height(36);
}

49 50
%t-title4 {
  @extend %t-title;
51 52 53 54
  @include font-size(24);
  @include line-height(24);
}

55 56
%t-title5 {
  @extend %t-title;
57 58 59 60
  @include font-size(18);
  @include line-height(18);
}

61 62
%t-title6 {
  @extend %t-title;
63 64 65 66
  @include font-size(16);
  @include line-height(16);
}

67 68
%t-title7 {
  @extend %t-title;
69 70 71 72
  @include font-size(14);
  @include line-height(14);
}

73 74
%t-title8 {
  @extend %t-title;
75 76 77 78
  @include font-size(12);
  @include line-height(12);
}

79 80
%t-title9 {
  @extend %t-title;
81 82 83 84 85 86 87
  @include font-size(11);
  @include line-height(11);
}

// ====================

// copy
88
%t-copy {
89 90 91
  font-family: $f-sans-serif;
}

92 93
%t-copy-base {
  @extend %t-copy;
94 95 96 97
  @include font-size(16);
  @include line-height(16);
}

98 99
%t-copy-lead1 {
  @extend %t-copy;
100 101 102 103
  @include font-size(18);
  @include line-height(18);
}

104 105
%t-copy-lead2 {
  @extend %t-copy;
106 107 108 109
  @include font-size(24);
  @include line-height(24);
}

110 111
%t-copy-sub1 {
  @extend %t-copy;
112 113 114 115
  @include font-size(14);
  @include line-height(14);
}

116 117
%t-copy-sub2 {
  @extend %t-copy;
118 119 120 121 122 123 124
  @include font-size(12);
  @include line-height(12);
}

// ====================

// actions/labels
125
%t-action1 {
126 127 128 129
  @include font-size(18);
  @include line-height(18);
}

130
%t-action2 {
131 132 133 134
  @include font-size(16);
  @include line-height(16);
}

135
%t-action3 {
136 137 138 139
  @include font-size(14);
  @include line-height(14);
}

140
%t-action4 {
141 142 143 144 145 146 147 148
  @include font-size(12);
  @include line-height(12);
}


// ====================

// code
149
%t-code {
150 151 152 153 154 155
  font-family: $f-monospace;
}

// ====================

// icons
156
%t-icon1 {
157 158 159
  @include font-size(48);
}

160
%t-icon2 {
161 162 163
  @include font-size(36);
}

164
%t-icon3 {
165 166 167
  @include font-size(24);
}

168
%t-icon4 {
169 170 171
  @include font-size(18);
}

172
%t-icon5 {
173 174 175
  @include font-size(16);
}

176
%t-icon6 {
177 178 179
  @include font-size(14);
}

180
%t-icon7 {
181 182 183
  @include font-size(12);
}

184
%t-icon8 {
185 186 187
  @include font-size(11);
}

188
%t-icon9 {
189
  @include font-size(10);
190 191
}

192
%t-icon-solo {
193
  @include line-height(0);
194
}
195 196 197 198

// ====================

// typography weights
199
%t-weight1 {
200
  font-weight: $font-light;
201 202
}

203
%t-weight2 {
204
  font-weight: $font-regular;
205 206
}

207
%t-weight3 {
208 209 210
  font-weight: 500;
}

211
%t-weight4 {
212
  font-weight: $font-semibold;
213 214
}

215
%t-weight5 {
216
  font-weight: $font-bold;
217
}
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294

// ====================

// MISC: extends - type
// application: canned headings
%hd-lv1 {
  @extend %t-title1;
  @extend %t-weight1;
  color: $m-gray-d4;
  margin: 0 0 ($baseline*2) 0;
}

%hd-lv2 {
  @extend %t-title4;
  @extend %t-weight1;
  margin: 0 0 ($baseline*0.75) 0;
  border-bottom: 1px solid $m-gray-l3;
  padding-bottom: ($baseline/2);
  color: $m-gray-d4;
}

%hd-lv3 {
  @extend %t-title6;
  @extend %t-weight4;
  margin: 0 0 ($baseline/4) 0;
  color: $m-gray-d4;
}

%hd-lv4 {
  @extend %t-title6;
  @extend %t-weight2;
  margin: 0 0 $baseline 0;
  color: $m-gray-d4;
}

%hd-lv5 {
  @extend %t-title7;
  @extend %t-weight4;
  margin: 0 0 ($baseline/4) 0;
  color: $m-gray-d4;
}

// application: canned copy
%copy-base {
  @extend %t-copy-base;
  color: $m-gray-d2;
}

%copy-lead1 {
  @extend %t-copy-lead2;
  color: $m-gray;
}

%copy-detail {
  @extend %t-copy-sub1;
  @extend %t-weight3;
  color: $m-gray-d1;
}

%copy-metadata {
  @extend %t-copy-sub2;
  color: $m-gray-d1;


  %copy-metadata-value {
    @extend %t-weight2;
  }

  %copy-metadata-value {
    @extend %t-weight4;
  }
}

// application: canned links
%copy-link {
  border-bottom: 1px dotted transparent;

295
  &:hover, &:active, &:focus {
296 297 298 299 300
    border-color: $link-color-d1;
  }
}

%copy-badge {
301
  @extend %t-title9;
302
  @extend %t-weight3;
303 304 305
  border-radius: ($baseline/5);
  padding: ($baseline/2) $baseline;
  text-transform: uppercase;
306
  letter-spacing: 0.1rem;
307
}