jekyll-theme-foundation 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +48 -0
  4. data/_includes/google-analytics.html +8 -0
  5. data/_includes/head.html +17 -0
  6. data/_includes/scripts.html +4 -0
  7. data/_layouts/default.html +16 -0
  8. data/_layouts/home.html +5 -0
  9. data/_layouts/page.html +5 -0
  10. data/_layouts/post.html +5 -0
  11. data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  12. data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  13. data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  14. data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  15. data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  16. data/_sass/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  17. data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  18. data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  19. data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  20. data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  21. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  22. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  23. data/_sass/assets/foundation-float.scss +5 -0
  24. data/_sass/assets/foundation-prototype.scss +3 -0
  25. data/_sass/assets/foundation-rtl.scss +5 -0
  26. data/_sass/assets/foundation.scss +3 -0
  27. data/_sass/jekyll-theme-foundation.scss +5 -0
  28. data/_sass/scss/_global.scss +249 -0
  29. data/_sass/scss/components/_accordion-menu.scss +171 -0
  30. data/_sass/scss/components/_accordion.scss +155 -0
  31. data/_sass/scss/components/_badge.scss +63 -0
  32. data/_sass/scss/components/_breadcrumbs.scss +117 -0
  33. data/_sass/scss/components/_button-group.scss +253 -0
  34. data/_sass/scss/components/_button.scss +385 -0
  35. data/_sass/scss/components/_callout.scss +106 -0
  36. data/_sass/scss/components/_card.scss +129 -0
  37. data/_sass/scss/components/_close-button.scss +102 -0
  38. data/_sass/scss/components/_drilldown.scss +142 -0
  39. data/_sass/scss/components/_dropdown-menu.scss +274 -0
  40. data/_sass/scss/components/_dropdown.scss +79 -0
  41. data/_sass/scss/components/_flex-video.scss +1 -0
  42. data/_sass/scss/components/_flex.scss +117 -0
  43. data/_sass/scss/components/_float.scss +27 -0
  44. data/_sass/scss/components/_label.scss +64 -0
  45. data/_sass/scss/components/_media-object.scss +114 -0
  46. data/_sass/scss/components/_menu-icon.scss +9 -0
  47. data/_sass/scss/components/_menu.scss +495 -0
  48. data/_sass/scss/components/_off-canvas.scss +506 -0
  49. data/_sass/scss/components/_orbit.scss +196 -0
  50. data/_sass/scss/components/_pagination.scss +193 -0
  51. data/_sass/scss/components/_progress-bar.scss +64 -0
  52. data/_sass/scss/components/_responsive-embed.scss +70 -0
  53. data/_sass/scss/components/_reveal.scss +180 -0
  54. data/_sass/scss/components/_slider.scss +137 -0
  55. data/_sass/scss/components/_sticky.scss +39 -0
  56. data/_sass/scss/components/_switch.scss +247 -0
  57. data/_sass/scss/components/_table.scss +330 -0
  58. data/_sass/scss/components/_tabs.scss +196 -0
  59. data/_sass/scss/components/_thumbnail.scss +67 -0
  60. data/_sass/scss/components/_title-bar.scss +84 -0
  61. data/_sass/scss/components/_tooltip.scss +160 -0
  62. data/_sass/scss/components/_top-bar.scss +175 -0
  63. data/_sass/scss/components/_visibility.scss +132 -0
  64. data/_sass/scss/forms/_checkbox.scss +41 -0
  65. data/_sass/scss/forms/_error.scss +88 -0
  66. data/_sass/scss/forms/_fieldset.scss +53 -0
  67. data/_sass/scss/forms/_forms.scss +34 -0
  68. data/_sass/scss/forms/_help-text.scss +30 -0
  69. data/_sass/scss/forms/_input-group.scss +142 -0
  70. data/_sass/scss/forms/_label.scss +50 -0
  71. data/_sass/scss/forms/_meter.scss +116 -0
  72. data/_sass/scss/forms/_progress.scss +94 -0
  73. data/_sass/scss/forms/_range.scss +149 -0
  74. data/_sass/scss/forms/_select.scss +86 -0
  75. data/_sass/scss/forms/_text.scss +179 -0
  76. data/_sass/scss/foundation.scss +133 -0
  77. data/_sass/scss/grid/_classes.scss +176 -0
  78. data/_sass/scss/grid/_column.scss +112 -0
  79. data/_sass/scss/grid/_flex-grid.scss +259 -0
  80. data/_sass/scss/grid/_grid.scss +48 -0
  81. data/_sass/scss/grid/_gutter.scss +82 -0
  82. data/_sass/scss/grid/_layout.scss +76 -0
  83. data/_sass/scss/grid/_position.scss +76 -0
  84. data/_sass/scss/grid/_row.scss +99 -0
  85. data/_sass/scss/grid/_size.scss +24 -0
  86. data/_sass/scss/prototype/_arrow.scss +36 -0
  87. data/_sass/scss/prototype/_border-box.scss +35 -0
  88. data/_sass/scss/prototype/_border-none.scss +35 -0
  89. data/_sass/scss/prototype/_bordered.scss +54 -0
  90. data/_sass/scss/prototype/_box.scss +23 -0
  91. data/_sass/scss/prototype/_display.scss +50 -0
  92. data/_sass/scss/prototype/_font-styling.scss +95 -0
  93. data/_sass/scss/prototype/_list-style-type.scss +95 -0
  94. data/_sass/scss/prototype/_overflow.scss +72 -0
  95. data/_sass/scss/prototype/_position.scss +114 -0
  96. data/_sass/scss/prototype/_prototype.scss +87 -0
  97. data/_sass/scss/prototype/_relation.scss +157 -0
  98. data/_sass/scss/prototype/_rotate.scss +31 -0
  99. data/_sass/scss/prototype/_rounded.scss +54 -0
  100. data/_sass/scss/prototype/_separator.scss +96 -0
  101. data/_sass/scss/prototype/_shadow.scss +43 -0
  102. data/_sass/scss/prototype/_sizing.scss +73 -0
  103. data/_sass/scss/prototype/_spacing.scss +204 -0
  104. data/_sass/scss/prototype/_text-decoration.scss +48 -0
  105. data/_sass/scss/prototype/_text-transformation.scss +48 -0
  106. data/_sass/scss/prototype/_text-utilities.scss +88 -0
  107. data/_sass/scss/settings/_settings.scss +869 -0
  108. data/_sass/scss/typography/_alignment.scss +22 -0
  109. data/_sass/scss/typography/_base.scss +509 -0
  110. data/_sass/scss/typography/_helpers.scss +80 -0
  111. data/_sass/scss/typography/_print.scss +86 -0
  112. data/_sass/scss/typography/_typography.scss +26 -0
  113. data/_sass/scss/util/_breakpoint.scss +348 -0
  114. data/_sass/scss/util/_color.scss +129 -0
  115. data/_sass/scss/util/_direction.scss +31 -0
  116. data/_sass/scss/util/_flex.scss +85 -0
  117. data/_sass/scss/util/_math.scss +72 -0
  118. data/_sass/scss/util/_mixins.scss +313 -0
  119. data/_sass/scss/util/_selector.scss +41 -0
  120. data/_sass/scss/util/_typography.scss +26 -0
  121. data/_sass/scss/util/_unit.scss +152 -0
  122. data/_sass/scss/util/_util.scss +14 -0
  123. data/_sass/scss/util/_value.scss +160 -0
  124. data/_sass/scss/xy-grid/_cell.scss +169 -0
  125. data/_sass/scss/xy-grid/_classes.scss +476 -0
  126. data/_sass/scss/xy-grid/_collapse.scss +74 -0
  127. data/_sass/scss/xy-grid/_frame.scss +85 -0
  128. data/_sass/scss/xy-grid/_grid.scss +35 -0
  129. data/_sass/scss/xy-grid/_gutters.scss +45 -0
  130. data/_sass/scss/xy-grid/_layout.scss +33 -0
  131. data/_sass/scss/xy-grid/_position.scss +28 -0
  132. data/_sass/scss/xy-grid/_xy-grid.scss +51 -0
  133. data/assets/css/main.scss +5 -0
  134. data/assets/css/motion-ui.min.css +1 -0
  135. data/assets/js/foundation.min.js +5 -0
  136. data/assets/js/motion-ui.min.js +1 -0
  137. metadata +235 -0
@@ -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
+ }