foundation-rails 6.2.4.0 → 6.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +2 -0
  4. data/bower.json +2 -2
  5. data/lib/foundation/rails/version.rb +1 -1
  6. data/lib/generators/foundation/templates/_settings.scss +117 -70
  7. data/lib/generators/foundation/templates/foundation_and_overrides.scss +2 -1
  8. data/vendor/assets/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  9. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  10. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  11. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  12. data/vendor/assets/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  13. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  14. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  15. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  16. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  17. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  18. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  19. data/vendor/assets/js/foundation.abide.js.es6 +28 -0
  20. data/vendor/assets/js/foundation.accordion.js.es6 +1 -1
  21. data/vendor/assets/js/foundation.accordionMenu.js.es6 +9 -1
  22. data/vendor/assets/js/foundation.core.js.es6 +4 -4
  23. data/vendor/assets/js/foundation.drilldown.js.es6 +128 -14
  24. data/vendor/assets/js/foundation.dropdown.js.es6 +48 -42
  25. data/vendor/assets/js/foundation.dropdownMenu.js.es6 +20 -18
  26. data/vendor/assets/js/foundation.equalizer.js.es6 +12 -6
  27. data/vendor/assets/js/foundation.interchange.js.es6 +3 -2
  28. data/vendor/assets/js/foundation.js.es6 +2 -1
  29. data/vendor/assets/js/foundation.magellan.js.es6 +28 -9
  30. data/vendor/assets/js/foundation.offcanvas.js.es6 +90 -123
  31. data/vendor/assets/js/foundation.orbit.js.es6 +61 -10
  32. data/vendor/assets/js/foundation.responsiveMenu.js.es6 +2 -0
  33. data/vendor/assets/js/foundation.responsiveToggle.js.es6 +52 -12
  34. data/vendor/assets/js/foundation.reveal.js.es6 +48 -48
  35. data/vendor/assets/js/foundation.slider.js.es6 +124 -42
  36. data/vendor/assets/js/foundation.sticky.js.es6 +11 -9
  37. data/vendor/assets/js/foundation.tabs.js.es6 +164 -35
  38. data/vendor/assets/js/foundation.toggler.js.es6 +3 -0
  39. data/vendor/assets/js/foundation.tooltip.js.es6 +20 -10
  40. data/vendor/assets/js/foundation.util.box.js.es6 +2 -2
  41. data/vendor/assets/js/foundation.util.keyboard.js.es6 +37 -0
  42. data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +16 -0
  43. data/vendor/assets/js/foundation.util.motion.js.es6 +7 -1
  44. data/vendor/assets/js/foundation.util.nest.js.es6 +10 -5
  45. data/vendor/assets/js/foundation.util.timerAndImageLoader.js.es6 +6 -4
  46. data/vendor/assets/js/foundation.util.triggers.js.es6 +54 -36
  47. data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js.es6 +240 -0
  48. data/vendor/assets/scss/_global.scss +25 -450
  49. data/vendor/assets/scss/components/_accordion-menu.scss +8 -4
  50. data/vendor/assets/scss/components/_accordion.scss +43 -22
  51. data/vendor/assets/scss/components/_badge.scss +17 -9
  52. data/vendor/assets/scss/components/_breadcrumbs.scss +7 -5
  53. data/vendor/assets/scss/components/_button-group.scss +54 -6
  54. data/vendor/assets/scss/components/_button.scss +27 -16
  55. data/vendor/assets/scss/components/_callout.scss +3 -2
  56. data/vendor/assets/scss/components/_card.scss +121 -0
  57. data/vendor/assets/scss/components/_close-button.scss +54 -13
  58. data/vendor/assets/scss/components/_drilldown.scss +19 -5
  59. data/vendor/assets/scss/components/_dropdown-menu.scss +23 -18
  60. data/vendor/assets/scss/components/_dropdown.scss +14 -7
  61. data/vendor/assets/scss/components/_flex-video.scss +1 -63
  62. data/vendor/assets/scss/components/_float.scss +1 -1
  63. data/vendor/assets/scss/components/_label.scss +16 -8
  64. data/vendor/assets/scss/components/_media-object.scss +2 -3
  65. data/vendor/assets/scss/components/_menu.scss +68 -33
  66. data/vendor/assets/scss/components/_off-canvas.scss +231 -80
  67. data/vendor/assets/scss/components/_orbit.scss +8 -6
  68. data/vendor/assets/scss/components/_pagination.scss +42 -22
  69. data/vendor/assets/scss/components/_progress-bar.scss +1 -1
  70. data/vendor/assets/scss/components/_responsive-embed.scss +66 -0
  71. data/vendor/assets/scss/components/_reveal.scss +17 -11
  72. data/vendor/assets/scss/components/_slider.scss +6 -1
  73. data/vendor/assets/scss/components/_sticky.scss +3 -3
  74. data/vendor/assets/scss/components/_switch.scss +47 -36
  75. data/vendor/assets/scss/components/_table.scss +83 -23
  76. data/vendor/assets/scss/components/_tabs.scss +54 -23
  77. data/vendor/assets/scss/components/_thumbnail.scss +17 -4
  78. data/vendor/assets/scss/components/_title-bar.scss +5 -6
  79. data/vendor/assets/scss/components/_tooltip.scss +15 -12
  80. data/vendor/assets/scss/components/_top-bar.scss +11 -8
  81. data/vendor/assets/scss/forms/_checkbox.scss +2 -1
  82. data/vendor/assets/scss/forms/_error.scss +10 -6
  83. data/vendor/assets/scss/forms/_fieldset.scss +7 -7
  84. data/vendor/assets/scss/forms/_input-group.scss +17 -11
  85. data/vendor/assets/scss/forms/_label.scss +2 -0
  86. data/vendor/assets/scss/forms/_meter.scss +9 -10
  87. data/vendor/assets/scss/forms/_progress.scss +9 -9
  88. data/vendor/assets/scss/forms/_range.scss +20 -15
  89. data/vendor/assets/scss/forms/_select.scss +26 -8
  90. data/vendor/assets/scss/forms/_text.scss +19 -16
  91. data/vendor/assets/scss/foundation.scss +19 -3
  92. data/vendor/assets/scss/grid/_classes.scss +31 -14
  93. data/vendor/assets/scss/grid/_column.scss +10 -24
  94. data/vendor/assets/scss/grid/_flex-grid.scss +84 -76
  95. data/vendor/assets/scss/grid/_grid.scss +0 -16
  96. data/vendor/assets/scss/grid/_gutter.scss +53 -5
  97. data/vendor/assets/scss/grid/_layout.scss +3 -3
  98. data/vendor/assets/scss/grid/_position.scss +3 -3
  99. data/vendor/assets/scss/grid/_row.scss +24 -19
  100. data/vendor/assets/scss/settings/_settings.scss +117 -70
  101. data/vendor/assets/scss/typography/_base.scss +110 -44
  102. data/vendor/assets/scss/typography/_helpers.scss +1 -0
  103. data/vendor/assets/scss/typography/_print.scss +7 -3
  104. data/vendor/assets/scss/typography/_typography.scss +0 -2
  105. data/vendor/assets/scss/util/_breakpoint.scss +28 -19
  106. data/vendor/assets/scss/util/_color.scss +69 -16
  107. data/vendor/assets/scss/util/_flex.scss +20 -3
  108. data/vendor/assets/scss/util/_math.scss +72 -0
  109. data/vendor/assets/scss/util/_mixins.scss +63 -26
  110. data/vendor/assets/scss/util/_selector.scss +3 -2
  111. data/vendor/assets/scss/util/_unit.scss +61 -4
  112. data/vendor/assets/scss/util/_util.scss +1 -0
  113. data/vendor/assets/scss/util/_value.scss +33 -0
  114. metadata +17 -2
@@ -44,12 +44,12 @@ $callout-link-tint: 30% !default;
44
44
 
45
45
  /// Adds basic styles for a callout, including padding and margin.
46
46
  @mixin callout-base() {
47
+ position: relative;
47
48
  margin: $callout-margin;
48
49
  padding: $callout-padding;
50
+
49
51
  border: $callout-border;
50
52
  border-radius: $callout-radius;
51
- position: relative;
52
- color: $callout-font-color;
53
53
 
54
54
  // Respect the padding, fool.
55
55
  > :first-child {
@@ -67,6 +67,7 @@ $callout-link-tint: 30% !default;
67
67
  $background: scale-color($color, $lightness: $callout-background-fade);
68
68
 
69
69
  background-color: $background;
70
+ color: color-pick-contrast($background, ($callout-font-color, $callout-font-color-alt));
70
71
  }
71
72
 
72
73
  @mixin callout-size($padding) {
@@ -0,0 +1,121 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group card
7
+ ////
8
+
9
+ /// Defualt background color.
10
+ /// @type Color
11
+ $card-background: $white !default;
12
+
13
+ /// Default font color for cards.
14
+ /// @type Color
15
+ $card-font-color: $body-font-color !default;
16
+
17
+ /// Default background.
18
+ /// @type Color
19
+ $card-divider-background: $light-gray !default;
20
+
21
+ /// Default border style.
22
+ /// @type List
23
+ $card-border: 1px solid $light-gray !default;
24
+
25
+ /// Default card shadow.
26
+ /// @type List
27
+ $card-shadow: none !default;
28
+
29
+ /// Default border radius.
30
+ /// @type List
31
+ $card-border-radius: $global-radius !default;
32
+
33
+ /// Default padding.
34
+ /// @type Number
35
+ $card-padding: $global-padding !default;
36
+
37
+ /// Default bottom margin.
38
+ /// @type number
39
+ $card-margin: $global-margin !default;
40
+
41
+ /// Adds styles for a card container.
42
+ /// @param {Color} $background - Background color of the card.
43
+ /// @param {Color} $color - font color of the card.
44
+ /// @param {Number} $margin - Bottom margin of the card.
45
+ /// @param {List} $border - Border around the card.
46
+ /// @param {List} $radius - border radius of the card.
47
+ /// @param {List} $shadow - box shadow of the card.
48
+ @mixin card-container(
49
+ $background: $card-background,
50
+ $color: $card-font-color,
51
+ $margin: $card-margin,
52
+ $border: $card-border,
53
+ $radius: $card-border-radius,
54
+ $shadow: $card-shadow
55
+ ) {
56
+ @if $global-flexbox {
57
+ display: flex;
58
+ flex-direction: column;
59
+ }
60
+
61
+ margin-bottom: $margin;
62
+
63
+ border: $border;
64
+ border-radius: $radius;
65
+
66
+ background: $background;
67
+ box-shadow: $shadow;
68
+
69
+ overflow: hidden;
70
+ color: $card-font-color;
71
+
72
+ & > :last-child {
73
+ margin-bottom: 0;
74
+ }
75
+ }
76
+
77
+ /// Adds styles for a card divider.
78
+ @mixin card-divider(
79
+ $background: $card-divider-background,
80
+ $padding: $card-padding
81
+ ) {
82
+ @if $global-flexbox {
83
+ flex: 0 1 auto;
84
+ }
85
+
86
+ padding: $padding;
87
+ background: $background;
88
+
89
+ & > :last-child {
90
+ margin-bottom: 0;
91
+ }
92
+ }
93
+
94
+ /// Adds styles for a card section.
95
+ @mixin card-section(
96
+ $padding: $card-padding
97
+ ) {
98
+ @if $global-flexbox {
99
+ flex: 1 0 auto;
100
+ }
101
+
102
+ padding: $padding;
103
+
104
+ & > :last-child {
105
+ margin-bottom: 0;
106
+ }
107
+ }
108
+
109
+ @mixin foundation-card {
110
+ .card {
111
+ @include card-container;
112
+ }
113
+
114
+ .card-divider {
115
+ @include card-divider;
116
+ }
117
+
118
+ .card-section {
119
+ @include card-section;
120
+ }
121
+ }
@@ -10,17 +10,26 @@
10
10
  /// @type List
11
11
  $closebutton-position: right top !default;
12
12
 
13
- /// Right (or left) offset for a close button.
14
- /// @type Number
15
- $closebutton-offset-horizontal: 1rem !default;
13
+ /// Right (or left) offset(s) for a close button.
14
+ /// @type Number|Map
15
+ $closebutton-offset-horizontal: (
16
+ small: 0.66rem,
17
+ medium: 1rem,
18
+ ) !default;
16
19
 
17
- /// Top (or bottom) offset for a close button.
18
- /// @type Number
19
- $closebutton-offset-vertical: 0.5rem !default;
20
+ /// Top (or bottom) offset(s) for a close button.
21
+ /// @type Number|Map
22
+ $closebutton-offset-vertical: (
23
+ small: 0.33em,
24
+ medium: 0.5rem,
25
+ ) !default;
20
26
 
21
- /// Default font size of the close button.
22
- /// @type Number
23
- $closebutton-size: 2em !default;
27
+ /// Default font size(s) of the close button.
28
+ /// @type Number|Map
29
+ $closebutton-size: (
30
+ small: 1.5em,
31
+ medium: 2em,
32
+ ) !default;
24
33
 
25
34
  /// The line-height of the close button. It affects the spacing of the element.
26
35
  /// @type Number
@@ -34,6 +43,39 @@ $closebutton-color: $dark-gray !default;
34
43
  /// @type Color
35
44
  $closebutton-color-hover: $black !default;
36
45
 
46
+
47
+ /// Get the size and position for a close button. If the input value is a number, the number is returned. If the input value is a config map and the map has the key `$size`, the value is returned.
48
+ ///
49
+ /// @param {Number|Map} $value - A number or map that represents the size or position value(s) of the close button.
50
+ /// @param {Keyword} $size - The size of the close button to use.
51
+ ///
52
+ /// @return {Number} The given number or the value found in the map.
53
+ @function -zf-get-size-val($value, $size) {
54
+ // Check if the value is a number
55
+ @if type-of($value) == 'number' {
56
+ // If it is, just return the number
57
+ @return $value;
58
+ }
59
+
60
+ // Check if the size name exists in the value map
61
+ @else if map-has-key($value, $size) {
62
+ // If it does, return the value
63
+ @return map-get($value, $size);
64
+ }
65
+ }
66
+
67
+ /// Sets the size and position of a close button.
68
+ /// @param {Keyword} $size [medium] - The size to use. Set to `small` to create a small close button. The 'medium' values defined in `$closebutton-*` variables will be used as the default size and position of the close button.
69
+ @mixin close-button-size($size) {
70
+ $x: nth($closebutton-position, 1);
71
+ $y: nth($closebutton-position, 2);
72
+
73
+ #{$x}: -zf-get-size-val($closebutton-offset-horizontal, $size);
74
+ #{$y}: -zf-get-size-val($closebutton-offset-vertical, $size);
75
+ font-size: -zf-get-size-val($closebutton-size, $size);
76
+ line-height: -zf-get-size-val($closebutton-lineheight, $size);
77
+ }
78
+
37
79
  /// Adds styles for a close button, using the styles in the settings variables.
38
80
  @mixin close-button {
39
81
  $x: nth($closebutton-position, 1);
@@ -42,10 +84,6 @@ $closebutton-color-hover: $black !default;
42
84
  @include disable-mouse-outline;
43
85
  position: absolute;
44
86
  color: $closebutton-color;
45
- #{$x}: $closebutton-offset-horizontal;
46
- #{$y}: $closebutton-offset-vertical;
47
- font-size: $closebutton-size;
48
- line-height: $closebutton-lineheight;
49
87
  cursor: pointer;
50
88
 
51
89
  &:hover,
@@ -57,5 +95,8 @@ $closebutton-color-hover: $black !default;
57
95
  @mixin foundation-close-button {
58
96
  .close-button {
59
97
  @include close-button;
98
+
99
+ &.small { @include close-button-size(small) }
100
+ &, &.medium { @include close-button-size(medium) }
60
101
  }
61
102
  }
@@ -18,6 +18,10 @@ $drilldown-arrows: true !default;
18
18
  /// @type Color
19
19
  $drilldown-arrow-color: $primary-color !default;
20
20
 
21
+ /// Sets drilldown arrow size if arrow is used.
22
+ /// @type Length
23
+ $drilldown-arrow-size: 6px !default;
24
+
21
25
  /// Background color for drilldown submenus.
22
26
  /// @type Color
23
27
  $drilldown-background: $white !default;
@@ -29,7 +33,11 @@ $drilldown-background: $white !default;
29
33
  overflow: hidden;
30
34
 
31
35
  li {
32
- display: block !important;
36
+ display: block;
37
+ }
38
+
39
+ &.animate-height {
40
+ transition: height 0.5s;
33
41
  }
34
42
  }
35
43
 
@@ -39,7 +47,7 @@ $drilldown-background: $white !default;
39
47
  top: 0;
40
48
  #{$global-left}: 100%;
41
49
  z-index: -1;
42
- // height: 100%;
50
+
43
51
  width: 100%;
44
52
  background: $drilldown-background;
45
53
  transition: $drilldown-transition;
@@ -55,25 +63,31 @@ $drilldown-background: $white !default;
55
63
  }
56
64
  }
57
65
 
66
+ .drilldown-submenu-cover-previous {
67
+ min-height: 100%;
68
+ }
69
+
58
70
  @if $drilldown-arrows {
59
71
  .is-drilldown-submenu-parent > a {
60
72
  position: relative;
61
73
 
62
74
  &::after {
63
- @include css-triangle(6px, $drilldown-arrow-color, $global-right);
75
+ @include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-right);
64
76
  position: absolute;
65
77
  top: 50%;
66
- margin-top: -6px;
78
+ margin-top: -1 * $drilldown-arrow-size;
67
79
  #{$global-right}: 1rem;
68
80
  }
69
81
  }
70
82
 
71
83
  .js-drilldown-back > a::before {
72
- @include css-triangle(6px, $drilldown-arrow-color, $global-left);
84
+ @include css-triangle($drilldown-arrow-size, $drilldown-arrow-color, $global-left);
73
85
  border-#{$global-left}-width: 0;
74
86
  display: inline-block;
75
87
  vertical-align: middle;
76
88
  margin-#{$global-right}: 0.75rem; // Creates space between the arrow and the text
89
+
90
+ border-#{$global-left}-width: 0;
77
91
  }
78
92
  }
79
93
  }
@@ -14,6 +14,10 @@ $dropdownmenu-arrows: true !default;
14
14
  /// @type Color
15
15
  $dropdownmenu-arrow-color: $anchor-color !default;
16
16
 
17
+ /// Sets dropdown menu arrow size if arrow is used.
18
+ /// @type Length
19
+ $dropdownmenu-arrow-size: 6px !default;
20
+
17
21
  /// Minimum width of dropdown sub-menus.
18
22
  /// @type Length
19
23
  $dropdownmenu-min-width: 200px !default;
@@ -34,15 +38,14 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
34
38
  @mixin left-right-arrows {
35
39
  > a::after {
36
40
  #{$global-right}: 14px;
37
- margin-top: -3px;
38
41
  }
39
42
 
40
43
  &.opens-left > a::after {
41
- @include css-triangle(5px, $dropdownmenu-arrow-color, left);
44
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left);
42
45
  }
43
46
 
44
47
  &.opens-right > a::after {
45
- @include css-triangle(5px, $dropdownmenu-arrow-color, right);
48
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, right);
46
49
  }
47
50
  }
48
51
 
@@ -50,30 +53,30 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
50
53
  @if $dir == horizontal {
51
54
  > li.opens-left {
52
55
  > .is-dropdown-submenu {
53
- left: auto;
54
- right: 0;
55
56
  top: 100%;
57
+ right: 0;
58
+ left: auto;
56
59
  }
57
60
  }
58
61
 
59
62
  > li.opens-right {
60
63
  > .is-dropdown-submenu {
64
+ top: 100%;
61
65
  right: auto;
62
66
  left: 0;
63
- top: 100%;
64
67
  }
65
68
  }
66
69
 
67
70
  @if $dropdownmenu-arrows {
68
71
  > li.is-dropdown-submenu-parent > a {
69
- padding-#{$global-right}: 1.5rem;
70
72
  position: relative;
73
+ padding-#{$global-right}: 1.5rem;
71
74
  }
72
75
 
73
76
  > li.is-dropdown-submenu-parent > a::after {
74
- @include css-triangle(5px, $dropdownmenu-arrow-color, down);
77
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, down);
75
78
  #{$global-right}: 5px;
76
- margin-top: -2px;
79
+ margin-top: -1 * ($dropdownmenu-arrow-size / 2);
77
80
  }
78
81
  }
79
82
  }
@@ -85,8 +88,8 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
85
88
 
86
89
  &.opens-left {
87
90
  > .is-dropdown-submenu {
88
- left: auto;
89
91
  right: 100%;
92
+ left: auto;
90
93
  }
91
94
  }
92
95
 
@@ -140,8 +143,8 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
140
143
  &.align-right {
141
144
  .is-dropdown-submenu.first-sub {
142
145
  top: 100%;
143
- left: auto;
144
146
  right: 0;
147
+ left: auto;
145
148
  }
146
149
  }
147
150
  }
@@ -161,7 +164,7 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
161
164
  position: absolute;
162
165
  top: 50%;
163
166
  #{$global-right}: 5px;
164
- margin-top: -2px;
167
+ margin-top: -1 * $dropdownmenu-arrow-size;
165
168
  }
166
169
 
167
170
  &.opens-inner > .is-dropdown-submenu {
@@ -169,14 +172,15 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
169
172
  top: 100%;
170
173
  @if $global-text-direction == 'rtl' {
171
174
  right: auto;
172
- } @else {
175
+ }
176
+ @else {
173
177
  left: auto;
174
178
  }
175
179
  }
176
180
 
177
181
  &.opens-left > .is-dropdown-submenu {
178
- left: auto;
179
182
  right: 100%;
183
+ left: auto;
180
184
  }
181
185
 
182
186
  &.opens-right > .is-dropdown-submenu {
@@ -186,14 +190,16 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
186
190
  }
187
191
 
188
192
  .is-dropdown-submenu {
189
- display: none;
190
193
  position: absolute;
191
194
  top: 0;
192
195
  #{$global-left}: 100%;
193
- min-width: $dropdownmenu-min-width;
194
196
  z-index: 1;
195
- background: $dropdownmenu-background;
197
+
198
+ display: none;
199
+ min-width: $dropdownmenu-min-width;
200
+
196
201
  border: $dropdownmenu-border;
202
+ background: $dropdownmenu-background;
197
203
 
198
204
  .is-dropdown-submenu-parent {
199
205
  @if $dropdownmenu-arrows {
@@ -212,7 +218,6 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
212
218
  }
213
219
 
214
220
  // [TODO] Cut back specificity
215
- // scss-lint:disable SelectorDepth
216
221
  //&:not(.js-dropdown-nohover) > .is-dropdown-submenu-parent:hover > &, // why is this line needed? Opening is handled by JS and this causes some ugly flickering when the sub is re-positioned automatically...
217
222
  &.js-dropdown-active {
218
223
  display: block;
@@ -10,6 +10,10 @@
10
10
  /// @type List
11
11
  $dropdown-padding: 1rem !default;
12
12
 
13
+ /// Background for dropdown panes.
14
+ /// @type Color
15
+ $dropdown-background: $body-background !default;
16
+
13
17
  /// Border for dropdown panes.
14
18
  /// @type List
15
19
  $dropdown-border: 1px solid $medium-gray !default;
@@ -36,16 +40,19 @@ $dropdown-sizes: (
36
40
 
37
41
  /// Applies styles for a basic dropdown.
38
42
  @mixin dropdown-container {
39
- background-color: $body-background;
40
- border: $dropdown-border;
41
- border-radius: $dropdown-radius;
43
+ position: absolute;
44
+ z-index: 10;
45
+
42
46
  display: block;
43
- font-size: $dropdown-font-size;
47
+ width: $dropdown-width;
44
48
  padding: $dropdown-padding;
45
- position: absolute;
49
+
46
50
  visibility: hidden;
47
- width: $dropdown-width;
48
- z-index: 10;
51
+ border: $dropdown-border;
52
+ border-radius: $dropdown-radius;
53
+ background-color: $dropdown-background;
54
+
55
+ font-size: $dropdown-font-size;
49
56
 
50
57
  &.is-open {
51
58
  visibility: visible;