forever_style_guide 3.4.3 → 3.4.4
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 +5 -5
- data/app/assets/stylesheets/forever_style_guide/globals/_colors.scss +4 -3
- data/app/assets/stylesheets/forever_style_guide/modules/_button.scss +13 -11
- data/app/assets/stylesheets/forever_style_guide/modules/_hero_simple.scss +0 -3
- data/app/assets/stylesheets/forever_style_guide/utils/_color-utils.scss +3 -1
- data/lib/forever_style_guide/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7dfb56bd24fe46a7ff9b5ec38b413ba91cb8e49bf4bd96e579abf320aed2e395
|
4
|
+
data.tar.gz: 927b123bd47a7415a941ea0bc8958288e3ce8b0a9ca05a3b61b0609358ad890e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
4
|
+
color: $colorified-color;
|
4
5
|
background-color: color('white');
|
5
|
-
border: 2px solid
|
6
|
+
border: 2px solid $colorified-color;
|
6
7
|
@extend %no-shadow;
|
7
8
|
&:hover,
|
8
9
|
&:active,
|
9
10
|
&:active:focus {
|
10
|
-
color:
|
11
|
-
|
12
|
-
|
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:
|
17
|
-
border: 2px solid
|
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:
|
23
|
-
border-color:
|
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
|
60
|
-
@each $id, $color in $
|
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
|
|
@@ -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:
|
22
|
+
parameters: $darken-color-percentage
|
21
23
|
)
|
22
24
|
);
|
23
25
|
|
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.
|
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-
|
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.
|
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
|