english_tea 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e02d7ef00e8e9d6914dd4fd59013115fd2ea16e7
4
- data.tar.gz: 16934df2092d1508ff453fc3208d1d78a12ecffd
3
+ metadata.gz: 68c69bc9040d7fc6eaacd41caa4dec470d8ae97c
4
+ data.tar.gz: fef563a16a2d76fc0023540730d61ee096074eff
5
5
  SHA512:
6
- metadata.gz: af8653889de8cd606f2445df30966eb1a361e5b7181bc8b8d318620ee58ec74282c2ae1ee393be78ce8ef1ff9d3837998be5d83f6c15b4cef3e9748030de548a
7
- data.tar.gz: 2fc5f1f9020ccf5321b87a1952f9068f854825d63dc70e2a3103080f1a82dce4e84c0a4d530603b526eb6d7307ed81e4b5a55f0321cbc26d632f915f021ed8c6
6
+ metadata.gz: 5c7c6016155ea0ac1cdad3fc31beb49fdd1c27c45f4edd83e72f39ee3f94d142ec1779ae469d129a134dce0cec972a9b8c73e51f214ddc261c3c976381dfc1e6
7
+ data.tar.gz: b81a077ae784f1d4318d99f277e6b8277a7743bec34f5b8f534ddd0a51bdf1dd144b46cac4aad69fa1343afca9eb59443cad2359c44d8c19709f8275423f4565
@@ -105,7 +105,7 @@
105
105
 
106
106
  .job-post-headline
107
107
  {
108
- color: #4a78ff !important; // see above color notes
108
+ color: nth(_fetch-setting("color-job-fulltime"), 1) !important; // see above color notes
109
109
 
110
110
  mark
111
111
  {
@@ -115,7 +115,7 @@
115
115
 
116
116
  &.job-post-type-freelance
117
117
  {
118
- color: #ffccc7 !important; // see above color notes
118
+ color: nth(_fetch-setting("color-job-freelance"), 1) !important; // see above color notes
119
119
  }
120
120
  }
121
121
 
@@ -2,23 +2,74 @@
2
2
  // Global variable configuration
3
3
  // ==========================================================================
4
4
 
5
+ $_english_tea_defaults: (
6
+ "base-font-size": 16px,
7
+ "base-line-height": 1.5,
8
+ "base-rhythm": 10px,
9
+ "base-gutter": 15px,
10
+ "base-gutter-large": 30px,
11
+ "max-measure-callout": 800px,
12
+ "max-measure-type": 750px,
13
+ "max-measure-form": 600px,
14
+ "max-width": 1160px,
15
+
16
+ "breakpoint-none": 0px,
17
+ "breakpoint-small": 768px,
18
+ "breakpoint-medium": 1024px,
19
+ "breakpoint-large": 1440px,
20
+ "breakpoint-xlarge": 1680px,
21
+
22
+ "type-font-title": ('Tungsten A', 'Tungsten B', sans-serif),
23
+ "type-font-status": ('Tungsten Narrow A', 'Tungsten Narrow B', sans-serif),
24
+ "type-font-body": ('Gotham A', 'Gotham B', sans-serif),
25
+ "type-font-description": ('Chronicle Display A', 'Chronicle Display B', serif),
26
+ "type-font-code": (Monaco, monospace),
27
+
28
+ "type-style-title": normal,
29
+ "type-style-body": normal,
30
+ "type-style-description": italic,
31
+ "type-weight-light": 300,
32
+ "type-weight-normal": 400,
33
+ "type-weight-medium": 500,
34
+ "type-weight-semibold": 600,
35
+ "type-weight-bold": 700,
36
+
37
+ "base-color-scale": (#fff, #eee, #ccc, #9e9e9e, #888, #666, #333, #222, #111, #000, #efece4, #2b2b2b),
38
+ "color-1": (#26f599, #1be68c, #13cb79, #24ba72),
39
+ "color-2": (#fdeb46, #f9e52d, #dcc914, #ccb92c),
40
+ "color-3": (#ff6452, #fb4530, #d34121, #c23d27),
41
+ "color-4": (#0120f9, #0a21c4, #071ba7, #061b88),
42
+ "color-5": (#ffbf2b, #ff9a1a, #e77c00, #d07100),
43
+ "color-6": (#444444, #333333, #222222, #000000),
44
+ "color-job-fulltime": (#4a78ff, #0a21c4, #071ba7, #061b88),
45
+ "color-job-freelance": (#ffccc7, #fb4530, #d34121, #c23d27)
46
+ );
47
+
48
+ $english_tea: () !default;
49
+
50
+ // Function to fetch a setting, merging user-set variables overtop of defaults
51
+ @function _fetch-setting($setting) {
52
+ @return map-get(map-merge($_english_tea-defaults, $english_tea), $setting);
53
+ }
54
+
55
+
5
56
  // ---
6
57
  // BASE VALUES
7
58
  // ---
8
59
 
9
- $base-font-size: 16px;
10
- $base-line-height: 1.25;
60
+ $base-font-size: _fetch-setting("base-font-size");
61
+ $base-line-height: _fetch-setting("base-line-height");
11
62
 
12
- $base-rhythm: 10px;
63
+ $base-rhythm: _fetch-setting("base-rhythm");
13
64
  $base-rhythm-half: $base-rhythm / 2;
14
65
 
15
- $base-gutter: 15px;
16
- $base-gutter-large: 30px;
66
+ $base-gutter: _fetch-setting("base-gutter");
67
+ $base-gutter-large: _fetch-setting("base-gutter-large");
17
68
 
18
- $max-measure-callout: 800px;
19
- $max-measure-type: 750px;
20
- $max-measure-form: 600px;
21
- $max-width: 1160px;
69
+ $max-measure-callout: _fetch-setting("max-measure-callout");
70
+ $max-measure-type: _fetch-setting("max-measure-type");
71
+ $max-measure-form: _fetch-setting("max-measure-form");
72
+ $max-width: _fetch-setting("max-width");
22
73
 
23
74
  // ---
24
75
  // BREAKPOINTS, GRID & TILES
@@ -26,11 +77,11 @@ $max-width: 1160px;
26
77
 
27
78
  $breakpoints:
28
79
  (
29
- none: 0px,
30
- bps: 768px,
31
- bpm: 1024px,
32
- bpl: 1440px,
33
- bpxl: 1680px
80
+ none: _fetch-setting("breakpoint-none"),
81
+ bps: _fetch-setting("breakpoint-small"),
82
+ bpm: _fetch-setting("breakpoint-medium"),
83
+ bpl: _fetch-setting("breakpoint-large"),
84
+ bpxl: _fetch-setting("breakpoint-xlarge")
34
85
  );
35
86
 
36
87
  $grid-scale:
@@ -243,25 +294,25 @@ $kerning-scale:
243
294
  // TYPOGRAPHIC STYLE
244
295
  // ---
245
296
 
246
- $type-font-title: 'Tungsten A', 'Tungsten B', sans-serif;
247
- $type-font-status: 'Tungsten Narrow A', 'Tungsten Narrow B', sans-serif;
248
- $type-font-body: 'Gotham A', 'Gotham B', sans-serif;
249
- $type-font-description: 'Chronicle Display A', 'Chronicle Display B', serif;
250
- $type-font-code: Monaco, monospace;
297
+ $type-font-title: _fetch-setting("type-font-title");
298
+ $type-font-status: _fetch-setting("type-font-status");
299
+ $type-font-body: _fetch-setting("type-font-body");
300
+ $type-font-description: _fetch-setting("type-font-description");
301
+ $type-font-code: _fetch-setting("type-font-code");
251
302
 
252
- $type-style-title: normal;
253
- $type-style-body: normal;
254
- $type-style-description: italic;
303
+ $type-style-title: _fetch-setting("type-style-title");
304
+ $type-style-body: _fetch-setting("type-style-body");
305
+ $type-style-description: _fetch-setting("type-style-description");
255
306
 
256
307
  $type-kerning-title: map-get($kerning-scale, 1);
257
308
  $type-kerning-status: 0; //-0.0125em;
258
309
  $type-kerning-desc: map-get($kerning-scale, 2);
259
310
 
260
- $type-weight-light: 300;
261
- $type-weight-normal: 400;
262
- $type-weight-medium: 500;
263
- $type-weight-semibold: 600;
264
- $type-weight-bold: 700;
311
+ $type-weight-light: _fetch-setting("type-weight-light");
312
+ $type-weight-normal: _fetch-setting("type-weight-normal");
313
+ $type-weight-medium: _fetch-setting("type-weight-medium");
314
+ $type-weight-semibold: _fetch-setting("type-weight-semibold");
315
+ $type-weight-bold: _fetch-setting("type-weight-bold");
265
316
 
266
317
  // ---
267
318
  // GUTTER SPACES
@@ -304,63 +355,63 @@ $gutter-scale:
304
355
 
305
356
  $colors:
306
357
  (
307
- 1: #fff,
308
- 2: #eee,
309
- 3: #ccc,
310
- 4: #9e9e9e,
311
- 5: #888,
312
- 6: #666,
313
- 7: #333,
314
- 8: #222,
315
- 9: #111,
316
- 10: #000,
317
- 11: #efece4,
318
- 12: #2b2b2b
358
+ 1: nth(_fetch-setting("base-color-scale"), 1),
359
+ 2: nth(_fetch-setting("base-color-scale"), 2),
360
+ 3: nth(_fetch-setting("base-color-scale"), 3),
361
+ 4: nth(_fetch-setting("base-color-scale"), 4),
362
+ 5: nth(_fetch-setting("base-color-scale"), 5),
363
+ 6: nth(_fetch-setting("base-color-scale"), 6),
364
+ 7: nth(_fetch-setting("base-color-scale"), 7),
365
+ 8: nth(_fetch-setting("base-color-scale"), 8),
366
+ 9: nth(_fetch-setting("base-color-scale"), 9),
367
+ 10: nth(_fetch-setting("base-color-scale"), 10),
368
+ 11: nth(_fetch-setting("base-color-scale"), 11),
369
+ 12: nth(_fetch-setting("base-color-scale"), 12)
319
370
  );
320
371
 
321
372
  $colors-status:
322
373
  (
323
374
  stat-a: // Available
324
375
  (
325
- 1: #26f599,
326
- 2: #1be68c,
327
- 3: #13cb79,
328
- 4: #24ba72 // Hover
376
+ 1: nth(_fetch-setting("color-1"), 1),
377
+ 2: nth(_fetch-setting("color-1"), 2),
378
+ 3: nth(_fetch-setting("color-1"), 3),
379
+ 4: nth(_fetch-setting("color-1"), 4)
329
380
  ),
330
381
  stat-as: // Available Soon
331
382
  (
332
- 1: #fdeb46,
333
- 2: #f9e52d,
334
- 3: #dcc914,
335
- 4: #ccb92c // Hover
383
+ 1: nth(_fetch-setting("color-2"), 1),
384
+ 2: nth(_fetch-setting("color-2"), 2),
385
+ 3: nth(_fetch-setting("color-2"), 3),
386
+ 4: nth(_fetch-setting("color-2"), 4)
336
387
  ),
337
388
  stat-na: // Not Available
338
389
  (
339
- 1: #ff6452,
340
- 2: #fb4530,
341
- 3: #d34121,
342
- 4: #c23d27 // Hover
390
+ 1: nth(_fetch-setting("color-3"), 1),
391
+ 2: nth(_fetch-setting("color-3"), 2),
392
+ 3: nth(_fetch-setting("color-3"), 3),
393
+ 4: nth(_fetch-setting("color-3"), 4)
343
394
  ),
344
395
  stat-ft: // Fulltime
345
396
  (
346
- 1: #0120f9,
347
- 2: #0a21c4,
348
- 3: #071ba7,
349
- 4: #061b88 // Hover
397
+ 1: nth(_fetch-setting("color-4"), 1),
398
+ 2: nth(_fetch-setting("color-4"), 2),
399
+ 3: nth(_fetch-setting("color-4"), 3),
400
+ 4: nth(_fetch-setting("color-4"), 4)
350
401
  ),
351
402
  stat-ooo: // Out of Office
352
403
  (
353
- 1: #ffbf2b,
354
- 2: #ff9a1a,
355
- 3: #e77c00,
356
- 4: #d07100 // Hover
404
+ 1: nth(_fetch-setting("color-5"), 1),
405
+ 2: nth(_fetch-setting("color-5"), 2),
406
+ 3: nth(_fetch-setting("color-5"), 3),
407
+ 4: nth(_fetch-setting("color-5"), 4)
357
408
  ),
358
409
  stat-edu: // Student
359
410
  (
360
- 1: #444,
361
- 2: #333,
362
- 3: #222,
363
- 4: #000 // Hover
411
+ 1: nth(_fetch-setting("color-6"), 1),
412
+ 2: nth(_fetch-setting("color-6"), 2),
413
+ 3: nth(_fetch-setting("color-6"), 3),
414
+ 4: nth(_fetch-setting("color-6"), 4)
364
415
  )
365
416
  );
366
417
 
@@ -379,17 +430,17 @@ $colors-job-types:
379
430
  (
380
431
  fulltime:
381
432
  (
382
- 1: #4a78ff,
383
- 2: #0a21c4,
384
- 3: #071ba7,
385
- 4: #061b88 // Hover
433
+ 1: nth(_fetch-setting("color-job-fulltime"), 1),
434
+ 2: nth(_fetch-setting("color-job-fulltime"), 2),
435
+ 3: nth(_fetch-setting("color-job-fulltime"), 3),
436
+ 4: nth(_fetch-setting("color-job-fulltime"), 4)
386
437
  ),
387
438
  freelance:
388
439
  (
389
- 1: #ffccc7,
390
- 2: #fb4530,
391
- 3: #d34121,
392
- 4: #c23d27 // Hover
440
+ 1: nth(_fetch-setting("color-job-freelance"), 1),
441
+ 2: nth(_fetch-setting("color-job-freelance"), 2),
442
+ 3: nth(_fetch-setting("color-job-freelance"), 3),
443
+ 4: nth(_fetch-setting("color-job-freelance"), 4)
393
444
  )
394
445
  );
395
446
 
@@ -1,3 +1,3 @@
1
1
  module EnglishTea
2
- VERSION = "0.5.3"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: english_tea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Parr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-09-18 00:00:00.000000000 Z
12
+ date: 2017-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler