forever_style_guide 3.7.2 → 4.1.14
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 +4 -4
- data/app/assets/stylesheets/forever_style_guide/base/_grid.scss +3 -3
- data/app/assets/stylesheets/forever_style_guide/globals/_colors.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +1 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_ambassador_banner.scss +69 -22
- data/app/assets/stylesheets/forever_style_guide/modules/_avatar.scss +0 -1
- data/app/assets/stylesheets/forever_style_guide/modules/_primary_nav.scss +298 -222
- data/app/assets/stylesheets/forever_style_guide/modules/_subnav.scss +218 -0
- data/lib/forever_style_guide.rb +4 -1
- data/lib/forever_style_guide/version.rb +1 -1
- metadata +4 -149
- data/app/helpers/forever_style_guide/application_helper.rb +0 -421
- data/config/locales/en.yml +0 -23
- data/config/routes.rb +0 -5
- data/config/style_guide.yml +0 -14
- data/lib/forever_style_guide/engine.rb +0 -14
- data/lib/tasks/forever_style_guide_tasks.rake +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9cb9bc38c33e03c5a79ba76322078fe775d0422fc818da39c4cdaecd5cae0b4
|
4
|
+
data.tar.gz: 223ab3ced529f9a56086107e70be62540d9f07818683d45ed6a05d4902a14d72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f7e2caeed45570d8d1fd13e73a4fd07b44abb0f5e6c9922aadb96273268d922fa4b68b0efe19591d25c0ce56bd0a7d87979ef21a733ebe6b009a56e830bdb2
|
7
|
+
data.tar.gz: 3007a24a4844b1cefee6b03658fd58cfa00c5d944ae694c5501bc65528cd3f9434ff9c0cb805d1c6c928d1b8ff48917d38517b40d5c596f5e3f5e65e90b19f87
|
@@ -97,13 +97,13 @@ $f-grid-col-count: 24;
|
|
97
97
|
/* padding modifiers */
|
98
98
|
.f-grid.f-grid-no_padding {
|
99
99
|
margin: 0;
|
100
|
-
[class*="f-col"] { padding: 0; }
|
100
|
+
> [class*="f-col"] { padding: 0; }
|
101
101
|
}
|
102
102
|
|
103
103
|
.f-grid.f-grid-bs_padding {
|
104
104
|
margin-left: -$f-grid-bootstrap-padding;
|
105
105
|
margin-right: -$f-grid-bootstrap-padding;
|
106
|
-
[class*="f-col"] { padding: 0 $f-grid-bootstrap-padding; }
|
106
|
+
> [class*="f-col"] { padding: 0 $f-grid-bootstrap-padding; }
|
107
107
|
}
|
108
108
|
|
109
109
|
|
@@ -111,7 +111,7 @@ $grid-gutter: 2;
|
|
111
111
|
@while $grid-gutter < 30 {
|
112
112
|
.f-grid.f-grid-gutter-#{$grid-gutter} {
|
113
113
|
margin: -#{$grid-gutter / 2}px;
|
114
|
-
[class*="f-col"] { padding: #{$grid-gutter / 2}px; }
|
114
|
+
> [class*="f-col"] { padding: #{$grid-gutter / 2}px; }
|
115
115
|
}
|
116
116
|
|
117
117
|
$grid-gutter: $grid-gutter + 2;
|
@@ -66,7 +66,7 @@ $color-live18-orange: colorify('live18-orange', #f57e25) !default;
|
|
66
66
|
$color-live18-grey: colorify('live18-grey', #a4abb6) !default;
|
67
67
|
|
68
68
|
// Gradients
|
69
|
-
$gradient-ambassador: linear-gradient(to
|
69
|
+
$gradient-ambassador: linear-gradient(to right, darken($color-forever_services, 5%), darken($color-forever_valet, 5%));
|
70
70
|
|
71
71
|
@each $id, $color in $colors {
|
72
72
|
.color-#{$id} {
|
@@ -9,15 +9,18 @@ $banner-hover-effect-speed: 0.15s;
|
|
9
9
|
$chevron-rotate-effect-speed: 0.25s;
|
10
10
|
$dropdown-entrance-and-exit-effect-speed: 0.22s;
|
11
11
|
|
12
|
-
@mixin ambassador_banner($height) {
|
12
|
+
@mixin ambassador_banner($banner-background-color, $height) {
|
13
13
|
position: relative;
|
14
14
|
height: $height;
|
15
15
|
color: $banner-color;
|
16
|
-
|
16
|
+
background-color: $banner-background-color;
|
17
17
|
z-index: $in-front-of-primary-nav;
|
18
|
+
pointer-events: none;
|
19
|
+
text-align: center;
|
20
|
+
font-family: $font-face-semibold;
|
18
21
|
|
19
22
|
&.is-behind_fixed-nav {
|
20
|
-
z-index:
|
23
|
+
z-index: -1;
|
21
24
|
height: $ambassador-banner-height-assigned;
|
22
25
|
}
|
23
26
|
|
@@ -44,25 +47,24 @@ $dropdown-entrance-and-exit-effect-speed: 0.22s;
|
|
44
47
|
|
45
48
|
a.ambassador_banner {
|
46
49
|
display: block;
|
50
|
+
pointer-events: auto;
|
47
51
|
|
48
52
|
&:hover,
|
49
53
|
&:focus,
|
50
54
|
&:active,
|
51
55
|
&:active:focus {
|
52
56
|
text-decoration: none;
|
57
|
+
pointer-events: auto;
|
53
58
|
}
|
54
59
|
}
|
55
60
|
|
56
61
|
.ambassador_banner-assigned {
|
57
|
-
@include ambassador_banner($ambassador-banner-height-assigned);
|
58
|
-
background-image: $gradient-ambassador;
|
62
|
+
@include ambassador_banner($color-forever_gray, $ambassador-banner-height-assigned);
|
59
63
|
padding-top: $banner-vertical-padding-assigned;
|
60
64
|
padding-bottom: $banner-vertical-padding-assigned;
|
61
65
|
height: $ambassador-banner-height-assigned;
|
62
66
|
|
63
|
-
&::after {
|
64
|
-
height: $ambassador-banner-height-assigned;
|
65
|
-
}
|
67
|
+
&::after { height: $ambassador-banner-height-assigned; }
|
66
68
|
|
67
69
|
&.open {
|
68
70
|
.fa-chevron-down {
|
@@ -73,23 +75,17 @@ a.ambassador_banner {
|
|
73
75
|
.fa-chevron-down {
|
74
76
|
@include transition(all $chevron-rotate-effect-speed linear);
|
75
77
|
}
|
76
|
-
}
|
77
78
|
|
78
|
-
@media (
|
79
|
-
.ambassador_banner-assigned { text-align: center; }
|
79
|
+
@media screen and (max-width: $screen-xs) { text-align: left; }
|
80
80
|
}
|
81
81
|
|
82
82
|
.ambassador_banner-unassigned {
|
83
|
-
@include ambassador_banner($ambassador-banner-height-unassigned);
|
84
|
-
background: $color-forever_ambassador-unassigned;
|
83
|
+
@include ambassador_banner(#781A60, $ambassador-banner-height-unassigned);
|
85
84
|
padding-top: $banner-vertical-padding-unassigned;
|
86
85
|
padding-bottom: $banner-vertical-padding-unassigned;
|
87
|
-
text-align: center;
|
88
86
|
|
89
87
|
&.is-behind_fixed-nav {
|
90
|
-
.ambassador_banner-btn {
|
91
|
-
display: none;
|
92
|
-
}
|
88
|
+
.ambassador_banner-btn { display: none; }
|
93
89
|
}
|
94
90
|
}
|
95
91
|
|
@@ -102,10 +98,7 @@ a.ambassador_banner {
|
|
102
98
|
line-height: 1.3;
|
103
99
|
border: 2px solid $color-white;
|
104
100
|
border-radius: $border-radius-button;
|
105
|
-
|
106
|
-
&:hover {
|
107
|
-
text-decoration: underline;
|
108
|
-
}
|
101
|
+
&:hover { text-decoration: underline; }
|
109
102
|
}
|
110
103
|
}
|
111
104
|
|
@@ -119,11 +112,21 @@ a.ambassador_banner {
|
|
119
112
|
.ambassador_banner-content {
|
120
113
|
display: inline-block;
|
121
114
|
vertical-align: middle;
|
115
|
+
pointer-events: auto;
|
116
|
+
cursor: pointer;
|
122
117
|
}
|
123
118
|
|
124
119
|
.ambassador_banner-name {
|
125
120
|
max-width: $banner-max-width;
|
126
121
|
vertical-align: middle;
|
122
|
+
text-decoration: underline;
|
123
|
+
|
124
|
+
@media screen and (max-width: $screen-xs) {
|
125
|
+
max-width: 48%;
|
126
|
+
white-space: nowrap;
|
127
|
+
overflow: hidden;
|
128
|
+
text-overflow: ellipsis;
|
129
|
+
}
|
127
130
|
}
|
128
131
|
|
129
132
|
.ambassador_banner-dropdown_container {
|
@@ -150,7 +153,7 @@ a.ambassador_banner {
|
|
150
153
|
align-items: center;
|
151
154
|
justify-content: center;
|
152
155
|
flex-wrap: wrap;
|
153
|
-
background-
|
156
|
+
background-color: $color-forever_gray;
|
154
157
|
border-top: 2px solid transparentize($color-white, 0.9);
|
155
158
|
}
|
156
159
|
|
@@ -203,3 +206,47 @@ a.ambassador_banner {
|
|
203
206
|
display: none;
|
204
207
|
}
|
205
208
|
}
|
209
|
+
|
210
|
+
.ambassador-link-con {
|
211
|
+
@media screen and (max-width: $screen-xs) {
|
212
|
+
text-align: left;
|
213
|
+
padding-left: 10px;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
.btn-ambassador-link {
|
218
|
+
display: inline-block;
|
219
|
+
vertical-align: middle;
|
220
|
+
height: auto;
|
221
|
+
position: absolute;
|
222
|
+
z-index: 1200;
|
223
|
+
right: 10px;
|
224
|
+
margin: 0;
|
225
|
+
padding: 0;
|
226
|
+
background: transparent;
|
227
|
+
color: $color-white;
|
228
|
+
font-size: $font-size-200;
|
229
|
+
font-family: inherit;
|
230
|
+
border: none;
|
231
|
+
box-shadow: none;
|
232
|
+
line-height: 20px;
|
233
|
+
pointer-events: auto;
|
234
|
+
|
235
|
+
&:hover, &:focus, &:active{
|
236
|
+
color: $color-white;
|
237
|
+
background: transparent !important;
|
238
|
+
border: none;
|
239
|
+
box-shadow: none;
|
240
|
+
text-decoration: underline;
|
241
|
+
}
|
242
|
+
|
243
|
+
i {
|
244
|
+
margin-left: 4px;
|
245
|
+
font-size: $font-size-200 !important;
|
246
|
+
}
|
247
|
+
|
248
|
+
&.amb-link-vert-align {
|
249
|
+
top: 50%;
|
250
|
+
transform: translateY(-50%);
|
251
|
+
}
|
252
|
+
}
|
@@ -1,20 +1,14 @@
|
|
1
|
-
|
2
1
|
$f-primary_nav-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
|
3
|
-
$f-primary_nav-main-zindex: $zindex-navbar-fixed;
|
4
2
|
$f-primary_nav-main-minheight: 50px;
|
5
3
|
$f-primary_nav-side-width: 320px;
|
6
4
|
$f-primary_nav-side-zindex: $zindex-modal;
|
7
|
-
$f-primary_nav-side_section-close_angle: 45deg;
|
8
5
|
$f-primary_nav-icon-count_badge-top: 5px;
|
9
6
|
$f-primary_nav-icon-count_badge-right: -4px;
|
7
|
+
$f-nav-yellow: #FFD452;
|
8
|
+
$f-nav-icon-hover: #bce5fd;
|
10
9
|
|
11
|
-
@mixin deals_link_base() {
|
12
|
-
color: $
|
13
|
-
|
14
|
-
&:hover {
|
15
|
-
color: $color-forever_blue;
|
16
|
-
}
|
17
|
-
|
10
|
+
@mixin deals_link_base($link_color: $color-forever_orange) {
|
11
|
+
color: $link_color;
|
18
12
|
&::after {
|
19
13
|
position: relative;
|
20
14
|
top: -5px;
|
@@ -27,8 +21,7 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
27
21
|
|
28
22
|
.f-primary_nav {
|
29
23
|
width: 100%;
|
30
|
-
|
31
|
-
background-color: $color-white;
|
24
|
+
background-color: #2881B8;
|
32
25
|
|
33
26
|
/*support store method of affixing*/
|
34
27
|
&.affix {
|
@@ -36,18 +29,6 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
36
29
|
left: 0;
|
37
30
|
z-index: $f-primary_nav-side-zindex;
|
38
31
|
}
|
39
|
-
|
40
|
-
/* nested to give more specificity and override the base styleguide link styles */
|
41
|
-
.f-primary_nav-link_base {
|
42
|
-
text-decoration: none;
|
43
|
-
color: $color-gray-600;
|
44
|
-
@include transition_fast(color);
|
45
|
-
|
46
|
-
&.is-active,
|
47
|
-
&:hover {
|
48
|
-
color: $color-forever_blue;
|
49
|
-
}
|
50
|
-
}
|
51
32
|
}
|
52
33
|
|
53
34
|
.f-primary_nav-main {
|
@@ -58,19 +39,18 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
58
39
|
padding-left: 10px;
|
59
40
|
padding-right: 10px;
|
60
41
|
position: relative;
|
61
|
-
z-index: $
|
42
|
+
z-index: $zindex-navbar-fixed;
|
62
43
|
}
|
63
44
|
|
64
45
|
.f-primary_nav-logo_link {
|
65
46
|
display: flex;
|
66
47
|
align-items: center;
|
67
|
-
}
|
68
48
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
49
|
+
> img {
|
50
|
+
height: 22px;
|
51
|
+
width: 138px;
|
52
|
+
max-width: unset;
|
53
|
+
}
|
74
54
|
}
|
75
55
|
|
76
56
|
.f-primary_nav-ecom_list {
|
@@ -78,45 +58,50 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
78
58
|
flex: 1 0 auto;
|
79
59
|
justify-content: center;
|
80
60
|
align-items: stretch;
|
81
|
-
margin
|
82
|
-
padding
|
61
|
+
margin: 0;
|
62
|
+
padding: 0;
|
83
63
|
list-style: none;
|
84
|
-
}
|
85
64
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
}
|
65
|
+
/* we want to ul to remain and flex grow, so just hide the items */
|
66
|
+
> li {
|
67
|
+
display: none;
|
90
68
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
69
|
+
> a {
|
70
|
+
position: relative;
|
71
|
+
display: flex;
|
72
|
+
align-items: center;
|
73
|
+
padding: 0 8px;
|
74
|
+
font-family: $font-face-semibold;
|
75
|
+
font-size: $font-size-200;
|
76
|
+
color: #fff;
|
77
|
+
text-decoration: none;
|
78
|
+
@include transition_fast(color, background-color);
|
79
|
+
|
80
|
+
&.f-primary_nav-ecom_link-deals {
|
81
|
+
@include deals_link_base($f-nav-yellow);
|
82
|
+
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
83
|
+
}
|
99
84
|
|
100
|
-
|
101
|
-
|
102
|
-
|
85
|
+
&::before {
|
86
|
+
position: absolute;
|
87
|
+
z-index: -1;
|
88
|
+
bottom: 0;
|
89
|
+
left: 0;
|
90
|
+
height: 4px;
|
91
|
+
width: 100%;
|
92
|
+
background-color: rgba(0, 0, 0, 0.15);
|
93
|
+
content: '';
|
94
|
+
transform: scaleX(0);
|
95
|
+
@include transition_fast(transform);
|
96
|
+
}
|
103
97
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
left: 0;
|
108
|
-
height: 4px;
|
109
|
-
width: 100%;
|
110
|
-
background-color: $color-forever_blue;
|
111
|
-
content: '';
|
112
|
-
transform: scaleX(0);
|
113
|
-
@include transition_fast(transform);
|
114
|
-
}
|
98
|
+
&:hover,
|
99
|
+
&.is-active,
|
100
|
+
&.is-meganav-open { background-color: rgba(0, 0, 0, 0.1); }
|
115
101
|
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
transform: scaleX(1);
|
102
|
+
&.is-active {
|
103
|
+
&::before { transform: scaleX(1); }
|
104
|
+
}
|
120
105
|
}
|
121
106
|
}
|
122
107
|
}
|
@@ -125,79 +110,84 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
125
110
|
position: relative;
|
126
111
|
display: flex;
|
127
112
|
align-items: stretch;
|
128
|
-
margin
|
129
|
-
padding
|
113
|
+
margin: 0;
|
114
|
+
padding: 0;
|
130
115
|
list-style: none;
|
131
|
-
}
|
132
116
|
|
133
|
-
|
134
|
-
display: flex;
|
135
|
-
align-items: stretch;
|
136
|
-
font-size: $font-size-450;
|
137
|
-
|
138
|
-
//display flex here gets rid of extra vertical space with inline block
|
139
|
-
.f-primary_nav-icon_link {
|
117
|
+
> li {
|
140
118
|
display: flex;
|
141
|
-
align-items:
|
142
|
-
|
143
|
-
}
|
144
|
-
|
145
|
-
.f-primary_nav-icon_link > .f-icon {
|
146
|
-
display: flex;
|
147
|
-
}
|
119
|
+
align-items: stretch;
|
120
|
+
font-size: $font-size-450;
|
148
121
|
|
149
|
-
|
122
|
+
> a {
|
123
|
+
display: flex;
|
124
|
+
align-items: center;
|
125
|
+
padding: 0 6px;
|
126
|
+
color: #fff;
|
127
|
+
text-decoration: none;
|
128
|
+
@include transition_fast(color);
|
129
|
+
&:hover { color: $f-nav-icon-hover; }
|
130
|
+
> .f-icon { display: flex; }
|
131
|
+
|
132
|
+
&.f-primary_nav-icon_link-cart {
|
133
|
+
position: relative;
|
134
|
+
|
135
|
+
.f-primary_nav-icon_link-cart_count {
|
136
|
+
position: absolute;
|
137
|
+
top: $f-primary_nav-icon-count_badge-top;
|
138
|
+
right: $f-primary_nav-icon-count_badge-right;
|
139
|
+
width: 18px;
|
140
|
+
height: 18px;
|
141
|
+
border-radius: $border-radius-xl;
|
142
|
+
background-color: $f-nav-yellow;
|
143
|
+
color: $color-gray-800;
|
144
|
+
font-size: $font-size-000;
|
145
|
+
font-family: $font-face-semibold;
|
146
|
+
display: flex;
|
147
|
+
align-items: center;
|
148
|
+
justify-content: center;
|
149
|
+
pointer-events: none;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
150
153
|
|
151
|
-
|
152
|
-
|
154
|
+
//this overrides notification dropdown styles and lets nav own these styles, selectors and nesting is necessary for selector specificity
|
155
|
+
.f-primary_nav-icon_notification.f-notification_dropdown {
|
156
|
+
display: flex;
|
157
|
+
align-items: stretch;
|
153
158
|
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
right: $f-primary_nav-icon-count_badge-right;
|
158
|
-
width: 18px;
|
159
|
-
height: 18px;
|
160
|
-
border-radius: $border-radius-xl;
|
161
|
-
background-color: $color-primary;
|
162
|
-
color: $color-white;
|
163
|
-
font-size: $font-size-000;
|
164
|
-
font-family: $font-face-semibold;
|
165
|
-
display: flex;
|
166
|
-
align-items: center;
|
167
|
-
justify-content: center;
|
168
|
-
pointer-events: none;
|
169
|
-
}
|
159
|
+
.f-notification_dropdown-bell {
|
160
|
+
padding: 0 6px;
|
161
|
+
align-items: center;
|
170
162
|
|
171
|
-
}
|
163
|
+
.f-notification_dropdown-bell_icon { color: #fff; }
|
172
164
|
|
173
|
-
|
174
|
-
.f-
|
175
|
-
|
176
|
-
align-items: stretch;
|
165
|
+
&:hover {
|
166
|
+
.f-notification_dropdown-bell_icon { color: $f-nav-icon-hover; }
|
167
|
+
}
|
177
168
|
|
178
|
-
|
179
|
-
|
180
|
-
|
169
|
+
.f-notification_dropdown-bell_count {
|
170
|
+
top: $f-primary_nav-icon-count_badge-top;
|
171
|
+
right: $f-primary_nav-icon-count_badge-right;
|
172
|
+
background-color: $f-nav-yellow;
|
173
|
+
color: $color-gray-800;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
181
177
|
|
182
|
-
.
|
183
|
-
|
184
|
-
|
178
|
+
//this is a placeholder div in store that houses an icon for notifications while turbolinks is transitioning. Ensures there is no jumpiness
|
179
|
+
#mars-notifications {
|
180
|
+
padding: 0 6px;
|
181
|
+
align-self: center;
|
182
|
+
.fa { display:flex; }
|
185
183
|
}
|
186
184
|
}
|
187
185
|
}
|
188
186
|
|
189
|
-
//this is a placeholder div in store that houses an icon for notifications while turbolinks is transitioning. Ensures there is no jumpiness
|
190
|
-
#mars-notifications {
|
191
|
-
padding: 0 6px;
|
192
|
-
align-self: center;
|
193
|
-
|
194
|
-
.fa { display:flex; }
|
195
|
-
}
|
196
|
-
|
197
187
|
.f-primary_nav-user_list {
|
198
188
|
display: flex;
|
199
189
|
align-items: center;
|
200
|
-
margin
|
190
|
+
margin: 0;
|
201
191
|
padding-left: 5px;
|
202
192
|
list-style: none;
|
203
193
|
|
@@ -212,31 +202,24 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
212
202
|
}
|
213
203
|
}
|
214
204
|
|
215
|
-
.f-primary_nav-
|
216
|
-
&.btn {
|
217
|
-
color: $color-white;
|
218
|
-
}
|
205
|
+
.f-primary_nav-user_link-signup {
|
206
|
+
&.btn { color: #fff; }
|
219
207
|
}
|
220
208
|
|
221
|
-
.f-primary_nav-
|
209
|
+
.f-primary_nav-user_link-signin {
|
222
210
|
&.btn {
|
223
211
|
&:link,
|
224
212
|
&:hover,
|
225
213
|
&:active,
|
226
214
|
&:visited {
|
227
|
-
color:
|
215
|
+
color: #fff;
|
228
216
|
text-decoration: none;
|
229
217
|
}
|
230
|
-
|
231
|
-
&:hover {
|
232
|
-
color: $color-secondary;
|
233
|
-
}
|
234
218
|
}
|
235
219
|
}
|
236
220
|
}
|
237
221
|
|
238
222
|
.f-primary_nav-user_item-avatar {
|
239
|
-
|
240
223
|
/* use below instead of display to hide so we retain padding */
|
241
224
|
visibility: hidden;
|
242
225
|
width: 0;
|
@@ -244,39 +227,31 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
244
227
|
.avatar {
|
245
228
|
padding: 0;
|
246
229
|
margin-right: 0;
|
230
|
+
border-width: 0;
|
247
231
|
}
|
248
232
|
}
|
249
233
|
|
250
|
-
.f-primary_nav-user_item-logged_out {
|
251
|
-
display: none;
|
252
|
-
}
|
234
|
+
.f-primary_nav-user_item-logged_out { display: none; }
|
253
235
|
|
254
236
|
.f-primary_nav-user_item-side_toggle {
|
255
237
|
cursor: pointer;
|
256
238
|
padding: 10px 10px 10px 5px;
|
257
239
|
margin-right: -10px;
|
258
240
|
|
259
|
-
|
260
|
-
background-color:
|
241
|
+
span {
|
242
|
+
background-color: #fff;
|
261
243
|
width: 20px;
|
262
244
|
display: block;
|
263
245
|
height: 2px;
|
264
246
|
border-radius: 1px;
|
265
|
-
@include
|
247
|
+
@include transition_normal(background-color, margin);
|
266
248
|
}
|
267
249
|
|
268
|
-
|
269
|
-
margin-top: 4px;
|
270
|
-
}
|
250
|
+
span:not(:first-child) { margin-top: 4px; }
|
271
251
|
|
272
252
|
&:hover {
|
273
|
-
|
274
|
-
|
275
|
-
}
|
276
|
-
|
277
|
-
.f-primary_nav-user_icon_bar:not(:first-child) {
|
278
|
-
margin-top: 6px;
|
279
|
-
}
|
253
|
+
span { background-color: $f-nav-icon-hover; }
|
254
|
+
span:not(:first-child) { margin-top: 6px; }
|
280
255
|
}
|
281
256
|
}
|
282
257
|
|
@@ -290,47 +265,50 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
290
265
|
bottom: 0;
|
291
266
|
z-index: $f-primary_nav-side-zindex;
|
292
267
|
width: $f-primary_nav-side-width;
|
293
|
-
|
294
|
-
background-color: $color-white;
|
268
|
+
background-color: #fff;
|
295
269
|
box-shadow: $f-primary_nav-shadow;
|
296
270
|
direction: rtl;
|
297
271
|
text-align: left;
|
298
|
-
@include
|
272
|
+
@include transition_fast(right);
|
299
273
|
|
300
274
|
&.is-onscreen {
|
301
275
|
right: 0;
|
302
276
|
width: 100%;
|
303
277
|
}
|
278
|
+
|
279
|
+
.f-primary_nav-side_icon{
|
280
|
+
margin-right: 0.5em;
|
281
|
+
}
|
304
282
|
}
|
305
283
|
|
306
284
|
.f-primary_nav-side_section {
|
307
|
-
padding: 8px
|
285
|
+
padding: 8px 20px;
|
308
286
|
margin-bottom: 0;
|
309
287
|
list-style: none;
|
310
|
-
border-bottom:
|
288
|
+
border-bottom: 1px solid $color-gray-300;
|
311
289
|
direction: ltr;
|
312
|
-
|
313
|
-
&:last-child {
|
314
|
-
border: none;
|
315
|
-
}
|
316
|
-
|
317
|
-
.f-primary_nav-side_signout_link {
|
318
|
-
&:link,
|
319
|
-
&:hover,
|
320
|
-
&:active,
|
321
|
-
&:visited {
|
322
|
-
color: $color-forever_red;
|
323
|
-
}
|
324
|
-
}
|
290
|
+
&:last-child { border: none; }
|
325
291
|
|
326
292
|
.f-primary_nav-side_link_base {
|
327
|
-
text-transform: uppercase;
|
328
293
|
display: block;
|
329
294
|
font-family: $font-face-semibold;
|
330
|
-
font-size: $font-size-
|
331
|
-
padding:
|
295
|
+
font-size: $font-size-300;
|
296
|
+
padding: 6px 0;
|
297
|
+
color: $color-forever_blue;
|
298
|
+
text-decoration: none;
|
299
|
+
@include transition_fast(color);
|
300
|
+
&:hover { color: $color-gray-600; }
|
332
301
|
}
|
333
302
|
|
303
|
+
&.is-color-block {
|
304
|
+
border-bottom: none;
|
305
|
+
padding: 4px 20px;
|
306
|
+
|
307
|
+
.f-primary_nav-side_link_base {
|
308
|
+
color: #fff;
|
309
|
+
&:hover { color: #fff; }
|
310
|
+
}
|
311
|
+
}
|
334
312
|
}
|
335
313
|
|
336
314
|
.f-primary_nav-side_section-close {
|
@@ -345,7 +323,7 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
345
323
|
&::before,
|
346
324
|
&::after {
|
347
325
|
position: absolute;
|
348
|
-
right:
|
326
|
+
right: 8px;
|
349
327
|
width: 22px;
|
350
328
|
height: 2px;
|
351
329
|
content: ' ';
|
@@ -354,8 +332,8 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
354
332
|
@include transition_fast(background-color);
|
355
333
|
}
|
356
334
|
|
357
|
-
&::before { transform: rotate(
|
358
|
-
&::after { transform: rotate(-
|
335
|
+
&::before { transform: rotate(45deg); }
|
336
|
+
&::after { transform: rotate(-45deg); }
|
359
337
|
|
360
338
|
&:hover {
|
361
339
|
&::before,
|
@@ -420,13 +398,10 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
420
398
|
line-height: 1;
|
421
399
|
text-align: center;
|
422
400
|
}
|
423
|
-
|
424
401
|
}
|
425
402
|
|
426
403
|
.f-primary_nav-side_section-ecom_list {
|
427
|
-
.f-primary_nav-side_ecom-deals_link {
|
428
|
-
@include deals_link_base();
|
429
|
-
}
|
404
|
+
.f-primary_nav-side_ecom-deals_link { @include deals_link_base(); }
|
430
405
|
}
|
431
406
|
|
432
407
|
.f-primary_nav-side_section-logged_out {
|
@@ -437,84 +412,185 @@ $f-primary_nav-icon-count_badge-right: -4px;
|
|
437
412
|
}
|
438
413
|
}
|
439
414
|
|
415
|
+
.f-primary_nav_cpmeganav {
|
416
|
+
position: absolute;
|
417
|
+
top: 100%;
|
418
|
+
left: 50%;
|
419
|
+
transform: translateX(-50%);
|
420
|
+
width: 94%;
|
421
|
+
max-width: 1300px;
|
422
|
+
background: #fff;
|
423
|
+
box-shadow: 0 0 19px 0 rgba(0, 0, 0, 0.2);
|
424
|
+
border-radius: 0 0 8px 8px;
|
425
|
+
margin: 0;
|
426
|
+
padding: 0;
|
427
|
+
list-style: none;
|
428
|
+
opacity: 1;
|
429
|
+
transition: opacity 0.15s ease-in-out;
|
430
|
+
z-index: inherit;
|
440
431
|
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
432
|
+
&.hidden {
|
433
|
+
opacity: 0;
|
434
|
+
display: flex !important;
|
435
|
+
visibility: none;
|
436
|
+
top: -9999px;
|
437
|
+
left:-9999px;
|
446
438
|
}
|
447
439
|
|
448
|
-
|
449
|
-
|
450
|
-
|
440
|
+
ul {
|
441
|
+
list-style: none;
|
442
|
+
margin: 0;
|
443
|
+
padding: 0;
|
451
444
|
}
|
452
445
|
|
453
|
-
|
454
|
-
padding
|
455
|
-
|
446
|
+
> li {
|
447
|
+
padding: 20px 20px 0;
|
448
|
+
&:nth-child(even) { background-color: $color-gray-200; }
|
449
|
+
|
450
|
+
a {
|
451
|
+
display: block;
|
452
|
+
font-family: $font-face-semibold;
|
453
|
+
line-height: 1;
|
454
|
+
}
|
455
|
+
|
456
|
+
p {
|
457
|
+
margin: 0;
|
458
|
+
color: $color-forever_gray;
|
459
|
+
font-family: $font-face-regular;
|
460
|
+
line-height: 1.4;
|
461
|
+
}
|
462
|
+
|
463
|
+
> a { font-size: 20px; }
|
456
464
|
|
457
|
-
|
458
|
-
|
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
|
+
> p { font-size: $font-size-200; }
|
473
|
+
|
474
|
+
> ul {
|
475
|
+
padding-top: 20px;
|
476
|
+
display: flex;
|
477
|
+
flex-wrap: wrap;
|
478
|
+
justify-content: flex-start;
|
479
|
+
|
480
|
+
> li {
|
481
|
+
min-width: 180px;
|
482
|
+
max-width: 300px;
|
483
|
+
min-height: 60px;
|
484
|
+
margin-bottom: 20px;
|
485
|
+
|
486
|
+
img {
|
487
|
+
float: left;
|
488
|
+
width: 60px;
|
489
|
+
}
|
490
|
+
|
491
|
+
> a {
|
492
|
+
font-size: 16px;
|
493
|
+
margin-left: 10px;
|
494
|
+
display: inline-block;
|
495
|
+
}
|
496
|
+
|
497
|
+
> p {
|
498
|
+
font-size: 12px;
|
499
|
+
margin: 4px 0 0 70px;
|
500
|
+
}
|
501
|
+
|
502
|
+
span.badge {
|
503
|
+
border-radius: 2px;
|
504
|
+
padding: 2px 4px;
|
505
|
+
color: #fff;
|
506
|
+
background-color: $color-forever_orange;
|
507
|
+
font-size: 10px;
|
508
|
+
vertical-align: top;
|
509
|
+
margin-top: 2px;
|
510
|
+
display: inline-block;
|
511
|
+
font-weight: bold;
|
512
|
+
line-height: 1;
|
513
|
+
}
|
514
|
+
|
515
|
+
> ul {
|
516
|
+
margin: 2px 0 0 70px;
|
517
|
+
|
518
|
+
> li {
|
519
|
+
margin: 0 0 2px;
|
520
|
+
font-size: 12px;
|
521
|
+
|
522
|
+
> a {
|
523
|
+
font-size: 12px;
|
524
|
+
display: inline-block;
|
525
|
+
font-family: $font-face-regular;
|
526
|
+
}
|
527
|
+
}
|
528
|
+
}
|
529
|
+
}
|
530
|
+
}
|
459
531
|
}
|
532
|
+
}
|
533
|
+
|
534
|
+
//everything above xs
|
535
|
+
@media (min-width: $screen-xs) {
|
536
|
+
.f-primary_nav-main { padding: 0 15px; }
|
537
|
+
|
538
|
+
.f-primary_nav-user_list { padding-left: 10px; }
|
460
539
|
|
461
540
|
.f-primary_nav-user_item-avatar {
|
462
541
|
visibility: visible;
|
463
542
|
width: auto;
|
464
543
|
}
|
544
|
+
}
|
465
545
|
|
466
|
-
|
467
|
-
|
546
|
+
//everything above sm
|
547
|
+
@media (min-width: $screen-sm) {
|
548
|
+
.f-primary_nav-ecom_list {
|
549
|
+
> li { display: flex; }
|
468
550
|
}
|
551
|
+
|
552
|
+
.f-primary_nav-side.is-onscreen { width: $f-primary_nav-side-width; }
|
469
553
|
}
|
470
554
|
|
471
555
|
//everything above medium
|
472
556
|
@media (min-width: $screen-md) {
|
557
|
+
.f-primary_nav-user_item-logged_out { display: flex; }
|
473
558
|
|
474
|
-
.f-primary_nav-
|
475
|
-
|
559
|
+
.f-primary_nav-side_section-ecom_list { display: none; }
|
560
|
+
|
561
|
+
.f-primary_nav-user_item-side_toggle {
|
562
|
+
&.is-unauthenticated { display: none; }
|
476
563
|
}
|
477
564
|
|
478
|
-
.f-
|
565
|
+
.f-primary_nav_cpmeganav {
|
479
566
|
display: flex;
|
480
|
-
}
|
481
567
|
|
482
|
-
|
483
|
-
|
484
|
-
}
|
568
|
+
> li {
|
569
|
+
> p { min-height: 42px; }
|
485
570
|
|
486
|
-
|
487
|
-
|
488
|
-
|
571
|
+
&:nth-child(odd) { width: 28%; }
|
572
|
+
|
573
|
+
&:nth-child(2) {
|
574
|
+
width: 44%;
|
575
|
+
background-color: transparent;
|
576
|
+
border-style: solid;
|
577
|
+
border-width: 0 1px;
|
578
|
+
border-color: $color-gray-400;
|
579
|
+
}
|
489
580
|
}
|
490
581
|
}
|
491
582
|
}
|
492
583
|
|
493
584
|
//everything above lg
|
494
585
|
@media (min-width: $screen-lg) {
|
495
|
-
.f-primary_nav-
|
496
|
-
|
497
|
-
padding-right: 8px;
|
498
|
-
font-size: $font-size-300;
|
586
|
+
.f-primary_nav-ecom_list {
|
587
|
+
> li > a { font-size: $font-size-300; }
|
499
588
|
}
|
500
|
-
}
|
501
589
|
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
}
|
508
|
-
|
509
|
-
@media (max-width: $screen-md_to_lg) and (min-width: $screen-md) {
|
510
|
-
.f-primary_nav-logo_image {
|
511
|
-
height: 22px;
|
512
|
-
width: 138px;
|
513
|
-
}
|
514
|
-
}
|
515
|
-
|
516
|
-
@media (max-width: $screen-lg-max) and (min-width: $screen-md) {
|
517
|
-
.f-primary_nav-icon_item {
|
518
|
-
font-size: $font-size-450;
|
590
|
+
.f-primary_nav_cpmeganav {
|
591
|
+
> li {
|
592
|
+
&:nth-child(odd) { width: 25%; }
|
593
|
+
&:nth-child(2) { width: 50%; }
|
594
|
+
}
|
519
595
|
}
|
520
596
|
}
|