forever_style_guide 2.0.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/forever_style_guide/default_avatar.jpg +0 -0
- data/app/assets/images/forever_style_guide/forever-logo.jpg +0 -0
- data/app/assets/javascripts/forever_style_guide/account-popover.js +0 -26
- data/app/assets/javascripts/forever_style_guide/offcanvas.js +213 -0
- data/app/assets/stylesheets/forever_style_guide/base/_bootstrap_reset.scss +5 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_breakpoints.scss +1 -1
- data/app/assets/stylesheets/forever_style_guide/globals/_effects.scss +6 -0
- data/app/assets/stylesheets/forever_style_guide/globals/_mixins.scss +3 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +22 -22
- data/app/assets/stylesheets/forever_style_guide/modules/_button.scss +0 -5
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-account.scss +58 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-ambassador.scss +93 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns.scss +155 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss +0 -15
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-icons.scss +114 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss +53 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss +77 -0
- data/app/assets/stylesheets/forever_style_guide/modules/_nav.scss +84 -73
- data/app/assets/stylesheets/style_guide/modules/_hero_simple.scss +0 -1
- data/app/helpers/forever_style_guide/application_helper.rb +309 -1
- data/app/views/forever_style_guide/demo/footer.html.erb +1 -1
- data/app/views/forever_style_guide/demo/hero.html.erb +1 -3
- data/app/views/forever_style_guide/demo/hero_simple.html.erb +1 -3
- data/app/views/forever_style_guide/demo/navigation.html.erb +43 -27
- data/app/views/forever_style_guide/demo/promo_banner.html.erb +1 -3
- data/app/views/forever_style_guide/sections/components/navigation/_nav.erb +60 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown.erb +37 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown_menu.erb +61 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_account_signed_out_mobile.erb +6 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_ambassador_dropdown.erb +112 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_community_dropdown.erb +99 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_my_forever_dropdown.erb +142 -0
- data/app/views/forever_style_guide/sections/components/navigation/_nav_products_dropdown.erb +151 -0
- data/app/views/layouts/forever_style_guide/_navigation.erb +51 -29
- data/lib/forever_style_guide/version.rb +1 -1
- data/test/dummy/log/development.log +43794 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_all.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_button.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns-ambassador.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-fixed.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-icons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-offcanvas.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_breakpoints.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_effects.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_mixins.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/77afe34ae60f4f73cffcc8a92e720a6db579269d/_hero_simple.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/b7a4a2cc1ae6dd8beea9163f40226a4c9c3e7926/_bootstrap_reset.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13c6cfef7d2dae6157cb1e9a83970e58 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16ae65fae89ac9713129ac86c08be0fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4bdd1622b754cd161cd49f472086df2d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5889baf60874f32654f269b1976b11da +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74ee448666a16d19f05d144192a607fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/82e2ab0c7f220d85a3306094f9170995 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/93ba27aa64423f74732b1f2b12b84118 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a5339910db1afb33301cc638679d0cc2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7c77fa9ddbae9998b1339d6c2c3eef0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d139d4c466cbb442154adf9c2b8149f4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e4a50f6ac0abd0a5af7071d8eb233a48 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee286b59ae897606bfd68a7f060d5baf +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -1
- metadata +19 -21
- data/app/assets/javascripts/forever_style_guide/nav-fixed.js +0 -28
- data/app/assets/javascripts/forever_style_guide/navbar.js +0 -9
- data/app/assets/stylesheets/forever_style_guide/modules/_account-popover.scss +0 -133
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-more.scss +0 -60
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-nav.scss +0 -66
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product-main.scss +0 -52
- data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product.scss +0 -82
- data/app/assets/stylesheets/forever_style_guide/modules/_navbar.scss +0 -132
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in-app.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed-signed-in.html.erb +0 -22
- data/app/views/forever_style_guide/demo/navigation-fixed.html.erb +0 -28
- data/app/views/forever_style_guide/sections/components/_navigation.html.erb +0 -69
- data/app/views/forever_style_guide/sections/components/navigation/_account_popover.erb +0 -71
- data/app/views/forever_style_guide/sections/components/navigation/_basic.erb +0 -33
- data/app/views/forever_style_guide/sections/components/navigation/_dropdown.erb +0 -119
- data/app/views/forever_style_guide/sections/components/navigation/_marketing.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_marketing_signed_in.erb +0 -155
- data/app/views/forever_style_guide/sections/components/navigation/_signed_in.erb +0 -113
- data/app/views/forever_style_guide/sections/components/navigation/_stacked.erb +0 -22
@@ -0,0 +1,155 @@
|
|
1
|
+
$dropdown-height: 373px; // Allows for entire hero_simple text to display from $screen-md and up
|
2
|
+
$nav-icon-width: 60px;
|
3
|
+
|
4
|
+
@mixin dropdown-content-style {
|
5
|
+
display: block;
|
6
|
+
color: color('gray-300');
|
7
|
+
font-family: $font-face-light;
|
8
|
+
font-size: $font-size-large;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin mobile-active-dropdown-bg($color) {
|
12
|
+
color: color('white');
|
13
|
+
background-color: $color;
|
14
|
+
border-top-color: $color;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Behavior
|
18
|
+
.nav .dropdown.open {
|
19
|
+
& > .dropdown-menu-nav {
|
20
|
+
opacity: 1;
|
21
|
+
visibility: visible;
|
22
|
+
@include transition(opacity 0.2s ease-in-out);
|
23
|
+
|
24
|
+
@media (min-width: $grid-float-breakpoint) {
|
25
|
+
height: $dropdown-height;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
&.dropdown-full_width {
|
29
|
+
position: static;
|
30
|
+
|
31
|
+
.dropdown-menu-nav {
|
32
|
+
right: 0;
|
33
|
+
left: 0;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.dropdown-menu-nav {
|
37
|
+
@media (max-width: $grid-float-breakpoint) {
|
38
|
+
padding-bottom: 20px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
// Override bootstrap default to show dropdowns at custom breakpoint
|
44
|
+
@media (max-width: $grid-float-breakpoint) {
|
45
|
+
.navbar-nav .open .dropdown-menu {
|
46
|
+
position: static;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
// Styles
|
51
|
+
.navbar .dropdown.open > .dropdown-toggle {
|
52
|
+
color: color('gray-400');
|
53
|
+
background-color: $nav-bg-color;
|
54
|
+
|
55
|
+
@media (max-width: $grid-float-breakpoint) {
|
56
|
+
&.dropdown-toggle-my_forever {
|
57
|
+
@include mobile-active-dropdown-bg($color-primary);
|
58
|
+
}
|
59
|
+
&.dropdown-toggle-products {
|
60
|
+
@include mobile-active-dropdown-bg($color-secondary);
|
61
|
+
}
|
62
|
+
&.dropdown-toggle-community {
|
63
|
+
@include mobile-active-dropdown-bg($color-accent);
|
64
|
+
}
|
65
|
+
&.dropdown-toggle-account {
|
66
|
+
@include mobile-active-dropdown-bg($color-forever_services);
|
67
|
+
}
|
68
|
+
&.dropdown-toggle-ambassador {
|
69
|
+
@include mobile-active-dropdown-bg($color-forever_ambassador);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.dropdown-menu-nav {
|
75
|
+
display: block;
|
76
|
+
opacity: 0;
|
77
|
+
visibility: hidden;
|
78
|
+
border: none;
|
79
|
+
border-radius: 0;
|
80
|
+
@extend %card-shadow;
|
81
|
+
|
82
|
+
@media (max-width: $grid-float-breakpoint) {
|
83
|
+
padding-left: 5px;
|
84
|
+
}
|
85
|
+
|
86
|
+
.dropdown-menu-nav-container {
|
87
|
+
@media (min-width: $grid-float-breakpoint) and (max-width: $screen-md-min) {
|
88
|
+
width: $grid-float-breakpoint;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.dropdown-menu-nav-extra_column {
|
94
|
+
@media (max-width: $grid-float-breakpoint) {
|
95
|
+
margin-top: -10px; // compensate for l-padded-thin
|
96
|
+
padding-top: 0;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
a.dropdown-menu-nav-link {
|
101
|
+
@include dropdown-content-style;
|
102
|
+
|
103
|
+
&:not(.dropdown-menu-nav-link-no_margin) {
|
104
|
+
margin-top: 10px;
|
105
|
+
|
106
|
+
@media (min-width: $screen-md-min) {
|
107
|
+
margin-top: 15px;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
.fa {
|
111
|
+
margin-right: 10px;
|
112
|
+
}
|
113
|
+
span {
|
114
|
+
font-family: inherit; // persist font-style for conditionally hidden or shown text (span class="hidden-md")
|
115
|
+
}
|
116
|
+
}
|
117
|
+
.dropdown-menu-account-item {
|
118
|
+
.dropdown-menu-nav-link {
|
119
|
+
@media (max-width: $grid-float-breakpoint) {
|
120
|
+
margin-top: $padding-small-vertical;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.dropdown-menu-nav-link-subhead {
|
126
|
+
display: block;
|
127
|
+
margin-top: -5px;
|
128
|
+
color: $color-gray-500;
|
129
|
+
font-size: $font-size-200;
|
130
|
+
}
|
131
|
+
.dropdown-menu-nav-bullets {
|
132
|
+
@media (max-width: $grid-float-breakpoint) {
|
133
|
+
margin-left: 10px;
|
134
|
+
}
|
135
|
+
a.dropdown-menu-nav-link {
|
136
|
+
font-size: $font-size-200 !important;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
.dropdown-menu-nav-description {
|
140
|
+
@include dropdown-content-style;
|
141
|
+
|
142
|
+
@media (max-width: $grid-float-breakpoint) {
|
143
|
+
font-size: $font-size-300;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
.dropdown-menu-nav-title {
|
147
|
+
margin-top: 10px;
|
148
|
+
|
149
|
+
@media (min-width: $screen-md-min) {
|
150
|
+
margin-top: 15px;
|
151
|
+
}
|
152
|
+
@media (max-width: $grid-float-breakpoint) {
|
153
|
+
font-size: $font-size-400;
|
154
|
+
}
|
155
|
+
}
|
@@ -5,19 +5,4 @@
|
|
5
5
|
top: 0;
|
6
6
|
left: 0;
|
7
7
|
z-index: $zindex-navbar-fixed;
|
8
|
-
|
9
|
-
&.is_scrolling {
|
10
|
-
@media (max-width: $screen-md-min) {
|
11
|
-
overflow-y: scroll;
|
12
|
-
-webkit-overflow-scrolling: touch; // smooth scrolling in mobile Safari
|
13
|
-
}
|
14
|
-
}
|
15
|
-
.navbar {
|
16
|
-
margin-bottom: 0;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
.body-fixed {
|
20
|
-
@media (max-width: $screen-md-min) {
|
21
|
-
position: fixed;
|
22
|
-
}
|
23
8
|
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
$nav-icon-width: 60px;
|
2
|
+
$nav-icon-margin: 3px;
|
3
|
+
|
4
|
+
@mixin chevron-style {
|
5
|
+
position: absolute;
|
6
|
+
right: 15px;
|
7
|
+
font-size: $font-size-default;
|
8
|
+
}
|
9
|
+
|
10
|
+
.nav-icon-stack {
|
11
|
+
width: $nav-icon-width;
|
12
|
+
padding: 7px 4px 4px 4px !important; // overriding .navbar-nav > li > a
|
13
|
+
text-align: center;
|
14
|
+
|
15
|
+
.fa {
|
16
|
+
display: block;
|
17
|
+
position: relative;
|
18
|
+
top: $nav-icon-margin;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.nav-icon-label {
|
22
|
+
font-size: $font-size-100;
|
23
|
+
line-height: $font-size-400;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Style offcanvas account icons consistent w/ product dropdowns
|
27
|
+
@media (max-width: $grid-float-breakpoint) {
|
28
|
+
.navbar-account_item .nav-icon-stack {
|
29
|
+
width: auto;
|
30
|
+
padding: 15px !important; // override .navbar .nav.navbar-nav > li > a
|
31
|
+
text-align: left;
|
32
|
+
|
33
|
+
.fa-chevron-down {
|
34
|
+
top: 15px;
|
35
|
+
}
|
36
|
+
.fa-chevron-right {
|
37
|
+
top: 15px;
|
38
|
+
@include chevron-style;
|
39
|
+
}
|
40
|
+
.nav-icon-label {
|
41
|
+
font-size: $font-size-500;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.navbar-default .navbar-nav {
|
47
|
+
.dropdown-toggle .fa-chevron-down {
|
48
|
+
margin-left: $nav-icon-margin;
|
49
|
+
font-size: 9px;
|
50
|
+
@include transition(transform 0.2s ease-in-out);
|
51
|
+
|
52
|
+
@media(max-width: $grid-float-breakpoint) {
|
53
|
+
@include chevron-style;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
.dropdown.open .dropdown-toggle .fa-chevron-down {
|
57
|
+
@include transform(rotate(180deg));
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
// Mobile Toggles
|
62
|
+
.navbar-default .navbar-toggle,
|
63
|
+
a.cart-icon {
|
64
|
+
height: $header_height;
|
65
|
+
width: $header_height;
|
66
|
+
margin-top: 0;
|
67
|
+
margin-right: 0;
|
68
|
+
margin-bottom: 0;
|
69
|
+
color: color('gray-600');
|
70
|
+
font-size: $font-size-default;
|
71
|
+
border: 0;
|
72
|
+
border-radius: 0;
|
73
|
+
z-index: $zindex-navbar-fixed; // make sure toggles appear above logo
|
74
|
+
|
75
|
+
&:hover,
|
76
|
+
&:active,
|
77
|
+
&:focus {
|
78
|
+
text-decoration: none;
|
79
|
+
background-color: transparent;
|
80
|
+
}
|
81
|
+
|
82
|
+
&.nav-icon-stack {
|
83
|
+
padding: 0 !important; // overriding .navbar-nav > li > a
|
84
|
+
}
|
85
|
+
&.pull-left {
|
86
|
+
@include nav-border(right);
|
87
|
+
}
|
88
|
+
&.navbar-toggle-close {
|
89
|
+
width: 100%;
|
90
|
+
padding: 0;
|
91
|
+
@include nav-border(bottom);
|
92
|
+
|
93
|
+
&:hover {
|
94
|
+
background-color: color('white');
|
95
|
+
cursor: pointer;
|
96
|
+
}
|
97
|
+
.nav-icon-stack {
|
98
|
+
height: $header_height;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
.fa-shopping-cart {
|
102
|
+
padding-top: 5px;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
a.cart-icon {
|
106
|
+
@media (max-width: $grid-float-breakpoint) {
|
107
|
+
position: absolute;
|
108
|
+
right: 0;
|
109
|
+
@include nav-border(left);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
.navbar-toggle-close-left {
|
113
|
+
@include nav-border(right);
|
114
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
// Styling for Vertical Nav lists
|
2
|
+
$header_active_border_height: 2px;
|
3
|
+
|
4
|
+
.nav {
|
5
|
+
&.nav-pills {
|
6
|
+
@extend %card-style;
|
7
|
+
}
|
8
|
+
|
9
|
+
.nav-item {
|
10
|
+
@include clearfix;
|
11
|
+
font-family: $font-face-regular;
|
12
|
+
font-size: $font-size-300;
|
13
|
+
|
14
|
+
.nav-item-list {
|
15
|
+
border: 0;
|
16
|
+
height: $header_height;
|
17
|
+
color: color('gray-500');
|
18
|
+
}
|
19
|
+
.nav-item-list {
|
20
|
+
@include border_highlight("left", transparent);
|
21
|
+
}
|
22
|
+
|
23
|
+
// For styleguide primary nav icon + text style
|
24
|
+
.nav-item-icon {
|
25
|
+
font-size: $font-size-400;
|
26
|
+
line-height: 20px;
|
27
|
+
vertical-align: bottom;
|
28
|
+
}
|
29
|
+
.nav-item-label {
|
30
|
+
line-height: 20px;
|
31
|
+
}
|
32
|
+
|
33
|
+
&:hover, &:focus {
|
34
|
+
.nav-item-list {
|
35
|
+
color: color('secondary');
|
36
|
+
background-color: color('gray-100');
|
37
|
+
}
|
38
|
+
.nav-item-list {
|
39
|
+
@include border_highlight("left");
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
@at-root #{&}.active {
|
44
|
+
.nav-item-list {
|
45
|
+
color: color('gray-600');
|
46
|
+
background-color: color('gray-100');
|
47
|
+
border-top: 1px solid color('gray-300');
|
48
|
+
border-bottom: 1px solid color('gray-300');
|
49
|
+
@include border_highlight("left", color("primary"));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// https://github.com/iamphill/Bootstrap-Offcanvas
|
2
|
+
$offcanvas-width: 270px !default;
|
3
|
+
$offcanvas-animation-time: .15s !default;
|
4
|
+
$offcanvas-media: $grid-float-breakpoint!default;
|
5
|
+
|
6
|
+
@media (max-width: $offcanvas-media) {
|
7
|
+
.offcanvas-stop-scrolling {
|
8
|
+
height: 100%;
|
9
|
+
overflow: hidden;
|
10
|
+
}
|
11
|
+
|
12
|
+
.navbar-default {
|
13
|
+
.navbar-offcanvas {
|
14
|
+
background-color: $nav-bg-color;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.navbar-offcanvas {
|
19
|
+
position: fixed;
|
20
|
+
width: 100%;
|
21
|
+
max-width: $offcanvas-width;
|
22
|
+
left: -$offcanvas-width;
|
23
|
+
top: 0;
|
24
|
+
z-index: $zindex-navbar-fixed + 1; // Make sure offcanvas nav is 'above' fixed header
|
25
|
+
overflow: scroll;
|
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) {
|
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) {
|
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,96 +1,107 @@
|
|
1
|
-
/* nav
|
2
|
-
---------------------------------------------------------------------------- */
|
3
|
-
|
4
|
-
$color-nav-bg: color('white');
|
5
|
-
$color-nav-active: color('gray-100');
|
6
|
-
$color-nav-hover: color('secondary');
|
7
1
|
$header_height: 50px;
|
8
|
-
$
|
2
|
+
$offcanvas-width: 270px;
|
3
|
+
$offcanvas-padding: 15px;
|
4
|
+
$nav-bg-color: color('gray-700');
|
9
5
|
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
@mixin nav-border($sides...) {
|
7
|
+
@each $side in $sides {
|
8
|
+
border-#{$side}: 1px solid color('gray-400');
|
13
9
|
}
|
10
|
+
}
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
12
|
+
// Basic styles - A lot of overriding Bootstrap defaults
|
13
|
+
.navbar-toggle {
|
14
|
+
@media (max-width: $grid-float-breakpoint) {
|
15
|
+
display: block;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.navbar-brand {
|
19
|
+
position: absolute;
|
20
|
+
width: 100%;
|
21
|
+
left: 0;
|
22
|
+
top: 0;
|
23
|
+
margin: auto;
|
24
|
+
padding: $padding-small-vertical 0 0;
|
25
|
+
text-align: center;
|
26
|
+
}
|
27
|
+
.navbar {
|
28
|
+
border-radius: 0;
|
29
|
+
border: none;
|
30
|
+
@extend %card-shadow;
|
28
31
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
-
.nav-item-list {
|
34
|
-
@include border_highlight("left", transparent);
|
35
|
-
}
|
32
|
+
.nav.navbar-nav {
|
33
|
+
margin-top: 0;
|
34
|
+
margin-bottom: 0;
|
36
35
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
vertical-align: bottom;
|
36
|
+
@media (max-width: $grid-float-breakpoint) {
|
37
|
+
margin-left: 0;
|
38
|
+
margin-right: 0;
|
41
39
|
}
|
42
40
|
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
> li > a {
|
42
|
+
height: $header_height;
|
43
|
+
color: color('gray-400');
|
44
|
+
font-size: $font-size-500;
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
color:
|
51
|
-
background-color: $color-nav-active;
|
46
|
+
@media (max-width: $grid-float-breakpoint) {
|
47
|
+
padding-top: $offcanvas-padding;
|
48
|
+
@include nav-border(top);
|
49
|
+
border-color: color('gray-600')
|
52
50
|
}
|
53
|
-
.nav-item-tab {
|
54
|
-
@include border_highlight("bottom");
|
55
51
|
|
56
|
-
|
57
|
-
|
58
|
-
|
52
|
+
@media (min-width: $grid-float-breakpoint) {
|
53
|
+
color: color('gray-600');
|
54
|
+
font-size: $font-size-default;
|
55
|
+
@include transition(all 0.2s ease-in-out);
|
59
56
|
}
|
60
|
-
|
61
|
-
@
|
57
|
+
&:hover {
|
58
|
+
@media (min-width: $grid-float-breakpoint) {
|
59
|
+
background-color: color('gray-300');
|
60
|
+
}
|
62
61
|
}
|
63
62
|
}
|
63
|
+
.dropdown.open > .dropdown-toggle {
|
64
|
+
color: color('white');
|
64
65
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
border-left: 1px solid color('gray-300');
|
66
|
+
@media (min-width: $grid-float-breakpoint) {
|
67
|
+
color: color('gray-400');
|
68
|
+
background-color: $nav-bg-color;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
> .active > a {
|
72
|
+
background-color: transparent;
|
73
73
|
|
74
|
+
&:hover,
|
75
|
+
&:focus {
|
74
76
|
@media (max-width: $grid-float-breakpoint) {
|
75
|
-
|
76
|
-
border-right: 1px solid color('gray-300');
|
77
|
-
border-bottom: 1px solid color('gray-300');
|
77
|
+
color: color('gray-400');
|
78
78
|
}
|
79
79
|
}
|
80
|
+
}
|
81
|
+
&.navbar-right {
|
82
|
+
margin-right: 0;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
80
86
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
border-bottom: 1px solid color('gray-300');
|
87
|
-
}
|
87
|
+
.navbar-account_item {
|
88
|
+
@media (min-width: $grid-float-breakpoint) {
|
89
|
+
@include nav-border(left);
|
90
|
+
}
|
91
|
+
}
|
88
92
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
93
|
+
.navbar-account-signed_out_btn {
|
94
|
+
position: absolute;
|
95
|
+
width: $offcanvas-width - ($offcanvas-padding * 2) - 5; // 5 = .dropdown-menu-nav padding-left
|
96
|
+
left: $offcanvas-padding + 5;
|
97
|
+
margin-top: $offcanvas-padding;
|
98
|
+
margin-bottom: $offcanvas-padding;
|
99
|
+
|
100
|
+
&.is_fixed_bottom {
|
101
|
+
bottom: 10px;
|
102
|
+
margin-bottom: 0;
|
103
|
+
}
|
104
|
+
.btn-action-icon {
|
105
|
+
margin-top: 2px;
|
95
106
|
}
|
96
107
|
}
|