bedrock_sass 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  8. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  9. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  10. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  11. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  12. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  13. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  14. data/assets/_vendor/foundation/scss/_global.scss +249 -0
  15. data/assets/_vendor/foundation/scss/components/_accordion-menu.scss +171 -0
  16. data/assets/_vendor/foundation/scss/components/_accordion.scss +155 -0
  17. data/assets/_vendor/foundation/scss/components/_badge.scss +63 -0
  18. data/assets/_vendor/foundation/scss/components/_breadcrumbs.scss +117 -0
  19. data/assets/_vendor/foundation/scss/components/_button-group.scss +253 -0
  20. data/assets/_vendor/foundation/scss/components/_button.scss +385 -0
  21. data/assets/_vendor/foundation/scss/components/_callout.scss +106 -0
  22. data/assets/_vendor/foundation/scss/components/_card.scss +129 -0
  23. data/assets/_vendor/foundation/scss/components/_close-button.scss +102 -0
  24. data/assets/_vendor/foundation/scss/components/_drilldown.scss +142 -0
  25. data/assets/_vendor/foundation/scss/components/_dropdown-menu.scss +274 -0
  26. data/assets/_vendor/foundation/scss/components/_dropdown.scss +79 -0
  27. data/assets/_vendor/foundation/scss/components/_flex-video.scss +1 -0
  28. data/assets/_vendor/foundation/scss/components/_flex.scss +117 -0
  29. data/assets/_vendor/foundation/scss/components/_float.scss +27 -0
  30. data/assets/_vendor/foundation/scss/components/_label.scss +64 -0
  31. data/assets/_vendor/foundation/scss/components/_media-object.scss +114 -0
  32. data/assets/_vendor/foundation/scss/components/_menu-icon.scss +9 -0
  33. data/assets/_vendor/foundation/scss/components/_menu.scss +495 -0
  34. data/assets/_vendor/foundation/scss/components/_off-canvas.scss +506 -0
  35. data/assets/_vendor/foundation/scss/components/_orbit.scss +196 -0
  36. data/assets/_vendor/foundation/scss/components/_pagination.scss +193 -0
  37. data/assets/_vendor/foundation/scss/components/_progress-bar.scss +64 -0
  38. data/assets/_vendor/foundation/scss/components/_responsive-embed.scss +70 -0
  39. data/assets/_vendor/foundation/scss/components/_reveal.scss +180 -0
  40. data/assets/_vendor/foundation/scss/components/_slider.scss +137 -0
  41. data/assets/_vendor/foundation/scss/components/_sticky.scss +39 -0
  42. data/assets/_vendor/foundation/scss/components/_switch.scss +247 -0
  43. data/assets/_vendor/foundation/scss/components/_table.scss +330 -0
  44. data/assets/_vendor/foundation/scss/components/_tabs.scss +196 -0
  45. data/assets/_vendor/foundation/scss/components/_thumbnail.scss +67 -0
  46. data/assets/_vendor/foundation/scss/components/_title-bar.scss +84 -0
  47. data/assets/_vendor/foundation/scss/components/_tooltip.scss +160 -0
  48. data/assets/_vendor/foundation/scss/components/_top-bar.scss +175 -0
  49. data/assets/_vendor/foundation/scss/components/_visibility.scss +132 -0
  50. data/assets/_vendor/foundation/scss/forms/_checkbox.scss +41 -0
  51. data/assets/_vendor/foundation/scss/forms/_error.scss +88 -0
  52. data/assets/_vendor/foundation/scss/forms/_fieldset.scss +53 -0
  53. data/assets/_vendor/foundation/scss/forms/_forms.scss +34 -0
  54. data/assets/_vendor/foundation/scss/forms/_help-text.scss +30 -0
  55. data/assets/_vendor/foundation/scss/forms/_input-group.scss +142 -0
  56. data/assets/_vendor/foundation/scss/forms/_label.scss +50 -0
  57. data/assets/_vendor/foundation/scss/forms/_meter.scss +116 -0
  58. data/assets/_vendor/foundation/scss/forms/_progress.scss +94 -0
  59. data/assets/_vendor/foundation/scss/forms/_range.scss +149 -0
  60. data/assets/_vendor/foundation/scss/forms/_select.scss +86 -0
  61. data/assets/_vendor/foundation/scss/forms/_text.scss +179 -0
  62. data/assets/_vendor/foundation/scss/foundation.scss +133 -0
  63. data/assets/_vendor/foundation/scss/grid/_classes.scss +176 -0
  64. data/assets/_vendor/foundation/scss/grid/_column.scss +112 -0
  65. data/assets/_vendor/foundation/scss/grid/_flex-grid.scss +259 -0
  66. data/assets/_vendor/foundation/scss/grid/_grid.scss +48 -0
  67. data/assets/_vendor/foundation/scss/grid/_gutter.scss +82 -0
  68. data/assets/_vendor/foundation/scss/grid/_layout.scss +76 -0
  69. data/assets/_vendor/foundation/scss/grid/_position.scss +76 -0
  70. data/assets/_vendor/foundation/scss/grid/_row.scss +99 -0
  71. data/assets/_vendor/foundation/scss/grid/_size.scss +24 -0
  72. data/assets/_vendor/foundation/scss/prototype/_arrow.scss +36 -0
  73. data/assets/_vendor/foundation/scss/prototype/_border-box.scss +35 -0
  74. data/assets/_vendor/foundation/scss/prototype/_border-none.scss +35 -0
  75. data/assets/_vendor/foundation/scss/prototype/_bordered.scss +54 -0
  76. data/assets/_vendor/foundation/scss/prototype/_box.scss +23 -0
  77. data/assets/_vendor/foundation/scss/prototype/_display.scss +50 -0
  78. data/assets/_vendor/foundation/scss/prototype/_font-styling.scss +95 -0
  79. data/assets/_vendor/foundation/scss/prototype/_list-style-type.scss +95 -0
  80. data/assets/_vendor/foundation/scss/prototype/_overflow.scss +72 -0
  81. data/assets/_vendor/foundation/scss/prototype/_position.scss +114 -0
  82. data/assets/_vendor/foundation/scss/prototype/_prototype.scss +87 -0
  83. data/assets/_vendor/foundation/scss/prototype/_relation.scss +157 -0
  84. data/assets/_vendor/foundation/scss/prototype/_rotate.scss +31 -0
  85. data/assets/_vendor/foundation/scss/prototype/_rounded.scss +54 -0
  86. data/assets/_vendor/foundation/scss/prototype/_separator.scss +96 -0
  87. data/assets/_vendor/foundation/scss/prototype/_shadow.scss +43 -0
  88. data/assets/_vendor/foundation/scss/prototype/_sizing.scss +73 -0
  89. data/assets/_vendor/foundation/scss/prototype/_spacing.scss +204 -0
  90. data/assets/_vendor/foundation/scss/prototype/_text-decoration.scss +48 -0
  91. data/assets/_vendor/foundation/scss/prototype/_text-transformation.scss +48 -0
  92. data/assets/_vendor/foundation/scss/prototype/_text-utilities.scss +88 -0
  93. data/assets/_vendor/foundation/scss/settings/_settings.scss +869 -0
  94. data/assets/_vendor/foundation/scss/typography/_alignment.scss +22 -0
  95. data/assets/_vendor/foundation/scss/typography/_base.scss +509 -0
  96. data/assets/_vendor/foundation/scss/typography/_helpers.scss +80 -0
  97. data/assets/_vendor/foundation/scss/typography/_print.scss +86 -0
  98. data/assets/_vendor/foundation/scss/typography/_typography.scss +26 -0
  99. data/assets/_vendor/foundation/scss/util/_breakpoint.scss +348 -0
  100. data/assets/_vendor/foundation/scss/util/_color.scss +129 -0
  101. data/assets/_vendor/foundation/scss/util/_direction.scss +31 -0
  102. data/assets/_vendor/foundation/scss/util/_flex.scss +85 -0
  103. data/assets/_vendor/foundation/scss/util/_math.scss +72 -0
  104. data/assets/_vendor/foundation/scss/util/_mixins.scss +313 -0
  105. data/assets/_vendor/foundation/scss/util/_selector.scss +41 -0
  106. data/assets/_vendor/foundation/scss/util/_typography.scss +26 -0
  107. data/assets/_vendor/foundation/scss/util/_unit.scss +152 -0
  108. data/assets/_vendor/foundation/scss/util/_util.scss +14 -0
  109. data/assets/_vendor/foundation/scss/util/_value.scss +160 -0
  110. data/assets/_vendor/foundation/scss/xy-grid/_cell.scss +169 -0
  111. data/assets/_vendor/foundation/scss/xy-grid/_classes.scss +476 -0
  112. data/assets/_vendor/foundation/scss/xy-grid/_collapse.scss +74 -0
  113. data/assets/_vendor/foundation/scss/xy-grid/_frame.scss +85 -0
  114. data/assets/_vendor/foundation/scss/xy-grid/_grid.scss +35 -0
  115. data/assets/_vendor/foundation/scss/xy-grid/_gutters.scss +45 -0
  116. data/assets/_vendor/foundation/scss/xy-grid/_layout.scss +33 -0
  117. data/assets/_vendor/foundation/scss/xy-grid/_position.scss +28 -0
  118. data/assets/_vendor/foundation/scss/xy-grid/_xy-grid.scss +51 -0
  119. data/assets/_vendor/motion-ui/_classes.scss +109 -0
  120. data/assets/_vendor/motion-ui/_settings.scss +61 -0
  121. data/assets/_vendor/motion-ui/effects/_fade.scss +32 -0
  122. data/assets/_vendor/motion-ui/effects/_hinge.scss +65 -0
  123. data/assets/_vendor/motion-ui/effects/_shake.scss +15 -0
  124. data/assets/_vendor/motion-ui/effects/_slide.scss +41 -0
  125. data/assets/_vendor/motion-ui/effects/_spin.scss +28 -0
  126. data/assets/_vendor/motion-ui/effects/_wiggle.scss +13 -0
  127. data/assets/_vendor/motion-ui/effects/_zoom.scss +15 -0
  128. data/assets/_vendor/motion-ui/motion-ui.scss +29 -0
  129. data/assets/_vendor/motion-ui/transitions/_fade.scss +28 -0
  130. data/assets/_vendor/motion-ui/transitions/_hinge.scss +43 -0
  131. data/assets/_vendor/motion-ui/transitions/_slide.scss +42 -0
  132. data/assets/_vendor/motion-ui/transitions/_spin.scss +39 -0
  133. data/assets/_vendor/motion-ui/transitions/_zoom.scss +39 -0
  134. data/assets/_vendor/motion-ui/util/_animation.scss +7 -0
  135. data/assets/_vendor/motion-ui/util/_args.scss +15 -0
  136. data/assets/_vendor/motion-ui/util/_keyframe.scss +136 -0
  137. data/assets/_vendor/motion-ui/util/_selector.scss +23 -0
  138. data/assets/_vendor/motion-ui/util/_series.scss +54 -0
  139. data/assets/_vendor/motion-ui/util/_transition.scss +45 -0
  140. data/assets/_vendor/motion-ui/util/_unit.scss +7 -0
  141. data/assets/bedrock/js/bedrock.js +22993 -0
  142. data/assets/bedrock/scss/_bedrock-components.scss +15 -0
  143. data/assets/bedrock/scss/_bedrock-settings.scss +45 -0
  144. data/assets/bedrock/scss/_foundation-components.scss +50 -0
  145. data/assets/bedrock/scss/_foundation-settings.scss +869 -0
  146. data/assets/bedrock/scss/bedrock.scss +7 -0
  147. data/assets/bedrock/scss/components/global.scss +55 -0
  148. data/assets/bedrock/scss/components/header.scss +60 -0
  149. data/assets/bedrock/scss/components/helper-classes.scss +53 -0
  150. data/assets/bedrock/scss/components/logo-bar.scss +45 -0
  151. data/assets/bedrock/scss/components/off-canvas-menu.scss +359 -0
  152. data/assets/bedrock/scss/components/panel.scss +121 -0
  153. data/assets/bedrock/scss/components/tiny-mce-editor.scss +74 -0
  154. data/lib/bedrock_sass/version.rb +1 -1
  155. metadata +153 -2
@@ -0,0 +1,274 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group dropdown-menu
7
+ ////
8
+
9
+ /// Enables arrows for items with dropdown menus.
10
+ /// @type Boolean
11
+ $dropdownmenu-arrows: true !default;
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
+
25
+ /// Minimum width of dropdown sub-menus.
26
+ /// @type Length
27
+ $dropdownmenu-min-width: 200px !default;
28
+
29
+ /// Background color for top level items.
30
+ /// @type Color
31
+ $dropdownmenu-background: $white !default;
32
+
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.
50
+ /// @type List
51
+ $dropdownmenu-border: 1px solid $medium-gray !default;
52
+
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);
57
+
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;
61
+
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
+ }
76
+
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%;
87
+ right: 0;
88
+ left: auto;
89
+ }
90
+ }
91
+
92
+ > li.opens-right {
93
+ > .is-dropdown-submenu {
94
+ top: 100%;
95
+ right: auto;
96
+ left: 0;
97
+ }
98
+ }
99
+
100
+ @if $dropdownmenu-arrows {
101
+ > li.is-dropdown-submenu-parent > a {
102
+ position: relative;
103
+ padding-#{$global-right}: $dropdownmenu-arrow-padding;
104
+ }
105
+
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;
118
+ }
119
+
120
+ &.opens-left {
121
+ > .is-dropdown-submenu {
122
+ right: 100%;
123
+ left: auto;
124
+ top: 0;
125
+ }
126
+ }
127
+
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;
137
+ }
138
+ }
139
+ }
140
+ @else {
141
+ @warn 'The direction used for dropdown-menu-direction() must be horizontal or vertical.';
142
+ }
143
+ }
144
+
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
+ }
184
+ }
185
+
186
+ &.align-right {
187
+ .is-dropdown-submenu.first-sub {
188
+ top: 100%;
189
+ right: 0;
190
+ left: auto;
191
+ }
192
+ }
193
+ }
194
+
195
+ .is-dropdown-menu.vertical {
196
+ width: 100px;
197
+
198
+ &.align-right {
199
+ float: right;
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 {
215
+
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;
232
+ left: 100%;
233
+ }
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
+ }
274
+ }
@@ -0,0 +1,79 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group dropdown
7
+ ////
8
+
9
+ /// Padding for dropdown panes.
10
+ /// @type List
11
+ $dropdown-padding: 1rem !default;
12
+
13
+ /// Background for dropdown panes.
14
+ /// @type Color
15
+ $dropdown-background: $body-background !default;
16
+
17
+ /// Border for dropdown panes.
18
+ /// @type List
19
+ $dropdown-border: 1px solid $medium-gray !default;
20
+
21
+ /// Font size for dropdown panes.
22
+ /// @type List
23
+ $dropdown-font-size: 1rem !default;
24
+
25
+ /// Width for dropdown panes.
26
+ /// @type Number
27
+ $dropdown-width: 300px !default;
28
+
29
+ /// Border radius dropdown panes.
30
+ /// @type Number
31
+ $dropdown-radius: $global-radius !default;
32
+
33
+ /// Sizes for dropdown panes. Each size is a CSS class you can apply.
34
+ /// @type Map
35
+ $dropdown-sizes: (
36
+ tiny: 100px,
37
+ small: 200px,
38
+ large: 400px,
39
+ ) !default;
40
+
41
+ /// Applies styles for a basic dropdown.
42
+ @mixin dropdown-container {
43
+ position: absolute;
44
+ z-index: 10;
45
+
46
+ width: $dropdown-width;
47
+ padding: $dropdown-padding;
48
+
49
+ visibility: hidden;
50
+ display: none;
51
+ border: $dropdown-border;
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
+ }
62
+
63
+ &.is-open {
64
+ visibility: visible;
65
+ display: block;
66
+ }
67
+ }
68
+
69
+ @mixin foundation-dropdown {
70
+ .dropdown-pane {
71
+ @include dropdown-container;
72
+ }
73
+
74
+ @each $name, $size in $dropdown-sizes {
75
+ .dropdown-pane.#{$name} {
76
+ width: $size;
77
+ }
78
+ }
79
+ }
@@ -0,0 +1 @@
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
+ }
@@ -0,0 +1,27 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group float
7
+ ////
8
+
9
+ @mixin foundation-float-classes {
10
+ .float-left {
11
+ float: left !important;
12
+ }
13
+
14
+ .float-right {
15
+ float: right !important;
16
+ }
17
+
18
+ .float-center {
19
+ display: block;
20
+ margin-right: auto;
21
+ margin-left: auto;
22
+ }
23
+
24
+ .clearfix {
25
+ @include clearfix;
26
+ }
27
+ }
@@ -0,0 +1,64 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group label
7
+ ////
8
+
9
+ /// Default background color for labels.
10
+ /// @type Color
11
+ $label-background: $primary-color !default;
12
+
13
+ /// Default text color for labels.
14
+ /// @type Color
15
+ $label-color: $white !default;
16
+
17
+ /// Alternate text color for labels.
18
+ /// @type Color
19
+ $label-color-alt: $black !default;
20
+
21
+ /// Coloring classes. A map of classes to output in your CSS, like `.secondary`, `.success`, and so on.
22
+ /// @type Map
23
+ $label-palette: $foundation-palette !default;
24
+
25
+ /// Default font size for labels.
26
+ /// @type Number
27
+ $label-font-size: 0.8rem !default;
28
+
29
+ /// Default padding inside labels.
30
+ /// @type Number
31
+ $label-padding: 0.33333rem 0.5rem !default;
32
+
33
+ /// Default radius of labels.
34
+ /// @type Number
35
+ $label-radius: $global-radius !default;
36
+
37
+ /// Generates base styles for a label.
38
+ @mixin label {
39
+ display: inline-block;
40
+ padding: $label-padding;
41
+
42
+ border-radius: $label-radius;
43
+
44
+ font-size: $label-font-size;
45
+ line-height: 1;
46
+ white-space: nowrap;
47
+ cursor: default;
48
+ }
49
+
50
+ @mixin foundation-label {
51
+ .label {
52
+ @include label;
53
+
54
+ background: $label-background;
55
+ color: $label-color;
56
+
57
+ @each $name, $color in $label-palette {
58
+ &.#{$name} {
59
+ background: $color;
60
+ color: color-pick-contrast($color, ($label-color, $label-color-alt));
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,114 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group media-object
7
+ ////
8
+
9
+ /// Bottom margin of a media object.
10
+ /// @type Number
11
+ $mediaobject-margin-bottom: $global-margin !default;
12
+
13
+ /// Left and right padding on sections within a media object.
14
+ /// @type Number
15
+ $mediaobject-section-padding: $global-padding !default;
16
+
17
+ /// Width of images within a media object, when the object is stacked vertically. Set to 'auto' to use the image's natural width.
18
+ /// @type Number
19
+ $mediaobject-image-width-stacked: 100% !default;
20
+
21
+ /// Adds styles for a media object container.
22
+ @mixin media-object-container {
23
+ display: if($global-flexbox, flex, block);
24
+ margin-bottom: $mediaobject-margin-bottom;
25
+
26
+ @if $global-flexbox {
27
+ flex-wrap: nowrap;
28
+ }
29
+ }
30
+
31
+ /// Adds styles for sections within a media object.
32
+ /// @param {Number} $padding [$mediaobject-section-padding] - Padding between sections.
33
+ @mixin media-object-section($padding: $mediaobject-section-padding) {
34
+ @if $global-flexbox {
35
+ flex: 0 1 auto;
36
+ }
37
+ @else {
38
+ display: table-cell;
39
+ vertical-align: top;
40
+ }
41
+
42
+ &:first-child {
43
+ padding-#{$global-right}: $padding;
44
+ }
45
+
46
+ &:last-child:not(:nth-child(2)) {
47
+ padding-#{$global-left}: $padding;
48
+ }
49
+
50
+ > :last-child {
51
+ margin-bottom: 0;
52
+ }
53
+ }
54
+
55
+ /// Adds styles to stack sections of a media object. Apply this to the section elements, not the container.
56
+ @mixin media-object-stack {
57
+ padding: 0;
58
+ padding-bottom: $mediaobject-section-padding;
59
+
60
+ @if $global-flexbox {
61
+ flex-basis: 100%;
62
+ max-width: 100%;
63
+ }
64
+ @else {
65
+ display: block;
66
+ }
67
+
68
+ img {
69
+ width: $mediaobject-image-width-stacked;
70
+ }
71
+ }
72
+
73
+ @mixin foundation-media-object {
74
+ .media-object {
75
+ @include media-object-container;
76
+
77
+ img {
78
+ max-width: none;
79
+ }
80
+
81
+ @if $global-flexbox {
82
+ &.stack-for-#{$-zf-zero-breakpoint} {
83
+ @include breakpoint($-zf-zero-breakpoint only) {
84
+ flex-wrap: wrap;
85
+ }
86
+ }
87
+ }
88
+
89
+ &.stack-for-#{$-zf-zero-breakpoint} .media-object-section {
90
+ @include breakpoint($-zf-zero-breakpoint only) {
91
+ @include media-object-stack;
92
+ }
93
+ }
94
+ }
95
+
96
+ .media-object-section {
97
+ @include media-object-section;
98
+
99
+ @if $global-flexbox {
100
+ &.main-section {
101
+ flex: 1 1 0px; // sass-lint:disable-line zero-unit
102
+ }
103
+ }
104
+ @else {
105
+ &.middle {
106
+ vertical-align: middle;
107
+ }
108
+
109
+ &.bottom {
110
+ vertical-align: bottom;
111
+ }
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,9 @@
1
+ @mixin foundation-menu-icon {
2
+ .menu-icon {
3
+ @include hamburger($color: $titlebar-icon-color, $color-hover: $titlebar-icon-color-hover);
4
+ }
5
+
6
+ .menu-icon.dark {
7
+ @include hamburger;
8
+ }
9
+ }