forever_style_guide 3.5.0 → 3.6.0
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/globals/_fonts.scss +2 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_mixins.scss +20 -33
- data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +1 -5
- data/app/assets/stylesheets/forever_style_guide/modules/_avatar.scss +22 -3
- data/app/assets/stylesheets/forever_style_guide/modules/_mars_manifest.scss +1 -5
- data/app/assets/stylesheets/forever_style_guide/modules/_primary_nav.scss +519 -0
- data/lib/forever_style_guide/version.rb +1 -1
- metadata +3 -9
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-account_dropdown.scss +0 -197
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-cart.scss +0 -59
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss +0 -11
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss +0 -53
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-mobile-menu.scss +0 -143
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss +0 -77
- data/app/assets/stylesheets/forever_style_guide/modules/_nav.scss +0 -254
@@ -1,77 +0,0 @@
|
|
1
|
-
// https://github.com/iamphill/Bootstrap-Offcanvas
|
2
|
-
$offcanvas-width: 270px !default;
|
3
|
-
$offcanvas-animation-time: .15s !default;
|
4
|
-
|
5
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
6
|
-
.offcanvas-stop-scrolling {
|
7
|
-
height: 100%;
|
8
|
-
overflow: hidden;
|
9
|
-
}
|
10
|
-
|
11
|
-
.navbar-default {
|
12
|
-
.navbar-offcanvas {
|
13
|
-
background-color: $nav-bg-color;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
.navbar-offcanvas {
|
18
|
-
position: fixed;
|
19
|
-
width: 100%;
|
20
|
-
max-width: $offcanvas-width;
|
21
|
-
left: -$offcanvas-width;
|
22
|
-
top: 0;
|
23
|
-
bottom: 0;
|
24
|
-
z-index: $zindex-navbar-fixed + 1; // Make sure offcanvas nav is 'above' fixed header
|
25
|
-
overflow-y: auto;
|
26
|
-
-webkit-overflow-scrolling: touch;
|
27
|
-
transition: left $offcanvas-animation-time ease-in;
|
28
|
-
|
29
|
-
.nav > li {
|
30
|
-
width: 100%;
|
31
|
-
overflow: hidden;
|
32
|
-
}
|
33
|
-
&.in {
|
34
|
-
box-shadow: 0 0 20px rgba(0, 0, 0, .3);
|
35
|
-
}
|
36
|
-
&.offcanvas-transform {
|
37
|
-
&.in {
|
38
|
-
left: 0;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
// Show and hide items relative to custom toggle breakpoint
|
45
|
-
.visible-grid-float-breakpoint {
|
46
|
-
@media (min-width: $grid-float-breakpoint) {
|
47
|
-
display: none !important;
|
48
|
-
}
|
49
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
50
|
-
display: block !important;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
.hidden-grid-float-breakpoint {
|
54
|
-
@media (min-width: $grid-float-breakpoint) {
|
55
|
-
display: block !important;
|
56
|
-
}
|
57
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
58
|
-
display: none !important;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
.col-grid-float-3 {
|
62
|
-
@media (min-width: $grid-float-breakpoint) {
|
63
|
-
width: 25%;
|
64
|
-
float: left;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
.col-grid-float-6 {
|
68
|
-
@media (min-width: $grid-float-breakpoint) {
|
69
|
-
width: 50%;
|
70
|
-
float: left;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
.col-grid-float-push-6 {
|
74
|
-
@media (min-width: $grid-float-breakpoint) {
|
75
|
-
float: right;
|
76
|
-
}
|
77
|
-
}
|
@@ -1,254 +0,0 @@
|
|
1
|
-
$navigation-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
|
2
|
-
$nav-height: 50px;
|
3
|
-
$nav-horizontal-spacing: 8px;
|
4
|
-
$nav-icon-padding: 4px;
|
5
|
-
|
6
|
-
$logo-height-lg: 28px;
|
7
|
-
$logo-max-width-lg: 175px;
|
8
|
-
$logo-vertical-align-lg: 5px;
|
9
|
-
|
10
|
-
$logo-height-sm: 22px;
|
11
|
-
$logo-max-width-sm: 138px;
|
12
|
-
$logo-vertical-align-sm: 6px;
|
13
|
-
|
14
|
-
$logo-height-xs: 26px;
|
15
|
-
$logo-max-width-xs: 162px;
|
16
|
-
$logo-vertical-align-xs: 6px;
|
17
|
-
|
18
|
-
$hover-border-size: 4px;
|
19
|
-
$navigation-link-hover-transition: color 0.15s ease-in-out;
|
20
|
-
|
21
|
-
$deals-icon-horizontal-position: -3px;
|
22
|
-
$deals-icon-vertical-position: -5px;
|
23
|
-
|
24
|
-
// animation on hover
|
25
|
-
@mixin nav_hover_border() {
|
26
|
-
&::before {
|
27
|
-
position: absolute;
|
28
|
-
bottom: 0;
|
29
|
-
left: 0;
|
30
|
-
height: $hover-border-size;
|
31
|
-
width: 100%;
|
32
|
-
background-color: $color-secondary;
|
33
|
-
content: "";
|
34
|
-
transform: scaleX(0);
|
35
|
-
@include transition(transform 0.15s ease-in-out);
|
36
|
-
}
|
37
|
-
|
38
|
-
&:hover {
|
39
|
-
&::before {
|
40
|
-
transform: scaleX(1);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
.navigation {
|
46
|
-
position: relative;
|
47
|
-
box-shadow: $navigation-shadow;
|
48
|
-
|
49
|
-
.container-fluid {
|
50
|
-
@media (max-width: $screen-xs-max) {
|
51
|
-
padding-right: $nav-horizontal-spacing;
|
52
|
-
padding-left: $nav-horizontal-spacing;
|
53
|
-
}
|
54
|
-
|
55
|
-
@media (min-width: $grid-float-breakpoint) and (max-width: $screen-md) {
|
56
|
-
padding-right: $nav-horizontal-spacing;
|
57
|
-
padding-left: $nav-horizontal-spacing;
|
58
|
-
}
|
59
|
-
> .navbar-header {
|
60
|
-
margin-left: 0;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
.navbar-logo_image,
|
66
|
-
.navbar-logo {
|
67
|
-
display: inline-block;
|
68
|
-
height: $logo-height-lg;
|
69
|
-
margin-top: $logo-vertical-align-lg;
|
70
|
-
max-width: $logo-max-width-lg; // you need to constrain your svg for IE
|
71
|
-
|
72
|
-
@media (max-width: $screen-xs-max) {
|
73
|
-
height: $logo-height-xs;
|
74
|
-
max-width: $logo-max-width-xs;
|
75
|
-
margin-top: $logo-vertical-align-xs;
|
76
|
-
}
|
77
|
-
|
78
|
-
@media (min-width: $grid-float-breakpoint) and (max-width: $screen-md_to_lg-plus) {
|
79
|
-
height: $logo-height-sm;
|
80
|
-
max-width: $logo-max-width-sm;
|
81
|
-
margin-top: $logo-vertical-align-sm;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
// main product nav links
|
86
|
-
.navigation-menu-list {
|
87
|
-
height: $nav-height; // TODO - this hsould probably be the $header-height variable, pending further confirmation
|
88
|
-
overflow: hidden; //make sure the navigation inner elements do not overflow their main container.
|
89
|
-
|
90
|
-
.navbar-nav.navbar-text_center > li > a {
|
91
|
-
padding-left: $nav-horizontal-spacing;
|
92
|
-
padding-right: $nav-horizontal-spacing;
|
93
|
-
max-height: $nav-height;
|
94
|
-
|
95
|
-
@media (max-width: $screen-lg-plus) {
|
96
|
-
padding-left: $nav-horizontal-spacing / 2;
|
97
|
-
padding-right: $nav-horizontal-spacing / 2;
|
98
|
-
}
|
99
|
-
|
100
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
101
|
-
padding-top: $padding-small-vertical;
|
102
|
-
padding-bottom: $padding-small-vertical;
|
103
|
-
padding-left: 0;
|
104
|
-
text-transform: uppercase;
|
105
|
-
font-size: $font-size-200;
|
106
|
-
}
|
107
|
-
|
108
|
-
@media (min-width: $grid-float-breakpoint) and (max-width: $screen-md_to_lg-plus) {
|
109
|
-
font-size: $font-size-200;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
.navbar-text_center {
|
115
|
-
display: inline-block;
|
116
|
-
float: none;
|
117
|
-
|
118
|
-
@media (min-width: $grid-float-breakpoint) and (max-width: $screen-md) {
|
119
|
-
margin-right: -10px;
|
120
|
-
margin-left: -10px;
|
121
|
-
}
|
122
|
-
|
123
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
124
|
-
direction: ltr; // corrects orientation against nav-mobile-menu scrollbar behavior ** mainly fixing safari here
|
125
|
-
width: 100%;
|
126
|
-
padding-bottom: $nav-horizontal-spacing;
|
127
|
-
order: 3; // .nav-mobile-menu-close: 1, .navbar-user_info: 2, .navbar-text_center: 3
|
128
|
-
border-bottom: solid 1px $color-gray-300;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
.navigation-menu-list_item {
|
133
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
134
|
-
text-align: left;
|
135
|
-
}
|
136
|
-
|
137
|
-
@media (max-width: $screen-sm) {
|
138
|
-
min-width: 300px;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
.navigation-menu-list_item-active {
|
143
|
-
a.navigation-items-link {
|
144
|
-
color: $color-secondary;
|
145
|
-
|
146
|
-
&::before {
|
147
|
-
background-color: $color-secondary;
|
148
|
-
transform: scaleX(1);
|
149
|
-
}
|
150
|
-
}
|
151
|
-
}
|
152
|
-
|
153
|
-
a.navigation-items-link {
|
154
|
-
padding-top: $padding-default-vertical;
|
155
|
-
padding-bottom: $padding-default-vertical;
|
156
|
-
color: $color-gray-600;
|
157
|
-
text-decoration: none;
|
158
|
-
|
159
|
-
@media screen and (min-width: $grid-float-breakpoint) {
|
160
|
-
align-items: center;
|
161
|
-
height: 100%;
|
162
|
-
@include transition($navigation-link-hover-transition);
|
163
|
-
@include nav_hover_border();
|
164
|
-
}
|
165
|
-
|
166
|
-
@media (max-width: $grid-float-breakpoint) {
|
167
|
-
align-items: center;
|
168
|
-
height: 100%;
|
169
|
-
}
|
170
|
-
|
171
|
-
&:hover {
|
172
|
-
color: $color-secondary;
|
173
|
-
}
|
174
|
-
}
|
175
|
-
|
176
|
-
a.navigation-items-link-deals {
|
177
|
-
position: relative;
|
178
|
-
color: $color-warning;
|
179
|
-
|
180
|
-
&::after {
|
181
|
-
position: relative;
|
182
|
-
top: $deals-icon-vertical-position;
|
183
|
-
right: $deals-icon-horizontal-position;
|
184
|
-
font-family: 'FontAwesome';
|
185
|
-
font-size: $font-size-000;
|
186
|
-
content: "\f005"; // Star
|
187
|
-
}
|
188
|
-
|
189
|
-
@media (max-width: $screen-lg-plus) {
|
190
|
-
&::after {
|
191
|
-
font-size: $font-size-100 - 1;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
|
195
|
-
@media (max-width: $screen-sm) {
|
196
|
-
&::after {
|
197
|
-
content: none;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
.navbar-nav {
|
203
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
204
|
-
margin: 0; // overriding bootstrap so non-signed in btn-blocks display as expected TODO: further refactor markup to avoid this
|
205
|
-
}
|
206
|
-
|
207
|
-
&.navbar-right {
|
208
|
-
margin-right: 0;
|
209
|
-
max-height: $nav-height;
|
210
|
-
direction: ltr; // corrects orientation against nav-mobile-menu scrollbar behavior ** mainly fixing safari here
|
211
|
-
|
212
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
213
|
-
float: none !important; // overriding bootstrap so non-signed in btn-blocks display as expected TODO: further refactor markup to avoid this
|
214
|
-
}
|
215
|
-
|
216
|
-
.navbar-right-icons {
|
217
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
218
|
-
float: right;
|
219
|
-
}
|
220
|
-
}
|
221
|
-
|
222
|
-
&.navbar-right-icons-container {
|
223
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
224
|
-
float: right !important;
|
225
|
-
margin: auto;
|
226
|
-
}
|
227
|
-
@media (max-width: $screen-xs-max) {
|
228
|
-
margin: 5px 0 0; // compensating for change in padding on .navbar-nav > li > a
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
|
234
|
-
.navbar-right-icons-container,
|
235
|
-
.nav > li.navbar-right-icons,
|
236
|
-
.navbar-mobile-menu {
|
237
|
-
@media (max-width: $grid-float-breakpoint-max) {
|
238
|
-
display: inline-block;
|
239
|
-
float: right; //aligns mobile menu
|
240
|
-
}
|
241
|
-
}
|
242
|
-
|
243
|
-
// All-purpose bootstrap override for background-color of links that are not styled as buttons
|
244
|
-
.nav > li > a:not(.btn) {
|
245
|
-
&:hover,
|
246
|
-
&:focus {
|
247
|
-
background-color: inherit !important;
|
248
|
-
}
|
249
|
-
}
|
250
|
-
|
251
|
-
.navbar-nav > li > a, .navbar-nav > li > a.nav-icon-padding {
|
252
|
-
padding-left: $nav-icon-padding;
|
253
|
-
padding-right: $nav-icon-padding;
|
254
|
-
}
|