forever_style_guide 3.0.39 → 3.0.40

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: 1de5279844b631f89168ceec8b213fdb4ef5da53
4
- data.tar.gz: 5ca3d87efff26da7811e8db3e4a574d3706dc67b
3
+ metadata.gz: f148b43e8a6d15d9f772f706aebb07a761a35e0f
4
+ data.tar.gz: a112254d1e1e82cb0bcc86f9f72041a8b7dc2ddf
5
5
  SHA512:
6
- metadata.gz: e4054b26823d6ae1c1afa6aeed8e799391eab14b23183909c24a430db319530b97e3530c115a1d116bece7855c649a94cc592219d1f12e72ef40e76d6b8015f7
7
- data.tar.gz: 23efe8f5fd6a7117c854073acb8f5a7685adf24a5c63877f11596ccdd61c7174a1ec6552d2f0c294947a725c2c5e6974f5f8bfd666a8f22c757d70b34f315618
6
+ metadata.gz: b6436dc6b331e39f6789ea057952082abc4da9092f400b8adf77507dcadd73171679e81838bbe74a97bdc418082e67f4fdfeb058b584fef22800321f9647c7ac
7
+ data.tar.gz: 85b8d06633020d9775af38779d8890e6d2a27449c4cadbb156258975eb6339c5a021be8dc4c0cb22377a3c328b6c2a321819e07fd8a8f219e043d0ae1a4ebeaf
@@ -1,3 +1,5 @@
1
+ @import "forever_style_guide/utils/font-utils";
2
+
1
3
  /* =fonts
2
4
  ---------------------------------------------------------------------------- */
3
5
  @mixin fontFace($family, $src) {
@@ -25,22 +27,53 @@ $font-face-regular: 'proxima_nova-regular', Helvetica, Arial, sans-serif
25
27
  $font-face-semibold: 'proxima_nova-semibold', Helvetica, Arial, sans-serif;
26
28
  $font-face-bold: 'proxima_nova-bold', Helvetica, Arial, sans-serif;
27
29
  $font-face-regular_italic: 'proxima_nova-regular_italic', Helvetica, Arial, sans-serif;
28
- $font-face-bold_italic: 'proxima_nova-bold_italic', Helvetica, Arial, sans-serif;;
30
+ $font-face-bold_italic: 'proxima_nova-bold_italic', Helvetica, Arial, sans-serif;
29
31
 
30
32
  $font-face-gotham: 'Gotham A', 'Gotham B', Helvetica, Arial, sans-serif;
31
33
 
32
34
  /* =font sizes
33
35
  ---------------------------------------------------------------------------- */
34
- $font-size-100: 12px;
35
- $font-size-200: 14px;
36
- $font-size-300: 16px;
37
- $font-size-400: 18px;
38
- $font-size-500: 24px;
39
- $font-size-600: 36px;
40
- $font-size-700: 48px;
41
- $font-size-800: 64px;
42
-
43
- $font-size-large: $font-size-400;
44
- $font-size-default: $font-size-300;
45
- $font-size-small: $font-size-100;
36
+ $font-size-100: fontify('100', 12px) !default;
37
+ $font-size-200: fontify('200', 14px) !default;
38
+ $font-size-300: fontify('300', 16px) !default;
39
+ $font-size-400: fontify('400', 18px) !default;
40
+ $font-size-500: fontify('500', 24px) !default;
41
+ $font-size-600: fontify('600', 36px) !default;
42
+ $font-size-700: fontify('700', 48px) !default;
43
+ $font-size-800: fontify('800', 64px) !default;
44
+
45
+ /* !global to override bootstrap's $font-size-large and $font-size-small */
46
+ $font-size-large: fontify('lg', $font-size-400) !global;
47
+ $font-size-default: fontify('default', $font-size-300) !default;
48
+ $font-size-small: fontify('sm', $font-size-100) !global;
49
+
50
+ @each $id, $font-size in $font-sizes {
51
+ .font-size-#{$id} {
52
+ font-size: #{$font-size};
53
+ }
54
+ }
55
+
56
+ /* =font weights
57
+ ---------------------------------------------------------------------------- */
58
+ $font-weight-100: weightify('100', 100) !default;
59
+ $font-weight-200: weightify('200', 200) !default;
60
+ $font-weight-300: weightify('300', 300) !default;
61
+ $font-weight-400: weightify('400', 400) !default;
62
+ $font-weight-500: weightify('500', 500) !default;
63
+ $font-weight-600: weightify('600', 600) !default;
64
+ $font-weight-700: weightify('700', 700) !default;
65
+ $font-weight-800: weightify('800', 800) !default;
66
+ $font-weight-900: weightify('900', 900) !default;
67
+
68
+ $font-weight-normal: weightify('normal', normal) !default;
69
+ $font-weight-bold: weightify('bold', bold) !default;
70
+ $font-weight-bolder: weightify('bolder', bolder) !default;
71
+ $font-weight-lighter: weightify('lighter', lighter) !default;
72
+ $font-weight-initial: weightify('initial', initial) !default;
73
+ $font-weight-inherit: weightify('inherit', inherit) !default;
46
74
 
75
+ @each $id, $font-weight in $font-weights {
76
+ .font-weight-#{$id} {
77
+ font-weight: #{$font-weight};
78
+ }
79
+ }
@@ -0,0 +1,13 @@
1
+ $font-sizes: () !default;
2
+ $font-weights: () !default;
3
+
4
+ @function fontify($id, $font-size) {
5
+ $font-sizes: map-merge($font-sizes, ($id: $font-size)) !global;
6
+ @return $font-size;
7
+ }
8
+
9
+ @function weightify($id, $font-weight) {
10
+ $font-weights: map-merge($font-weights, ($id: $font-weight)) !global;
11
+ @return $font-weight;
12
+ }
13
+
@@ -1,3 +1,3 @@
1
1
  module ForeverStyleGuide
2
- VERSION = "3.0.39"
2
+ VERSION = "3.0.40"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forever_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.39
4
+ version: 3.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas McClay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -272,6 +272,7 @@ files:
272
272
  - app/assets/stylesheets/forever_style_guide/modules/_signin.scss
273
273
  - app/assets/stylesheets/forever_style_guide/modules/_switch.scss
274
274
  - app/assets/stylesheets/forever_style_guide/utils/_color-utils.scss
275
+ - app/assets/stylesheets/forever_style_guide/utils/_font-utils.scss
275
276
  - app/assets/stylesheets/forever_style_guide/utils/_logger.scss
276
277
  - app/helpers/forever_style_guide/application_helper.rb
277
278
  - app/views/forever_style_guide/sections/components/footer/_footer.erb
@@ -315,7 +316,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
316
  version: '0'
316
317
  requirements: []
317
318
  rubyforge_project:
318
- rubygems_version: 2.2.2
319
+ rubygems_version: 2.4.6
319
320
  signing_key:
320
321
  specification_version: 4
321
322
  summary: A live style guide and component API for the Forever brand