foundation-rails 6.3.1.0 → 6.4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bower.json +3 -3
- data/lib/foundation/rails/version.rb +1 -1
- data/lib/generators/foundation/install_generator.rb +1 -1
- data/lib/generators/foundation/templates/_settings.scss +291 -48
- data/vendor/assets/js/entries/foundation-plugins.js +25 -0
- data/vendor/assets/js/entries/foundation.js +101 -0
- data/vendor/assets/js/entries/plugins/foundation.abide.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.accordion.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.accordionMenu.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.core.js +21 -0
- data/vendor/assets/js/entries/plugins/foundation.drilldown.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.dropdown.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.dropdownMenu.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.equalizer.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.interchange.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.magellan.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.offcanvas.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.orbit.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.responsiveAccordionTabs.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.responsiveMenu.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.responsiveToggle.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.reveal.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.slider.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.smoothScroll.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.sticky.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.tabs.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.toggler.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.tooltip.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.util.box.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.util.imageLoader.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.util.keyboard.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.util.mediaQuery.js +4 -0
- data/vendor/assets/js/entries/plugins/foundation.util.motion.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.util.nest.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.util.timer.js +5 -0
- data/vendor/assets/js/entries/plugins/foundation.util.touch.js +7 -0
- data/vendor/assets/js/entries/plugins/foundation.util.triggers.js +5 -0
- data/vendor/assets/js/foundation.abide.js.es6 +18 -15
- data/vendor/assets/js/foundation.accordion.js.es6 +37 -23
- data/vendor/assets/js/foundation.accordionMenu.js.es6 +96 -51
- data/vendor/assets/js/foundation.core.js.es6 +46 -87
- data/vendor/assets/js/foundation.drilldown.js.es6 +47 -29
- data/vendor/assets/js/foundation.dropdown.js.es6 +84 -122
- data/vendor/assets/js/foundation.dropdownMenu.js.es6 +44 -28
- data/vendor/assets/js/foundation.equalizer.js.es6 +18 -17
- data/vendor/assets/js/foundation.interchange.js.es6 +26 -19
- data/vendor/assets/js/foundation.js.es6 +8 -3
- data/vendor/assets/js/foundation.magellan.js.es6 +36 -30
- data/vendor/assets/js/foundation.offcanvas.js.es6 +148 -36
- data/vendor/assets/js/foundation.orbit.js.es6 +26 -18
- data/vendor/assets/js/foundation.plugin.js.es6 +54 -0
- data/vendor/assets/js/foundation.positionable.js.es6 +206 -0
- data/vendor/assets/js/{foundation.zf.responsiveAccordionTabs.js.es6 → foundation.responsiveAccordionTabs.js.es6} +33 -30
- data/vendor/assets/js/foundation.responsiveMenu.js.es6 +37 -29
- data/vendor/assets/js/foundation.responsiveToggle.js.es6 +17 -16
- data/vendor/assets/js/foundation.reveal.js.es6 +61 -79
- data/vendor/assets/js/foundation.slider.js.es6 +33 -18
- data/vendor/assets/js/foundation.smoothScroll.js.es6 +135 -0
- data/vendor/assets/js/foundation.sticky.js.es6 +25 -17
- data/vendor/assets/js/foundation.tabs.js.es6 +35 -27
- data/vendor/assets/js/foundation.toggler.js.es6 +15 -13
- data/vendor/assets/js/foundation.tooltip.js.es6 +100 -108
- data/vendor/assets/js/foundation.util.box.js.es6 +114 -78
- data/vendor/assets/js/foundation.util.core.js.es6 +52 -0
- data/vendor/assets/js/foundation.util.imageLoader.js.es6 +45 -0
- data/vendor/assets/js/foundation.util.keyboard.js.es6 +41 -31
- data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +59 -55
- data/vendor/assets/js/foundation.util.motion.js.es6 +4 -5
- data/vendor/assets/js/foundation.util.nest.js.es6 +9 -23
- data/vendor/assets/js/{foundation.util.timerAndImageLoader.js.es6 → foundation.util.timer.js.es6} +2 -42
- data/vendor/assets/js/foundation.util.touch.js.es6 +91 -294
- data/vendor/assets/js/foundation.util.triggers.js.es6 +199 -141
- data/vendor/assets/scss/_global.scss +29 -1
- data/vendor/assets/scss/components/_accordion-menu.scss +148 -13
- data/vendor/assets/scss/components/_accordion.scss +5 -0
- data/vendor/assets/scss/components/_breadcrumbs.scss +26 -9
- data/vendor/assets/scss/components/_button-group.scss +4 -4
- data/vendor/assets/scss/components/_button.scss +59 -12
- data/vendor/assets/scss/components/_card.scss +10 -2
- data/vendor/assets/scss/components/_drilldown.scss +90 -41
- data/vendor/assets/scss/components/_dropdown-menu.scss +52 -6
- data/vendor/assets/scss/components/_dropdown.scss +8 -1
- data/vendor/assets/scss/components/_flex.scss +85 -2
- data/vendor/assets/scss/components/_menu.scss +267 -162
- data/vendor/assets/scss/components/_off-canvas.scss +159 -45
- data/vendor/assets/scss/components/_pagination.scss +1 -1
- data/vendor/assets/scss/components/_reveal.scss +13 -11
- data/vendor/assets/scss/components/_slider.scss +0 -1
- data/vendor/assets/scss/components/_sticky.scss +1 -0
- data/vendor/assets/scss/components/_table.scss +7 -6
- data/vendor/assets/scss/components/_tabs.scss +1 -1
- data/vendor/assets/scss/components/_title-bar.scss +1 -1
- data/vendor/assets/scss/components/_tooltip.scss +74 -21
- data/vendor/assets/scss/components/_top-bar.scss +2 -0
- data/vendor/assets/scss/forms/_fieldset.scss +0 -1
- data/vendor/assets/scss/forms/_meter.scss +7 -1
- data/vendor/assets/scss/forms/_select.scss +4 -3
- data/vendor/assets/scss/forms/_text.scss +11 -2
- data/vendor/assets/scss/foundation.scss +17 -3
- data/vendor/assets/scss/grid/_flex-grid.scss +3 -52
- data/vendor/assets/scss/prototype/_arrow.scss +36 -0
- data/vendor/assets/scss/prototype/_border-box.scss +35 -0
- data/vendor/assets/scss/prototype/_border-none.scss +35 -0
- data/vendor/assets/scss/prototype/_bordered.scss +54 -0
- data/vendor/assets/scss/prototype/_box.scss +23 -0
- data/vendor/assets/scss/prototype/_display.scss +50 -0
- data/vendor/assets/scss/prototype/_font-styling.scss +95 -0
- data/vendor/assets/scss/prototype/_list-style-type.scss +95 -0
- data/vendor/assets/scss/prototype/_overflow.scss +72 -0
- data/vendor/assets/scss/prototype/_position.scss +114 -0
- data/vendor/assets/scss/prototype/_prototype.scss +91 -0
- data/vendor/assets/scss/prototype/_relation.scss +157 -0
- data/vendor/assets/scss/prototype/_rotate.scss +31 -0
- data/vendor/assets/scss/prototype/_rounded.scss +54 -0
- data/vendor/assets/scss/prototype/_separator.scss +96 -0
- data/vendor/assets/scss/prototype/_shadow.scss +43 -0
- data/vendor/assets/scss/prototype/_sizing.scss +73 -0
- data/vendor/assets/scss/prototype/_spacing.scss +204 -0
- data/vendor/assets/scss/prototype/_text-decoration.scss +48 -0
- data/vendor/assets/scss/prototype/_text-transformation.scss +48 -0
- data/vendor/assets/scss/prototype/_text-utilities.scss +88 -0
- data/vendor/assets/scss/prototype/_typescale.scss +20 -0
- data/vendor/assets/scss/settings/_settings.scss +291 -48
- data/vendor/assets/scss/typography/_base.scss +2 -2
- data/vendor/assets/scss/typography/_helpers.scss +6 -4
- data/vendor/assets/scss/util/_breakpoint.scss +60 -1
- data/vendor/assets/scss/util/_color.scss +8 -5
- data/vendor/assets/scss/util/_mixins.scss +45 -5
- data/vendor/assets/scss/xy-grid/_cell.scss +179 -0
- data/vendor/assets/scss/xy-grid/_classes.scss +455 -0
- data/vendor/assets/scss/xy-grid/_collapse.scss +54 -0
- data/vendor/assets/scss/xy-grid/_frame.scss +54 -0
- data/vendor/assets/scss/xy-grid/_grid.scss +56 -0
- data/vendor/assets/scss/xy-grid/_gutters.scss +45 -0
- data/vendor/assets/scss/xy-grid/_layout.scss +33 -0
- data/vendor/assets/scss/xy-grid/_position.scss +28 -0
- data/vendor/assets/scss/xy-grid/_xy-grid.scss +52 -0
- metadata +73 -4
@@ -0,0 +1,73 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-sizing
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for spacing classes (margin and padding)
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-sizing-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Map containing all the `sizing` classes
|
14
|
+
/// @type Map
|
15
|
+
$prototype-sizing: (
|
16
|
+
width,
|
17
|
+
height
|
18
|
+
) !default;
|
19
|
+
|
20
|
+
/// Map containing all the sizes.
|
21
|
+
/// @type Map
|
22
|
+
$prototype-sizes: (
|
23
|
+
25: 25%,
|
24
|
+
50: 50%,
|
25
|
+
75: 75%,
|
26
|
+
100: 100%
|
27
|
+
) !default;
|
28
|
+
|
29
|
+
/// Max Width 100 utility.
|
30
|
+
@mixin max-width-100 {
|
31
|
+
max-width: 100% !important;
|
32
|
+
}
|
33
|
+
|
34
|
+
/// Max Height 100 utility.
|
35
|
+
@mixin max-height-100 {
|
36
|
+
max-height: 100% !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin foundation-prototype-sizing {
|
40
|
+
// Element Sizing
|
41
|
+
@each $sizing in $prototype-sizing {
|
42
|
+
@each $length, $percentage in $prototype-sizes {
|
43
|
+
.#{$sizing}-#{$length} {
|
44
|
+
#{$sizing}: $percentage !important;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Max width & height
|
50
|
+
.max-width-100 {
|
51
|
+
@include max-width-100;
|
52
|
+
}
|
53
|
+
.max-height-100 {
|
54
|
+
@include max-height-100;
|
55
|
+
}
|
56
|
+
|
57
|
+
@if ($prototype-sizing-breakpoints) {
|
58
|
+
// Loop through Responsive Breakpoints
|
59
|
+
@each $size in $breakpoint-classes {
|
60
|
+
@include breakpoint($size) {
|
61
|
+
@if $size != $-zf-zero-breakpoint {
|
62
|
+
@each $sizing in $prototype-sizing {
|
63
|
+
@each $length, $percentage in $prototype-sizes {
|
64
|
+
.#{$size}-#{$sizing}-#{$length} {
|
65
|
+
#{$sizing}: $percentage !important;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,204 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-spacing
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for spacing classes (margin and padding)
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-spacing-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Default number of spacers count (margin and padding)
|
14
|
+
/// @type Number
|
15
|
+
$prototype-spacers-count: 3 !default;
|
16
|
+
|
17
|
+
/// Margin helper mixin, all the values are multiplied by `$global-margin` which by default is equal to `1rem`
|
18
|
+
/// @param {Number} $top [null] - Margin Top
|
19
|
+
/// @param {Number} $right [null] - Margin Right
|
20
|
+
/// @param {Number} $bottom [null] - Margin Bottom
|
21
|
+
/// @param {Number} $left [null] - Margin Left
|
22
|
+
@mixin margin(
|
23
|
+
$top: null,
|
24
|
+
$right: null,
|
25
|
+
$bottom: null,
|
26
|
+
$left: null
|
27
|
+
) {
|
28
|
+
@if $top != null {
|
29
|
+
margin-top: $top * $global-margin !important;
|
30
|
+
}
|
31
|
+
@if $right != null {
|
32
|
+
margin-right: $right * $global-margin !important;
|
33
|
+
}
|
34
|
+
@if $bottom != null {
|
35
|
+
margin-bottom: $bottom * $global-margin !important;
|
36
|
+
}
|
37
|
+
@if $left != null {
|
38
|
+
margin-left: $left * $global-margin !important;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
/// Padding helper mixin, all the values are multiplied by `$global-padding` which by default is equal to `1rem`
|
43
|
+
/// @param {Number} $top [null] - Padding Top
|
44
|
+
/// @param {Number} $right [null] - Padding Right
|
45
|
+
/// @param {Number} $bottom [null] - Padding Bottom
|
46
|
+
/// @param {Number} $left [null] - Padding Left
|
47
|
+
@mixin padding(
|
48
|
+
$top: null,
|
49
|
+
$right: null,
|
50
|
+
$bottom: null,
|
51
|
+
$left: null
|
52
|
+
) {
|
53
|
+
@if $top != null {
|
54
|
+
padding-top: $top * $global-padding !important;
|
55
|
+
}
|
56
|
+
@if $right != null {
|
57
|
+
padding-right: $right * $global-padding !important;
|
58
|
+
}
|
59
|
+
@if $bottom != null {
|
60
|
+
padding-bottom: $bottom * $global-padding !important;
|
61
|
+
}
|
62
|
+
@if $left != null {
|
63
|
+
padding-left: $left * $global-padding !important;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin foundation-prototype-spacing {
|
68
|
+
@for $spacer from 0 through $prototype-spacers-count {
|
69
|
+
// All Sides
|
70
|
+
.margin-#{$spacer} {
|
71
|
+
@include margin($spacer, $spacer, $spacer, $spacer);
|
72
|
+
}
|
73
|
+
|
74
|
+
.padding-#{$spacer} {
|
75
|
+
@include padding($spacer, $spacer, $spacer, $spacer);
|
76
|
+
}
|
77
|
+
|
78
|
+
// Top Side
|
79
|
+
.margin-top-#{$spacer} {
|
80
|
+
@include margin($spacer, null, null, null);
|
81
|
+
}
|
82
|
+
|
83
|
+
.padding-top-#{$spacer} {
|
84
|
+
@include padding($spacer, null, null, null);
|
85
|
+
}
|
86
|
+
|
87
|
+
// Right Side
|
88
|
+
.margin-right-#{$spacer} {
|
89
|
+
@include margin(null, $spacer, null, null);
|
90
|
+
}
|
91
|
+
|
92
|
+
.padding-right-#{$spacer} {
|
93
|
+
@include padding(null, $spacer, null, null);
|
94
|
+
}
|
95
|
+
|
96
|
+
// Bottom Side
|
97
|
+
.margin-bottom-#{$spacer} {
|
98
|
+
@include margin(null, null, $spacer, null);
|
99
|
+
}
|
100
|
+
|
101
|
+
.padding-bottom-#{$spacer} {
|
102
|
+
@include padding(null, null, $spacer, null);
|
103
|
+
}
|
104
|
+
|
105
|
+
// Left Side
|
106
|
+
.margin-left-#{$spacer} {
|
107
|
+
@include margin(null, null, null, $spacer);
|
108
|
+
}
|
109
|
+
|
110
|
+
.padding-left-#{$spacer} {
|
111
|
+
@include padding(null, null, null, $spacer);
|
112
|
+
}
|
113
|
+
|
114
|
+
// Horizontal Axes
|
115
|
+
.margin-horizontal-#{$spacer} {
|
116
|
+
@include margin(null, $spacer, null, $spacer);
|
117
|
+
}
|
118
|
+
|
119
|
+
.padding-horizontal-#{$spacer} {
|
120
|
+
@include padding(null, $spacer, null, $spacer);
|
121
|
+
}
|
122
|
+
|
123
|
+
// Vertical Axes
|
124
|
+
.margin-vertical-#{$spacer} {
|
125
|
+
@include margin($spacer, null, $spacer, null)
|
126
|
+
}
|
127
|
+
|
128
|
+
.padding-vertical-#{$spacer} {
|
129
|
+
@include padding($spacer, null, $spacer, null)
|
130
|
+
}
|
131
|
+
|
132
|
+
@if ($prototype-spacing-breakpoints) {
|
133
|
+
// Loop through Responsive Breakpoints
|
134
|
+
@each $size in $breakpoint-classes {
|
135
|
+
@include breakpoint($size) {
|
136
|
+
@if $size != $-zf-zero-breakpoint {
|
137
|
+
// All Sides
|
138
|
+
.#{$size}-margin-#{$spacer} {
|
139
|
+
@include margin($spacer, $spacer, $spacer, $spacer);
|
140
|
+
}
|
141
|
+
|
142
|
+
.#{$size}-padding-#{$spacer} {
|
143
|
+
@include padding($spacer, $spacer, $spacer, $spacer);
|
144
|
+
}
|
145
|
+
|
146
|
+
// Top Side
|
147
|
+
.#{$size}-margin-top-#{$spacer} {
|
148
|
+
@include margin($spacer, null, null, null);
|
149
|
+
}
|
150
|
+
|
151
|
+
.#{$size}-padding-top-#{$spacer} {
|
152
|
+
@include padding($spacer, null, null, null);
|
153
|
+
}
|
154
|
+
|
155
|
+
// Right Side
|
156
|
+
.#{$size}-margin-right-#{$spacer} {
|
157
|
+
@include margin(null, $spacer, null, null);
|
158
|
+
}
|
159
|
+
|
160
|
+
.#{$size}-padding-right-#{$spacer} {
|
161
|
+
@include padding(null, $spacer, null, null);
|
162
|
+
}
|
163
|
+
|
164
|
+
// Bottom Side
|
165
|
+
.#{$size}-margin-bottom-#{$spacer} {
|
166
|
+
@include margin(null, null, $spacer, null);
|
167
|
+
}
|
168
|
+
|
169
|
+
.#{$size}-padding-bottom-#{$spacer} {
|
170
|
+
@include padding(null, null, $spacer, null);
|
171
|
+
}
|
172
|
+
|
173
|
+
// Left Side
|
174
|
+
.#{$size}-margin-left-#{$spacer} {
|
175
|
+
@include margin(null, null, null, $spacer);
|
176
|
+
}
|
177
|
+
|
178
|
+
.#{$size}-padding-left-#{$spacer} {
|
179
|
+
@include padding(null, null, null, $spacer);
|
180
|
+
}
|
181
|
+
|
182
|
+
// Horizontal Axes
|
183
|
+
.#{$size}-margin-horizontal-#{$spacer} {
|
184
|
+
@include margin(null, $spacer, null, $spacer);
|
185
|
+
}
|
186
|
+
|
187
|
+
.#{$size}-padding-horizontal-#{$spacer} {
|
188
|
+
@include padding(null, $spacer, null, $spacer);
|
189
|
+
}
|
190
|
+
|
191
|
+
// Vertical Axes
|
192
|
+
.#{$size}-margin-vertical-#{$spacer} {
|
193
|
+
@include margin($spacer, null, $spacer, null)
|
194
|
+
}
|
195
|
+
|
196
|
+
.#{$size}-padding-vertical-#{$spacer} {
|
197
|
+
@include padding($spacer, null, $spacer, null)
|
198
|
+
}
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-text-decoration
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for text decoration classes
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-decoration-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Map containing all the `text-decoration` classes
|
14
|
+
/// @type Map
|
15
|
+
$prototype-text-decoration: (
|
16
|
+
overline,
|
17
|
+
underline,
|
18
|
+
line-through,
|
19
|
+
) !default;
|
20
|
+
|
21
|
+
/// Text Decoration, by default coming through a map `$prototype-text-decoration`
|
22
|
+
/// @param {String} $decoration [] Text Decoration
|
23
|
+
@mixin text-decoration($decoration) {
|
24
|
+
text-decoration: $decoration !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin foundation-prototype-text-decoration {
|
28
|
+
@each $decoration in $prototype-text-decoration {
|
29
|
+
.text-#{$decoration} {
|
30
|
+
@include text-decoration($decoration);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
@if ($prototype-decoration-breakpoints) {
|
35
|
+
// Loop through Responsive Breakpoints
|
36
|
+
@each $size in $breakpoint-classes {
|
37
|
+
@include breakpoint($size) {
|
38
|
+
@each $decoration in $prototype-text-decoration {
|
39
|
+
@if $size != $-zf-zero-breakpoint {
|
40
|
+
.#{$size}-text-#{$decoration} {
|
41
|
+
@include text-decoration($decoration);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-text-transformation
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for text transformation classes
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-transformation-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Map containing all the `text-transformation` classes
|
14
|
+
/// @type Map
|
15
|
+
$prototype-text-transformation: (
|
16
|
+
lowercase,
|
17
|
+
uppercase,
|
18
|
+
capitalize
|
19
|
+
) !default;
|
20
|
+
|
21
|
+
/// Text Transformation, by default coming through a map `$prototype-text-transformation`
|
22
|
+
/// @param {String} $transformation [] Text Transformation
|
23
|
+
@mixin text-transform($transformation) {
|
24
|
+
text-transform: $transformation !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin foundation-prototype-text-transformation {
|
28
|
+
@each $transformation in $prototype-text-transformation {
|
29
|
+
.text-#{$transformation} {
|
30
|
+
@include text-transform($transformation);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
@if ($prototype-transformation-breakpoints) {
|
35
|
+
// Loop through Responsive Breakpoints
|
36
|
+
@each $size in $breakpoint-classes {
|
37
|
+
@include breakpoint($size) {
|
38
|
+
@each $transformation in $prototype-text-transformation {
|
39
|
+
@if $size != $-zf-zero-breakpoint {
|
40
|
+
.#{$size}-text-#{$transformation} {
|
41
|
+
@include text-transform($transformation);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-text-utilities
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for text utilities
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-utilities-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Default Value for `text-overflow` variable
|
14
|
+
/// @type String
|
15
|
+
$prototype-text-overflow: ellipsis !default;
|
16
|
+
|
17
|
+
/// Image Replacement utility. `text-hide`
|
18
|
+
@mixin text-hide {
|
19
|
+
font: 0/0 a !important;
|
20
|
+
color: transparent !important;
|
21
|
+
text-shadow: none !important;
|
22
|
+
background-color: transparent !important;
|
23
|
+
border: 0 !important;
|
24
|
+
}
|
25
|
+
|
26
|
+
/// Truncating the text, elipsis by default.
|
27
|
+
/// @param {String} $overflow [$prototype-text-overflow] Text Truncate
|
28
|
+
@mixin text-truncate(
|
29
|
+
$overflow: $prototype-text-overflow
|
30
|
+
) {
|
31
|
+
max-width: 100% !important;
|
32
|
+
overflow: hidden !important;
|
33
|
+
text-overflow: $overflow;
|
34
|
+
white-space: nowrap !important;
|
35
|
+
}
|
36
|
+
|
37
|
+
/// No wrapping of the text. `text-nowrap`
|
38
|
+
@mixin text-nowrap {
|
39
|
+
white-space: nowrap !important;
|
40
|
+
}
|
41
|
+
|
42
|
+
/// Wrapping of the text. `text-wrap`
|
43
|
+
@mixin text-wrap {
|
44
|
+
word-wrap: break-word !important;
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin foundation-prototype-text-utilities {
|
48
|
+
.text-hide {
|
49
|
+
@include text-hide;
|
50
|
+
}
|
51
|
+
|
52
|
+
.text-truncate {
|
53
|
+
@include text-truncate;
|
54
|
+
}
|
55
|
+
|
56
|
+
.text-nowrap {
|
57
|
+
@include text-nowrap;
|
58
|
+
}
|
59
|
+
|
60
|
+
.text-wrap {
|
61
|
+
@include text-wrap;
|
62
|
+
}
|
63
|
+
|
64
|
+
@if ($prototype-utilities-breakpoints) {
|
65
|
+
// Loop through Responsive Breakpoints
|
66
|
+
@each $size in $breakpoint-classes {
|
67
|
+
@include breakpoint($size) {
|
68
|
+
@if $size != $-zf-zero-breakpoint {
|
69
|
+
.#{$size}-text-hide {
|
70
|
+
@include text-hide;
|
71
|
+
}
|
72
|
+
|
73
|
+
.#{$size}-text-truncate {
|
74
|
+
@include text-truncate;
|
75
|
+
}
|
76
|
+
|
77
|
+
.#{$size}-text-nowrap {
|
78
|
+
@include text-nowrap;
|
79
|
+
}
|
80
|
+
|
81
|
+
.#{$size}-text-wrap {
|
82
|
+
@include text-wrap;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|