forever_style_guide 3.4.3 → 3.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1e98a2b5bfcd2a1840cc62a8bbba1a7ade6df2a4
4
- data.tar.gz: 93326ef22ca1bb8109e85028b77d4afba7d79f1a
2
+ SHA256:
3
+ metadata.gz: 7dfb56bd24fe46a7ff9b5ec38b413ba91cb8e49bf4bd96e579abf320aed2e395
4
+ data.tar.gz: 927b123bd47a7415a941ea0bc8958288e3ce8b0a9ca05a3b61b0609358ad890e
5
5
  SHA512:
6
- metadata.gz: c3271edb8339a575358cb32396bc7e05ac77d8af16e152c26d62dc161ba03f517e86d7ecd546afe56954026b986b12621ea06a554c80a5aae3b517980a3a2616
7
- data.tar.gz: 323b2b309bf5c040290dd3b46c8d3ceb54e7ac84d712022209c6eb1b85bb246ab4755dfdf39b097a5ca4ba07a2564996e44e50ae4a675d80b2a5e1d896e2eded
6
+ metadata.gz: 7bb76f1ce4f96d461890987736edb8615e54ce98fa2490eb5fabcb8f60377438b9455bff9b9924cca5cd46b54380ae6eb0b4746098456b6fce1032f0d283c7d0
7
+ data.tar.gz: e24b6a5d5aeb47a3c768beede79e175ad10a6d0fca5e0c034de8cc8e685938aae9179a6fae702723a14d4a3dbb44297e71faa2015877c3fb8b6f36c8b4dae844
@@ -21,7 +21,6 @@ $color-forever_silver: set_color('silver', #f6f7fb) !default;
21
21
 
22
22
  // Deprecated brand color declarations, colors that should eventually be removed
23
23
  $color-forever_purple: colorify('purple', #731472) !default;
24
- $color-forever_beige: set_color('beige', #ebeae6) !default;
25
24
 
26
25
  // B&W, these colors just get registered they don't have dark/light variations
27
26
  $color-white: set_color('white', #fff) !default;
@@ -34,6 +33,10 @@ $color-gray-600: set_color('gray-600', #666) !default;
34
33
  $color-gray-700: set_color('gray-700', #333) !default;
35
34
  $color-gray-800: set_color('gray-800', #222) !default;
36
35
  $color-black: set_color('black', #000) !default;
36
+ $color-forever_beige: set_color('beige', #ebeae6) !default;
37
+ $color-background: set_color('background', $color-forever_beige) !default;
38
+ $color-text: set_color('text', $color-forever_gray) !default;
39
+
37
40
 
38
41
  // Semantic color usages, list of aliases for declared colors.
39
42
  $color-primary: colorify('primary', $color-forever_green) !default;
@@ -41,8 +44,6 @@ $color-secondary: colorify('secondary', $color-forever_blue) !default;
41
44
  $color-accent: colorify('accent', $color-forever_valet) !default;
42
45
  $color-warning: colorify('warning', $color-forever_orange) !default;
43
46
  $color-danger: colorify('danger', $color-forever_red) !default;
44
- $color-background: set_color('background', $color-forever_beige) !default;
45
- $color-text: set_color('text', $color-forever_gray) !default;
46
47
 
47
48
  // Forever LIVE! 2016 brand colors
48
49
  $color-live16-green: colorify('live16-green', #367860) !default;
@@ -1,26 +1,28 @@
1
1
  @mixin btn-color($color, $inverse: false) {
2
+ $colorified-color: color('#{$color}'); // set local variable to avoid compilation problems with 'black' and 'white' in Mars UI
2
3
  @if ($inverse) {
3
- color: color('#{$color}');
4
+ color: $colorified-color;
4
5
  background-color: color('white');
5
- border: 2px solid color('#{$color}');
6
+ border: 2px solid $colorified-color;
6
7
  @extend %no-shadow;
7
8
  &:hover,
8
9
  &:active,
9
10
  &:active:focus {
10
- color: color('#{$color}-dark');
11
- background-color: color('white');
12
- text-decoration: underline;
11
+ color: darken($colorified-color, $darken-color-percentage);
12
+ border-color: darken($colorified-color, $darken-color-percentage);
13
+ background-color: lighten($colorified-color, 40%);
14
+ text-decoration: none;
13
15
  }
14
16
  } @else {
15
17
  color: color('white');
16
- background-color: color('#{$color}');
17
- border: 2px solid color('#{$color}');
18
+ background-color: $colorified-color;
19
+ border: 2px solid $colorified-color;
18
20
  @extend %no-shadow;
19
21
  &:hover,
20
22
  &:active,
21
23
  &:active:focus {
22
- background-color: color('#{$color}-dark');
23
- border-color: color('#{$color}-dark');
24
+ background-color: darken($colorified-color, $darken-color-percentage);
25
+ border-color: darken($colorified-color, $darken-color-percentage);
24
26
  text-decoration: none;
25
27
  }
26
28
  }
@@ -56,8 +58,8 @@
56
58
  }
57
59
  }
58
60
 
59
- // creates a button style for each color in core color dictionary
60
- @each $id, $color in $core_colors {
61
+ // creates a button style for each color in color dictionary
62
+ @each $id, $color in $colors {
61
63
  @at-root #{&}.btn-#{$id} {
62
64
  @include btn-color(#{$id});
63
65
 
@@ -64,9 +64,6 @@ $hero_simple-sm-height-md: 260px;
64
64
  bottom: 0;
65
65
  padding: 30px;
66
66
 
67
- @media (min-width: $screen-xxl) {
68
- padding: 50px;
69
- }
70
67
  @media (max-width: $screen-xs) {
71
68
  padding: 25px 20px;
72
69
  }
@@ -1,7 +1,9 @@
1
1
  /* =colors-utils
2
2
 
3
+
3
4
  Sass functions and color related variables beyond standard color declarations
4
5
  ---------------------------------------------------------------------------- */
6
+ $darken-color-percentage: 10%;
5
7
 
6
8
  // map for all color declarations
7
9
  $colors: () !default;
@@ -17,7 +19,7 @@ $variations: (
17
19
  ),
18
20
  dark: (
19
21
  function: darken,
20
- parameters: 10%
22
+ parameters: $darken-color-percentage
21
23
  )
22
24
  );
23
25
 
@@ -1,3 +1,3 @@
1
1
  module ForeverStyleGuide
2
- VERSION = "3.4.3"
2
+ VERSION = "3.4.4"
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.4.3
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas McClay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-16 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.4.6
289
+ rubygems_version: 2.7.3
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: A live style guide and component API for the Forever brand