foundation-scss 6.3.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 (90) hide show
  1. checksums.yaml +7 -0
  2. data/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  8. data/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  9. data/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  10. data/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  11. data/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  12. data/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  13. data/foundation-scss.gemspec +9 -0
  14. data/lib/foundation/scss/in/sass_path.rb +6 -0
  15. data/scss/_global.scss +219 -0
  16. data/scss/components/_accordion-menu.scss +36 -0
  17. data/scss/components/_accordion.scss +150 -0
  18. data/scss/components/_badge.scss +63 -0
  19. data/scss/components/_breadcrumbs.scss +100 -0
  20. data/scss/components/_button-group.scss +253 -0
  21. data/scss/components/_button.scss +332 -0
  22. data/scss/components/_callout.scss +106 -0
  23. data/scss/components/_card.scss +121 -0
  24. data/scss/components/_close-button.scss +102 -0
  25. data/scss/components/_drilldown.scss +93 -0
  26. data/scss/components/_dropdown-menu.scss +226 -0
  27. data/scss/components/_dropdown.scss +72 -0
  28. data/scss/components/_flex-video.scss +1 -0
  29. data/scss/components/_flex.scss +34 -0
  30. data/scss/components/_float.scss +27 -0
  31. data/scss/components/_label.scss +64 -0
  32. data/scss/components/_media-object.scss +114 -0
  33. data/scss/components/_menu-icon.scss +9 -0
  34. data/scss/components/_menu.scss +376 -0
  35. data/scss/components/_off-canvas.scss +329 -0
  36. data/scss/components/_orbit.scss +196 -0
  37. data/scss/components/_pagination.scss +193 -0
  38. data/scss/components/_progress-bar.scss +64 -0
  39. data/scss/components/_responsive-embed.scss +70 -0
  40. data/scss/components/_reveal.scss +178 -0
  41. data/scss/components/_slider.scss +138 -0
  42. data/scss/components/_sticky.scss +38 -0
  43. data/scss/components/_switch.scss +247 -0
  44. data/scss/components/_table.scss +329 -0
  45. data/scss/components/_tabs.scss +196 -0
  46. data/scss/components/_thumbnail.scss +67 -0
  47. data/scss/components/_title-bar.scss +84 -0
  48. data/scss/components/_tooltip.scss +107 -0
  49. data/scss/components/_top-bar.scss +173 -0
  50. data/scss/components/_visibility.scss +132 -0
  51. data/scss/forms/_checkbox.scss +41 -0
  52. data/scss/forms/_error.scss +88 -0
  53. data/scss/forms/_fieldset.scss +54 -0
  54. data/scss/forms/_forms.scss +34 -0
  55. data/scss/forms/_help-text.scss +30 -0
  56. data/scss/forms/_input-group.scss +135 -0
  57. data/scss/forms/_label.scss +50 -0
  58. data/scss/forms/_meter.scss +110 -0
  59. data/scss/forms/_progress.scss +94 -0
  60. data/scss/forms/_range.scss +149 -0
  61. data/scss/forms/_select.scss +85 -0
  62. data/scss/forms/_text.scss +170 -0
  63. data/scss/foundation.scss +118 -0
  64. data/scss/grid/_classes.scss +176 -0
  65. data/scss/grid/_column.scss +112 -0
  66. data/scss/grid/_flex-grid.scss +312 -0
  67. data/scss/grid/_grid.scss +48 -0
  68. data/scss/grid/_gutter.scss +82 -0
  69. data/scss/grid/_layout.scss +76 -0
  70. data/scss/grid/_position.scss +76 -0
  71. data/scss/grid/_row.scss +99 -0
  72. data/scss/grid/_size.scss +24 -0
  73. data/scss/settings/_settings.scss +620 -0
  74. data/scss/typography/_alignment.scss +22 -0
  75. data/scss/typography/_base.scss +509 -0
  76. data/scss/typography/_helpers.scss +78 -0
  77. data/scss/typography/_print.scss +86 -0
  78. data/scss/typography/_typography.scss +26 -0
  79. data/scss/util/_breakpoint.scss +281 -0
  80. data/scss/util/_color.scss +126 -0
  81. data/scss/util/_direction.scss +31 -0
  82. data/scss/util/_flex.scss +85 -0
  83. data/scss/util/_math.scss +72 -0
  84. data/scss/util/_mixins.scss +276 -0
  85. data/scss/util/_selector.scss +41 -0
  86. data/scss/util/_typography.scss +26 -0
  87. data/scss/util/_unit.scss +152 -0
  88. data/scss/util/_util.scss +14 -0
  89. data/scss/util/_value.scss +160 -0
  90. metadata +144 -0
@@ -0,0 +1,329 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group off-canvas
7
+ ////
8
+
9
+ /// Width of a left/right off-canvas panel.
10
+ /// @type Number
11
+ $offcanvas-size: 250px !default;
12
+
13
+ /// Height of a top/bottom off-canvas panel.
14
+ /// @type Number
15
+ $offcanvas-vertical-size: 250px !default;
16
+
17
+ /// Background color of an off-canvas panel.
18
+ /// @type Color
19
+ $offcanvas-background: $light-gray !default;
20
+
21
+ /// Box shadow for the off-canvas panel.
22
+ /// @type Shadow
23
+ $offcanvas-shadow: 0 0 10px rgba($black, 0.7) !default;
24
+
25
+ /// Z-index of an off-canvas panel with the `push` transition.
26
+ /// @type Number
27
+ $offcanvas-push-zindex: 1 !default;
28
+
29
+ /// Z-index of an off-canvas panel with the `overlap` transition.
30
+ /// @type Number
31
+ $offcanvas-overlap-zindex: 10 !default;
32
+
33
+ /// Z-index of an off-canvas panel using the `reveal-for-*` classes or mixin.
34
+ /// @type Number
35
+ $offcanvas-reveal-zindex: 1 !default;
36
+
37
+ /// Length of the animation on an off-canvas panel.
38
+ /// @type Number
39
+ $offcanvas-transition-length: 0.5s !default;
40
+
41
+ /// Timing function of the animation on an off-canvas panel.
42
+ /// @type Keyword
43
+ $offcanvas-transition-timing: ease !default;
44
+
45
+ /// If `true`, a revealed off-canvas will be fixed-position, and scroll with the screen.
46
+ /// @type Bool
47
+ $offcanvas-fixed-reveal: true !default;
48
+
49
+ /// Background color for the overlay that appears when an off-canvas panel is open.
50
+ /// @type Color
51
+ $offcanvas-exit-background: rgba($white, 0.25) !default;
52
+
53
+ /// CSS class used for the main content area. The off-canvas mixins use this to target the page content.
54
+ $maincontent-class: 'off-canvas-content' !default;
55
+
56
+ /// Adds baseline styles for off-canvas. This CSS is required to make the other pieces work.
57
+ @mixin off-canvas-basics {
58
+ // Hides overflow on body when an off-canvas panel is open.
59
+ .is-off-canvas-open {
60
+ overflow: hidden;
61
+ }
62
+
63
+ // Off-canvas overlay (generated by JavaScript)
64
+ .js-off-canvas-overlay {
65
+ position: absolute;
66
+ top: 0;
67
+ left: 0;
68
+
69
+ width: 100%;
70
+ height: 100%;
71
+
72
+ transition: opacity $offcanvas-transition-length $offcanvas-transition-timing, visibility $offcanvas-transition-length $offcanvas-transition-timing;
73
+
74
+ background: $offcanvas-exit-background;
75
+
76
+ opacity: 0;
77
+ visibility: hidden;
78
+
79
+ overflow: hidden;
80
+
81
+ &.is-visible {
82
+ opacity: 1;
83
+ visibility: visible;
84
+ }
85
+
86
+ &.is-closable {
87
+ cursor: pointer;
88
+ }
89
+
90
+ &.is-overlay-absolute {
91
+ position: absolute;
92
+ }
93
+
94
+ &.is-overlay-fixed {
95
+ position: fixed;
96
+ }
97
+ }
98
+ }
99
+
100
+ // Adds basic styles for an off-canvas wrapper.
101
+ @mixin off-canvas-wrapper() {
102
+ position: relative;
103
+ overflow: hidden;
104
+ }
105
+
106
+ /// Adds basic styles for an off-canvas panel.
107
+ @mixin off-canvas-base(
108
+ $background: $offcanvas-background,
109
+ $transition: $offcanvas-transition-length $offcanvas-transition-timing,
110
+ $fixed: true
111
+ ) {
112
+ @include disable-mouse-outline;
113
+
114
+ @if $fixed == true {
115
+ position: fixed;
116
+ }
117
+ @else {
118
+ position: absolute;
119
+ }
120
+
121
+ z-index: $offcanvas-push-zindex;
122
+
123
+ transition: transform $transition;
124
+ backface-visibility: hidden;
125
+
126
+ background: $background;
127
+
128
+ // Overlap only styles.
129
+ &.is-transition-overlap {
130
+ z-index: $offcanvas-overlap-zindex;
131
+
132
+ &.is-open {
133
+ box-shadow: $offcanvas-shadow;
134
+ }
135
+ }
136
+
137
+ // Sets transform to 0 to show an off-canvas panel.
138
+ &.is-open {
139
+ transform: translate(0, 0);
140
+ }
141
+ }
142
+
143
+ /// Adds styles to position an off-canvas panel to the left/right/top/bottom.
144
+ @mixin off-canvas-position(
145
+ $position: left,
146
+ $orientation: horizontal,
147
+ $size: if($orientation == horizontal, $offcanvas-size, $offcanvas-vertical-size)
148
+ ) {
149
+ @if $position == left {
150
+ top: 0;
151
+ left: 0;
152
+ width: $size;
153
+ height: 100%;
154
+
155
+ transform: translateX(-$size);
156
+ overflow-y: auto;
157
+
158
+ // Sets the open position for the content
159
+ &.is-open ~ .#{$maincontent-class} {
160
+ transform: translateX($size);
161
+ }
162
+ }
163
+ @else if $position == right {
164
+ top: 0;
165
+ right: 0;
166
+ width: $size;
167
+ height: 100%;
168
+
169
+ transform: translateX($size);
170
+ overflow-y: auto;
171
+
172
+ // Sets the open position for the content
173
+ &.is-open ~ .#{$maincontent-class} {
174
+ transform: translateX(-$size);
175
+ }
176
+ }
177
+ @else if $position == top {
178
+ top: 0;
179
+ left: 0;
180
+
181
+ width: 100%;
182
+ height: $size;
183
+
184
+ transform: translateY(-$size);
185
+ overflow-x: auto;
186
+
187
+ // Sets the open position for the content
188
+ &.is-open ~ .#{$maincontent-class} {
189
+ transform: translateY($size);
190
+ }
191
+ }
192
+ @else if $position == bottom {
193
+ bottom: 0;
194
+ left: 0;
195
+
196
+ width: 100%;
197
+ height: $size;
198
+
199
+ transform: translateY($size);
200
+ overflow-x: auto;
201
+
202
+ // Sets the open position for the content
203
+ &.is-open ~ .#{$maincontent-class} {
204
+ transform: translateY(-$size);
205
+ }
206
+ }
207
+
208
+ // If $offcanvas-shadow is set, add it as a pseudo-element.
209
+ // This mimics the off-canvas panel having a lower z-index, without having to have one.
210
+ @if $offcanvas-shadow {
211
+ &.is-transition-push::after {
212
+ position: absolute;
213
+
214
+ @if $position == left {
215
+ top: 0;
216
+ right: 0;
217
+
218
+ height: 100%;
219
+ width: 1px;
220
+ }
221
+ @else if $position == right {
222
+ top: 0;
223
+ left: 0;
224
+
225
+ height: 100%;
226
+ width: 1px;
227
+ }
228
+ @else if $position == top {
229
+ bottom: 0;
230
+ left: 0;
231
+
232
+ height: 1px;
233
+ width: 100%;
234
+ }
235
+ @else if $position == bottom {
236
+ top: 0;
237
+ left: 0;
238
+
239
+ height: 1px;
240
+ width: 100%;
241
+ }
242
+
243
+ box-shadow: $offcanvas-shadow;
244
+ content: " ";
245
+ }
246
+ }
247
+
248
+ // No transform on overlap transition
249
+ &.is-transition-overlap.is-open ~ .#{$maincontent-class} {
250
+ transform: none;
251
+ }
252
+ }
253
+
254
+ /// Sets the styles for the content container.
255
+ @mixin off-canvas-content() {
256
+ transition: transform $offcanvas-transition-length $offcanvas-transition-timing;
257
+ backface-visibility: hidden;
258
+ }
259
+
260
+ /// Adds styles that reveal an off-canvas panel.
261
+ @mixin off-canvas-reveal(
262
+ $position: left,
263
+ $zindex: $offcanvas-reveal-zindex,
264
+ $content: $maincontent-class
265
+ ) {
266
+ transform: none;
267
+ z-index: $zindex;
268
+
269
+ @if not $offcanvas-fixed-reveal {
270
+ position: absolute;
271
+ }
272
+
273
+ & ~ .#{$content} {
274
+ margin-#{$position}: $offcanvas-size;
275
+ }
276
+ }
277
+
278
+ @mixin foundation-off-canvas {
279
+ @include off-canvas-basics;
280
+
281
+ // Off-canvas wrapper
282
+ .off-canvas-wrapper {
283
+ @include off-canvas-wrapper;
284
+ }
285
+
286
+ // Off-canvas container
287
+ .off-canvas {
288
+ @include off-canvas-base;
289
+ }
290
+
291
+ // Off-canvas container with absolute position
292
+ .off-canvas-absolute {
293
+ @include off-canvas-base($fixed: false);
294
+ }
295
+
296
+ // Off-canvas position classes
297
+ .position-left { @include off-canvas-position(left, horizontal); }
298
+ .position-right { @include off-canvas-position(right, horizontal); }
299
+ .position-top { @include off-canvas-position(top, vertical); }
300
+ .position-bottom { @include off-canvas-position(bottom, vertical); }
301
+
302
+ .off-canvas-content {
303
+ @include off-canvas-content;
304
+ }
305
+
306
+ // Reveal off-canvas panel on larger screens
307
+ @each $name, $value in $breakpoint-classes {
308
+ @if $name != $-zf-zero-breakpoint {
309
+ @include breakpoint($name) {
310
+ .position-left.reveal-for-#{$name} {
311
+ @include off-canvas-reveal(left);
312
+ }
313
+
314
+ .position-right.reveal-for-#{$name} {
315
+ @include off-canvas-reveal(right);
316
+ }
317
+
318
+ .position-top.reveal-for-#{$name} {
319
+ @include off-canvas-reveal(top);
320
+ }
321
+
322
+ .position-bottom.reveal-for-#{$name} {
323
+ @include off-canvas-reveal(bottom);
324
+ }
325
+ }
326
+ }
327
+ }
328
+ }
329
+
@@ -0,0 +1,196 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group orbit
7
+ ////
8
+
9
+ /// Default color for Orbit's bullets.
10
+ /// @type Color
11
+ $orbit-bullet-background: $medium-gray !default;
12
+
13
+ /// Default active color for Orbit's bullets.
14
+ /// @type Color
15
+ $orbit-bullet-background-active: $dark-gray !default;
16
+
17
+ /// Default diameter for Orbit's bullets.
18
+ /// @type Number
19
+ $orbit-bullet-diameter: 1.2rem !default;
20
+
21
+ /// Default margin between Orbit's bullets.
22
+ /// @type Number
23
+ $orbit-bullet-margin: 0.1rem !default;
24
+
25
+ /// Default distance from slide region for Orbit's bullets.
26
+ /// @type Number
27
+ $orbit-bullet-margin-top: 0.8rem !default;
28
+
29
+ /// Default bottom margin from Orbit's bullets to whatever content may lurk below it.
30
+ /// @type Number
31
+ $orbit-bullet-margin-bottom: 0.8rem !default;
32
+
33
+ /// Default background color for Orbit's caption.
34
+ /// @type Color
35
+ $orbit-caption-background: rgba($black, 0.5) !default;
36
+
37
+ /// Default padding for Orbit's caption.
38
+ /// @type Number
39
+ $orbit-caption-padding: 1rem !default;
40
+
41
+ /// Default background color for Orbit's controls when hovered.
42
+ /// @type Color
43
+ $orbit-control-background-hover: rgba($black, 0.5) !default;
44
+
45
+ /// Default padding for Orbit's controls.
46
+ /// @type Number
47
+ $orbit-control-padding: 1rem !default;
48
+
49
+ /// Default z-index for Orbit's controls.
50
+ /// @type Number
51
+ $orbit-control-zindex: 10 !default;
52
+
53
+ /// Adds styles for the outer Orbit wrapper. These styles are used on the `.orbit` class.
54
+ @mixin orbit-wrapper {
55
+ position: relative;
56
+ }
57
+
58
+ /// Adds styles for the inner Orbit slide container. These styles are used on the `.orbit-container` class.
59
+ @mixin orbit-container {
60
+ position: relative;
61
+ height: 0; // Prevent FOUC by not showing until JS sets height
62
+ margin: 0;
63
+ list-style: none;
64
+ overflow: hidden;
65
+ }
66
+
67
+ /// Adds styles for the individual slides of an Orbit slider. These styles are used on the `.orbit-slide` class.
68
+ @mixin orbit-slide {
69
+ width: 100%;
70
+
71
+ &.no-motionui {
72
+ &.is-active {
73
+ top: 0;
74
+ left: 0;
75
+ }
76
+ }
77
+ }
78
+
79
+ @mixin orbit-figure {
80
+ margin: 0;
81
+ }
82
+
83
+ /// Adds styles for a slide containing an image. These styles are used on the `.orbit-image` class.
84
+ @mixin orbit-image {
85
+ width: 100%;
86
+ max-width: 100%;
87
+ margin: 0;
88
+ }
89
+
90
+ /// Adds styles for an orbit slide caption. These styles are used on the `.orbit-caption` class.
91
+ @mixin orbit-caption {
92
+ position: absolute;
93
+ bottom: 0;
94
+ width: 100%;
95
+ margin-bottom: 0;
96
+ padding: $orbit-caption-padding;
97
+
98
+ background-color: $orbit-caption-background;
99
+ color: color-pick-contrast($orbit-caption-background);
100
+ }
101
+
102
+ /// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
103
+ @mixin orbit-control {
104
+ @include disable-mouse-outline;
105
+ @include vertical-center;
106
+ z-index: $orbit-control-zindex;
107
+ padding: $orbit-control-padding;
108
+ color: $white;
109
+
110
+ &:hover,
111
+ &:active,
112
+ &:focus {
113
+ background-color: $orbit-control-background-hover;
114
+ }
115
+ }
116
+
117
+ /// Adds styles for the Orbit previous button. These styles are used on the `.orbit-previous` class.
118
+ @mixin orbit-previous {
119
+ #{$global-left}: 0;
120
+ }
121
+
122
+ /// Adds styles for the Orbit next button. These styles are used on the `.orbit-next` class.
123
+ @mixin orbit-next {
124
+ #{$global-left}: auto;
125
+ #{$global-right}: 0;
126
+ }
127
+
128
+ /// Adds styles for a container of Orbit bullets. /// Adds styles for the Orbit previous button. These styles are used on the `.orbit-bullets` class.
129
+ @mixin orbit-bullets {
130
+ @include disable-mouse-outline;
131
+ position: relative;
132
+ margin-top: $orbit-bullet-margin-top;
133
+ margin-bottom: $orbit-bullet-margin-bottom;
134
+ text-align: center;
135
+
136
+ button {
137
+ width: $orbit-bullet-diameter;
138
+ height: $orbit-bullet-diameter;
139
+ margin: $orbit-bullet-margin;
140
+
141
+ border-radius: 50%;
142
+ background-color: $orbit-bullet-background;
143
+
144
+ &:hover {
145
+ background-color: $orbit-bullet-background-active;
146
+ }
147
+
148
+ &.is-active {
149
+ background-color: $orbit-bullet-background-active;
150
+ }
151
+ }
152
+ }
153
+
154
+ @mixin foundation-orbit {
155
+ .orbit {
156
+ @include orbit-wrapper;
157
+ }
158
+
159
+ .orbit-container {
160
+ @include orbit-container;
161
+ }
162
+
163
+ .orbit-slide {
164
+ @include orbit-slide;
165
+ }
166
+
167
+ .orbit-figure {
168
+ @include orbit-figure;
169
+ }
170
+
171
+ .orbit-image {
172
+ @include orbit-image;
173
+ }
174
+
175
+ .orbit-caption {
176
+ @include orbit-caption;
177
+ }
178
+
179
+ %orbit-control {
180
+ @include orbit-control;
181
+ }
182
+
183
+ .orbit-previous {
184
+ @extend %orbit-control;
185
+ @include orbit-previous;
186
+ }
187
+
188
+ .orbit-next {
189
+ @extend %orbit-control;
190
+ @include orbit-next;
191
+ }
192
+
193
+ .orbit-bullets {
194
+ @include orbit-bullets;
195
+ }
196
+ }