locomotivecms_wagon 2.4.0.rc2 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
  3. data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
  4. data/generators/foundation/public/stylesheets/_settings.scss +455 -115
  5. data/generators/foundation/public/stylesheets/app.css +0 -3
  6. data/generators/foundation/public/stylesheets/app.scss +15 -6
  7. data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
  8. data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
  9. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
  10. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
  11. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
  12. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
  13. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
  14. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
  15. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
  16. data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
  17. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
  18. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
  19. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
  20. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
  21. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
  22. data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
  23. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
  24. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
  25. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
  26. data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
  27. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
  28. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
  29. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
  30. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
  31. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
  32. data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
  34. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
  35. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
  36. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
  37. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
  38. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
  39. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
  40. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
  41. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
  42. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
  43. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
  44. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
  45. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
  46. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
  47. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
  48. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
  49. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
  50. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
  51. data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
  52. data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
  53. data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
  54. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
  55. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
  56. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
  57. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
  58. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
  59. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
  60. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
  61. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
  62. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
  63. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
  64. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
  65. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
  66. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
  67. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
  68. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
  69. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
  70. data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
  71. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
  72. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
  73. data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
  74. data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
  75. data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
  76. data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
  77. data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
  78. data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
  80. data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
  81. data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
  82. data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
  83. data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
  84. data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
  85. data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
  86. data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
  87. data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
  88. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
  89. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
  90. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
  91. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
  92. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
  93. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
  94. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
  95. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
  96. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
  97. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
  98. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
  99. data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
  100. data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
  101. data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
  102. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
  103. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
  104. data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
  105. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
  106. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
  107. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
  108. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
  109. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  110. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  111. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  112. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  113. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  114. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  115. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  116. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  117. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  118. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  119. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  120. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
  121. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
  122. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
  123. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
  124. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
  125. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
  126. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
  127. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
  128. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
  129. data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
  130. data/lib/locomotive/wagon/version.rb +1 -1
  131. data/locomotivecms_wagon.gemspec +2 -2
  132. data/spec/fixtures/cassettes/authenticate.yml +102 -48
  133. data/spec/fixtures/cassettes/delete.yml +519 -259
  134. data/spec/fixtures/cassettes/push.yml +2724 -1486
  135. metadata +61 -10
  136. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
  137. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -10,100 +10,184 @@
10
10
  /// @type Boolean
11
11
  $dropdownmenu-arrows: true !default;
12
12
 
13
+ /// Sets dropdown menu arrow color if arrow is used.
14
+ /// @type Color
15
+ $dropdownmenu-arrow-color: $anchor-color !default;
16
+
17
+ /// Sets dropdown menu arrow size if arrow is used.
18
+ /// @type Length
19
+ $dropdownmenu-arrow-size: 6px !default;
20
+
21
+ /// Sets dropdown menu arrow padding for aligning the arrow correctly.
22
+ /// @type Length
23
+ $dropdownmenu-arrow-padding: 1.5rem !default;
24
+
13
25
  /// Minimum width of dropdown sub-menus.
14
26
  /// @type Length
15
27
  $dropdownmenu-min-width: 200px !default;
16
28
 
17
- /// Background color for dropdowns.
29
+ /// Background color for top level items.
18
30
  /// @type Color
19
31
  $dropdownmenu-background: $white !default;
20
32
 
21
- /// Border for dropdown panes.
33
+ /// Background color for dropdowns.
34
+ /// @type Color
35
+ $dropdownmenu-submenu-background: $dropdownmenu-background !default;
36
+
37
+ /// Padding for top level items.
38
+ /// @type Number
39
+ $dropdownmenu-padding: $global-menu-padding !default;
40
+
41
+ /// Sets dropdown menu nested margin
42
+ /// @type Number
43
+ $dropdownmenu-nested-margin: 0 !default;
44
+
45
+ /// Padding for sub-menu items.
46
+ /// @type Number
47
+ $dropdownmenu-submenu-padding: $dropdownmenu-padding !default;
48
+
49
+ /// Border for dropdown sub-menus.
22
50
  /// @type List
23
- $dropdown-border: 1px solid $medium-gray !default;
51
+ $dropdownmenu-border: 1px solid $medium-gray !default;
24
52
 
25
- @mixin foundation-dropdown-menu {
26
- .dropdown.menu {
27
- .has-submenu {
28
- position: relative;
53
+ // Border width for dropdown sub-menus.
54
+ // Used to adjust top margin of a sub-menu if a border is used.
55
+ // @type Length
56
+ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
29
57
 
30
- a::after {
31
- float: right;
32
- margin-top: 3px;
33
- margin-left: 10px;
34
- }
58
+ /// Text color of an active dropdown menu item. Explicit override for menu defaults
59
+ /// @type Color
60
+ $dropdown-menu-item-color-active: get-color(primary) !default;
35
61
 
36
- @if $dropdownmenu-arrows {
37
- &.is-down-arrow a {
38
- padding-right: 1.5rem;
39
- position: relative;
40
- }
41
- &.is-down-arrow > a::after {
42
- @include css-triangle(5px, $anchor-color, down);
43
- position: absolute;
44
- top: 12px;
45
- right: 5px;
46
- }
47
- &.is-left-arrow > a::after {
48
- @include css-triangle(5px, $anchor-color, left);
49
- float: left;
50
- margin-left: 0;
51
- margin-right: 10px;
52
- }
53
- &.is-right-arrow > a::after {
54
- @include css-triangle(5px, $anchor-color, right);
55
- }
56
- }
62
+ /// Background color of an active dropdown menu item. Explicit override for menu defaults
63
+ /// @type Color
64
+ $dropdown-menu-item-background-active: transparent !default;
65
+
66
+ @mixin zf-dropdown-left-right-arrows {
67
+ > a::after {
68
+ #{$global-right}: 14px;
69
+ }
70
+
71
+ &.opens-left > a::after {
72
+ right: auto;
73
+ left: 5px;
74
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, left);
75
+ }
57
76
 
58
- &.is-left-arrow.opens-inner .submenu{
77
+ &.opens-right > a::after {
78
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, right);
79
+ }
80
+ }
81
+
82
+ @mixin dropdown-menu-direction($dir: horizontal) {
83
+ @if $dir == horizontal {
84
+ > li.opens-left {
85
+ > .is-dropdown-submenu {
86
+ top: 100%;
59
87
  right: 0;
60
88
  left: auto;
61
89
  }
62
- &.is-right-arrow.opens-inner .submenu{
63
- left: 0;
64
- right: auto;
65
- }
66
- &.opens-inner .submenu {
90
+ }
91
+
92
+ > li.opens-right {
93
+ > .is-dropdown-submenu {
67
94
  top: 100%;
95
+ right: auto;
96
+ left: 0;
68
97
  }
69
98
  }
70
99
 
71
- .submenu {
72
- display: none;
73
- position: absolute;
74
- top: 0;
75
- left: 100%;
76
- min-width: $dropdownmenu-min-width;
77
- z-index: 1;
78
- background: $dropdownmenu-background;
79
- border: $dropdown-border;
100
+ @if $dropdownmenu-arrows {
101
+ > li.is-dropdown-submenu-parent > a {
102
+ position: relative;
103
+ padding-#{$global-right}: $dropdownmenu-arrow-padding;
104
+ }
80
105
 
81
- > li {
82
- width: 100%;
106
+ > li.is-dropdown-submenu-parent > a::after {
107
+ @include css-triangle($dropdownmenu-arrow-size, $dropdownmenu-arrow-color, down);
108
+ #{$global-right}: 5px;
109
+ #{$global-left}: auto;
110
+ margin-top: -1 * ($dropdownmenu-arrow-size / 2);
111
+ }
112
+ }
113
+ }
114
+ @else if $dir == vertical {
115
+ > li {
116
+ .is-dropdown-submenu {
117
+ top: 0;
83
118
  }
84
119
 
85
- &.first-sub {
86
- top: 100%;
87
- left: 0;
88
- right: auto;
120
+ &.opens-left {
121
+ > .is-dropdown-submenu {
122
+ right: 100%;
123
+ left: auto;
124
+ top: 0;
125
+ }
89
126
  }
90
127
 
91
- &:not(.js-dropdown-nohover) > .has-submenu:hover > &,
92
- &.js-dropdown-active {
93
- display: block;
128
+ &.opens-right {
129
+ > .is-dropdown-submenu {
130
+ right: auto;
131
+ left: 100%;
132
+ }
133
+ }
134
+
135
+ @if $dropdownmenu-arrows {
136
+ @include zf-dropdown-left-right-arrows;
94
137
  }
95
138
  }
139
+ }
140
+ @else {
141
+ @warn 'The direction used for dropdown-menu-direction() must be horizontal or vertical.';
142
+ }
143
+ }
96
144
 
97
- .has-submenu.opens-left .submenu {
98
- left: auto;
99
- right: 100%;
145
+ @mixin foundation-dropdown-menu {
146
+ .dropdown.menu {
147
+ @include dropdown-menu-direction(horizontal);
148
+
149
+ a {
150
+ @include disable-mouse-outline;
151
+ padding: $dropdownmenu-padding;
152
+ }
153
+
154
+ // Active state
155
+ .is-active > a {
156
+ background: $dropdown-menu-item-background-active;
157
+ color: $dropdown-menu-item-color-active;
158
+ }
159
+
160
+ .no-js & ul {
161
+ display: none;
162
+ }
163
+
164
+ .nested.is-dropdown-submenu {
165
+ @include menu-nested($dropdownmenu-nested-margin);
166
+ }
167
+
168
+ &.vertical {
169
+ @include dropdown-menu-direction(vertical);
170
+ }
171
+
172
+ @each $size in $breakpoint-classes {
173
+ @if $size != $-zf-zero-breakpoint {
174
+ @include breakpoint($size) {
175
+ &.#{$size}-horizontal {
176
+ @include dropdown-menu-direction(horizontal);
177
+ }
178
+
179
+ &.#{$size}-vertical {
180
+ @include dropdown-menu-direction(vertical);
181
+ }
182
+ }
183
+ }
100
184
  }
101
185
 
102
186
  &.align-right {
103
- .submenu.first-sub {
187
+ .is-dropdown-submenu.first-sub {
104
188
  top: 100%;
105
- left: auto;
106
189
  right: 0;
190
+ left: auto;
107
191
  }
108
192
  }
109
193
  }
@@ -114,10 +198,77 @@ $dropdown-border: 1px solid $medium-gray !default;
114
198
  &.align-right {
115
199
  float: right;
116
200
  }
201
+ }
202
+
203
+ .is-dropdown-submenu-parent {
204
+ position: relative;
205
+
206
+ a::after {
207
+ position: absolute;
208
+ top: 50%;
209
+ #{$global-right}: 5px;
210
+ #{$global-left}: auto;
211
+ margin-top: -1 * $dropdownmenu-arrow-size;
212
+ }
213
+
214
+ &.opens-inner > .is-dropdown-submenu {
117
215
 
118
- > li .submenu {
119
- top: 0;
216
+ top: 100%;
217
+ @if $global-text-direction == 'rtl' {
218
+ right: auto;
219
+ }
220
+ @else {
221
+ left: auto;
222
+ }
223
+ }
224
+
225
+ &.opens-left > .is-dropdown-submenu {
226
+ right: 100%;
227
+ left: auto;
228
+ }
229
+
230
+ &.opens-right > .is-dropdown-submenu {
231
+ right: auto;
120
232
  left: 100%;
121
233
  }
122
234
  }
235
+
236
+ .is-dropdown-submenu {
237
+ position: absolute;
238
+ top: 0;
239
+ #{$global-left}: 100%;
240
+ z-index: 1;
241
+
242
+ display: none;
243
+ min-width: $dropdownmenu-min-width;
244
+
245
+ border: $dropdownmenu-border;
246
+ background: $dropdownmenu-submenu-background;
247
+
248
+ .dropdown & a {
249
+ padding: $dropdownmenu-submenu-padding;
250
+ }
251
+
252
+ .is-dropdown-submenu-parent {
253
+ @if $dropdownmenu-arrows {
254
+ @include zf-dropdown-left-right-arrows;
255
+ }
256
+ }
257
+
258
+ @if (type-of($dropdownmenu-border-width) == 'number') {
259
+ .is-dropdown-submenu {
260
+ margin-top: (-$dropdownmenu-border-width);
261
+ }
262
+ }
263
+
264
+ > li {
265
+ width: 100%;
266
+ }
267
+
268
+ // [TODO] Cut back specificity
269
+ //&: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...
270
+ &.js-dropdown-active {
271
+ display: block;
272
+ }
273
+ }
123
274
  }
@@ -10,13 +10,17 @@
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;
16
20
 
17
21
  /// Font size for dropdown panes.
18
22
  /// @type List
19
- $dropdown-font-size: 16rem !default;
23
+ $dropdown-font-size: 1rem !default;
20
24
 
21
25
  /// Width for dropdown panes.
22
26
  /// @type Number
@@ -36,18 +40,29 @@ $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
- display: block;
42
- padding: $dropdown-padding;
43
43
  position: absolute;
44
- visibility: hidden;
45
- width: 300px;
46
44
  z-index: 10;
45
+
46
+ width: $dropdown-width;
47
+ padding: $dropdown-padding;
48
+
49
+ visibility: hidden;
50
+ display: none;
51
+ border: $dropdown-border;
47
52
  border-radius: $dropdown-radius;
53
+ background-color: $dropdown-background;
54
+
55
+ font-size: $dropdown-font-size;
56
+
57
+
58
+ // Allow an intermittent state to do positioning before making visible.
59
+ &.is-opening {
60
+ display: block;
61
+ }
48
62
 
49
63
  &.is-open {
50
64
  visibility: visible;
65
+ display: block;
51
66
  }
52
67
  }
53
68
 
@@ -1,68 +1 @@
1
- // Foundation for Sites by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- ////
6
- /// @group flex-video
7
- ////
8
-
9
- /// Padding above a flex video container.
10
- /// @type Number
11
- $flexvideo-padding-top: rem-calc(25) !default;
12
-
13
- /// Margin below a flex video container.
14
- /// @type Number
15
- $flexvideo-margin-bottom: rem-calc(16) !default;
16
-
17
- /// Padding used to create a 4:3 aspect ratio.
18
- /// @type Number
19
- $flexvideo-ratio: 4 by 3 !default;
20
-
21
- /// Padding used to create a 16:9 aspect ratio.
22
- /// @type Number
23
- $flexvideo-ratio-widescreen: 16 by 9 !default;
24
-
25
- /// Creates a percentage height that can be used as padding in a flex video container.
26
- /// @param {List} $ratio - Ratio to use to calculate the height, formatted as `x by y`.
27
- /// @return {Number} A percentage value that can be used as the `padding-bottom` parameter of a flex video container.
28
- @function flex-video($ratio) {
29
- $w: nth($ratio, 1);
30
- $h: nth($ratio, 3);
31
- @return $h / $w * 100%;
32
- }
33
-
34
- /// Creates a flex video container.
35
- /// @param {List} $ratio [$flexvideo-ratio] - Ratio to use for the container, formatted as `x by y`.
36
- @mixin flex-video($ratio: $flexvideo-ratio) {
37
- position: relative;
38
- height: 0;
39
- padding-top: $flexvideo-padding-top;
40
- padding-bottom: flex-video($ratio);
41
- margin-bottom: $flexvideo-margin-bottom;
42
- overflow: hidden;
43
-
44
- iframe,
45
- object,
46
- embed,
47
- video {
48
- position: absolute;
49
- top: 0;
50
- #{$global-left}: 0;
51
- width: 100%;
52
- height: 100%;
53
- }
54
- }
55
-
56
- @mixin foundation-flex-video {
57
- .flex-video {
58
- @include flex-video;
59
-
60
- &.widescreen {
61
- padding-bottom: flex-video($flexvideo-ratio-widescreen);
62
- }
63
-
64
- &.vimeo {
65
- padding-top: 0;
66
- }
67
- }
68
- }
1
+ @import 'responsive-embed';
@@ -0,0 +1,117 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group Flexbox Utilities
7
+ ////
8
+ //
9
+ /// Default value for the count of source ordering`
10
+ /// @type Number
11
+ $flex-source-ordering-count: 6 !default;
12
+
13
+ /// Quickly disable/enable Responsive breakpoints for Vanilla Flex Helpers.
14
+ /// @type Boolean
15
+ $flexbox-responsive-breakpoints: true !default;
16
+
17
+ @mixin flex-helpers {
18
+ .flex-container {
19
+ @include flex;
20
+ }
21
+
22
+ .flex-child-auto {
23
+ flex: 1 1 auto;
24
+ }
25
+
26
+ .flex-child-grow {
27
+ flex: 1 0 auto;
28
+ }
29
+
30
+ .flex-child-shrink {
31
+ flex: 0 1 auto;
32
+ }
33
+
34
+ @each $dir, $prop in $-zf-flex-direction {
35
+ .flex-dir-#{$dir} {
36
+ @include flex-direction($prop);
37
+ }
38
+ }
39
+
40
+ @if ($flexbox-responsive-breakpoints) {
41
+ // Loop through Responsive Breakpoints
42
+ @each $size in $breakpoint-classes {
43
+ @include breakpoint($size) {
44
+ @if $size != $-zf-zero-breakpoint {
45
+ .#{$size}-flex-container {
46
+ @include flex;
47
+ }
48
+
49
+ .#{$size}-flex-child-auto {
50
+ flex: 1 1 auto;
51
+ }
52
+
53
+ .#{$size}-flex-child-grow {
54
+ flex: 1 0 auto;
55
+ }
56
+
57
+ .#{$size}-flex-child-shrink {
58
+ flex: 0 1 auto;
59
+ }
60
+
61
+ @each $dir, $prop in $-zf-flex-direction {
62
+ .#{$size}-flex-dir-#{$dir} {
63
+ @include flex-direction($prop);
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ @mixin foundation-flex-classes {
73
+ // Horizontal alignment using justify-content
74
+ @each $hdir, $prop in map-remove($-zf-flex-justify, 'left') {
75
+ .align-#{$hdir} {
76
+ @include flex-align($x: $hdir);
77
+ }
78
+ }
79
+
80
+ // Horizontal alignment Specifically for Vertical Menu
81
+ @each $hdir, $prop in map-remove($-zf-flex-justify, 'left', 'justify', 'spaced') {
82
+ .align-#{$hdir} {
83
+ &.vertical.menu > li > a {
84
+ @include flex-align($x: $hdir);
85
+ }
86
+ }
87
+ }
88
+
89
+ // Vertical alignment using align-items and align-self
90
+ @each $vdir, $prop in $-zf-flex-align {
91
+ .align-#{$vdir} {
92
+ @include flex-align($y: $vdir);
93
+ }
94
+
95
+ .align-self-#{$vdir} {
96
+ @include flex-align-self($y: $vdir);
97
+ }
98
+ }
99
+
100
+ // Central alignment of content
101
+ .align-center-middle {
102
+ @include flex-align($x: center, $y: middle);
103
+ align-content: center;
104
+ }
105
+
106
+ // Source ordering
107
+ @include -zf-each-breakpoint {
108
+ @for $i from 1 through $flex-source-ordering-count {
109
+ .#{$-zf-size}-order-#{$i} {
110
+ @include flex-order($i);
111
+ }
112
+ }
113
+ }
114
+
115
+ // Vanilla Flexbox Helpers
116
+ @include flex-helpers;
117
+ }