foundation-sass-rails 5.5.3.2

Sign up to get free protection for your applications and to get access to all the features.
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,125 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ //
8
+ // @name _sub-nav.scss
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-nav-classes: $include-html-classes !default;
17
+
18
+ // We use these to control margin and padding
19
+ $sub-nav-list-margin: rem-calc(-4 0 18) !default;
20
+ $sub-nav-list-padding-top: rem-calc(4) !default;
21
+
22
+ // We use this to control the definition
23
+ $sub-nav-font-family: $body-font-family !default;
24
+ $sub-nav-font-size: rem-calc(14) !default;
25
+ $sub-nav-font-color: $aluminum !default;
26
+ $sub-nav-font-weight: $font-weight-normal !default;
27
+ $sub-nav-text-decoration: none !default;
28
+ $sub-nav-padding: rem-calc(3 16) !default;
29
+ $sub-nav-border-radius: 3px !default;
30
+ $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
31
+
32
+
33
+ // We use these to control the active item styles
34
+
35
+ $sub-nav-active-font-weight: $font-weight-normal !default;
36
+ $sub-nav-active-bg: $primary-color !default;
37
+ $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
38
+ $sub-nav-active-color: $white !default;
39
+ $sub-nav-active-padding: $sub-nav-padding !default;
40
+ $sub-nav-active-cursor: default !default;
41
+
42
+ $sub-nav-item-divider: "" !default;
43
+ $sub-nav-item-divider-margin: rem-calc(12) !default;
44
+
45
+ //
46
+ // @mixins
47
+ //
48
+
49
+
50
+ // Create a sub-nav item
51
+ //
52
+ // $font-color - Font color. Default: $sub-nav-font-color.
53
+ // $font-size - Font size. Default: $sub-nav-font-size.
54
+ // $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
55
+ // $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
56
+ @mixin sub-nav(
57
+ $font-color: $sub-nav-font-color,
58
+ $font-size: $sub-nav-font-size,
59
+ $active-bg: $sub-nav-active-bg,
60
+ $active-bg-hover: $sub-nav-active-bg-hover) {
61
+ display: block;
62
+ margin: $sub-nav-list-margin;
63
+ overflow: hidden;
64
+ padding-top: $sub-nav-list-padding-top;
65
+ width: auto;
66
+
67
+ dt {
68
+ text-transform: uppercase;
69
+ }
70
+
71
+ dt,
72
+ dd,
73
+ li {
74
+ color: $font-color;
75
+ float: $default-float;
76
+ font-family: $sub-nav-font-family;
77
+ font-size: $font-size;
78
+ font-weight: $sub-nav-font-weight;
79
+ margin-#{$default-float}: rem-calc(16);
80
+ margin-bottom: 0;
81
+
82
+ a {
83
+ color: $sub-nav-font-color;
84
+ padding: $sub-nav-padding;
85
+ text-decoration: $sub-nav-text-decoration;
86
+
87
+ &:hover {
88
+ color: $sub-nav-font-color-hover;
89
+ }
90
+ }
91
+
92
+ &.active a {
93
+ @include radius($sub-nav-border-radius);
94
+ background: $active-bg;
95
+ color: $sub-nav-active-color;
96
+ cursor: $sub-nav-active-cursor;
97
+ font-weight: $sub-nav-active-font-weight;
98
+ padding: $sub-nav-active-padding;
99
+
100
+ &:hover {
101
+ background: $active-bg-hover;
102
+ }
103
+ }
104
+
105
+ @if $sub-nav-item-divider != "" {
106
+ margin-#{$default-float}: 0;
107
+
108
+ &:before {
109
+ content: "#{$sub-nav-item-divider}";
110
+ margin: 0 $sub-nav-item-divider-margin;
111
+ }
112
+
113
+ &:first-child:before {
114
+ content: "";
115
+ margin: 0;
116
+ }
117
+ }
118
+ }
119
+ }
120
+
121
+ @include exports("sub-nav") {
122
+ @if $include-html-nav-classes {
123
+ .sub-nav { @include sub-nav; }
124
+ }
125
+ }
@@ -0,0 +1,241 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ //
8
+ // @name
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-form-classes: $include-html-classes !default;
17
+
18
+ // Controlling background color for the switch container
19
+ $switch-bg: $gainsboro !default;
20
+
21
+ // We use these to control the switch heights for our default classes
22
+ $switch-height-tny: 1.5rem !default;
23
+ $switch-height-sml: 1.75rem !default;
24
+ $switch-height-med: 2rem !default;
25
+ $switch-height-lrg: 2.5rem !default;
26
+ $switch-bottom-margin: 1.5rem !default;
27
+
28
+ // We use these to style the switch-paddle
29
+ $switch-paddle-bg: $white !default;
30
+ $switch-paddle-transition-speed: .15s !default;
31
+ $switch-paddle-transition-ease: ease-out !default;
32
+ $switch-active-color: $primary-color !default;
33
+
34
+
35
+ //
36
+ // @mixins
37
+ //
38
+
39
+ // We use this mixin to create the base styles for our switch element.
40
+ //
41
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
42
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
43
+ @mixin switch-base(
44
+ $transition-speed:$switch-paddle-transition-speed,
45
+ $transition-ease:$switch-paddle-transition-ease) {
46
+
47
+ border: none;
48
+ margin-bottom: $switch-bottom-margin;
49
+ outline: 0;
50
+ padding: 0;
51
+ position: relative;
52
+ -webkit-user-select: none;
53
+ -moz-user-select: none;
54
+ -ms-user-select: none;
55
+ user-select: none;
56
+
57
+ // Default label styles for type and transition
58
+ label {
59
+ background: $switch-bg;
60
+ color: transparent;
61
+ cursor: pointer;
62
+ display: block;
63
+ margin-bottom: ($switch-height-med / 2);
64
+ position: relative;
65
+ text-indent: 100%;
66
+ width: $switch-height-med * 2; height: $switch-height-med;
67
+
68
+ // Transition for the switch label to follow paddle
69
+ @include single-transition(left, $transition-speed, $transition-ease);
70
+ }
71
+
72
+ // So that we don't need to recreate the form with any JS, we use the
73
+ // existing checkbox or radio button, but we cleverly position and hide it.
74
+ input {
75
+ left: 10px;
76
+ opacity: 0;
77
+ padding:0;
78
+ position: absolute;
79
+ top: 9px;
80
+
81
+ & + label { margin-left: 0; margin-right: 0; }
82
+ }
83
+
84
+ // The paddle for the switch is created from an after psuedoclass
85
+ // content element. This is sized and positioned, and reacts to
86
+ // the state of the input.
87
+
88
+ label:after {
89
+ background: $switch-paddle-bg;
90
+ content: "";
91
+ display: block;
92
+ height: $switch-height-med - .5rem;
93
+ left: .25rem;
94
+ position: absolute;
95
+ top: .25rem;
96
+ width: $switch-height-med - .5rem;
97
+
98
+ -webkit-transition: left $transition-speed $transition-ease;
99
+ -moz-transition: left $transition-speed $transition-ease;
100
+ -o-transition: translate3d(0,0,0);
101
+ transition: left $transition-speed $transition-ease;
102
+
103
+ -webkit-transform: translate3d(0,0,0);
104
+ -moz-transform: translate3d(0,0,0);
105
+ -ms-transform: translate3d(0,0,0);
106
+ -o-transform: translate3d(0,0,0);
107
+ transform: translate3d(0,0,0);
108
+ }
109
+
110
+ input:checked + label {
111
+ background: $switch-active-color;
112
+ }
113
+
114
+ input:checked + label:after {
115
+ left: $switch-height-med + .25rem;
116
+ }
117
+ }
118
+
119
+ // We use this mixin to create the size styles for switches.
120
+ //
121
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
122
+ // $font-size - Font size of text in switch. Default: $switch-font-size-med.
123
+ // $line-height - Line height of switch. Default: 2.3rem.
124
+ @mixin switch-size($height: $switch-height-med) {
125
+
126
+ label {
127
+ height: $height;
128
+ width: $height * 2;
129
+ }
130
+
131
+ label:after {
132
+ height: $height - .5rem;
133
+ width: $height - .5rem;
134
+ }
135
+
136
+ input:checked + label:after {
137
+ left: $height + .25rem;
138
+ }
139
+
140
+ }
141
+
142
+ // We use this mixin to add color and other fanciness to the switches.
143
+ //
144
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
145
+ // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
146
+ // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
147
+ // $radius - Radius to apply to switch. Default: false.
148
+ // $base-style - Apply base styles? Default: true.
149
+ @mixin switch-style(
150
+ $paddle-bg:$switch-paddle-bg,
151
+ $active-color:$switch-active-color,
152
+ $radius:false,
153
+ $base-style:true) {
154
+
155
+ @if $base-style {
156
+
157
+ label {
158
+ color: transparent;
159
+ background: $switch-bg;
160
+ }
161
+
162
+ label:after {
163
+ background: $paddle-bg;
164
+ }
165
+
166
+ input:checked + label {
167
+ background: $active-color;
168
+ }
169
+ }
170
+
171
+ // Setting up the radius for switches
172
+ @if $radius == true {
173
+ label {
174
+ border-radius: 2rem;
175
+ }
176
+ label:after {
177
+ border-radius: 2rem;
178
+ }
179
+ }
180
+ @else if $radius {
181
+ label {
182
+ border-radius: $radius;
183
+ }
184
+ label:after {
185
+ border-radius: $radius;
186
+ }
187
+ }
188
+
189
+ }
190
+
191
+ // We use this to quickly create switches with a single mixin
192
+ //
193
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
194
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
195
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
196
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
197
+ // $active-color - Background color of an active switch. Default: $switch-active-color.
198
+ // $radius - Radius to apply to switch. Default: false.
199
+ // $base-style - Apply base styles? Default: true.
200
+ @mixin switch(
201
+ $transition-speed: $switch-paddle-transition-speed,
202
+ $transition-ease: $switch-paddle-transition-ease,
203
+ $height: $switch-height-med,
204
+ $paddle-bg: $switch-paddle-bg,
205
+ $active-color: $switch-active-color,
206
+ $radius:false,
207
+ $base-style:true) {
208
+ @include switch-base($transition-speed, $transition-ease);
209
+ @include switch-size($height);
210
+ @include switch-style($paddle-bg, $active-color, $radius, $base-style);
211
+ }
212
+
213
+ @include exports("switch") {
214
+ @if $include-html-form-classes {
215
+ .switch {
216
+ @include switch;
217
+
218
+ // Large radio switches
219
+ &.large { @include switch-size($switch-height-lrg); }
220
+
221
+ // Small radio switches
222
+ &.small { @include switch-size($switch-height-sml); }
223
+
224
+ // Tiny radio switches
225
+ &.tiny { @include switch-size($switch-height-tny); }
226
+
227
+ // Add a radius to the switch
228
+ &.radius {
229
+ label { @include radius(4px); }
230
+ label:after { @include radius(3px); }
231
+ }
232
+
233
+ // Make the switch completely round, like a pill
234
+ &.round { @include radius(1000px);
235
+ label { @include radius(2rem); }
236
+ label:after { @include radius(2rem); }
237
+ }
238
+
239
+ }
240
+ }
241
+ }
@@ -0,0 +1,135 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ //
8
+ // @name _tables.scss
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-table-classes: $include-html-classes !default;
17
+
18
+ // These control the background color for the table and even rows
19
+ $table-bg: $white !default;
20
+ $table-even-row-bg: $snow !default;
21
+
22
+ // These control the table cell border style
23
+ $table-border-style: solid !default;
24
+ $table-border-size: 1px !default;
25
+ $table-border-color: $gainsboro !default;
26
+
27
+ // These control the table head styles
28
+ $table-head-bg: $white-smoke !default;
29
+ $table-head-font-size: rem-calc(14) !default;
30
+ $table-head-font-color: $jet !default;
31
+ $table-head-font-weight: $font-weight-bold !default;
32
+ $table-head-padding: rem-calc(8 10 10) !default;
33
+
34
+ // These control the table foot styles
35
+ $table-foot-bg: $table-head-bg !default;
36
+ $table-foot-font-size: $table-head-font-size !default;
37
+ $table-foot-font-color: $table-head-font-color !default;
38
+ $table-foot-font-weight: $table-head-font-weight !default;
39
+ $table-foot-padding: $table-head-padding !default;
40
+
41
+ // These control the caption
42
+ $table-caption-bg: transparent !default;
43
+ $table-caption-font-color: $table-head-font-color !default;
44
+ $table-caption-font-size: rem-calc(16) !default;
45
+ $table-caption-font-weight: bold !default;
46
+
47
+ // These control the row padding and font styles
48
+ $table-row-padding: rem-calc(9 10) !default;
49
+ $table-row-font-size: rem-calc(14) !default;
50
+ $table-row-font-color: $jet !default;
51
+ $table-line-height: rem-calc(18) !default;
52
+
53
+ // These are for controlling the layout, display and margin of tables
54
+ $table-layout: auto !default;
55
+ $table-display: table-cell !default;
56
+ $table-margin-bottom: rem-calc(20) !default;
57
+
58
+
59
+ //
60
+ // @mixins
61
+ //
62
+
63
+ @mixin table {
64
+ background: $table-bg;
65
+ border: $table-border-style $table-border-size $table-border-color;
66
+ margin-bottom: $table-margin-bottom;
67
+ table-layout: $table-layout;
68
+
69
+ caption {
70
+ background: $table-caption-bg;
71
+ color: $table-caption-font-color;
72
+ font: {
73
+ size: $table-caption-font-size;
74
+ weight: $table-caption-font-weight;
75
+ }
76
+ }
77
+
78
+ thead {
79
+ background: $table-head-bg;
80
+
81
+ tr {
82
+ th,
83
+ td {
84
+ color: $table-head-font-color;
85
+ font-size: $table-head-font-size;
86
+ font-weight: $table-head-font-weight;
87
+ padding: $table-head-padding;
88
+ }
89
+ }
90
+ }
91
+
92
+ tfoot {
93
+ background: $table-foot-bg;
94
+
95
+ tr {
96
+ th,
97
+ td {
98
+ color: $table-foot-font-color;
99
+ font-size: $table-foot-font-size;
100
+ font-weight: $table-foot-font-weight;
101
+ padding: $table-foot-padding;
102
+ }
103
+ }
104
+ }
105
+
106
+ tr {
107
+ th,
108
+ td {
109
+ color: $table-row-font-color;
110
+ font-size: $table-row-font-size;
111
+ padding: $table-row-padding;
112
+ text-align: $default-float;
113
+ }
114
+
115
+ &.even,
116
+ &.alt,
117
+ &:nth-of-type(even) { background: $table-even-row-bg; }
118
+ }
119
+
120
+ thead tr th,
121
+ tfoot tr th,
122
+ tfoot tr td,
123
+ tbody tr th,
124
+ tbody tr td,
125
+ tr td { display: $table-display; line-height: $table-line-height; }
126
+ }
127
+
128
+
129
+ @include exports("table") {
130
+ @if $include-html-table-classes {
131
+ table {
132
+ @include table;
133
+ }
134
+ }
135
+ }