zurb-foundation 4.1.5 → 4.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/Gemfile.lock +1 -1
  2. data/README.md +4 -0
  3. data/docs/CHANGELOG.md +10 -0
  4. data/docs/components/block-grid.html.erb +1 -1
  5. data/docs/components/grid.html.erb +4 -4
  6. data/docs/components/inline-lists.html.erb +2 -2
  7. data/docs/components/panels.html.erb +2 -2
  8. data/docs/components/pricing-tables.html.erb +1 -1
  9. data/docs/components/progress-bars.html.erb +1 -1
  10. data/docs/components/reveal.html.erb +1 -1
  11. data/docs/components/section.html.erb +546 -19
  12. data/docs/components/split-buttons.html.erb +2 -2
  13. data/docs/components/thumbnails.html.erb +2 -2
  14. data/docs/components/top-bar.html.erb +2 -3
  15. data/docs/components/type.html.erb +5 -5
  16. data/docs/components/visibility.html.erb +1 -1
  17. data/docs/css/docs.scss +54 -0
  18. data/docs/sass.html.erb +3 -1
  19. data/js/foundation/foundation.forms.js +311 -227
  20. data/js/foundation/foundation.joyride.js +10 -8
  21. data/js/foundation/foundation.js +1 -1
  22. data/js/foundation/foundation.section.js +4 -4
  23. data/lib/foundation/version.rb +1 -1
  24. data/scss/foundation/_variables.scss +185 -171
  25. data/scss/foundation/components/_alert-boxes.scss +1 -0
  26. data/scss/foundation/components/_block-grid.scss +2 -4
  27. data/scss/foundation/components/_breadcrumbs.scss +1 -0
  28. data/scss/foundation/components/_button-groups.scss +1 -0
  29. data/scss/foundation/components/_buttons.scss +1 -0
  30. data/scss/foundation/components/_clearing.scss +154 -151
  31. data/scss/foundation/components/_custom-forms.scss +35 -21
  32. data/scss/foundation/components/_dropdown-buttons.scss +2 -1
  33. data/scss/foundation/components/_dropdown.scss +2 -1
  34. data/scss/foundation/components/_flex-video.scss +1 -0
  35. data/scss/foundation/components/_forms.scss +1 -0
  36. data/scss/foundation/components/_global.scss +75 -84
  37. data/scss/foundation/components/_grid.scss +9 -8
  38. data/scss/foundation/components/_inline-lists.scss +2 -1
  39. data/scss/foundation/components/_joyride.scss +165 -160
  40. data/scss/foundation/components/_keystrokes.scss +2 -1
  41. data/scss/foundation/components/_labels.scss +1 -0
  42. data/scss/foundation/components/_magellan.scss +2 -0
  43. data/scss/foundation/components/_orbit.scss +158 -154
  44. data/scss/foundation/components/_pagination.scss +1 -0
  45. data/scss/foundation/components/_panels.scss +1 -0
  46. data/scss/foundation/components/_pricing-tables.scss +1 -0
  47. data/scss/foundation/components/_progress-bars.scss +1 -0
  48. data/scss/foundation/components/_reveal.scss +2 -1
  49. data/scss/foundation/components/_section.scss +108 -93
  50. data/scss/foundation/components/_side-nav.scss +2 -1
  51. data/scss/foundation/components/_split-buttons.scss +1 -0
  52. data/scss/foundation/components/_sub-nav.scss +1 -0
  53. data/scss/foundation/components/_switch.scss +4 -2
  54. data/scss/foundation/components/_tables.scss +7 -3
  55. data/scss/foundation/components/_thumbs.scss +1 -0
  56. data/scss/foundation/components/_tooltips.scss +85 -81
  57. data/scss/foundation/components/_top-bar.scss +323 -318
  58. data/scss/foundation/components/_type.scss +290 -286
  59. data/scss/foundation/components/_visibility.scss +2 -0
  60. data/templates/project/index.html +0 -1
  61. data/templates/project/manifest.rb +0 -1
  62. data/templates/project/scss/app.scss +3 -0
  63. metadata +4 -4
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Alert Variables
3
3
  //
4
+ $include-html-alert-classes: $include-html-classes !default;
4
5
 
5
6
  // We use this to control alert padding.
6
7
  $alert-padding-top: emCalc(11px) !default;
@@ -1,14 +1,12 @@
1
1
  //
2
2
  // Block Grid Variables
3
3
  //
4
+ $include-html-grid-classes: $include-html-classes !default;
4
5
 
5
6
  // We use this to control the maximum number of block grid elements per row
6
7
  $block-grid-elements: 12 !default;
7
8
  $block-grid-default-spacing: 10px !default;
8
9
 
9
- // Enables media queries for block-grid classes. Set to false if writing semantic HTML.
10
- $block-grid-media-queries: true !default;
11
-
12
10
  //
13
11
  // Block Grid Mixins
14
12
  //
@@ -43,7 +41,7 @@ $block-grid-media-queries: true !default;
43
41
 
44
42
  }
45
43
 
46
- @if $block-grid-media-queries {
44
+ @if $include-html-grid-classes {
47
45
  /* Foundation Block Grids for below small breakpoint */
48
46
  @media only screen {
49
47
  [class*="block-grid-"] { @include block-grid; }
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Breadcrumb Variables
3
3
  //
4
+ $include-html-nav-classes: $include-html-classes !default;
4
5
 
5
6
  // We use this to set the background color for the breadcrumb container.
6
7
  $crumb-bg: lighten($secondary-color, 5%) !default;
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Button Group Variables
3
3
  //
4
+ $include-html-button-classes: $include-html-classes !default;
4
5
 
5
6
  // Sets the margin for the right side by default, and the left margin if right-to-left direction is used
6
7
  $button-bar-margin-opposite: emCalc(10px) !default;
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Button Variables
3
3
  //
4
+ $include-html-button-classes: $include-html-classes !default;
4
5
 
5
6
  // We use these to build padding for buttons.
6
7
  $button-med: emCalc(12px) !default;
@@ -1,6 +1,7 @@
1
1
  //
2
2
  // Clearing Variables
3
3
  //
4
+ $include-html-clearing-classes: $include-html-classes !default;
4
5
 
5
6
  // We use these to set the background colors for parts of Clearing.
6
7
  $clearing-bg: #111 !default;
@@ -26,192 +27,194 @@ $clearing-carousel-height: 150px !default;
26
27
  $clearing-carousel-thumb-width: 175px !default;
27
28
  $clearing-carousel-thumb-active-border: 4px solid rgb(255,255,255) !default;
28
29
 
30
+ @if $include-html-clearing-classes {
31
+ // We decided to not create a mixin for Clearing because it relies
32
+ // on predefined classes and structure to work properly.
33
+ // The variables above should give enough control.
29
34
 
30
- // We decided to not create a mixin for Clearing because it relies
31
- // on predefined classes and structure to work properly.
32
- // The variables above should give enough control.
35
+ /* Clearing Styles */
36
+ [data-clearing] {
37
+ @include clearfix;
38
+ margin-bottom: 0;
39
+ list-style: none;
33
40
 
34
- /* Clearing Styles */
35
- [data-clearing] {
36
- @include clearfix;
37
- margin-bottom: 0;
38
- list-style: none;
39
-
40
- li {
41
- float: $default-float;
42
- margin-#{$opposite-direction}: 10px;
41
+ li {
42
+ float: $default-float;
43
+ margin-#{$opposite-direction}: 10px;
44
+ }
43
45
  }
44
- }
45
46
 
46
- .clearing-blackout {
47
- background: $clearing-bg;
48
- position: fixed;
49
- width: 100%;
50
- height: 100%;
51
- top: 0;
52
- #{$default-float}: 0;
53
- z-index: 998;
47
+ .clearing-blackout {
48
+ background: $clearing-bg;
49
+ position: fixed;
50
+ width: 100%;
51
+ height: 100%;
52
+ top: 0;
53
+ #{$default-float}: 0;
54
+ z-index: 998;
54
55
 
55
- .clearing-close { display: block; }
56
- }
56
+ .clearing-close { display: block; }
57
+ }
57
58
 
58
- .clearing-container {
59
- position: relative;
60
- z-index: 998;
61
- height: 100%;
62
- overflow: hidden;
63
- margin: 0;
64
- }
59
+ .clearing-container {
60
+ position: relative;
61
+ z-index: 998;
62
+ height: 100%;
63
+ overflow: hidden;
64
+ margin: 0;
65
+ }
65
66
 
66
- .visible-img {
67
- height: 95%;
68
- position: relative;
67
+ .visible-img {
68
+ height: 95%;
69
+ position: relative;
69
70
 
70
- img {
71
- position: absolute;
72
- #{$default-float}: 50%;
73
- top: 50%;
74
- margin-#{$default-float}: -50%;
75
- max-height: 100%;
76
- max-width: 100%;
71
+ img {
72
+ position: absolute;
73
+ #{$default-float}: 50%;
74
+ top: 50%;
75
+ margin-#{$default-float}: -50%;
76
+ max-height: 100%;
77
+ max-width: 100%;
78
+ }
77
79
  }
78
- }
79
80
 
80
- .clearing-caption {
81
- color: $clearing-caption-font-color;
82
- line-height: 1.3;
83
- margin-bottom: 0;
84
- text-align: center;
85
- bottom: 0;
86
- background: $clearing-caption-bg;
87
- width: 100%;
88
- padding: $clearing-caption-padding;
89
- position: absolute;
90
- #{$default-float}: 0;
91
- }
81
+ .clearing-caption {
82
+ color: $clearing-caption-font-color;
83
+ line-height: 1.3;
84
+ margin-bottom: 0;
85
+ text-align: center;
86
+ bottom: 0;
87
+ background: $clearing-caption-bg;
88
+ width: 100%;
89
+ padding: $clearing-caption-padding;
90
+ position: absolute;
91
+ #{$default-float}: 0;
92
+ }
92
93
 
93
- .clearing-close {
94
- z-index: 999;
95
- padding-#{$default-float}: 20px;
96
- padding-top: 10px;
97
- font-size: $clearing-close-size;
98
- line-height: 1;
99
- color: $clearing-close-color;
100
- display: none;
101
-
102
- &:hover,
103
- &:focus { color: #ccc; }
104
- }
94
+ .clearing-close {
95
+ z-index: 999;
96
+ padding-#{$default-float}: 20px;
97
+ padding-top: 10px;
98
+ font-size: $clearing-close-size;
99
+ line-height: 1;
100
+ color: $clearing-close-color;
101
+ display: none;
102
+
103
+ &:hover,
104
+ &:focus { color: #ccc; }
105
+ }
105
106
 
106
- .clearing-assembled .clearing-container { height: 100%;
107
- .carousel > ul { display: none; }
108
- }
107
+ .clearing-assembled .clearing-container { height: 100%;
108
+ .carousel > ul { display: none; }
109
+ }
109
110
 
110
111
 
111
- // Large screen overrides
112
- @media #{$small} {
113
- .clearing-main-prev,
114
- .clearing-main-next {
115
- position: absolute;
116
- height: 100%;
117
- width: 40px;
118
- top: 0;
119
- & > span {
112
+ // Large screen overrides
113
+ @media #{$small} {
114
+ .clearing-main-prev,
115
+ .clearing-main-next {
120
116
  position: absolute;
121
- top: 50%;
122
- display: block;
123
- width: 0;
124
- height: 0;
125
- border: solid $clearing-arrow-size;
117
+ height: 100%;
118
+ width: 40px;
119
+ top: 0;
120
+ & > span {
121
+ position: absolute;
122
+ top: 50%;
123
+ display: block;
124
+ width: 0;
125
+ height: 0;
126
+ border: solid $clearing-arrow-size;
127
+ }
126
128
  }
127
- }
128
- .clearing-main-prev {
129
- #{$default-float}: 0;
130
- & > span {
131
- #{$default-float}: 5px;
132
- border-color: transparent;
133
- border-#{$opposite-direction}-color: $clearing-arrow-color;
129
+ .clearing-main-prev {
130
+ #{$default-float}: 0;
131
+ & > span {
132
+ #{$default-float}: 5px;
133
+ border-color: transparent;
134
+ border-#{$opposite-direction}-color: $clearing-arrow-color;
135
+ }
134
136
  }
135
- }
136
- .clearing-main-next {
137
- #{$opposite-direction}: 0;
138
- & > span {
139
- border-color: transparent;
140
- border-#{$default-float}-color: $clearing-arrow-color;
137
+ .clearing-main-next {
138
+ #{$opposite-direction}: 0;
139
+ & > span {
140
+ border-color: transparent;
141
+ border-#{$default-float}-color: $clearing-arrow-color;
142
+ }
141
143
  }
142
- }
143
144
 
144
- .clearing-main-prev.disabled,
145
- .clearing-main-next.disabled { opacity: 0.5; }
145
+ .clearing-main-prev.disabled,
146
+ .clearing-main-next.disabled { opacity: 0.5; }
146
147
 
147
- // If you want to show a lightbox, but only have a single image come through as the thumbnail
148
- .clearing-feature ~ li { display: none; }
148
+ // If you want to show a lightbox, but only have a single image come through as the thumbnail
149
+ .clearing-feature ~ li { display: none; }
149
150
 
150
- .clearing-assembled .clearing-container {
151
+ .clearing-assembled .clearing-container {
151
152
 
152
- .carousel {
153
- background: $clearing-carousel-bg;
154
- height: $clearing-carousel-height;
155
- margin-top: 5px;
153
+ .carousel {
154
+ background: $clearing-carousel-bg;
155
+ height: $clearing-carousel-height;
156
+ margin-top: 5px;
156
157
 
157
- & > ul {
158
- display: block;
159
- z-index: 999;
160
- width: 200%;
161
- height: 100%;
162
- margin-#{$default-float}: 0;
163
- position: relative;
164
- #{$default-float}: 0;
165
-
166
- li {
158
+ & > ul {
167
159
  display: block;
168
- width: $clearing-carousel-thumb-width;
169
- height: inherit;
170
- padding: 0;
171
- float: $default-float;
172
- overflow: hidden;
173
- margin-#{$opposite-direction}: 1px;
160
+ z-index: 999;
161
+ width: 200%;
162
+ height: 100%;
163
+ margin-#{$default-float}: 0;
174
164
  position: relative;
175
- cursor: pointer;
176
- opacity: 0.4;
165
+ #{$default-float}: 0;
177
166
 
178
- &.fix-height {
179
- img {
180
- min-height: 100%;
181
- height: 100%;
182
- max-width: none;
167
+ li {
168
+ display: block;
169
+ width: $clearing-carousel-thumb-width;
170
+ height: inherit;
171
+ padding: 0;
172
+ float: $default-float;
173
+ overflow: hidden;
174
+ margin-#{$opposite-direction}: 1px;
175
+ position: relative;
176
+ cursor: pointer;
177
+ opacity: 0.4;
178
+
179
+ &.fix-height {
180
+ img {
181
+ min-height: 100%;
182
+ height: 100%;
183
+ max-width: none;
184
+ }
183
185
  }
184
- }
185
186
 
186
- a.th {
187
- border: none;
188
- -webkit-box-shadow: none;
189
- box-shadow: none;
190
- display: block;
191
- }
187
+ a.th {
188
+ border: none;
189
+ -webkit-box-shadow: none;
190
+ box-shadow: none;
191
+ display: block;
192
+ }
192
193
 
193
- img {
194
- cursor: pointer !important;
195
- min-width: 100% !important;
196
- }
194
+ img {
195
+ cursor: pointer !important;
196
+ min-width: 100% !important;
197
+ }
197
198
 
198
- &.visible { opacity: 1; }
199
+ &.visible { opacity: 1; }
200
+ }
199
201
  }
200
202
  }
203
+
204
+ .visible-img {
205
+ background: $clearing-img-bg;
206
+ overflow: hidden;
207
+ height: $clearing-active-img-height;
208
+ }
201
209
  }
202
210
 
203
- .visible-img {
204
- background: $clearing-img-bg;
205
- overflow: hidden;
206
- height: $clearing-active-img-height;
211
+ .clearing-close {
212
+ position: absolute;
213
+ top: 10px;
214
+ #{$opposite-direction}: 20px;
215
+ padding-#{$default-float}: 0;
216
+ padding-top: 0;
207
217
  }
208
218
  }
209
219
 
210
- .clearing-close {
211
- position: absolute;
212
- top: 10px;
213
- #{$opposite-direction}: 20px;
214
- padding-#{$default-float}: 0;
215
- padding-top: 0;
216
- }
217
220
  }
@@ -1,12 +1,23 @@
1
+ //
2
+ // FIX THE "X" ON CUSTOM FORMS
3
+ //
4
+
5
+
1
6
  //
2
7
  // Custom Form Variables
3
8
  //
9
+ $include-html-custom-form-classes: $include-html-classes !default;
4
10
 
5
11
  // We use these to control the basic form styles input styles
6
12
  $custom-form-border-color: #ccc !default;
13
+ $custom-form-border-size: 1px !default;
7
14
  $custom-form-bg: #fff !default;
8
15
  $custom-form-bg-disabled: #ddd !default;
16
+ $custom-form-input-size: 16px !default;
9
17
  $custom-form-check-color: #222 !default;
18
+ $custom-form-check-size: 20px !default;
19
+ $custom-form-radio-size: 8px !default;
20
+ $custom-form-checkbox-radius: 0px !default;
10
21
 
11
22
  // We use these to style the custom select form element.
12
23
  $custom-select-bg: #fff !default;
@@ -42,9 +53,13 @@ $custom-dropdown-width-large: 434px !default;
42
53
  // We decided not to make a mixin for the custom forms because
43
54
  // they rely on a very specific class naming structure.
44
55
  // We may look at updating this in the future.
56
+ @mixin custom-form-input($radius:0px, $mark-size:0px) {
57
+ @include radius($radius);
58
+ padding: (($custom-form-input-size - $mark-size) / 2) - $custom-form-border-size;
59
+ }
45
60
 
46
61
  // Only include these classes if the variable is true, otherwise they'll be left out.
47
- @if $include-html-button-classes != false {
62
+ @if $include-html-custom-form-classes != false {
48
63
 
49
64
  /* Custom Checkbox and Radio Inputs */
50
65
  form.custom {
@@ -57,28 +72,27 @@ $custom-dropdown-width-large: 434px !default;
57
72
 
58
73
  .custom {
59
74
  display: inline-block;
60
- width: 16px;
61
- height: 16px;
75
+ width: $custom-form-input-size;
76
+ height: $custom-form-input-size;
62
77
  position: relative;
63
- top: 2px;
64
- border: solid 1px $custom-form-border-color;
78
+ vertical-align: middle;
79
+ border: solid $custom-form-border-size $custom-form-border-color;
65
80
  background: $custom-form-bg;
66
81
 
67
- &.radio { @include radius(1000px); }
82
+ &.checkbox {
83
+ @include custom-form-input($radius:$custom-form-checkbox-radius, $mark-size:$custom-form-check-size);
84
+ }
85
+
86
+ &.radio {
87
+ @include custom-form-input($radius:1000px, $mark-size:$custom-form-radio-size);
88
+ }
68
89
 
69
90
  &.checkbox {
70
91
  &:before {
71
92
  content: "";
72
93
  display: block;
73
- line-height: 0.8;
74
- height: 14px;
75
- width: 14px;
76
- text-align: center;
77
- position: absolute;
78
- top: 0;
79
- #{$default-float}: 0;
80
- font-size: 14px;
81
- color: #fff;
94
+ font-size: $custom-form-check-size;
95
+ color: $custom-form-bg;
82
96
  }
83
97
  }
84
98
 
@@ -86,20 +100,20 @@ $custom-dropdown-width-large: 434px !default;
86
100
  &:before {
87
101
  content: "";
88
102
  display: block;
89
- width: 8px;
90
- height: 8px;
103
+ width: $custom-form-radio-size;
104
+ height: $custom-form-radio-size;
91
105
  @include radius(1000px);
92
106
  background: $custom-form-check-color;
93
107
  position: relative;
94
- top: 3px;
95
- #{$default-float}: 3px;
96
108
  }
97
109
  }
98
110
 
99
111
  &.checkbox.checked {
100
112
  &:before {
101
- content: "\00d7";
113
+ content: "\2A2F";
102
114
  color: $custom-form-check-color;
115
+ margin-top: -8px;
116
+ margin-left: 2px;
103
117
  }
104
118
  }
105
119
  }
@@ -241,6 +255,6 @@ $custom-dropdown-width-large: 434px !default;
241
255
  }
242
256
 
243
257
  /* Custom input, disabled */
244
- .custom.disabled { background-color: $custom-form-bg-disabled; }
258
+ .custom.disabled { background: $custom-form-bg-disabled; }
245
259
  }
246
260
  }