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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/forever_style_guide/default_avatar.jpg +0 -0
  3. data/app/assets/images/forever_style_guide/forever-logo.jpg +0 -0
  4. data/app/assets/javascripts/forever_style_guide/account-popover.js +0 -26
  5. data/app/assets/javascripts/forever_style_guide/offcanvas.js +213 -0
  6. data/app/assets/stylesheets/forever_style_guide/base/_bootstrap_reset.scss +5 -0
  7. data/app/assets/stylesheets/forever_style_guide/globals/_breakpoints.scss +1 -1
  8. data/app/assets/stylesheets/forever_style_guide/globals/_effects.scss +6 -0
  9. data/app/assets/stylesheets/forever_style_guide/globals/_mixins.scss +3 -0
  10. data/app/assets/stylesheets/forever_style_guide/modules/_all.scss +22 -22
  11. data/app/assets/stylesheets/forever_style_guide/modules/_button.scss +0 -5
  12. data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-account.scss +58 -0
  13. data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-ambassador.scss +93 -0
  14. data/app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns.scss +155 -0
  15. data/app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss +0 -15
  16. data/app/assets/stylesheets/forever_style_guide/modules/_nav-icons.scss +114 -0
  17. data/app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss +53 -0
  18. data/app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss +77 -0
  19. data/app/assets/stylesheets/forever_style_guide/modules/_nav.scss +84 -73
  20. data/app/assets/stylesheets/style_guide/modules/_hero_simple.scss +0 -1
  21. data/app/helpers/forever_style_guide/application_helper.rb +309 -1
  22. data/app/views/forever_style_guide/demo/footer.html.erb +1 -1
  23. data/app/views/forever_style_guide/demo/hero.html.erb +1 -3
  24. data/app/views/forever_style_guide/demo/hero_simple.html.erb +1 -3
  25. data/app/views/forever_style_guide/demo/navigation.html.erb +43 -27
  26. data/app/views/forever_style_guide/demo/promo_banner.html.erb +1 -3
  27. data/app/views/forever_style_guide/sections/components/navigation/_nav.erb +60 -0
  28. data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown.erb +37 -0
  29. data/app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown_menu.erb +61 -0
  30. data/app/views/forever_style_guide/sections/components/navigation/_nav_account_signed_out_mobile.erb +6 -0
  31. data/app/views/forever_style_guide/sections/components/navigation/_nav_ambassador_dropdown.erb +112 -0
  32. data/app/views/forever_style_guide/sections/components/navigation/_nav_community_dropdown.erb +99 -0
  33. data/app/views/forever_style_guide/sections/components/navigation/_nav_my_forever_dropdown.erb +142 -0
  34. data/app/views/forever_style_guide/sections/components/navigation/_nav_products_dropdown.erb +151 -0
  35. data/app/views/layouts/forever_style_guide/_navigation.erb +51 -29
  36. data/lib/forever_style_guide/version.rb +1 -1
  37. data/test/dummy/log/development.log +43794 -0
  38. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_all.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_button.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns-ambassador.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-dropdowns.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-fixed.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-icons.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav-offcanvas.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sass/1fccdb6be9da19cc345d4b92b55eb0d4fbf7c363/_nav.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_breakpoints.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_effects.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sass/44a991b1a17620dd9d4d80bb5c1b3e298e4ef98a/_mixins.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sass/77afe34ae60f4f73cffcc8a92e720a6db579269d/_hero_simple.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sass/b7a4a2cc1ae6dd8beea9163f40226a4c9c3e7926/_bootstrap_reset.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/13c6cfef7d2dae6157cb1e9a83970e58 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/16ae65fae89ac9713129ac86c08be0fd +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/4bdd1622b754cd161cd49f472086df2d +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/5889baf60874f32654f269b1976b11da +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/74ee448666a16d19f05d144192a607fd +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/82e2ab0c7f220d85a3306094f9170995 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/93ba27aa64423f74732b1f2b12b84118 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/a5339910db1afb33301cc638679d0cc2 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/b7c77fa9ddbae9998b1339d6c2c3eef0 +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/d139d4c466cbb442154adf9c2b8149f4 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/e4a50f6ac0abd0a5af7071d8eb233a48 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/ee286b59ae897606bfd68a7f060d5baf +0 -0
  63. data/test/dummy/tmp/pids/server.pid +1 -1
  64. metadata +19 -21
  65. data/app/assets/javascripts/forever_style_guide/nav-fixed.js +0 -28
  66. data/app/assets/javascripts/forever_style_guide/navbar.js +0 -9
  67. data/app/assets/stylesheets/forever_style_guide/modules/_account-popover.scss +0 -133
  68. data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-more.scss +0 -60
  69. data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-nav.scss +0 -66
  70. data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product-main.scss +0 -52
  71. data/app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product.scss +0 -82
  72. data/app/assets/stylesheets/forever_style_guide/modules/_navbar.scss +0 -132
  73. data/app/views/forever_style_guide/demo/navigation-fixed-signed-in-app.html.erb +0 -22
  74. data/app/views/forever_style_guide/demo/navigation-fixed-signed-in.html.erb +0 -22
  75. data/app/views/forever_style_guide/demo/navigation-fixed.html.erb +0 -28
  76. data/app/views/forever_style_guide/sections/components/_navigation.html.erb +0 -69
  77. data/app/views/forever_style_guide/sections/components/navigation/_account_popover.erb +0 -71
  78. data/app/views/forever_style_guide/sections/components/navigation/_basic.erb +0 -33
  79. data/app/views/forever_style_guide/sections/components/navigation/_dropdown.erb +0 -119
  80. data/app/views/forever_style_guide/sections/components/navigation/_marketing.erb +0 -155
  81. data/app/views/forever_style_guide/sections/components/navigation/_marketing_signed_in.erb +0 -155
  82. data/app/views/forever_style_guide/sections/components/navigation/_signed_in.erb +0 -113
  83. data/app/views/forever_style_guide/sections/components/navigation/_stacked.erb +0 -22
@@ -1 +1 @@
1
- 2004
1
+ 13542
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: 2.0.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas McClay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-27 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -201,6 +201,8 @@ files:
201
201
  - app/assets/images/forever_style_guide/artisan-logo-sm.png
202
202
  - app/assets/images/forever_style_guide/artisan-logo.png
203
203
  - app/assets/images/forever_style_guide/check.png
204
+ - app/assets/images/forever_style_guide/default_avatar.jpg
205
+ - app/assets/images/forever_style_guide/forever-logo.jpg
204
206
  - app/assets/images/forever_style_guide/forever-logo.png
205
207
  - app/assets/images/forever_style_guide/forever-swirl-logo.png
206
208
  - app/assets/images/forever_style_guide/historian-logo-sm.png
@@ -223,8 +225,7 @@ files:
223
225
  - app/assets/javascripts/forever_style_guide/application.js
224
226
  - app/assets/javascripts/forever_style_guide/hero-blur.js
225
227
  - app/assets/javascripts/forever_style_guide/list-toggle.js
226
- - app/assets/javascripts/forever_style_guide/nav-fixed.js
227
- - app/assets/javascripts/forever_style_guide/navbar.js
228
+ - app/assets/javascripts/forever_style_guide/offcanvas.js
228
229
  - app/assets/javascripts/forever_style_guide/popover.js
229
230
  - app/assets/javascripts/style_guide/application.js
230
231
  - app/assets/javascripts/style_guide/bootstrap-sprockets-custom.js
@@ -243,15 +244,10 @@ files:
243
244
  - app/assets/stylesheets/forever_style_guide/globals/_layout.scss
244
245
  - app/assets/stylesheets/forever_style_guide/globals/_mixins.scss
245
246
  - app/assets/stylesheets/forever_style_guide/globals/_variables.scss
246
- - app/assets/stylesheets/forever_style_guide/modules/_account-popover.scss
247
247
  - app/assets/stylesheets/forever_style_guide/modules/_all.scss
248
248
  - app/assets/stylesheets/forever_style_guide/modules/_avatar.scss
249
249
  - app/assets/stylesheets/forever_style_guide/modules/_button.scss
250
250
  - app/assets/stylesheets/forever_style_guide/modules/_checkbox.scss
251
- - app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-more.scss
252
- - app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-nav.scss
253
- - app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product-main.scss
254
- - app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu-product.scss
255
251
  - app/assets/stylesheets/forever_style_guide/modules/_dropdown-menu.scss
256
252
  - app/assets/stylesheets/forever_style_guide/modules/_fa-feature_bullet.scss
257
253
  - app/assets/stylesheets/forever_style_guide/modules/_footer.scss
@@ -263,9 +259,14 @@ files:
263
259
  - app/assets/stylesheets/forever_style_guide/modules/_input_groups.scss
264
260
  - app/assets/stylesheets/forever_style_guide/modules/_list-toggle.scss
265
261
  - app/assets/stylesheets/forever_style_guide/modules/_list.scss
262
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-account.scss
263
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns-ambassador.scss
264
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-dropdowns.scss
266
265
  - app/assets/stylesheets/forever_style_guide/modules/_nav-fixed.scss
266
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-icons.scss
267
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-item-list.scss
268
+ - app/assets/stylesheets/forever_style_guide/modules/_nav-offcanvas.scss
267
269
  - app/assets/stylesheets/forever_style_guide/modules/_nav.scss
268
- - app/assets/stylesheets/forever_style_guide/modules/_navbar.scss
269
270
  - app/assets/stylesheets/forever_style_guide/modules/_popover.scss
270
271
  - app/assets/stylesheets/forever_style_guide/modules/_progress.scss
271
272
  - app/assets/stylesheets/forever_style_guide/modules/_promo_banner.scss
@@ -292,9 +293,6 @@ files:
292
293
  - app/views/forever_style_guide/demo/footer.html.erb
293
294
  - app/views/forever_style_guide/demo/hero.html.erb
294
295
  - app/views/forever_style_guide/demo/hero_simple.html.erb
295
- - app/views/forever_style_guide/demo/navigation-fixed-signed-in-app.html.erb
296
- - app/views/forever_style_guide/demo/navigation-fixed-signed-in.html.erb
297
- - app/views/forever_style_guide/demo/navigation-fixed.html.erb
298
296
  - app/views/forever_style_guide/demo/navigation.html.erb
299
297
  - app/views/forever_style_guide/demo/promo_banner.html.erb
300
298
  - app/views/forever_style_guide/sections/branding/_colors.erb
@@ -303,7 +301,6 @@ files:
303
301
  - app/views/forever_style_guide/sections/components/_footer.erb
304
302
  - app/views/forever_style_guide/sections/components/_hero.erb
305
303
  - app/views/forever_style_guide/sections/components/_hero_simple.erb
306
- - app/views/forever_style_guide/sections/components/_navigation.html.erb
307
304
  - app/views/forever_style_guide/sections/components/_panel.erb
308
305
  - app/views/forever_style_guide/sections/components/_popover.erb
309
306
  - app/views/forever_style_guide/sections/components/_promo_banner.html.erb
@@ -311,13 +308,14 @@ files:
311
308
  - app/views/forever_style_guide/sections/components/_switch.erb
312
309
  - app/views/forever_style_guide/sections/components/footer/_footer.erb
313
310
  - app/views/forever_style_guide/sections/components/footer/_footer_demo.erb
314
- - app/views/forever_style_guide/sections/components/navigation/_account_popover.erb
315
- - app/views/forever_style_guide/sections/components/navigation/_basic.erb
316
- - app/views/forever_style_guide/sections/components/navigation/_dropdown.erb
317
- - app/views/forever_style_guide/sections/components/navigation/_marketing.erb
318
- - app/views/forever_style_guide/sections/components/navigation/_marketing_signed_in.erb
319
- - app/views/forever_style_guide/sections/components/navigation/_signed_in.erb
320
- - app/views/forever_style_guide/sections/components/navigation/_stacked.erb
311
+ - app/views/forever_style_guide/sections/components/navigation/_nav.erb
312
+ - app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown.erb
313
+ - app/views/forever_style_guide/sections/components/navigation/_nav_account_dropdown_menu.erb
314
+ - app/views/forever_style_guide/sections/components/navigation/_nav_account_signed_out_mobile.erb
315
+ - app/views/forever_style_guide/sections/components/navigation/_nav_ambassador_dropdown.erb
316
+ - app/views/forever_style_guide/sections/components/navigation/_nav_community_dropdown.erb
317
+ - app/views/forever_style_guide/sections/components/navigation/_nav_my_forever_dropdown.erb
318
+ - app/views/forever_style_guide/sections/components/navigation/_nav_products_dropdown.erb
321
319
  - app/views/forever_style_guide/sections/components/shared/_feature_bullet.erb
322
320
  - app/views/forever_style_guide/sections/css_guide/_best_practices.html.erb
323
321
  - app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
@@ -1,28 +0,0 @@
1
- $(function () {
2
- $('#header-is_fixed .dropdown').on('shown.bs.dropdown', function () {
3
- var windowHeight = $(window).height();
4
-
5
- // this timeout allows for the dropdown item to fully expand before height is calculated
6
- setTimeout(function() {
7
- var navHeight = ($('#header-is_fixed').outerHeight());
8
- if (navHeight >= windowHeight) {
9
- $('body').addClass('body-fixed');
10
- $('#header-is_fixed').css('max-height', windowHeight);
11
- $('#header-is_fixed').addClass('is_scrolling');
12
- };
13
- }, 250);
14
- $('.popover.account-popover').popover('hide');
15
- })
16
-
17
- // unfix body on dropdown close
18
- $('#header-is_fixed .dropdown').on('hidden.bs.dropdown', function () {
19
- $('body').removeClass('body-fixed');
20
- $('#header-is_fixed').removeClass('is_scrolling');
21
- })
22
-
23
- // unfix body on toggle nav close
24
- $('#header-is_fixed .navbar-collapse').on('hidden.bs.collapse', function () {
25
- $('body').removeClass('body-fixed');
26
- $('#header-is_fixed').removeClass('is_scrolling');
27
- })
28
- });
@@ -1,9 +0,0 @@
1
- $(function () {
2
- $('.dropdown-toggle').dropdown();
3
-
4
- $(document).on('click', '.navbar-dropdown .dropdown-menu', function(e) {
5
- e.stopPropagation()
6
- });
7
- });
8
-
9
-
@@ -1,133 +0,0 @@
1
- $webapp-popover-width: 375px;
2
- $webapp-popover-background: #333333;
3
-
4
- .popover.account-popover {
5
- width: $webapp-popover-width;
6
- max-width: $webapp-popover-width;
7
- position: relative;
8
- top: 0!important; //override default popover inline styles
9
- left: 0!important;
10
- padding: 0;
11
- margin-top: 0;
12
- border: 0;
13
- border-radius: $border-radius-large;
14
-
15
- .arrow {
16
- border-bottom-color: $color-gray-400;
17
- }
18
- .popover-content {
19
- padding: 0;
20
- }
21
- &.account-popover-mobile {
22
- width: 100%;
23
- max-width: 100%;
24
-
25
- .arrow {
26
- left: 37px!important; //override default popover inline styles
27
- }
28
- }
29
- }
30
- .account-popover-container {
31
- position: absolute;
32
- height: 0;
33
- right: 15px;
34
- top: 55px;
35
- overflow: visible;
36
- z-index: $zindex-popover;
37
- }
38
- .account-popover-trigger {
39
- padding: 0;
40
- text-align: left;
41
-
42
- &:hover {
43
- cursor: pointer;
44
- }
45
- @media (min-width: $screen-md-min) {
46
- float: right;
47
- }
48
-
49
- // switches at screen collapse breakpoint
50
- @media(max-width: $grid-float-breakpoint) {
51
- position: absolute;
52
- top: 10px;
53
- margin: 0;
54
- }
55
- .avatar {
56
- display: inline-block;
57
- margin-top: 5px;
58
- margin-right: 15px;
59
- float: left;
60
- }
61
- }
62
- .account-popover-user {
63
- display: inline-block;
64
- margin: 8px 10px 0 0;
65
- line-height: 1;
66
- max-width: 140px;
67
- white-space: nowrap;
68
- overflow: hidden;
69
- text-overflow: ellipsis;
70
-
71
- // switches at screen collapse breakpoint
72
- @media(max-width: $grid-float-breakpoint) {
73
- max-width: inherit;
74
- }
75
- }
76
- .account-popover-storage {
77
- .progress {
78
- margin: 10px 0;
79
- }
80
- }
81
- .account-popover-app {
82
- background-color: $webapp-popover-background;
83
- padding: 25px 35px 15px;
84
-
85
- .account-popover-link {
86
- display: block;
87
- margin-bottom: 10px;
88
-
89
- @media (min-width: $screen-md-min) {
90
- text-align: left;
91
- }
92
- }
93
- .fa {
94
- margin-right: 10px;
95
-
96
- @media (min-width: $screen-md-min) {
97
- margin-left: 10px;
98
- }
99
- }
100
- }
101
- .account-popover-settings {
102
- font-size: $font-size-large;
103
- background-color: color('white');
104
- border-bottom-right-radius: $border-radius-large;
105
- border-bottom-left-radius: $border-radius-large;
106
-
107
- .account-popover-link {
108
- color: color('gray-500');
109
-
110
- &:hover,
111
- &:active,
112
- &:focus {
113
- color: color('secondary');
114
- }
115
- // Applies a right-hand separator to the first two items of a three item list
116
- &:nth-child(-n+2) {
117
- padding-right: 10px;
118
- margin-right: 10px;
119
- border-right: 1px solid color('gray-700');
120
- }
121
- }
122
- }
123
- .account-popover-link {
124
- &.account-popover-link-text {
125
- color: color('text');
126
- }
127
- &.account-popover-link-warning {
128
- color: color('warning');
129
- }
130
- &.account-popover-link-danger {
131
- color: color('red');
132
- }
133
- }
@@ -1,60 +0,0 @@
1
- // "More" primary menu item dropdown
2
- .dropdown-menu-more {
3
- @media (min-width: $screen-md-min) {
4
- width: 540px;
5
- padding: 25px 40px 30px;
6
- }
7
- .dropdown-menu-more-link {
8
- display: block;
9
- padding-top: 10px;
10
- color: color('gray-500');
11
- font-size: $font-size-default;
12
-
13
- @media (min-width: $screen-md-min) {
14
- color: color('gray-600');
15
- font-size: $font-size-large;
16
- }
17
- &:hover,
18
- &:focus,
19
- &:active {
20
- color: color('secondary');
21
- background-color: transparent;
22
- background-image: none;
23
- text-decoration: none;
24
-
25
- .fa-circle {
26
- color: color('secondary');
27
- }
28
- .fa-stack-1x {
29
- @extend %text-shadow;
30
- }
31
- }
32
- }
33
- .fa-stack {
34
- margin-right: 5px;
35
- }
36
- .well {
37
- margin-bottom: 0;
38
- padding: 10px 0 15px 10px;
39
- border-radius: 0;
40
-
41
- @media (min-width: $screen-sm-min) {
42
- margin: 10px;
43
- border-radius: $border-radius-default;
44
- }
45
- @media (min-width: $screen-md-min) {
46
- margin: 0;
47
- }
48
- }
49
- }
50
- .dropdown-menu-more-featured {
51
- margin-bottom: 5px;
52
- }
53
- .dropdown-menu-more-list {
54
- padding: 10px 0 15px 25px;
55
-
56
- @media (min-width: $screen-md-min) {
57
- margin-top: -5px;
58
- padding: 0;
59
- }
60
- }
@@ -1,66 +0,0 @@
1
- // Primary Nav Dropdowns
2
- .dropdown-menu-nav {
3
- display: block;
4
- top: $header_height - $header_active_border_height;
5
- left: auto;
6
- padding: 0;
7
- max-height: 0;
8
- opacity: 0;
9
- visibility: hidden;
10
- overflow: hidden;
11
- @include border_highlight("top");
12
- @extend %card-shadow;
13
- @include transition(opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, max-height 0.3s ease-in-out);
14
-
15
- @media (max-width: $grid-float-breakpoint) {
16
- position: relative;
17
- top: 0;
18
- width: 100%;
19
- @include border_highlight("left");
20
- }
21
- &.dropdown-menu-full {
22
- left: 0;
23
- }
24
- }
25
-
26
- // navbar open styles
27
- .navbar-nav .open .dropdown-menu-nav,
28
- .nav-item.active .dropdown-menu-nav {
29
- border-bottom-left-radius: $border-radius-large;
30
- @include border_highlight("top");
31
-
32
- @media (max-width: $grid-float-breakpoint) {
33
- border-radius: 0;
34
- @include border_highlight("left");
35
- }
36
- }
37
- // navbar active open styles
38
- .nav-item.active .dropdown-menu-nav {
39
- @media (max-width: $grid-float-breakpoint) {
40
- @include border_highlight("left", color("primary"));
41
- }
42
- }
43
-
44
- @mixin show-dropdown {
45
- max-height: 500px;
46
- opacity: 1;
47
- visibility: visible;
48
- @include box-shadow($shadow-color, 0, 2px, 4px, 0);
49
- }
50
- // opens dropdown on hover instead of click
51
- .nav .dropdown:hover,
52
- .nav .dropdown.open {
53
- & > .dropdown-menu-nav {
54
- @media (min-width: $grid-float-breakpoint) {
55
- @include show-dropdown;
56
- }
57
- }
58
- }
59
- // mobile friendly 'click to open' behavior
60
- .nav .dropdown.open {
61
- & > .dropdown-menu-nav {
62
- @media (max-width: $grid-float-breakpoint) {
63
- @include show-dropdown;
64
- }
65
- }
66
- }