forked from patrickliechty/fs-styles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_variables.styl
566 lines (493 loc) · 13.1 KB
/
_variables.styl
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
/*------------------------------------*\
$CONTENTS
Variables should start with the most generic term and end with the most specific term
(such as `$color-green-primary`).
Doing so will group common variables into categories which are easier to remember and
search for.
\*------------------------------------*/
/*
* MEDIA_QUERIES...Media query sizes
* COLORS..........Color variables
* FONTS...........Font variables
* OTHER...........Other property variables such as border-radius
*/
/*------------------------------------*\
$MEDIA_QUERIES
Match Bootstrap 2 breakpoints for consistency
\*------------------------------------*/
// screen sizes
$screen-mobile-max = 767px;
$screen-tablet-min = 768px;
$screen-tablet-max = 991px;
$screen-desktop-min = 992px;
$screen-desktop-max = 1199px;
$screen-desktop-hd-min = 1200px;
/*
* Media query breakpoints
*
* @example
* @media $break-mobile
* //=> @media screen and (max-width: 767px)
*/
/**
* Break Points
* @section
*/
/**
* Media Queries
*
* For consistency, we match Bootstrap 3 break points.
*
* @section
* @sectionof Break Points
* @example
* <div class="break-point__wrapper">
* <table>
* <thead>
* <tr>
* <th scope="col">Stylus Variable</th>
* <th scope="col">Mobile<br><small>< 768px</small></th>
* <th scope="col">Tablet<br><small>>= 768px</small></th>
* <th scope="col">Desktop<br><small>>= 992px</small></th>
* <th scope="col">Desktop HD<br> <small>>= 1200px</small></th>
* </tr>
* </thead>
* <tbody>
* <tr>
* <th scope="row"><code>$break-mobile</code></td>
* <td class="break-point__covered">Visible</td>
* <td>Hidden</td>
* <td>Hidden</td>
* <td>Hidden</td>
* </tr>
* <tr class="break-point__group">
* <th scope="row"><code>$break-tablet-below</code</td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* <td>Hidden</td>
* <td>Hidden</td>
* </tr>
* <tr>
* <th scope="row"><code>$break-tablet</code></td>
* <td>Hidden</td>
* <td class="break-point__covered">Visible</td>
* <td>Hidden</td>
* <td>Hidden</td>
* </tr>
* <tr>
* <th scope="row"><code>$break-tablet-above</code></td>
* <td>Hidden</td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* </tr>
* <tr class="break-point__group">
* <th scope="row"><code>$break-desktop-below</code></td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* <td>Hidden</td>
* </tr>
* <tr>
* <th scope="row"><code>$break-desktop</td>
* <td>Hidden</td>
* <td>Hidden</td>
* <td class="break-point__covered">Visible</td>
* <td>Hidden</td>
* </tr>
* <tr>
* <th scope="row"><code>$break-desktop-above</code></td>
* <td>Hidden</td>
* <td>Hidden</td>
* <td class="break-point__covered">Visible</td>
* <td class="break-point__covered">Visible</td>
* </tr>
* <tr class="break-point__group">
* <th scope="row"><code>$break-desktop-hd</code></td>
* <td>Hidden</td>
* <td>Hidden</td>
* <td>Hidden</td>
* <td class="break-point__covered">Visible</td>
* </tr>
* </tbody>
* </table>
* </div>
*
* @code {stylus} @media $break-tablet {
* body { width: 600px; }
* }
*/
$break-mobile = "screen and (max-width:" + $screen-mobile-max + ")";
$break-tablet-above = "screen and (min-width:" + $screen-tablet-min +")";
$break-tablet = "screen and (min-width:" + $screen-tablet-min +") and (max-width:" + $screen-tablet-max +")";
$break-tablet-below = "screen and (max-width:" + $screen-tablet-max +")";
$break-desktop-above = "screen and (min-width:" + $screen-desktop-min +")";
$break-desktop = "screen and (min-width:" + $screen-desktop-min +") and (max-width:" + $screen-desktop-max +")";
$break-desktop-below = "screen and (max-width:" + $screen-desktop-max +")";
$break-desktop-hd = "screen and (min-width:" + $screen-desktop-hd-min +")";
/*------------------------------------*\
$COLORS
Use the stylus function 'rgba(hex, opacity)' to add alpha transparency to a color
@see http://learnboost.github.io/stylus/docs/bifs.html#rgbacolor--rgba
Use the stylus function 'lighten(hex, amount)' to lighten a color by adding white
@see https://learnboost.github.io/stylus/docs/bifs.html#lightencolor-amount
\*------------------------------------*/
/**
* Colors
* @section
*/
/**
* Logo Colors
*
* ##### Acceptable Use
*
* The full 3-color logo is the primary logo and should be used in all instances when
* possible.
*
* There may be some instances where a single color logo is appropriate, such as using the
* FamilySearch logo on photography, apparel, spiffs, etc.
*
* ##### Avoid
*
* Do not use any other colors for the logo.
*
* @section
* @sectionof Colors
*/
/**
* Full Color Logo
* @section
* @sectionof Colors.Logo Colors
*/
/**
* Single Color Logos
* @section
* @sectionof Colors.Logo Colors
*/
/**
* @colordef Green Primary
* @color {hex} #87b940
* @color {rgb} 135,185,64
* @color {cmyk} 53,7,100,0
* @colorof Colors.Logo Colors.Full Color Logo
* @colorof Colors.Logo Colors.Single Color Logos
*/
$color-green-primary = #87b940;
/**
* @colordef Grey Primary
* @color {hex} #bab7b1
* @color {rgb} 186,183,177
* @color {cmyk} 28,23,27,0
* @colorof Colors.Logo Colors.Full Color Logo
*/
$color-grey-primary = #bab7b1;
/**
* @colordef Brown Primary
* @color {hex} #9c947a
* @color {rgb} 156,148,122
* @color {cmyk} 40,35,54,4
* @colorof Colors.Logo Colors.Full Color Logo
*/
$color-brown-primary = #9c947a;
/**
* @colordef Black
* @color {hex} #000000
* @color {rgb} 0,0,0
* @color {cmyk} 75,68,67,90
* @colorof Colors.Logo Colors.Single Color Logos
*/
$color-black = #000000;
/**
* @colordef White
* @color {hex} #ffffff
* @color {rgb} 255,255,255
* @color {cmyk} 0,0,0,0
* @colorof Colors.Logo Colors.Single Color Logos
*/
$color-white = #ffffff;
/**
* Accent Colors
*
* ##### Acceptable Use
*
* Use accent colors to help draw attention and create visual interest within your designs.
*
* You can lighten the value of the color by adjusting the amount of white added to it (use
* the [Stylus function](https://learnboost.github.io/stylus/docs/bifs.html#lightencolor-amount) `lighten(color, amount)`) or by adjusting the opacity of the color (use the [Stylus function](https://learnboost.github.io/stylus/docs/bifs.html#rgbacolor--rgba) `rgba(hex, alpha)`).
*
* ##### Avoid
*
* Avoid using too many colors.
*
* Avoid darkening the value of the color by adjusting the amount of black added to it.
*
* @section
* @sectionof Colors
*/
/**
* @colordef Red Accent
* @color {hex} #f16458
* @color {rgb} 241,100,88
* @color {cmyk} 0,76,64,0
* @colorof Colors.Accent Colors
*/
$color-red-accent = #f16458;
/**
* @colordef Blue Accent
* @color {hex} #27c4f4
* @color {rgb} 39,196,244
* @color {cmyk} 64,0,0,0
* @colorof Colors.Accent Colors
*/
$color-blue-accent = #27c4f4;
/**
* @colordef Orange Accent
* @color {hex} #fcb34b
* @color {rgb} 252,179,75
* @color {cmyk} 0,34,80,0
* @colorof Colors.Accent Colors
*/
$color-orange-accent = #fcb34b;
/**
* @colordef Green Accent
* @color {hex} #bfd730
* @color {rgb} 191,215,48
* @color {cmyk} 30,0,100,0
* @colorof Colors.Accent Colors
*/
$color-green-accent = #bfd730;
/**
* @colordef Purple Accent
* @color {hex} #996799
* @color {rgb} 153,103,153
* @color {cmyk} 36,70,11,0
* @colorof Colors.Accent Colors
*/
$color-purple-accent = #996799;
/**
* @colordef Brown Accent
* @color {hex} #9c947a
* @color {rgb} 156,148,122
* @color {cmyk} 40,35,54,4
* @colorof Colors.Accent Colors
*/
$color-brown-accent = #9c947a;
/**
* Adjusting the Value
*
* @section
* @sectionof Colors.Accent Colors
*
* @example
* <div class="row-fluid">
* <div class="span12 color-square fs-card" style="height: auto">
* <div class="color-square__color color-square__color--gradient">
* <div class="color__gradient color__gradient--100" style="background: rgba(39,196,244, 1)">100%</div>
* <div class="color__gradient color__gradient--80" style="background: rgba(39,196,244, 0.8)">80%</div>
* <div class="color__gradient color__gradient--60" style="background: rgba(39,196,244, 0.6)">60%</div>
* <div class="color__gradient color__gradient--40" style="background: rgba(39,196,244, 0.4)">40%</div>
* </div>
* </div>
* </div>
*/
/**
* Text Colors
*
* ##### Avoid
*
* Do not use other colors for text.
*
* @section
* @sectionof Colors
*/
/**
* Body Text
*
* @colordef Grey Body
* @color {hex} #333331
* @color {rgb} 51,51,49
* @color {cmyk} 64,57,59,38
* @colorof Colors.Text Colors
*/
$color-grey-body = #333331;
/**
* Headings
*
* @colordef Grey
* @color {hex} #4d4d4a
* @color {rgb} 77,77,74
* @colorof Colors.Text Colors
*/
$color-grey = #4d4d4a;
/**
* Sub-Headings, Labels, and Small Text
*
* @colordef Grey Light
* @color {hex} #666662
* @color {rgb} 102,102,98
* @colorof Colors.Text Colors
*/
$color-grey-light = #666662;
/**
* Background Colors
*
* @section
* @sectionof Colors
*/
/**
* @colordef Grey Body
* @color {hex} #333331
* @color {rgb} 51,51,49
* @color {cmyk} 64,57,59,38
* @colorof Colors.Background Colors
*/
/**
* @colordef Grey
* @color {hex} #4d4d4a
* @color {rgb} 77,77,74
* @colorof Colors.Background Colors
*/
/**
* @colordef Grey Light
* @color {hex} #666662
* @color {rgb} 102,102,98
* @colorof Colors.Background Colors
*/
/**
* @colordef Grey Background
* @color {hex} #ecebea
* @color {rgb} 236,235,234
* @colorof Colors.Background Colors
*/
$color-grey-background = #ecebea;
/**
* @colordef Grey Background Light
* @color {hex} #f4f4f4
* @color {rgb} 244,244,244
* @colorof Colors.Background Colors
*/
$color-grey-background-light = #f4f4f4;
/**
* Other Colors
*
* ##### Acceptable Use
*
* The male and female gender colors should only be used to represent gender.
*
* Use the Light Gender Colors when on dark backgrounds.
*
* @section
* @sectionof Colors
*/
/**
* Gender Colors
* @section
* @sectionof Colors.Other Colors
*/
/**
* Light Gender Colors
* @section
* @sectionof Colors.Other Colors
*/
/**
* Male
*
* @colordef Blue Gender
* @color {hex} #3d8ff7
* @color {rgb} 601,143,247
* @colorof Colors.Other Colors.Gender Colors
*/
$color-blue-gender = #3d8ff7;
/**
* @colordef Blue Gender Light
* @color {hex} #99c4fe
* @color {rgb} 153,196,254
* @colorof Colors.Other Colors.Light Gender Colors
*/
$color-blue-gender-light = #99c4fe;
/**
* Female
*
* @colordef Pink Gender
* @color {hex} #e23f7b
* @color {rgb} 226,63,123
* @colorof Colors.Other Colors.Gender Colors
*/
$color-pink-gender = #e23f7b;
/**
* @colordef Pink Gender Light
* @color {hex} #f48eb6
* @color {rgb} 244,142,182
* @colorof Colors.Other Colors.Light Gender Colors
*/
$color-pink-gender-light = #f48eb6;
/**
* Unknown
*
* @colordef Grey Light
* @color {hex} #666662
* @color {rgb} 102,102,98
* @colorof Colors.Other Colors.Gender Colors
*/
/**
* Border Color
* @section
* @sectionof Colors.Other Colors
*/
/**
* @colordef Grey Border
* @color {hex} #cccccc
* @color {rgb} 204,204,204
* @colorof Colors.Other Colors.Border Color
*/
$color-grey-border = #cccccc;
/*------------------------------------*\
$FONTS
\*------------------------------------*/
// font families
$font-face-body = Verdana, sans-serif;
$font-face-heading = "museo", serif;
// responsive typography settings
$base-font-size = 14;
$baseline-grid = 1.625; // 1.625rem multiples = 26px baseline grid
/*
modular font scale (using golden ratios)
16 = base font size
scale = 1.625 (close enough to 1.618 but provides more even numbers)
We'll use a triple-stranded scale (3 different modular scales to fill in the
gaps of the others)
- 18@1:1.625 -
18 * 1.625 = 29.25 = 30px
- 16@1:1.625 -
16 * 1.625 = 26 = 26px
- 14@1:1.625 -
14 * 1.625 = 22.75 = 22px
22.652 * 1.625 = 36.96875 = 36px
12px - small
14px - body, H5, H6
18px - H4
22px - H3
26px - H2
30px - H1
36px - Campaign Heading
*/
$font-size-small = 12px;
$font-size-medium = unit($base-font-size, 'px');
$font-size-large = 18px;
$font-size-large-x = 22px;
$font-size-large-xx = 26px;
$font-size-large-xxx = 30px;
$font-size-large-xxxx = 36px;
// line heights
$line-height-small = 1.35rem;
$line-height-medium = unit($baseline-grid, 'rem');
$line-height-large = unit($baseline-grid, 'rem');
$line-height-large-x = 1.95rem;
$line-height-large-xx = 2.15rem;
$line-height-large-xxx = 2.5rem;
$line-height-large-xxxx = 2.875rem;
/*------------------------------------*\
$OTHER
\*------------------------------------*/
$border-radius = 4px;
$limit-base-styles = false;