jekyll-theme-foundation 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +17 -0
- data/_includes/scripts.html +4 -0
- data/_layouts/default.html +16 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/_sass/assets/foundation-float.scss +5 -0
- data/_sass/assets/foundation-prototype.scss +3 -0
- data/_sass/assets/foundation-rtl.scss +5 -0
- data/_sass/assets/foundation.scss +3 -0
- data/_sass/jekyll-theme-foundation.scss +5 -0
- data/_sass/scss/_global.scss +249 -0
- data/_sass/scss/components/_accordion-menu.scss +171 -0
- data/_sass/scss/components/_accordion.scss +155 -0
- data/_sass/scss/components/_badge.scss +63 -0
- data/_sass/scss/components/_breadcrumbs.scss +117 -0
- data/_sass/scss/components/_button-group.scss +253 -0
- data/_sass/scss/components/_button.scss +385 -0
- data/_sass/scss/components/_callout.scss +106 -0
- data/_sass/scss/components/_card.scss +129 -0
- data/_sass/scss/components/_close-button.scss +102 -0
- data/_sass/scss/components/_drilldown.scss +142 -0
- data/_sass/scss/components/_dropdown-menu.scss +274 -0
- data/_sass/scss/components/_dropdown.scss +79 -0
- data/_sass/scss/components/_flex-video.scss +1 -0
- data/_sass/scss/components/_flex.scss +117 -0
- data/_sass/scss/components/_float.scss +27 -0
- data/_sass/scss/components/_label.scss +64 -0
- data/_sass/scss/components/_media-object.scss +114 -0
- data/_sass/scss/components/_menu-icon.scss +9 -0
- data/_sass/scss/components/_menu.scss +495 -0
- data/_sass/scss/components/_off-canvas.scss +506 -0
- data/_sass/scss/components/_orbit.scss +196 -0
- data/_sass/scss/components/_pagination.scss +193 -0
- data/_sass/scss/components/_progress-bar.scss +64 -0
- data/_sass/scss/components/_responsive-embed.scss +70 -0
- data/_sass/scss/components/_reveal.scss +180 -0
- data/_sass/scss/components/_slider.scss +137 -0
- data/_sass/scss/components/_sticky.scss +39 -0
- data/_sass/scss/components/_switch.scss +247 -0
- data/_sass/scss/components/_table.scss +330 -0
- data/_sass/scss/components/_tabs.scss +196 -0
- data/_sass/scss/components/_thumbnail.scss +67 -0
- data/_sass/scss/components/_title-bar.scss +84 -0
- data/_sass/scss/components/_tooltip.scss +160 -0
- data/_sass/scss/components/_top-bar.scss +175 -0
- data/_sass/scss/components/_visibility.scss +132 -0
- data/_sass/scss/forms/_checkbox.scss +41 -0
- data/_sass/scss/forms/_error.scss +88 -0
- data/_sass/scss/forms/_fieldset.scss +53 -0
- data/_sass/scss/forms/_forms.scss +34 -0
- data/_sass/scss/forms/_help-text.scss +30 -0
- data/_sass/scss/forms/_input-group.scss +142 -0
- data/_sass/scss/forms/_label.scss +50 -0
- data/_sass/scss/forms/_meter.scss +116 -0
- data/_sass/scss/forms/_progress.scss +94 -0
- data/_sass/scss/forms/_range.scss +149 -0
- data/_sass/scss/forms/_select.scss +86 -0
- data/_sass/scss/forms/_text.scss +179 -0
- data/_sass/scss/foundation.scss +133 -0
- data/_sass/scss/grid/_classes.scss +176 -0
- data/_sass/scss/grid/_column.scss +112 -0
- data/_sass/scss/grid/_flex-grid.scss +259 -0
- data/_sass/scss/grid/_grid.scss +48 -0
- data/_sass/scss/grid/_gutter.scss +82 -0
- data/_sass/scss/grid/_layout.scss +76 -0
- data/_sass/scss/grid/_position.scss +76 -0
- data/_sass/scss/grid/_row.scss +99 -0
- data/_sass/scss/grid/_size.scss +24 -0
- data/_sass/scss/prototype/_arrow.scss +36 -0
- data/_sass/scss/prototype/_border-box.scss +35 -0
- data/_sass/scss/prototype/_border-none.scss +35 -0
- data/_sass/scss/prototype/_bordered.scss +54 -0
- data/_sass/scss/prototype/_box.scss +23 -0
- data/_sass/scss/prototype/_display.scss +50 -0
- data/_sass/scss/prototype/_font-styling.scss +95 -0
- data/_sass/scss/prototype/_list-style-type.scss +95 -0
- data/_sass/scss/prototype/_overflow.scss +72 -0
- data/_sass/scss/prototype/_position.scss +114 -0
- data/_sass/scss/prototype/_prototype.scss +87 -0
- data/_sass/scss/prototype/_relation.scss +157 -0
- data/_sass/scss/prototype/_rotate.scss +31 -0
- data/_sass/scss/prototype/_rounded.scss +54 -0
- data/_sass/scss/prototype/_separator.scss +96 -0
- data/_sass/scss/prototype/_shadow.scss +43 -0
- data/_sass/scss/prototype/_sizing.scss +73 -0
- data/_sass/scss/prototype/_spacing.scss +204 -0
- data/_sass/scss/prototype/_text-decoration.scss +48 -0
- data/_sass/scss/prototype/_text-transformation.scss +48 -0
- data/_sass/scss/prototype/_text-utilities.scss +88 -0
- data/_sass/scss/settings/_settings.scss +869 -0
- data/_sass/scss/typography/_alignment.scss +22 -0
- data/_sass/scss/typography/_base.scss +509 -0
- data/_sass/scss/typography/_helpers.scss +80 -0
- data/_sass/scss/typography/_print.scss +86 -0
- data/_sass/scss/typography/_typography.scss +26 -0
- data/_sass/scss/util/_breakpoint.scss +348 -0
- data/_sass/scss/util/_color.scss +129 -0
- data/_sass/scss/util/_direction.scss +31 -0
- data/_sass/scss/util/_flex.scss +85 -0
- data/_sass/scss/util/_math.scss +72 -0
- data/_sass/scss/util/_mixins.scss +313 -0
- data/_sass/scss/util/_selector.scss +41 -0
- data/_sass/scss/util/_typography.scss +26 -0
- data/_sass/scss/util/_unit.scss +152 -0
- data/_sass/scss/util/_util.scss +14 -0
- data/_sass/scss/util/_value.scss +160 -0
- data/_sass/scss/xy-grid/_cell.scss +169 -0
- data/_sass/scss/xy-grid/_classes.scss +476 -0
- data/_sass/scss/xy-grid/_collapse.scss +74 -0
- data/_sass/scss/xy-grid/_frame.scss +85 -0
- data/_sass/scss/xy-grid/_grid.scss +35 -0
- data/_sass/scss/xy-grid/_gutters.scss +45 -0
- data/_sass/scss/xy-grid/_layout.scss +33 -0
- data/_sass/scss/xy-grid/_position.scss +28 -0
- data/_sass/scss/xy-grid/_xy-grid.scss +51 -0
- data/assets/css/main.scss +5 -0
- data/assets/css/motion-ui.min.css +1 -0
- data/assets/js/foundation.min.js +5 -0
- data/assets/js/motion-ui.min.js +1 -0
- metadata +235 -0
@@ -0,0 +1,43 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group prototype-shadow
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Responsive breakpoints for shadow utility.
|
10
|
+
/// @type Boolean
|
11
|
+
$prototype-shadow-breakpoints: $global-prototype-breakpoints !default;
|
12
|
+
|
13
|
+
/// Default value for `prototype-box-shadow`
|
14
|
+
/// @type Number
|
15
|
+
$prototype-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),
|
16
|
+
0 2px 10px 0 rgba(0,0,0,.12) !default;
|
17
|
+
|
18
|
+
/// Shadow Utility: Adds a light box shadow to an element by default.
|
19
|
+
/// @param {Number} $shadow [$prototype-box-shadow] Box Shadow of a component
|
20
|
+
@mixin shadow(
|
21
|
+
$shadow: $prototype-box-shadow
|
22
|
+
) {
|
23
|
+
box-shadow: $shadow;
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin foundation-prototype-shadow {
|
27
|
+
.shadow {
|
28
|
+
@include shadow;
|
29
|
+
}
|
30
|
+
|
31
|
+
@if ($prototype-shadow-breakpoints) {
|
32
|
+
// Loop through Responsive Breakpoints
|
33
|
+
@each $size in $breakpoint-classes {
|
34
|
+
@include breakpoint($size) {
|
35
|
+
@if $size != $-zf-zero-breakpoint {
|
36
|
+
.#{$size}-shadow {
|
37
|
+
@include shadow;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -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
|
+
}
|