locomotivecms_wagon 2.4.0.rc2 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
  3. data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
  4. data/generators/foundation/public/stylesheets/_settings.scss +455 -115
  5. data/generators/foundation/public/stylesheets/app.css +0 -3
  6. data/generators/foundation/public/stylesheets/app.scss +15 -6
  7. data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
  8. data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
  9. data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
  10. data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
  11. data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
  12. data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
  13. data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
  14. data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
  15. data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
  16. data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
  17. data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
  18. data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
  19. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
  20. data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
  21. data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
  22. data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
  23. data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
  24. data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
  25. data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
  26. data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
  27. data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
  28. data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
  29. data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
  30. data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
  31. data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
  32. data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
  33. data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
  34. data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
  35. data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
  36. data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
  37. data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
  38. data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
  39. data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
  40. data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
  41. data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
  42. data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
  43. data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
  44. data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
  45. data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
  46. data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
  47. data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
  48. data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
  49. data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
  50. data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
  51. data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
  52. data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
  53. data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
  54. data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
  55. data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
  56. data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
  57. data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
  58. data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
  59. data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
  60. data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
  61. data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
  62. data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
  63. data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
  64. data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
  65. data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
  66. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
  67. data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
  68. data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
  69. data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
  70. data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
  71. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
  72. data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
  73. data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
  74. data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
  75. data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
  76. data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
  77. data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
  78. data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
  79. data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
  80. data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
  81. data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
  82. data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
  83. data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
  84. data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
  85. data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
  86. data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
  87. data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
  88. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
  89. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
  90. data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
  91. data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
  92. data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
  93. data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
  94. data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
  95. data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
  96. data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
  97. data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
  98. data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
  99. data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
  100. data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
  101. data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
  102. data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
  103. data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
  104. data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
  105. data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
  106. data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
  107. data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
  108. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
  109. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  110. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  111. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  112. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  113. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  114. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  115. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  116. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  117. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  118. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  119. data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  120. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
  121. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
  122. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
  123. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
  124. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
  125. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
  126. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
  127. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
  128. data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
  129. data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
  130. data/lib/locomotive/wagon/version.rb +1 -1
  131. data/locomotivecms_wagon.gemspec +2 -2
  132. data/spec/fixtures/cassettes/authenticate.yml +102 -48
  133. data/spec/fixtures/cassettes/delete.yml +519 -259
  134. data/spec/fixtures/cassettes/push.yml +2724 -1486
  135. metadata +61 -10
  136. data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
  137. data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -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
+ }