bedrock_sass 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  3. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  4. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  5. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  6. data/assets/_vendor/foundation/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  7. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  8. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  9. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  10. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  11. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  12. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  13. data/assets/_vendor/foundation/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  14. data/assets/_vendor/foundation/scss/_global.scss +249 -0
  15. data/assets/_vendor/foundation/scss/components/_accordion-menu.scss +171 -0
  16. data/assets/_vendor/foundation/scss/components/_accordion.scss +155 -0
  17. data/assets/_vendor/foundation/scss/components/_badge.scss +63 -0
  18. data/assets/_vendor/foundation/scss/components/_breadcrumbs.scss +117 -0
  19. data/assets/_vendor/foundation/scss/components/_button-group.scss +253 -0
  20. data/assets/_vendor/foundation/scss/components/_button.scss +385 -0
  21. data/assets/_vendor/foundation/scss/components/_callout.scss +106 -0
  22. data/assets/_vendor/foundation/scss/components/_card.scss +129 -0
  23. data/assets/_vendor/foundation/scss/components/_close-button.scss +102 -0
  24. data/assets/_vendor/foundation/scss/components/_drilldown.scss +142 -0
  25. data/assets/_vendor/foundation/scss/components/_dropdown-menu.scss +274 -0
  26. data/assets/_vendor/foundation/scss/components/_dropdown.scss +79 -0
  27. data/assets/_vendor/foundation/scss/components/_flex-video.scss +1 -0
  28. data/assets/_vendor/foundation/scss/components/_flex.scss +117 -0
  29. data/assets/_vendor/foundation/scss/components/_float.scss +27 -0
  30. data/assets/_vendor/foundation/scss/components/_label.scss +64 -0
  31. data/assets/_vendor/foundation/scss/components/_media-object.scss +114 -0
  32. data/assets/_vendor/foundation/scss/components/_menu-icon.scss +9 -0
  33. data/assets/_vendor/foundation/scss/components/_menu.scss +495 -0
  34. data/assets/_vendor/foundation/scss/components/_off-canvas.scss +506 -0
  35. data/assets/_vendor/foundation/scss/components/_orbit.scss +196 -0
  36. data/assets/_vendor/foundation/scss/components/_pagination.scss +193 -0
  37. data/assets/_vendor/foundation/scss/components/_progress-bar.scss +64 -0
  38. data/assets/_vendor/foundation/scss/components/_responsive-embed.scss +70 -0
  39. data/assets/_vendor/foundation/scss/components/_reveal.scss +180 -0
  40. data/assets/_vendor/foundation/scss/components/_slider.scss +137 -0
  41. data/assets/_vendor/foundation/scss/components/_sticky.scss +39 -0
  42. data/assets/_vendor/foundation/scss/components/_switch.scss +247 -0
  43. data/assets/_vendor/foundation/scss/components/_table.scss +330 -0
  44. data/assets/_vendor/foundation/scss/components/_tabs.scss +196 -0
  45. data/assets/_vendor/foundation/scss/components/_thumbnail.scss +67 -0
  46. data/assets/_vendor/foundation/scss/components/_title-bar.scss +84 -0
  47. data/assets/_vendor/foundation/scss/components/_tooltip.scss +160 -0
  48. data/assets/_vendor/foundation/scss/components/_top-bar.scss +175 -0
  49. data/assets/_vendor/foundation/scss/components/_visibility.scss +132 -0
  50. data/assets/_vendor/foundation/scss/forms/_checkbox.scss +41 -0
  51. data/assets/_vendor/foundation/scss/forms/_error.scss +88 -0
  52. data/assets/_vendor/foundation/scss/forms/_fieldset.scss +53 -0
  53. data/assets/_vendor/foundation/scss/forms/_forms.scss +34 -0
  54. data/assets/_vendor/foundation/scss/forms/_help-text.scss +30 -0
  55. data/assets/_vendor/foundation/scss/forms/_input-group.scss +142 -0
  56. data/assets/_vendor/foundation/scss/forms/_label.scss +50 -0
  57. data/assets/_vendor/foundation/scss/forms/_meter.scss +116 -0
  58. data/assets/_vendor/foundation/scss/forms/_progress.scss +94 -0
  59. data/assets/_vendor/foundation/scss/forms/_range.scss +149 -0
  60. data/assets/_vendor/foundation/scss/forms/_select.scss +86 -0
  61. data/assets/_vendor/foundation/scss/forms/_text.scss +179 -0
  62. data/assets/_vendor/foundation/scss/foundation.scss +133 -0
  63. data/assets/_vendor/foundation/scss/grid/_classes.scss +176 -0
  64. data/assets/_vendor/foundation/scss/grid/_column.scss +112 -0
  65. data/assets/_vendor/foundation/scss/grid/_flex-grid.scss +259 -0
  66. data/assets/_vendor/foundation/scss/grid/_grid.scss +48 -0
  67. data/assets/_vendor/foundation/scss/grid/_gutter.scss +82 -0
  68. data/assets/_vendor/foundation/scss/grid/_layout.scss +76 -0
  69. data/assets/_vendor/foundation/scss/grid/_position.scss +76 -0
  70. data/assets/_vendor/foundation/scss/grid/_row.scss +99 -0
  71. data/assets/_vendor/foundation/scss/grid/_size.scss +24 -0
  72. data/assets/_vendor/foundation/scss/prototype/_arrow.scss +36 -0
  73. data/assets/_vendor/foundation/scss/prototype/_border-box.scss +35 -0
  74. data/assets/_vendor/foundation/scss/prototype/_border-none.scss +35 -0
  75. data/assets/_vendor/foundation/scss/prototype/_bordered.scss +54 -0
  76. data/assets/_vendor/foundation/scss/prototype/_box.scss +23 -0
  77. data/assets/_vendor/foundation/scss/prototype/_display.scss +50 -0
  78. data/assets/_vendor/foundation/scss/prototype/_font-styling.scss +95 -0
  79. data/assets/_vendor/foundation/scss/prototype/_list-style-type.scss +95 -0
  80. data/assets/_vendor/foundation/scss/prototype/_overflow.scss +72 -0
  81. data/assets/_vendor/foundation/scss/prototype/_position.scss +114 -0
  82. data/assets/_vendor/foundation/scss/prototype/_prototype.scss +87 -0
  83. data/assets/_vendor/foundation/scss/prototype/_relation.scss +157 -0
  84. data/assets/_vendor/foundation/scss/prototype/_rotate.scss +31 -0
  85. data/assets/_vendor/foundation/scss/prototype/_rounded.scss +54 -0
  86. data/assets/_vendor/foundation/scss/prototype/_separator.scss +96 -0
  87. data/assets/_vendor/foundation/scss/prototype/_shadow.scss +43 -0
  88. data/assets/_vendor/foundation/scss/prototype/_sizing.scss +73 -0
  89. data/assets/_vendor/foundation/scss/prototype/_spacing.scss +204 -0
  90. data/assets/_vendor/foundation/scss/prototype/_text-decoration.scss +48 -0
  91. data/assets/_vendor/foundation/scss/prototype/_text-transformation.scss +48 -0
  92. data/assets/_vendor/foundation/scss/prototype/_text-utilities.scss +88 -0
  93. data/assets/_vendor/foundation/scss/settings/_settings.scss +869 -0
  94. data/assets/_vendor/foundation/scss/typography/_alignment.scss +22 -0
  95. data/assets/_vendor/foundation/scss/typography/_base.scss +509 -0
  96. data/assets/_vendor/foundation/scss/typography/_helpers.scss +80 -0
  97. data/assets/_vendor/foundation/scss/typography/_print.scss +86 -0
  98. data/assets/_vendor/foundation/scss/typography/_typography.scss +26 -0
  99. data/assets/_vendor/foundation/scss/util/_breakpoint.scss +348 -0
  100. data/assets/_vendor/foundation/scss/util/_color.scss +129 -0
  101. data/assets/_vendor/foundation/scss/util/_direction.scss +31 -0
  102. data/assets/_vendor/foundation/scss/util/_flex.scss +85 -0
  103. data/assets/_vendor/foundation/scss/util/_math.scss +72 -0
  104. data/assets/_vendor/foundation/scss/util/_mixins.scss +313 -0
  105. data/assets/_vendor/foundation/scss/util/_selector.scss +41 -0
  106. data/assets/_vendor/foundation/scss/util/_typography.scss +26 -0
  107. data/assets/_vendor/foundation/scss/util/_unit.scss +152 -0
  108. data/assets/_vendor/foundation/scss/util/_util.scss +14 -0
  109. data/assets/_vendor/foundation/scss/util/_value.scss +160 -0
  110. data/assets/_vendor/foundation/scss/xy-grid/_cell.scss +169 -0
  111. data/assets/_vendor/foundation/scss/xy-grid/_classes.scss +476 -0
  112. data/assets/_vendor/foundation/scss/xy-grid/_collapse.scss +74 -0
  113. data/assets/_vendor/foundation/scss/xy-grid/_frame.scss +85 -0
  114. data/assets/_vendor/foundation/scss/xy-grid/_grid.scss +35 -0
  115. data/assets/_vendor/foundation/scss/xy-grid/_gutters.scss +45 -0
  116. data/assets/_vendor/foundation/scss/xy-grid/_layout.scss +33 -0
  117. data/assets/_vendor/foundation/scss/xy-grid/_position.scss +28 -0
  118. data/assets/_vendor/foundation/scss/xy-grid/_xy-grid.scss +51 -0
  119. data/assets/_vendor/motion-ui/_classes.scss +109 -0
  120. data/assets/_vendor/motion-ui/_settings.scss +61 -0
  121. data/assets/_vendor/motion-ui/effects/_fade.scss +32 -0
  122. data/assets/_vendor/motion-ui/effects/_hinge.scss +65 -0
  123. data/assets/_vendor/motion-ui/effects/_shake.scss +15 -0
  124. data/assets/_vendor/motion-ui/effects/_slide.scss +41 -0
  125. data/assets/_vendor/motion-ui/effects/_spin.scss +28 -0
  126. data/assets/_vendor/motion-ui/effects/_wiggle.scss +13 -0
  127. data/assets/_vendor/motion-ui/effects/_zoom.scss +15 -0
  128. data/assets/_vendor/motion-ui/motion-ui.scss +29 -0
  129. data/assets/_vendor/motion-ui/transitions/_fade.scss +28 -0
  130. data/assets/_vendor/motion-ui/transitions/_hinge.scss +43 -0
  131. data/assets/_vendor/motion-ui/transitions/_slide.scss +42 -0
  132. data/assets/_vendor/motion-ui/transitions/_spin.scss +39 -0
  133. data/assets/_vendor/motion-ui/transitions/_zoom.scss +39 -0
  134. data/assets/_vendor/motion-ui/util/_animation.scss +7 -0
  135. data/assets/_vendor/motion-ui/util/_args.scss +15 -0
  136. data/assets/_vendor/motion-ui/util/_keyframe.scss +136 -0
  137. data/assets/_vendor/motion-ui/util/_selector.scss +23 -0
  138. data/assets/_vendor/motion-ui/util/_series.scss +54 -0
  139. data/assets/_vendor/motion-ui/util/_transition.scss +45 -0
  140. data/assets/_vendor/motion-ui/util/_unit.scss +7 -0
  141. data/assets/bedrock/js/bedrock.js +22993 -0
  142. data/assets/bedrock/scss/_bedrock-components.scss +15 -0
  143. data/assets/bedrock/scss/_bedrock-settings.scss +45 -0
  144. data/assets/bedrock/scss/_foundation-components.scss +50 -0
  145. data/assets/bedrock/scss/_foundation-settings.scss +869 -0
  146. data/assets/bedrock/scss/bedrock.scss +7 -0
  147. data/assets/bedrock/scss/components/global.scss +55 -0
  148. data/assets/bedrock/scss/components/header.scss +60 -0
  149. data/assets/bedrock/scss/components/helper-classes.scss +53 -0
  150. data/assets/bedrock/scss/components/logo-bar.scss +45 -0
  151. data/assets/bedrock/scss/components/off-canvas-menu.scss +359 -0
  152. data/assets/bedrock/scss/components/panel.scss +121 -0
  153. data/assets/bedrock/scss/components/tiny-mce-editor.scss +74 -0
  154. data/lib/bedrock_sass/version.rb +1 -1
  155. metadata +153 -2
@@ -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
+ }