foundation6-jekyll-base 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +2 -0
  4. data/_includes/footer.html +1 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +1 -0
  7. data/_includes/javascripts.html +4 -0
  8. data/_layouts/default.html +18 -0
  9. data/_layouts/home.html +26 -0
  10. data/_layouts/page.html +15 -0
  11. data/_layouts/post.html +25 -0
  12. data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  13. data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  14. data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  15. data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  16. data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -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/foundation/_global.scss +219 -0
  24. data/_sass/foundation/components/_accordion-menu.scss +36 -0
  25. data/_sass/foundation/components/_accordion.scss +150 -0
  26. data/_sass/foundation/components/_badge.scss +63 -0
  27. data/_sass/foundation/components/_breadcrumbs.scss +97 -0
  28. data/_sass/foundation/components/_button-group.scss +249 -0
  29. data/_sass/foundation/components/_button.scss +303 -0
  30. data/_sass/foundation/components/_callout.scss +106 -0
  31. data/_sass/foundation/components/_card.scss +121 -0
  32. data/_sass/foundation/components/_close-button.scss +102 -0
  33. data/_sass/foundation/components/_drilldown.scss +93 -0
  34. data/_sass/foundation/components/_dropdown-menu.scss +226 -0
  35. data/_sass/foundation/components/_dropdown.scss +72 -0
  36. data/_sass/foundation/components/_flex-video.scss +1 -0
  37. data/_sass/foundation/components/_flex.scss +28 -0
  38. data/_sass/foundation/components/_float.scss +27 -0
  39. data/_sass/foundation/components/_label.scss +64 -0
  40. data/_sass/foundation/components/_media-object.scss +114 -0
  41. data/_sass/foundation/components/_menu-icon.scss +9 -0
  42. data/_sass/foundation/components/_menu.scss +371 -0
  43. data/_sass/foundation/components/_off-canvas.scss +329 -0
  44. data/_sass/foundation/components/_orbit.scss +196 -0
  45. data/_sass/foundation/components/_pagination.scss +193 -0
  46. data/_sass/foundation/components/_progress-bar.scss +64 -0
  47. data/_sass/foundation/components/_responsive-embed.scss +67 -0
  48. data/_sass/foundation/components/_reveal.scss +178 -0
  49. data/_sass/foundation/components/_slider.scss +138 -0
  50. data/_sass/foundation/components/_sticky.scss +38 -0
  51. data/_sass/foundation/components/_switch.scss +247 -0
  52. data/_sass/foundation/components/_table.scss +329 -0
  53. data/_sass/foundation/components/_tabs.scss +196 -0
  54. data/_sass/foundation/components/_thumbnail.scss +67 -0
  55. data/_sass/foundation/components/_title-bar.scss +84 -0
  56. data/_sass/foundation/components/_tooltip.scss +107 -0
  57. data/_sass/foundation/components/_top-bar.scss +173 -0
  58. data/_sass/foundation/components/_visibility.scss +132 -0
  59. data/_sass/foundation/forms/_checkbox.scss +41 -0
  60. data/_sass/foundation/forms/_error.scss +88 -0
  61. data/_sass/foundation/forms/_fieldset.scss +54 -0
  62. data/_sass/foundation/forms/_forms.scss +34 -0
  63. data/_sass/foundation/forms/_help-text.scss +30 -0
  64. data/_sass/foundation/forms/_input-group.scss +135 -0
  65. data/_sass/foundation/forms/_label.scss +50 -0
  66. data/_sass/foundation/forms/_meter.scss +110 -0
  67. data/_sass/foundation/forms/_progress.scss +94 -0
  68. data/_sass/foundation/forms/_range.scss +149 -0
  69. data/_sass/foundation/forms/_select.scss +85 -0
  70. data/_sass/foundation/forms/_text.scss +170 -0
  71. data/_sass/foundation/foundation.scss +118 -0
  72. data/_sass/foundation/grid/_classes.scss +176 -0
  73. data/_sass/foundation/grid/_column.scss +112 -0
  74. data/_sass/foundation/grid/_flex-grid.scss +307 -0
  75. data/_sass/foundation/grid/_grid.scss +44 -0
  76. data/_sass/foundation/grid/_gutter.scss +82 -0
  77. data/_sass/foundation/grid/_layout.scss +76 -0
  78. data/_sass/foundation/grid/_position.scss +76 -0
  79. data/_sass/foundation/grid/_row.scss +99 -0
  80. data/_sass/foundation/grid/_size.scss +24 -0
  81. data/_sass/foundation/settings/_settings.scss +621 -0
  82. data/_sass/foundation/typography/_alignment.scss +22 -0
  83. data/_sass/foundation/typography/_base.scss +509 -0
  84. data/_sass/foundation/typography/_helpers.scss +78 -0
  85. data/_sass/foundation/typography/_print.scss +81 -0
  86. data/_sass/foundation/typography/_typography.scss +26 -0
  87. data/_sass/foundation/util/_breakpoint.scss +281 -0
  88. data/_sass/foundation/util/_color.scss +126 -0
  89. data/_sass/foundation/util/_direction.scss +31 -0
  90. data/_sass/foundation/util/_flex.scss +85 -0
  91. data/_sass/foundation/util/_math.scss +72 -0
  92. data/_sass/foundation/util/_mixins.scss +276 -0
  93. data/_sass/foundation/util/_selector.scss +41 -0
  94. data/_sass/foundation/util/_unit.scss +152 -0
  95. data/_sass/foundation/util/_util.scss +13 -0
  96. data/_sass/foundation/util/_value.scss +140 -0
  97. data/assets/js/app.js +1 -0
  98. data/assets/js/vendor/foundation/foundation.d.ts +496 -0
  99. data/assets/js/vendor/foundation/foundation.js +10207 -0
  100. data/assets/js/vendor/foundation/foundation.min.js +4 -0
  101. data/assets/js/vendor/foundation/plugins/foundation.abide.js +637 -0
  102. data/assets/js/vendor/foundation/plugins/foundation.abide.min.js +1 -0
  103. data/assets/js/vendor/foundation/plugins/foundation.accordion.js +252 -0
  104. data/assets/js/vendor/foundation/plugins/foundation.accordion.min.js +1 -0
  105. data/assets/js/vendor/foundation/plugins/foundation.accordionMenu.js +318 -0
  106. data/assets/js/vendor/foundation/plugins/foundation.accordionMenu.min.js +1 -0
  107. data/assets/js/vendor/foundation/plugins/foundation.core.js +386 -0
  108. data/assets/js/vendor/foundation/plugins/foundation.core.min.js +1 -0
  109. data/assets/js/vendor/foundation/plugins/foundation.drilldown.js +565 -0
  110. data/assets/js/vendor/foundation/plugins/foundation.drilldown.min.js +1 -0
  111. data/assets/js/vendor/foundation/plugins/foundation.dropdown.js +465 -0
  112. data/assets/js/vendor/foundation/plugins/foundation.dropdown.min.js +1 -0
  113. data/assets/js/vendor/foundation/plugins/foundation.dropdownMenu.js +486 -0
  114. data/assets/js/vendor/foundation/plugins/foundation.dropdownMenu.min.js +1 -0
  115. data/assets/js/vendor/foundation/plugins/foundation.equalizer.js +374 -0
  116. data/assets/js/vendor/foundation/plugins/foundation.equalizer.min.js +1 -0
  117. data/assets/js/vendor/foundation/plugins/foundation.interchange.js +233 -0
  118. data/assets/js/vendor/foundation/plugins/foundation.interchange.min.js +1 -0
  119. data/assets/js/vendor/foundation/plugins/foundation.magellan.js +285 -0
  120. data/assets/js/vendor/foundation/plugins/foundation.magellan.min.js +1 -0
  121. data/assets/js/vendor/foundation/plugins/foundation.offcanvas.js +474 -0
  122. data/assets/js/vendor/foundation/plugins/foundation.offcanvas.min.js +1 -0
  123. data/assets/js/vendor/foundation/plugins/foundation.orbit.js +566 -0
  124. data/assets/js/vendor/foundation/plugins/foundation.orbit.min.js +1 -0
  125. data/assets/js/vendor/foundation/plugins/foundation.responsiveMenu.js +169 -0
  126. data/assets/js/vendor/foundation/plugins/foundation.responsiveMenu.min.js +1 -0
  127. data/assets/js/vendor/foundation/plugins/foundation.responsiveToggle.js +177 -0
  128. data/assets/js/vendor/foundation/plugins/foundation.responsiveToggle.min.js +1 -0
  129. data/assets/js/vendor/foundation/plugins/foundation.reveal.js +633 -0
  130. data/assets/js/vendor/foundation/plugins/foundation.reveal.min.js +1 -0
  131. data/assets/js/vendor/foundation/plugins/foundation.slider.js +762 -0
  132. data/assets/js/vendor/foundation/plugins/foundation.slider.min.js +1 -0
  133. data/assets/js/vendor/foundation/plugins/foundation.sticky.js +518 -0
  134. data/assets/js/vendor/foundation/plugins/foundation.sticky.min.js +1 -0
  135. data/assets/js/vendor/foundation/plugins/foundation.tabs.js +512 -0
  136. data/assets/js/vendor/foundation/plugins/foundation.tabs.min.js +1 -0
  137. data/assets/js/vendor/foundation/plugins/foundation.toggler.js +169 -0
  138. data/assets/js/vendor/foundation/plugins/foundation.toggler.min.js +1 -0
  139. data/assets/js/vendor/foundation/plugins/foundation.tooltip.js +492 -0
  140. data/assets/js/vendor/foundation/plugins/foundation.tooltip.min.js +1 -0
  141. data/assets/js/vendor/foundation/plugins/foundation.util.box.js +196 -0
  142. data/assets/js/vendor/foundation/plugins/foundation.util.box.min.js +1 -0
  143. data/assets/js/vendor/foundation/plugins/foundation.util.keyboard.js +163 -0
  144. data/assets/js/vendor/foundation/plugins/foundation.util.keyboard.min.js +1 -0
  145. data/assets/js/vendor/foundation/plugins/foundation.util.mediaQuery.js +233 -0
  146. data/assets/js/vendor/foundation/plugins/foundation.util.mediaQuery.min.js +1 -0
  147. data/assets/js/vendor/foundation/plugins/foundation.util.motion.js +103 -0
  148. data/assets/js/vendor/foundation/plugins/foundation.util.motion.min.js +1 -0
  149. data/assets/js/vendor/foundation/plugins/foundation.util.nest.js +74 -0
  150. data/assets/js/vendor/foundation/plugins/foundation.util.nest.min.js +1 -0
  151. data/assets/js/vendor/foundation/plugins/foundation.util.timerAndImageLoader.js +90 -0
  152. data/assets/js/vendor/foundation/plugins/foundation.util.timerAndImageLoader.min.js +1 -0
  153. data/assets/js/vendor/foundation/plugins/foundation.util.touch.js +352 -0
  154. data/assets/js/vendor/foundation/plugins/foundation.util.touch.min.js +1 -0
  155. data/assets/js/vendor/foundation/plugins/foundation.util.triggers.js +261 -0
  156. data/assets/js/vendor/foundation/plugins/foundation.util.triggers.min.js +1 -0
  157. data/assets/js/vendor/foundation/plugins/foundation.zf.responsiveAccordionTabs.js +262 -0
  158. data/assets/js/vendor/foundation/plugins/foundation.zf.responsiveAccordionTabs.min.js +1 -0
  159. data/assets/main.scss +6 -0
  160. metadata +232 -0
@@ -0,0 +1,303 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group button
7
+ ////
8
+
9
+ /// Padding inside buttons.
10
+ /// @type List
11
+ $button-padding: 0.85em 1em !default;
12
+
13
+ /// Margin around buttons.
14
+ /// @type List
15
+ $button-margin: 0 0 $global-margin 0 !default;
16
+
17
+ /// Default fill for buttons. Can either be `solid` or `hollow`.
18
+ /// @type Keyword
19
+ $button-fill: solid !default;
20
+
21
+ /// Default background color for buttons.
22
+ /// @type Color
23
+ $button-background: $primary-color !default;
24
+
25
+ /// Background color on hover for buttons.
26
+ /// @type Color
27
+ $button-background-hover: scale-color($button-background, $lightness: -15%) !default;
28
+
29
+ /// Font color for buttons.
30
+ /// @type List
31
+ $button-color: $white !default;
32
+
33
+ /// Alternative font color for buttons.
34
+ /// @type List
35
+ $button-color-alt: $black !default;
36
+
37
+ /// Border radius for buttons, defaulted to global-radius.
38
+ /// @type Number
39
+ $button-radius: $global-radius !default;
40
+
41
+ /// Sizes for buttons.
42
+ /// @type Map
43
+ $button-sizes: (
44
+ tiny: 0.6rem,
45
+ small: 0.75rem,
46
+ default: 0.9rem,
47
+ large: 1.25rem,
48
+ ) !default;
49
+
50
+ /// Coloring classes. A map of classes to output in your CSS, like `.secondary`, `.success`, and so on.
51
+ /// @type Map
52
+ $button-palette: $foundation-palette !default;
53
+
54
+ /// opacity for a disabled button.
55
+ /// @type List
56
+ $button-opacity-disabled: 0.25 !default;
57
+
58
+ /// Background color lightness on hover for buttons.
59
+ /// @type Number
60
+ $button-background-hover-lightness: -20% !default;
61
+
62
+ /// Color lightness on hover for hollow buttons.
63
+ /// @type Number
64
+ $button-hollow-hover-lightness: -50% !default;
65
+
66
+ // Internal: flip from margin-right to margin-left for defaults
67
+ @if $global-text-direction == 'rtl' {
68
+ $button-margin: 0 0 $global-margin $global-margin !default;
69
+ }
70
+
71
+ /// transitions for buttons.
72
+ /// @type List
73
+ $button-transition: background-color 0.25s ease-out, color 0.25s ease-out !default;
74
+
75
+ // TODO: Document button-base() mixin
76
+ @mixin button-base {
77
+ @include disable-mouse-outline;
78
+ display: inline-block;
79
+ vertical-align: middle;
80
+ margin: $button-margin;
81
+ padding: $button-padding;
82
+
83
+ -webkit-appearance: none;
84
+ border: 1px solid transparent;
85
+ border-radius: $button-radius;
86
+ transition: $button-transition;
87
+
88
+ font-size: map-get($button-sizes, default);
89
+ line-height: 1;
90
+ text-align: center;
91
+ cursor: pointer;
92
+ }
93
+
94
+ /// Expands a button to make it full-width.
95
+ /// @param {Boolean} $expand [true] - Set to `true` to enable the expand behavior. Set to `false` to reverse this behavior.
96
+ @mixin button-expand($expand: true) {
97
+ @if $expand {
98
+ display: block;
99
+ width: 100%;
100
+ margin-right: 0;
101
+ margin-left: 0;
102
+ }
103
+ @else {
104
+ display: inline-block;
105
+ width: auto;
106
+ margin: $button-margin;
107
+ }
108
+ }
109
+
110
+ /// Sets the visual style of a button.
111
+ /// @param {Color} $background [$button-background] - Background color of the button.
112
+ /// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
113
+ /// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
114
+ @mixin button-style(
115
+ $background: $button-background,
116
+ $background-hover: $button-background-hover,
117
+ $color: $button-color,
118
+ $background-hover-lightness: $button-background-hover-lightness
119
+ ) {
120
+ @if $color == auto {
121
+ $color: color-pick-contrast($background, ($button-color, $button-color-alt));
122
+ }
123
+
124
+ @if $background-hover == auto {
125
+ $background-hover: scale-color($background, $lightness: $background-hover-lightness);
126
+ }
127
+
128
+ background-color: $background;
129
+ color: $color;
130
+
131
+ &:hover, &:focus {
132
+ background-color: $background-hover;
133
+ color: $color;
134
+ }
135
+ }
136
+
137
+ /// Removes background fill on hover and focus for hollow buttons.
138
+ @mixin button-hollow {
139
+ &,
140
+ &:hover, &:focus {
141
+ background-color: transparent;
142
+ }
143
+ }
144
+
145
+ @mixin button-hollow-style(
146
+ $color: $primary-color,
147
+ $hover-lightness: $button-hollow-hover-lightness
148
+ ) {
149
+ $color-hover: scale-color($color, $lightness: $hover-lightness);
150
+
151
+ border: 1px solid $color;
152
+ color: $color;
153
+
154
+ &:hover, &:focus {
155
+ border-color: $color-hover;
156
+ color: $color-hover;
157
+ }
158
+ }
159
+
160
+ /// Adds disabled styles to a button by fading the element, reseting the cursor, and disabling pointer events.
161
+ /// @param [Color] $background [$primary-color] - Background color of the disabled button.
162
+ /// @param [Color] $color [$button-color] - Text color of the disabled button. Set to `auto` to have the mixin automatically generate a color based on the background color.
163
+ @mixin button-disabled(
164
+ $background: $primary-color,
165
+ $color: $button-color
166
+ ) {
167
+ @if $color == auto {
168
+ $color: color-pick-contrast($background, ($button-color, $button-color-alt));
169
+ }
170
+
171
+ opacity: $button-opacity-disabled;
172
+ cursor: not-allowed;
173
+
174
+ &, &:hover, &:focus {
175
+ background-color: $background;
176
+ color: $color;
177
+ }
178
+ }
179
+
180
+ /// Adds a dropdown arrow to a button.
181
+ /// @param {Number} $size [0.4em] - Size of the arrow. We recommend using an `em` value so the triangle scales when used inside different sizes of buttons.
182
+ /// @param {Color} $color [white] - Color of the arrow.
183
+ /// @param {Number} $offset [$button-padding] - Distance between the arrow and the text of the button. Defaults to whatever the right padding of a button is.
184
+ @mixin button-dropdown(
185
+ $size: 0.4em,
186
+ $color: $white,
187
+ $offset: get-side($button-padding, right)
188
+ ) {
189
+ &::after {
190
+ @include css-triangle($size, $color, down);
191
+ position: relative;
192
+ top: 0.4em; // Aligns the arrow with the text of the button
193
+
194
+ display: inline-block;
195
+ float: #{$global-right};
196
+ margin-#{$global-left}: get-side($button-padding, right);
197
+ }
198
+ }
199
+
200
+ /// Adds all styles for a button. For more granular control over styles, use the individual button mixins.
201
+ /// @param {Boolean} $expand [false] - Set to `true` to make the button full-width.
202
+ /// @param {Color} $background [$button-background] - Background color of the button.
203
+ /// @param {Color} $background-hover [$button-background-hover] - Background color of the button on hover. Set to `auto` to have the mixin automatically generate a hover color.
204
+ /// @param {Color} $color [$button-color] - Text color of the button. Set to `auto` to automatically generate a color based on the background color.
205
+ /// @param {Keyword} $style [solid] - Set to `hollow` to create a hollow button. The color defined in `$background` will be used as the primary color of the button.
206
+ @mixin button(
207
+ $expand: false,
208
+ $background: $button-background,
209
+ $background-hover: $button-background-hover,
210
+ $color: $button-color,
211
+ $style: $button-fill
212
+ ) {
213
+ @include button-base;
214
+
215
+ @if $style == solid {
216
+ @include button-style($background, $background-hover, $color);
217
+ }
218
+ @else if $style == hollow {
219
+ @include button-hollow;
220
+ @include button-hollow-style($background);
221
+ }
222
+
223
+ @if $expand {
224
+ @include button-expand;
225
+ }
226
+ }
227
+
228
+ @mixin foundation-button {
229
+ .button {
230
+ @include button;
231
+
232
+ // Sizes
233
+ @each $size, $value in map-remove($button-sizes, default) {
234
+ &.#{$size} {
235
+ font-size: $value;
236
+ }
237
+ }
238
+
239
+ &.expanded { @include button-expand; }
240
+
241
+ // Colors
242
+ @each $name, $color in $button-palette {
243
+ @if $button-fill != hollow {
244
+ &.#{$name} {
245
+ @include button-style($color, auto, auto);
246
+ }
247
+ }
248
+ @else {
249
+ &.#{$name} {
250
+ @include button-hollow-style($color);
251
+ }
252
+
253
+ &.#{$name}.dropdown::after {
254
+ border-top-color: $color;
255
+ }
256
+ }
257
+ }
258
+
259
+ // Hollow style
260
+ @if $button-fill != hollow {
261
+ &.hollow {
262
+ @include button-hollow;
263
+ @include button-hollow-style;
264
+
265
+ @each $name, $color in $button-palette {
266
+ &.#{$name} {
267
+ @include button-hollow-style($color);
268
+ }
269
+ }
270
+ }
271
+ }
272
+
273
+ // Disabled style
274
+ &.disabled,
275
+ &[disabled] {
276
+ @include button-disabled;
277
+
278
+ @each $name, $color in $button-palette {
279
+ &.#{$name} {
280
+ @include button-disabled($color, auto);
281
+ }
282
+ }
283
+ }
284
+
285
+ // Dropdown arrow
286
+ &.dropdown {
287
+ @include button-dropdown;
288
+
289
+ @if $button-fill == hollow {
290
+ &::after {
291
+ border-top-color: $button-background;
292
+ }
293
+ }
294
+ }
295
+
296
+ // Button with dropdown arrow only
297
+ &.arrow-only::after {
298
+ top: -0.1em;
299
+ float: none;
300
+ margin-#{$global-left}: 0;
301
+ }
302
+ }
303
+ }
@@ -0,0 +1,106 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group callout
7
+ ////
8
+
9
+ /// Default background color.
10
+ /// @type Color
11
+ $callout-background: $white !default;
12
+
13
+ /// Default fade value for callout backgrounds.
14
+ /// @type Number
15
+ $callout-background-fade: 85% !default;
16
+
17
+ /// Default border style for callouts.
18
+ /// @type List
19
+ $callout-border: 1px solid rgba($black, 0.25) !default;
20
+
21
+ /// Default bottom margin for callouts.
22
+ /// @type Number
23
+ $callout-margin: 0 0 1rem 0 !default;
24
+
25
+ /// Default inner padding for callouts.
26
+ /// @type Number
27
+ $callout-padding: 1rem !default;
28
+
29
+ /// Default font color for callouts.
30
+ /// @type Color
31
+ $callout-font-color: $body-font-color !default;
32
+
33
+ /// Default font color for callouts, if the callout has a dark background.
34
+ /// @type Color
35
+ $callout-font-color-alt: $body-background !default;
36
+
37
+ /// Default border radius for callouts.
38
+ /// @type Color
39
+ $callout-radius: $global-radius !default;
40
+
41
+ /// Amount to tint links used within colored panels. Set to `false` to disable this feature.
42
+ /// @type Number | Boolean
43
+ $callout-link-tint: 30% !default;
44
+
45
+ /// Adds basic styles for a callout, including padding and margin.
46
+ @mixin callout-base() {
47
+ position: relative;
48
+ margin: $callout-margin;
49
+ padding: $callout-padding;
50
+
51
+ border: $callout-border;
52
+ border-radius: $callout-radius;
53
+
54
+ // Respect the padding, fool.
55
+ > :first-child {
56
+ margin-top: 0;
57
+ }
58
+
59
+ > :last-child {
60
+ margin-bottom: 0;
61
+ }
62
+ }
63
+
64
+ /// Generate quick styles for a callout using a single color as a baseline.
65
+ /// @param {Color} $color [$callout-background] - Color to use.
66
+ @mixin callout-style($color: $callout-background) {
67
+ $background: scale-color($color, $lightness: $callout-background-fade);
68
+
69
+ background-color: $background;
70
+ color: color-pick-contrast($background, ($callout-font-color, $callout-font-color-alt));
71
+ }
72
+
73
+ @mixin callout-size($padding) {
74
+ padding-top: $padding;
75
+ padding-right: $padding;
76
+ padding-bottom: $padding;
77
+ padding-left: $padding;
78
+ }
79
+
80
+
81
+ /// Adds styles for a callout.
82
+ /// @param {Color} $color [$callout-background] - Color to use.
83
+ @mixin callout($color: $callout-background) {
84
+ @include callout-base;
85
+ @include callout-style($color);
86
+ }
87
+
88
+ @mixin foundation-callout {
89
+ .callout {
90
+ @include callout;
91
+
92
+ @each $name, $color in $foundation-palette {
93
+ &.#{$name} {
94
+ @include callout-style($color);
95
+ }
96
+ }
97
+
98
+ &.small {
99
+ @include callout-size(0.5rem);
100
+ }
101
+
102
+ &.large {
103
+ @include callout-size(3rem);
104
+ }
105
+ }
106
+ }
@@ -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
+ }