forever_style_guide 4.1.14 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/forever_style_guide/base/_grid.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/globals/_colors.scss +1 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_variables.scss +1 -2
- data/app/assets/stylesheets/forever_style_guide/modules/_ambassador_banner.scss +29 -73
- data/app/assets/stylesheets/forever_style_guide/modules/_impersonation_banner.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/modules/_primary_nav.scss +104 -25
- data/lib/forever_style_guide/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd2d4bc807d4f937f4f652edbddb382f2894cb78afa593b4bb339d337bb7efc4
|
4
|
+
data.tar.gz: d7e9d2ee85a01a0c932f864d11a117cc877f6fde0a007837992b5aea5cc9e8ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69cf32f4750b350af7c7dd5eb9d847872447e007936129534f81523b7d2465f9b972b89e18e14aa08b1444187507e027c2a0ed51cfd0128ae7c47365fc371866
|
7
|
+
data.tar.gz: 8da0e5e251da0d14a95b11c64bdb3d8f0e3c91957de354f25aed8b06fd33a4077e6732c398879e6733f9c66ca8675c9aba813bbf4c38e4e5385ecdd8167c2da0
|
@@ -108,7 +108,7 @@ $f-grid-col-count: 24;
|
|
108
108
|
|
109
109
|
|
110
110
|
$grid-gutter: 2;
|
111
|
-
@while $grid-gutter <
|
111
|
+
@while $grid-gutter < 31 {
|
112
112
|
.f-grid.f-grid-gutter-#{$grid-gutter} {
|
113
113
|
margin: -#{$grid-gutter / 2}px;
|
114
114
|
> [class*="f-col"] { padding: #{$grid-gutter / 2}px; }
|
@@ -11,6 +11,7 @@ $color-forever_valet: colorify('valet', #50bd94) !default;
|
|
11
11
|
$color-forever_services: colorify('services', #39b3be) !default;
|
12
12
|
$color-forever_artisan: colorify('artisan', #28a6de) !default;
|
13
13
|
$color-forever_blue: colorify('blue', #2b91cf) !default;
|
14
|
+
$color-forever_dark-blue: colorify('dark-blue', #007198) !default;
|
14
15
|
$color-forever_ambassador: colorify('ambassador', #a4314c) !default;
|
15
16
|
$color-forever_ambassador-unassigned: colorify('ambassador-unassigned', #2d8e97) !default;
|
16
17
|
$color-forever_p2p: colorify('p2p', #f89406) !default;
|
@@ -73,6 +73,5 @@ $in-front-of-primary-nav: $zindex-navbar-fixed + 2;
|
|
73
73
|
$in-front-of-primary-and-banner: $zindex-navbar-fixed + 3;
|
74
74
|
$in-front-of-primary-and-banner-and-impersonation: $zindex-navbar-fixed + 4;
|
75
75
|
|
76
|
-
$ambassador-banner-height
|
77
|
-
$ambassador-banner-height-unassigned: 50px;
|
76
|
+
$ambassador-banner-height: 30px;
|
78
77
|
$impersonation-banner-height: 20px;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
$banner-vertical-padding
|
2
|
-
$banner-vertical-padding-unassigned: 10px;
|
1
|
+
$banner-vertical-padding: 4px;
|
3
2
|
$banner-max-width: 70%;
|
4
3
|
|
5
4
|
$banner-background-visible: 0.1;
|
@@ -9,117 +8,74 @@ $banner-hover-effect-speed: 0.15s;
|
|
9
8
|
$chevron-rotate-effect-speed: 0.25s;
|
10
9
|
$dropdown-entrance-and-exit-effect-speed: 0.22s;
|
11
10
|
|
12
|
-
@mixin ambassador_banner(
|
11
|
+
@mixin ambassador_banner() {
|
13
12
|
position: relative;
|
14
|
-
height: $height;
|
13
|
+
height: $ambassador-banner-height;
|
14
|
+
padding: $banner-vertical-padding 10px;
|
15
15
|
color: $banner-color;
|
16
|
-
background-color: $
|
16
|
+
background-color: $color-forever_gray;
|
17
17
|
z-index: $in-front-of-primary-nav;
|
18
|
-
pointer-events: none;
|
19
18
|
text-align: center;
|
20
|
-
font-family: $font-face-
|
19
|
+
font-family: $font-face-regular;
|
21
20
|
|
22
21
|
&.is-behind_fixed-nav {
|
23
22
|
z-index: -1;
|
24
|
-
height: $ambassador-banner-height
|
25
|
-
}
|
26
|
-
|
27
|
-
&::after {
|
28
|
-
position: absolute;
|
29
|
-
height: $height;
|
30
|
-
top: 0;
|
31
|
-
left: 0;
|
32
|
-
width: 100%;
|
33
|
-
background-color: $color-black;
|
34
|
-
opacity: 0;
|
35
|
-
@include transition(opacity $banner-hover-effect-speed ease-in-out);
|
36
|
-
z-index: $zindex-navbar - 1;
|
37
|
-
content: "";
|
38
|
-
pointer-events: none;
|
23
|
+
height: $ambassador-banner-height;
|
39
24
|
}
|
40
25
|
|
41
|
-
|
42
|
-
&::after {
|
43
|
-
opacity: $banner-background-visible;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
a.ambassador_banner {
|
49
|
-
display: block;
|
50
|
-
pointer-events: auto;
|
51
|
-
|
52
|
-
&:hover,
|
53
|
-
&:focus,
|
54
|
-
&:active,
|
55
|
-
&:active:focus {
|
56
|
-
text-decoration: none;
|
57
|
-
pointer-events: auto;
|
58
|
-
}
|
26
|
+
@media screen and (max-width: $screen-xs) { text-align: left; }
|
59
27
|
}
|
60
28
|
|
61
29
|
.ambassador_banner-assigned {
|
62
|
-
@include ambassador_banner(
|
63
|
-
padding-top: $banner-vertical-padding-assigned;
|
64
|
-
padding-bottom: $banner-vertical-padding-assigned;
|
65
|
-
height: $ambassador-banner-height-assigned;
|
66
|
-
|
67
|
-
&::after { height: $ambassador-banner-height-assigned; }
|
30
|
+
@include ambassador_banner();
|
68
31
|
|
69
32
|
&.open {
|
70
33
|
.fa-chevron-down {
|
71
|
-
|
34
|
+
transform: rotate(180deg);
|
72
35
|
}
|
73
36
|
}
|
74
37
|
|
75
38
|
.fa-chevron-down {
|
76
|
-
|
39
|
+
cursor: pointer;
|
40
|
+
@include transition(transform $chevron-rotate-effect-speed linear);
|
77
41
|
}
|
78
|
-
|
79
|
-
@media screen and (max-width: $screen-xs) { text-align: left; }
|
80
42
|
}
|
81
43
|
|
82
44
|
.ambassador_banner-unassigned {
|
83
|
-
@include ambassador_banner(
|
84
|
-
padding-top: $banner-vertical-padding-unassigned;
|
85
|
-
padding-bottom: $banner-vertical-padding-unassigned;
|
45
|
+
@include ambassador_banner();
|
86
46
|
|
87
47
|
&.is-behind_fixed-nav {
|
88
48
|
.ambassador_banner-btn { display: none; }
|
89
49
|
}
|
90
50
|
}
|
91
51
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
52
|
+
a.ambassador_banner-btn {
|
53
|
+
&,
|
54
|
+
&:link,
|
55
|
+
&:visited,
|
56
|
+
&:hover,
|
57
|
+
&:active {
|
58
|
+
padding-top: 4px !important;//because this is easier than a day of fighting with legacy crap
|
96
59
|
height: 30px;
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
60
|
+
font-size: $font-size-200;
|
61
|
+
color: $color-white;
|
62
|
+
font-family: $font-face-semibold;
|
63
|
+
text-decoration: underline;
|
64
|
+
cursor: pointer;
|
102
65
|
}
|
103
66
|
}
|
104
67
|
|
105
|
-
.ambassador_banner-btn {
|
106
|
-
padding-top: 4px;
|
107
|
-
margin-left: 20px;
|
108
|
-
height: 30px;
|
109
|
-
font-size: $font-size-200;
|
110
|
-
}
|
111
|
-
|
112
68
|
.ambassador_banner-content {
|
113
69
|
display: inline-block;
|
114
70
|
vertical-align: middle;
|
115
71
|
pointer-events: auto;
|
116
|
-
cursor: pointer;
|
117
72
|
}
|
118
73
|
|
119
74
|
.ambassador_banner-name {
|
120
75
|
max-width: $banner-max-width;
|
121
76
|
vertical-align: middle;
|
122
77
|
text-decoration: underline;
|
78
|
+
cursor: pointer;
|
123
79
|
|
124
80
|
@media screen and (max-width: $screen-xs) {
|
125
81
|
max-width: 48%;
|
@@ -131,12 +87,12 @@ a.ambassador_banner {
|
|
131
87
|
|
132
88
|
.ambassador_banner-dropdown_container {
|
133
89
|
position: absolute;
|
134
|
-
top: $ambassador-banner-height
|
90
|
+
top: $ambassador-banner-height;
|
135
91
|
left: 0;
|
136
92
|
visibility: hidden;
|
137
93
|
width: 100%;
|
138
94
|
transform: translateY(-100%);
|
139
|
-
@include
|
95
|
+
@include transition_fast(all);
|
140
96
|
z-index: $in-front-of-primary-nav-but-behind-banner;
|
141
97
|
pointer-events: none;
|
142
98
|
|
@@ -160,7 +116,7 @@ a.ambassador_banner {
|
|
160
116
|
.ambassador_banner-dropdown-avatar {
|
161
117
|
align-self: flex-start;
|
162
118
|
margin: 0;
|
163
|
-
margin-right: $padding-large-horizontal * 2;
|
119
|
+
margin-right: $padding-large-horizontal * 2 !important;
|
164
120
|
}
|
165
121
|
|
166
122
|
.ambassador_banner-dropdown-info {
|
@@ -15,7 +15,7 @@
|
|
15
15
|
margin-top: $impersonation-banner-height;
|
16
16
|
}
|
17
17
|
.ambassador_banner-dropdown_container.open {
|
18
|
-
top: $ambassador-banner-height
|
18
|
+
top: $ambassador-banner-height + $impersonation-banner-height;
|
19
19
|
}
|
20
20
|
.nav-mobile-menu.in {
|
21
21
|
@media (max-width: $grid-float-breakpoint-max) {
|
@@ -20,8 +20,22 @@ $f-nav-icon-hover: #bce5fd;
|
|
20
20
|
}
|
21
21
|
|
22
22
|
.f-primary_nav {
|
23
|
+
/* These rules are to bring the nav look closer to what mars/fui are displaying. They are not needed for mars/fui, as they are applied globally there */
|
24
|
+
-webkit-font-smoothing: antialiased;
|
25
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
|
26
|
+
image-rendering: -webkit-optimize-contrast !important;
|
27
|
+
}
|
28
|
+
|
29
|
+
/* Unset for Safari 11+ */
|
30
|
+
@media not all and (min-resolution: .001dpcm) {
|
31
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
32
|
+
image-rendering: unset !important;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
/* end of specific rules */
|
36
|
+
|
23
37
|
width: 100%;
|
24
|
-
background-color: #
|
38
|
+
background-color: #007198;
|
25
39
|
|
26
40
|
/*support store method of affixing*/
|
27
41
|
&.affix {
|
@@ -47,8 +61,8 @@ $f-nav-icon-hover: #bce5fd;
|
|
47
61
|
align-items: center;
|
48
62
|
|
49
63
|
> img {
|
50
|
-
height:
|
51
|
-
width:
|
64
|
+
height: 26px;
|
65
|
+
width: 150px;
|
52
66
|
max-width: unset;
|
53
67
|
}
|
54
68
|
}
|
@@ -448,13 +462,14 @@ $f-nav-icon-hover: #bce5fd;
|
|
448
462
|
&:nth-child(even) { background-color: $color-gray-200; }
|
449
463
|
|
450
464
|
a {
|
465
|
+
color: #007198; // heroblue default
|
451
466
|
display: block;
|
452
467
|
font-family: $font-face-semibold;
|
453
468
|
line-height: 1;
|
454
469
|
}
|
455
470
|
|
456
471
|
p {
|
457
|
-
margin: 0;
|
472
|
+
margin: 10px 0 10px 0;
|
458
473
|
color: $color-forever_gray;
|
459
474
|
font-family: $font-face-regular;
|
460
475
|
line-height: 1.4;
|
@@ -462,30 +477,26 @@ $f-nav-icon-hover: #bce5fd;
|
|
462
477
|
|
463
478
|
> a { font-size: 20px; }
|
464
479
|
|
465
|
-
.f-primary_nav_cpmeganav_title {
|
466
|
-
display: block;
|
467
|
-
font-family: $font-face-semibold;
|
468
|
-
line-height: 1;
|
469
|
-
font-size: 20px;
|
470
|
-
}
|
471
|
-
|
472
480
|
> p { font-size: $font-size-200; }
|
473
481
|
|
474
|
-
>
|
475
|
-
|
482
|
+
> .f-primary_nav_cpmeganav-categories {
|
483
|
+
margin: 20px -10px 0 -10px; // -10px offsets li padding within
|
476
484
|
display: flex;
|
477
485
|
flex-wrap: wrap;
|
478
486
|
justify-content: flex-start;
|
479
487
|
|
480
488
|
> li {
|
481
|
-
min-width:
|
482
|
-
max-width:
|
489
|
+
min-width: 115px;
|
490
|
+
max-width: 140px;
|
483
491
|
min-height: 60px;
|
484
492
|
margin-bottom: 20px;
|
493
|
+
padding: 0;
|
485
494
|
|
486
495
|
img {
|
487
|
-
|
496
|
+
margin: 0 0 10px 10px;
|
488
497
|
width: 60px;
|
498
|
+
height: 60px;
|
499
|
+
object-fit: contain;
|
489
500
|
}
|
490
501
|
|
491
502
|
> a {
|
@@ -496,7 +507,7 @@ $f-nav-icon-hover: #bce5fd;
|
|
496
507
|
|
497
508
|
> p {
|
498
509
|
font-size: 12px;
|
499
|
-
margin: 4px 0 0
|
510
|
+
margin: 4px 0 0 10px;
|
500
511
|
}
|
501
512
|
|
502
513
|
span.badge {
|
@@ -512,8 +523,8 @@ $f-nav-icon-hover: #bce5fd;
|
|
512
523
|
line-height: 1;
|
513
524
|
}
|
514
525
|
|
515
|
-
>
|
516
|
-
margin: 2px 0 0
|
526
|
+
> .f-primary_nav_cpmeganav-products {
|
527
|
+
margin: 2px 0 0 10px;
|
517
528
|
|
518
529
|
> li {
|
519
530
|
margin: 0 0 2px;
|
@@ -528,6 +539,34 @@ $f-nav-icon-hover: #bce5fd;
|
|
528
539
|
}
|
529
540
|
}
|
530
541
|
}
|
542
|
+
|
543
|
+
&.f-primary_nav_cpmeganav-scrapbooking {
|
544
|
+
> ul {
|
545
|
+
flex-wrap: unset;
|
546
|
+
justify-content: unset;
|
547
|
+
gap: 10px;
|
548
|
+
|
549
|
+
margin-right: 0;
|
550
|
+
margin-left: 0;
|
551
|
+
|
552
|
+
> li {
|
553
|
+
padding: 0;
|
554
|
+
max-width: 300px;
|
555
|
+
|
556
|
+
flex: 1;
|
557
|
+
|
558
|
+
img {
|
559
|
+
margin: 0;
|
560
|
+
float: left;
|
561
|
+
width: 60px;
|
562
|
+
}
|
563
|
+
|
564
|
+
p {
|
565
|
+
margin: 4px 0 0 70px;
|
566
|
+
}
|
567
|
+
}
|
568
|
+
}
|
569
|
+
}
|
531
570
|
}
|
532
571
|
}
|
533
572
|
|
@@ -566,17 +605,39 @@ $f-nav-icon-hover: #bce5fd;
|
|
566
605
|
display: flex;
|
567
606
|
|
568
607
|
> li {
|
569
|
-
> p {
|
608
|
+
> p {
|
609
|
+
margin: 10px 0;
|
610
|
+
min-height: 42px;
|
611
|
+
}
|
570
612
|
|
571
|
-
|
613
|
+
&.f-primary_nav_cpmeganav-autoprint,
|
614
|
+
&.f-primary_nav_cpmeganav-design,
|
615
|
+
&.f-primary_nav_cpmeganav-scrapbooking {
|
616
|
+
width: 33%;
|
617
|
+
}
|
572
618
|
|
573
|
-
|
574
|
-
width: 44%;
|
619
|
+
&.f-primary_nav_cpmeganav-design {
|
575
620
|
background-color: transparent;
|
576
621
|
border-style: solid;
|
577
622
|
border-width: 0 1px;
|
578
623
|
border-color: $color-gray-400;
|
579
624
|
}
|
625
|
+
|
626
|
+
> .f-primary_nav_cpmeganav-categories > li {
|
627
|
+
min-width: 130px;
|
628
|
+
max-width: 300px;
|
629
|
+
flex: 1;
|
630
|
+
}
|
631
|
+
|
632
|
+
&.f-primary_nav_cpmeganav-scrapbooking {
|
633
|
+
> ul {
|
634
|
+
flex-wrap: wrap;
|
635
|
+
|
636
|
+
> li {
|
637
|
+
flex: unset;
|
638
|
+
}
|
639
|
+
}
|
640
|
+
}
|
580
641
|
}
|
581
642
|
}
|
582
643
|
}
|
@@ -589,8 +650,26 @@ $f-nav-icon-hover: #bce5fd;
|
|
589
650
|
|
590
651
|
.f-primary_nav_cpmeganav {
|
591
652
|
> li {
|
592
|
-
|
593
|
-
|
653
|
+
&.f-primary_nav_cpmeganav-autoprint { width: 32%; }
|
654
|
+
&.f-primary_nav_cpmeganav-design { width: 42%; }
|
655
|
+
&.f-primary_nav_cpmeganav-scrapbooking { width: 26%; }
|
656
|
+
|
657
|
+
> .f-primary_nav_cpmeganav-categories > li {
|
658
|
+
flex: unset;
|
659
|
+
|
660
|
+
&.f-primary_nav_cpmeganav-photo-prints {
|
661
|
+
width: 100%;
|
662
|
+
max-width: unset;
|
663
|
+
|
664
|
+
img {
|
665
|
+
margin-right: 10px;
|
666
|
+
float: left;
|
667
|
+
}
|
668
|
+
|
669
|
+
a { margin: 14px 0 0; }
|
670
|
+
p { margin-left: 0; }
|
671
|
+
}
|
672
|
+
}
|
594
673
|
}
|
595
674
|
}
|
596
675
|
}
|
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: 4.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas McClay
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Install this as a gem in your Forever app and it will expose style guide
|
14
14
|
through /style-guide route
|
@@ -126,7 +126,7 @@ homepage: https://github.com/forever-inc/forever-style-guide
|
|
126
126
|
licenses:
|
127
127
|
- MIT
|
128
128
|
metadata: {}
|
129
|
-
post_install_message:
|
129
|
+
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|
132
132
|
- lib
|
@@ -141,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
rubygems_version: 3.0.
|
145
|
-
signing_key:
|
144
|
+
rubygems_version: 3.0.9
|
145
|
+
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: A live style guide and component API for the Forever brand
|
148
148
|
test_files: []
|