foundation-sass-rails 5.5.3.2

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 (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +37 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +62 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/foundation-sass-rails.gemspec +29 -0
  13. data/lib/foundation-sass-rails.rb +8 -0
  14. data/lib/foundation/version.rb +5 -0
  15. data/lib/generators/foundation/overrides_generator.rb +39 -0
  16. data/vendor/assets/stylesheets/foundation.scss +42 -0
  17. data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
  18. data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
  19. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
  20. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
  21. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
  22. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
  23. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
  24. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
  25. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
  26. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
  27. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
  28. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
  29. data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
  30. data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
  31. data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
  32. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
  33. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
  34. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
  35. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
  36. data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
  37. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
  38. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
  39. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
  40. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
  41. data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
  42. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  43. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
  44. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
  45. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
  46. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
  47. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
  48. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
  49. data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
  50. data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
  51. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
  52. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
  53. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
  54. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
  55. data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
  56. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
  57. data/vendor/assets/stylesheets/normalize.scss +424 -0
  58. metadata +163 -0
@@ -0,0 +1,388 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ // @variables
8
+ //
9
+ $include-html-orbit-classes: $include-html-classes !default;
10
+
11
+ // We use these to control the caption styles
12
+ $orbit-container-bg: none !default;
13
+ $orbit-caption-bg: rgba(51,51,51, .8) !default;
14
+ $orbit-caption-font-color: $white !default;
15
+ $orbit-caption-font-size: rem-calc(14) !default;
16
+ $orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under"
17
+ $orbit-caption-padding: rem-calc(10 14) !default;
18
+ $orbit-caption-height: auto !default;
19
+
20
+ // We use these to control the left/right nav styles
21
+ $orbit-nav-bg: transparent !default;
22
+ $orbit-nav-bg-hover: rgba(0,0,0,0.3) !default;
23
+ $orbit-nav-arrow-color: $white !default;
24
+ $orbit-nav-arrow-color-hover: $white !default;
25
+
26
+ // We use these to control the timer styles
27
+ $orbit-timer-bg: rgba(255,255,255,0.3) !default;
28
+ $orbit-timer-show-progress-bar: true !default;
29
+
30
+ // We use these to control the bullet nav styles
31
+ $orbit-bullet-nav-color: $iron !default;
32
+ $orbit-bullet-nav-color-active: $aluminum !default;
33
+ $orbit-bullet-radius: rem-calc(9) !default;
34
+
35
+ // We use these to controls the style of slide numbers
36
+ $orbit-slide-number-bg: rgba(0,0,0,0) !default;
37
+ $orbit-slide-number-font-color: $white !default;
38
+ $orbit-slide-number-padding: rem-calc(5) !default;
39
+
40
+ // Graceful Loading Wrapper and preloader
41
+ $wrapper-class: "slideshow-wrapper" !default;
42
+ $preloader-class: "preloader" !default;
43
+
44
+ // Hide controls on small
45
+ $orbit-nav-hide-for-small: true !default;
46
+ $orbit-bullet-hide-for-small: true !default;
47
+ $orbit-timer-hide-for-small: true !default;
48
+
49
+
50
+ @include exports("orbit") {
51
+ @if $include-html-orbit-classes {
52
+
53
+ @-webkit-keyframes rotate {
54
+ from {
55
+ -webkit-transform: rotate(0deg);
56
+ transform: rotate(0deg);
57
+ }
58
+ to {
59
+ -webkit-transform: rotate(360deg);
60
+ transform: rotate(360deg);
61
+ }
62
+ }
63
+
64
+
65
+ @keyframes rotate {
66
+ from {
67
+ -webkit-transform: rotate(0deg);
68
+ -moz-transform: rotate(0deg);
69
+ -ms-transform: rotate(0deg);
70
+ transform: rotate(0deg);
71
+ }
72
+ to {
73
+ -webkit-transform: rotate(360deg);
74
+ -moz-transform: rotate(360deg);
75
+ -ms-transform: rotate(360deg);
76
+ transform: rotate(360deg);
77
+ }
78
+ }
79
+
80
+ /* Orbit Graceful Loading */
81
+ .#{$wrapper-class} {
82
+ position: relative;
83
+
84
+ ul {
85
+ // Prevent bullets showing before .orbit-container is loaded
86
+ list-style-type: none;
87
+ margin: 0;
88
+
89
+ // Hide all list items
90
+ li,
91
+ li .orbit-caption { display: none; }
92
+
93
+ // ...except for the first one
94
+ li:first-child { display: block; }
95
+ }
96
+
97
+ .orbit-container { background-color: transparent;
98
+
99
+ // Show images when .orbit-container is loaded
100
+ li { display: block;
101
+
102
+ .orbit-caption { display: block; }
103
+ }
104
+ .orbit-bullets li {
105
+ display: inline-block;
106
+ }
107
+ }
108
+
109
+ // Orbit preloader
110
+ .#{$preloader-class} {
111
+ @include radius(1000px);
112
+ animation-duration: 1.5s;
113
+ animation-iteration-count: infinite;
114
+ animation-name: rotate;
115
+ animation-timing-function: linear;
116
+ border-color: $charcoal $white;
117
+ border: solid 3px;
118
+ display: block;
119
+ height: 40px;
120
+ left: 50%;
121
+ margin-left: -20px;
122
+ margin-top: -20px;
123
+ position: absolute;
124
+ top: 50%;
125
+ width: 40px;
126
+ }
127
+ }
128
+
129
+
130
+ .orbit-container {
131
+ background: $orbit-container-bg;
132
+ overflow: hidden;
133
+ position: relative;
134
+ width: 100%;
135
+
136
+ .orbit-slides-container {
137
+ list-style: none;
138
+ margin: 0;
139
+ padding: 0;
140
+ position: relative;
141
+
142
+ // Prevents images (and captions) from disappearing after first rotation on Chrome for Android
143
+ -webkit-transform: translateZ(0);
144
+ -moz-transform: translateZ(0);
145
+ -ms-transform: translateZ(0);
146
+ -o-transform: translateZ(0);
147
+ transform: translateZ(0);
148
+
149
+ img { display: block; max-width: 100%; }
150
+
151
+ > * {
152
+ position: absolute;
153
+ top: 0;
154
+ width: 100%;
155
+ @if $text-direction == rtl {
156
+ margin-right: 100%;
157
+ }
158
+ @else {
159
+ margin-left: 100%;
160
+ }
161
+
162
+ &:first-child {
163
+ @if $text-direction == rtl {
164
+ margin-right: 0;
165
+ }
166
+ @else {
167
+ margin-left: 0;
168
+ }
169
+ }
170
+
171
+ .orbit-caption {
172
+ @if $orbit-caption-position == "bottom" {
173
+ bottom: 0;
174
+ position: absolute;
175
+ } @else if $orbit-caption-position == "under" {
176
+ position: relative;
177
+ }
178
+
179
+ background-color: $orbit-caption-bg;
180
+ color: $orbit-caption-font-color;
181
+ font-size: $orbit-caption-font-size;
182
+ padding: $orbit-caption-padding;
183
+ width: 100%;
184
+ }
185
+ }
186
+ }
187
+
188
+ .orbit-slide-number {
189
+ #{$default-float}: 10px;
190
+ background: $orbit-slide-number-bg;
191
+ color: $orbit-slide-number-font-color;
192
+ font-size: 12px;
193
+ position: absolute;
194
+ span { font-weight: 700; padding: $orbit-slide-number-padding;}
195
+ top: 10px;
196
+ z-index: 10;
197
+ }
198
+
199
+ .orbit-timer {
200
+
201
+ position: absolute;
202
+ top: 12px;
203
+ #{$opposite-direction}: 10px;
204
+ height: 6px;
205
+ width: 100px;
206
+ z-index: 10;
207
+
208
+
209
+ .orbit-progress {
210
+ @if $orbit-timer-show-progress-bar {
211
+ height: 3px;
212
+ background-color: $orbit-timer-bg;
213
+ display: block;
214
+ width: 0;
215
+ position: relative;
216
+ right: 20px;
217
+ top: 5px;
218
+
219
+ }
220
+ }
221
+
222
+ // Play button
223
+ & > span {
224
+ border: solid 4px $white;
225
+ border-bottom: none;
226
+ border-top: none;
227
+ display: none;
228
+ height: 14px;
229
+ position: absolute;
230
+ top: 0;
231
+ width: 11px;
232
+ #{$opposite-direction}: 0;
233
+ }
234
+
235
+ // Pause button
236
+ &.paused {
237
+ & > span {
238
+ top: 0;
239
+ width: 11px;
240
+ height: 14px;
241
+ border: inset 8px;
242
+ border-left-style: solid;
243
+ border-color: transparent;
244
+ border-left-color: $white;
245
+ #{$opposite-direction}: -4px;
246
+
247
+ &.dark {
248
+ border-left-color: $oil;
249
+ }
250
+ }
251
+ }
252
+ }
253
+
254
+
255
+
256
+ &:hover .orbit-timer > span { display: block; }
257
+
258
+ // Let's get those controls to be right in the center on each side
259
+ .orbit-prev,
260
+ .orbit-next {
261
+ background-color: $orbit-nav-bg;
262
+ color: white;
263
+ height: 60px;
264
+ line-height: 50px;
265
+ margin-top: -25px;
266
+ position: absolute;
267
+ text-indent: -9999px !important;
268
+ top: 45%;
269
+ width: 36px;
270
+ z-index: 10;
271
+
272
+ &:hover {
273
+ background-color: $orbit-nav-bg-hover;
274
+ }
275
+
276
+ & > span {
277
+ border: inset 10px;
278
+ display: block;
279
+ height: 0;
280
+ margin-top: -10px;
281
+ position: absolute;
282
+ top: 50%;
283
+ width: 0;
284
+ }
285
+ }
286
+ .orbit-prev { #{$default-float}: 0;
287
+ & > span {
288
+ border-#{$opposite-direction}-style: solid;
289
+ border-color: transparent;
290
+ border-#{$opposite-direction}-color: $orbit-nav-arrow-color;
291
+ }
292
+ &:hover > span {
293
+ border-#{$opposite-direction}-color: $orbit-nav-arrow-color-hover;
294
+ }
295
+ }
296
+ .orbit-next { #{$opposite-direction}: 0;
297
+ & > span {
298
+ border-color: transparent;
299
+ border-#{$default-float}-style: solid;
300
+ border-#{$default-float}-color: $orbit-nav-arrow-color;
301
+ #{$default-float}: 50%;
302
+ margin-#{$default-float}: -4px;
303
+ }
304
+ &:hover > span {
305
+ border-#{$default-float}-color: $orbit-nav-arrow-color-hover;
306
+ }
307
+ }
308
+ }
309
+
310
+ .orbit-bullets-container { text-align: center; }
311
+ .orbit-bullets {
312
+ display: block;
313
+ float: none;
314
+ margin: 0 auto 30px auto;
315
+ overflow: hidden;
316
+ position: relative;
317
+ text-align: center;
318
+ top: 10px;
319
+
320
+ li {
321
+ background: $orbit-bullet-nav-color;
322
+ cursor: pointer;
323
+ display: inline-block;
324
+ // float: $default-float;
325
+ float: none;
326
+ height: $orbit-bullet-radius;
327
+ margin-#{$opposite-direction}: 6px;
328
+ width: $orbit-bullet-radius;
329
+
330
+ @include radius(1000px);
331
+
332
+ &.active {
333
+ background: $orbit-bullet-nav-color-active;
334
+ }
335
+
336
+ &:last-child { margin-#{$opposite-direction}: 0; }
337
+ }
338
+ }
339
+
340
+ .touch {
341
+ .orbit-container {
342
+ .orbit-prev,
343
+ .orbit-next { display: none; }
344
+ }
345
+
346
+ .orbit-bullets { display: none; }
347
+ }
348
+
349
+
350
+ @media #{$medium-up} {
351
+
352
+ .touch {
353
+ .orbit-container {
354
+ .orbit-prev,
355
+ .orbit-next { display: inherit; }
356
+ }
357
+
358
+ .orbit-bullets { display: block; }
359
+ }
360
+
361
+ }
362
+
363
+ @media #{$small-only} {
364
+ .orbit-stack-on-small {
365
+ .orbit-slides-container {height: auto !important;}
366
+ .orbit-slides-container > * {
367
+ margin:0 !important;
368
+ opacity: 1 !important;
369
+ position: relative;
370
+ }
371
+
372
+ .orbit-slide-number {
373
+ display: none;
374
+ }
375
+ }
376
+
377
+ @if $orbit-timer-hide-for-small {
378
+ .orbit-timer{display: none;}
379
+ }
380
+ @if $orbit-nav-hide-for-small {
381
+ .orbit-next,.orbit-prev{display: none;}
382
+ }
383
+ @if $orbit-bullet-hide-for-small {
384
+ .orbit-bullets{display: none;}
385
+ }
386
+ }
387
+ }
388
+ }
@@ -0,0 +1,163 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-pagination-classes: $include-html-classes !default;
11
+
12
+ // We use these to control the pagination container
13
+ $pagination-height: rem-calc(24) !default;
14
+ $pagination-margin: rem-calc(-5) !default;
15
+
16
+ // We use these to set the list-item properties
17
+ $pagination-li-float: $default-float !default;
18
+ $pagination-li-height: rem-calc(24) !default;
19
+ $pagination-li-font-color: $jet !default;
20
+ $pagination-li-font-size: rem-calc(14) !default;
21
+ $pagination-li-margin: rem-calc(5) !default;
22
+
23
+ // We use these for the pagination anchor links
24
+ $pagination-link-pad: rem-calc(1 10 1) !default;
25
+ $pagination-link-font-color: $aluminum !default;
26
+ $pagination-link-active-bg: scale-color($white, $lightness: -10%) !default;
27
+
28
+ // We use these for disabled anchor links
29
+ $pagination-link-unavailable-cursor: default !default;
30
+ $pagination-link-unavailable-font-color: $aluminum !default;
31
+ $pagination-link-unavailable-bg-active: transparent !default;
32
+
33
+ // We use these for currently selected anchor links
34
+ $pagination-link-current-background: $primary-color !default;
35
+ $pagination-link-current-font-color: $white !default;
36
+ $pagination-link-current-font-weight: $font-weight-bold !default;
37
+ $pagination-link-current-cursor: default !default;
38
+ $pagination-link-current-active-bg: $primary-color !default;
39
+
40
+ // @mixins
41
+ //
42
+ // Style the pagination container. Currently only used when centering elements.
43
+ // $center - Default: false, Options: true
44
+ @mixin pagination-container($center:false) {
45
+ @if $center { text-align: center; }
46
+ }
47
+
48
+ // @mixins
49
+ // Style unavailable list items
50
+ @mixin pagination-unavailable-item {
51
+ a, button {
52
+ cursor: $pagination-link-unavailable-cursor;
53
+ color: $pagination-link-unavailable-font-color;
54
+ pointer-events: none;
55
+ }
56
+ &:hover a,
57
+ & a:focus,
58
+
59
+ &:hover button,
60
+ & button:focus
61
+ { background: $pagination-link-unavailable-bg-active; }
62
+ }
63
+ // @mixins
64
+ // Style the current list item. Do not assume that the current item has
65
+ // an anchor <a> element.
66
+ // $has-anchor - Default: true, Options: false
67
+ @mixin pagination-current-item($has-anchor: true) {
68
+ @if $has-anchor {
69
+ a, button {
70
+ background: $pagination-link-current-background;
71
+ color: $pagination-link-current-font-color;
72
+ cursor: $pagination-link-current-cursor;
73
+ font-weight: $pagination-link-current-font-weight;
74
+
75
+ &:hover,
76
+ &:focus { background: $pagination-link-current-active-bg; }
77
+ }
78
+ } @else {
79
+ background: $pagination-link-current-background;
80
+ color: $pagination-link-current-font-color;
81
+ cursor: $pagination-link-current-cursor;
82
+ font-weight: $pagination-link-current-font-weight;
83
+ height: auto;
84
+ padding: $pagination-link-pad;
85
+ @include radius;
86
+
87
+ &:hover,
88
+ &:focus { background: $pagination-link-current-active-bg; }
89
+ }
90
+ }
91
+
92
+ // @mixins
93
+ //
94
+ // We use this mixin to set the properties for the creating Foundation pagination
95
+ // $center - Left or center align the li elements. Default: false
96
+ // $base-style - Sets base styles for pagination. Default: true, Options: false
97
+ // $use-default-classes - Makes unavailable & current classes available for use. Default: true
98
+ @mixin pagination($center:false, $base-style:true, $use-default-classes:true) {
99
+
100
+ @if $base-style {
101
+ display: block;
102
+ margin-#{$default-float}: $pagination-margin;
103
+ min-height: $pagination-height;
104
+
105
+ li {
106
+ color: $pagination-li-font-color;
107
+ font-size: $pagination-li-font-size;
108
+ height: $pagination-li-height;
109
+ margin-#{$default-float}: $pagination-li-margin;
110
+
111
+ a, button {
112
+ @include radius;
113
+ @include single-transition(background-color);
114
+ background: none;
115
+ color: $pagination-link-font-color;
116
+ display: block;
117
+ font-size: 1em;
118
+ font-weight: normal;
119
+ line-height: inherit;
120
+ padding: $pagination-link-pad;
121
+ }
122
+
123
+ &:hover a,
124
+ a:focus,
125
+ &:hover button,
126
+ button:focus
127
+ { background: $pagination-link-active-bg; }
128
+
129
+ @if $use-default-classes {
130
+ &.unavailable { @include pagination-unavailable-item(); }
131
+ &.current { @include pagination-current-item(); }
132
+ }
133
+ }
134
+ }
135
+
136
+ // Left or center align the li elements
137
+ li {
138
+ @if $center {
139
+ display: inline-block;
140
+ float: none;
141
+ } @else {
142
+ display: block;
143
+ float: $pagination-li-float;
144
+ }
145
+ }
146
+ }
147
+
148
+ @include exports("pagination") {
149
+ @if $include-pagination-classes {
150
+ ul.pagination {
151
+ @include pagination;
152
+ }
153
+
154
+ /* Pagination centred wrapper */
155
+ .pagination-centered {
156
+ @include pagination-container(true);
157
+
158
+ ul.pagination {
159
+ @include pagination(true, false);
160
+ }
161
+ }
162
+ }
163
+ }