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,76 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Sizes child elements so that `$n` number of items appear on each row.
10
+ ///
11
+ /// @param {Number} $n - Number of elements to display per row.
12
+ /// @param {String} $selector ['.column'] - Selector(s) to use for child elements.
13
+ /// @param {Number|List} $gutter
14
+ /// The gutter to apply to child elements. Accepts multiple values:
15
+ /// - $grid-column-gutter will use the values in the $grid-column-gutter map, including breakpoint sizes.
16
+ /// - A fixed numeric value will apply this gutter to all breakpoints.
17
+ @mixin grid-layout(
18
+ $n,
19
+ $selector: '.column',
20
+ $gutter: null
21
+ ) {
22
+ & > #{$selector} {
23
+ float: $global-left;
24
+ width: percentage(1/$n);
25
+
26
+ // If a $gutter value is passed
27
+ @if($gutter) {
28
+ // Gutters
29
+ @if type-of($gutter) == 'map' {
30
+ @each $breakpoint, $value in $gutter {
31
+ $padding: rem-calc($value) / 2;
32
+
33
+ @include breakpoint($breakpoint) {
34
+ padding-right: $padding;
35
+ padding-left: $padding;
36
+ }
37
+ }
38
+ }
39
+ @else if type-of($gutter) == 'number' and strip-unit($gutter) > 0 {
40
+ $padding: rem-calc($gutter) / 2;
41
+ padding-right: $padding;
42
+ padding-left: $padding;
43
+ }
44
+ }
45
+
46
+ &:nth-of-type(1n) {
47
+ clear: none;
48
+ }
49
+
50
+ &:nth-of-type(#{$n}n+1) {
51
+ clear: both;
52
+ }
53
+
54
+ &:last-child {
55
+ float: $global-left;
56
+ }
57
+ }
58
+ }
59
+
60
+ /// Adds extra CSS to block grid children so the last items in the row center automatically. Apply this to the columns, not the row.
61
+ ///
62
+ /// @param {Number} $n - Number of items that appear in each row.
63
+ @mixin grid-layout-center-last($n) {
64
+ @for $i from 1 to $n {
65
+ @if $i == 1 {
66
+ &:nth-child(#{$n}n+1):last-child {
67
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
68
+ }
69
+ }
70
+ @else {
71
+ &:nth-child(#{$n}n+1):nth-last-child(#{$i}) {
72
+ margin-left: (100 - 100/$n * $i) / 2 * 1%;
73
+ }
74
+ }
75
+ }
76
+ }
@@ -0,0 +1,76 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Reposition a column.
10
+ ///
11
+ /// @param {Number|Keyword} $position - Direction and amount to move. The column will move equal to the width of the column count specified. A positive number will push the column to the right, while a negative number will pull it to the left. Set to center to center the column.
12
+ @mixin grid-column-position($position) {
13
+ @if type-of($position) == 'number' {
14
+ $offset: percentage($position / $grid-column-count);
15
+
16
+ position: relative;
17
+ #{$global-left}: $offset;
18
+ }
19
+ @else if $position == center {
20
+ &, &:last-child:not(:first-child) {
21
+ float: none;
22
+ clear: both;
23
+ }
24
+ margin-right: auto;
25
+ margin-left: auto;
26
+ }
27
+ @else {
28
+ @warn 'Wrong syntax for grid-column-position(). Enter a positive or negative number, or center.';
29
+ }
30
+ }
31
+
32
+ /// Reset a position definition.
33
+ @mixin grid-column-unposition {
34
+ position: static;
35
+ float: $global-left;
36
+ margin-right: 0;
37
+ margin-left: 0;
38
+ }
39
+
40
+ /// Offsets a column to the right by `$n` columns.
41
+ /// @param {Number|List} $n - Width to offset by. You can pass in any value accepted by the `grid-column()` mixin, such as `6`, `50%`, or `1 of 2`.
42
+ @mixin grid-column-offset($n) {
43
+ margin-#{$global-left}: grid-column($n);
44
+ }
45
+
46
+ /// Disable the default behavior of the last column in a row aligning to the opposite edge.
47
+ @mixin grid-column-end {
48
+ // This extra specificity is required for the property to be applied
49
+ &:last-child:last-child {
50
+ float: $global-left;
51
+ }
52
+ }
53
+
54
+ /// Shorthand for `grid-column-position()`.
55
+ /// @alias grid-column-position
56
+ @mixin grid-col-pos($position) {
57
+ @include grid-column-position($position);
58
+ }
59
+
60
+ /// Shorthand for `grid-column-unposition()`.
61
+ /// @alias grid-column-unposition
62
+ @mixin grid-col-unpos {
63
+ @include grid-column-unposition;
64
+ }
65
+
66
+ /// Shorthand for `grid-column-offset()`.
67
+ /// @alias grid-column-offset
68
+ @mixin grid-col-off($n) {
69
+ @include grid-column-offset($n);
70
+ }
71
+
72
+ /// Shorthand for `grid-column-end()`.
73
+ /// @alias grid-column-end
74
+ @mixin grid-col-end {
75
+ @include grid-column-end;
76
+ }
@@ -0,0 +1,99 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Change the behavior of columns defined inside this mixin to use a different column count.
10
+ /// @content
11
+ ///
12
+ /// @param {Number} $columns - Number of columns to use.
13
+ /// @param {Boolean} $root [false]
14
+ /// If `false`, selectors inside this mixin will nest inside the parent selector.
15
+ /// If `true`, selectors will not nest.
16
+ @mixin grid-context(
17
+ $columns,
18
+ $root: false
19
+ ) {
20
+ // Store the current column count so it can be re-set later
21
+ $old-grid-column-count: $grid-column-count;
22
+ $grid-column-count: $columns !global;
23
+
24
+ @if $root {
25
+ @at-root { @content; }
26
+ }
27
+ @else {
28
+ @content;
29
+ }
30
+
31
+ // Restore the old column count
32
+ $grid-column-count: $old-grid-column-count !global;
33
+ }
34
+
35
+ /// Creates a grid row.
36
+ /// @content
37
+ ///
38
+ /// @param {Number} $columns [null] - Column count for this row. `null` will use the default column count.
39
+ /// @param {Keywords} $behavior [null]
40
+ /// Modifications to the default grid styles. `nest` indicates the row will be placed inside another row. `collapse` indicates that the columns inside this row will not have padding. `nest collapse` combines both behaviors.
41
+ /// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
42
+ /// @param {Boolean} $cf [true] - Whether or not to include a clearfix.
43
+ /// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
44
+ @mixin grid-row(
45
+ $columns: null,
46
+ $behavior: null,
47
+ $size: $grid-row-width,
48
+ $cf: true,
49
+ $gutters: $grid-column-gutter
50
+ ) {
51
+ $margin: auto;
52
+
53
+ @if index($behavior, nest) != null {
54
+ @include grid-row-nest($gutters);
55
+
56
+ @if index($behavior, collapse) != null {
57
+ margin-right: 0;
58
+ margin-left: 0;
59
+ }
60
+ }
61
+ @else {
62
+ @include grid-row-size($size);
63
+ margin-right: auto;
64
+ margin-left: auto;
65
+ }
66
+
67
+ @if $cf {
68
+ @include clearfix;
69
+ }
70
+
71
+ @if $columns != null {
72
+ @include grid-context($columns) {
73
+ @content;
74
+ }
75
+ }
76
+ }
77
+
78
+ /// Inverts the margins of a row to nest it inside of a column.
79
+ ///
80
+ /// @param {Number|Map} $gutters [$grid-column-gutter] - Gutter map or single value to use when inverting margins. Responsive gutter settings by default.
81
+ @mixin grid-row-nest($gutters: $grid-column-gutter) {
82
+ @include -zf-each-breakpoint {
83
+ $margin: rem-calc(-zf-get-bp-val($gutters, $-zf-size)) / 2 * -1;
84
+
85
+ margin-right: $margin;
86
+ margin-left: $margin;
87
+ }
88
+ }
89
+
90
+ /// Set a grid row size
91
+ ///
92
+ /// @param {Keyword|Number} $size [$grid-row-width] Maximum size of the row. Set to `expand` to make the row taking the full width.
93
+ @mixin grid-row-size($size: $grid-row-width) {
94
+ @if $size == expand {
95
+ $size: none;
96
+ }
97
+
98
+ max-width: $size;
99
+ }
@@ -0,0 +1,24 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group grid
7
+ ////
8
+
9
+ /// Set the width of a grid column.
10
+ ///
11
+ /// @param {Number|List} $width [$grid-column-count] - Width to make the column. You can pass in any value accepted by the `grid-column()` function, such as `6`, `50%`, or `1 of 2`.
12
+ @mixin grid-column-size(
13
+ $columns: $grid-column-count
14
+ ) {
15
+ width: grid-column($columns);
16
+ }
17
+
18
+ /// Shorthand for `grid-column-size()`.
19
+ /// @alias grid-column-size
20
+ @mixin grid-col-size(
21
+ $columns: $grid-column-count
22
+ ) {
23
+ @include grid-column-size($columns);
24
+ }
@@ -0,0 +1,36 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-arrow
7
+ ////
8
+
9
+ /// Map containing all the `arrow` direction
10
+ /// @type Map
11
+ $prototype-arrow-directions: (
12
+ down,
13
+ up,
14
+ right,
15
+ left
16
+ ) !default;
17
+
18
+ /// Width of the Arrow, `0.4375rem` by default.
19
+ /// @type Number
20
+ $prototype-arrow-size: 0.4375rem;
21
+
22
+ /// Color of the Arrow, `$black` by default.
23
+ /// @type Color
24
+ $prototype-arrow-color: $black;
25
+
26
+ @mixin foundation-prototype-arrow {
27
+ @each $prototype-arrow-direction in $prototype-arrow-directions {
28
+ .arrow-#{$prototype-arrow-direction} {
29
+ @include css-triangle(
30
+ $prototype-arrow-size,
31
+ $prototype-arrow-color,
32
+ $prototype-arrow-direction
33
+ );
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,35 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-border-box
7
+ ////
8
+
9
+ /// Responsive breakpoints for border box.
10
+ /// @type Boolean
11
+ $prototype-border-box-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Border box utility
14
+ @mixin border-box {
15
+ box-sizing: border-box !important;
16
+ }
17
+
18
+ @mixin foundation-prototype-border-box {
19
+ .border-box {
20
+ @include border-box;
21
+ }
22
+
23
+ @if ($prototype-border-box-breakpoints) {
24
+ // Loop through Responsive Breakpoints
25
+ @each $size in $breakpoint-classes {
26
+ @include breakpoint($size) {
27
+ @if $size != $-zf-zero-breakpoint {
28
+ .#{$size}-border-box {
29
+ @include border-box;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-border-none
7
+ ////
8
+
9
+ /// Responsive breakpoints for border none.
10
+ /// @type Boolean
11
+ $prototype-border-none-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Border none utility
14
+ @mixin border-none {
15
+ border: none !important;
16
+ }
17
+
18
+ @mixin foundation-prototype-border-none {
19
+ .border-none {
20
+ @include border-none;
21
+ }
22
+
23
+ @if ($prototype-border-none-breakpoints) {
24
+ // Loop through Responsive Breakpoints
25
+ @each $size in $breakpoint-classes {
26
+ @include breakpoint($size) {
27
+ @if $size != $-zf-zero-breakpoint {
28
+ .#{$size}-border-none {
29
+ @include border-none;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,54 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-bordered
7
+ ////
8
+
9
+ /// Responsive breakpoints for bordered utility.
10
+ /// @type Boolean
11
+ $prototype-bordered-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Default value for `prototype-border-width`
14
+ /// @type Number
15
+ $prototype-border-width: rem-calc(1) !default;
16
+
17
+ /// Default value for `prototype-border-type`
18
+ /// @type String
19
+ $prototype-border-type: solid !default;
20
+
21
+ /// Default value for `prototype-border-color` defaulted to `medium-gray`
22
+ /// @type Color
23
+ $prototype-border-color: $medium-gray !default;
24
+
25
+ /// Bordered Utility: Adds a light border to an element by default.
26
+ /// @param {Number} $width [$prototype-border-width] Width of the border
27
+ /// @param {String} $type [$prototype-border-type] Type of the border
28
+ /// @param {Color} $color [$prototype-border-color] Color of the border
29
+ @mixin bordered(
30
+ $width: $prototype-border-width,
31
+ $type: $prototype-border-type,
32
+ $color: $prototype-border-color
33
+ ) {
34
+ border: $width $type $color;
35
+ }
36
+
37
+ @mixin foundation-prototype-bordered {
38
+ .bordered {
39
+ @include bordered;
40
+ }
41
+
42
+ @if ($prototype-bordered-breakpoints) {
43
+ // Loop through Responsive Breakpoints
44
+ @each $size in $breakpoint-classes {
45
+ @include breakpoint($size) {
46
+ @if $size != $-zf-zero-breakpoint {
47
+ .#{$size}-bordered {
48
+ @include bordered;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,23 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-box
7
+ ////
8
+
9
+ /// Box Mixin: Easily create a square, rectangle or a circle
10
+ /// @param {Number} $width[] Width of the box
11
+ /// @param {Number} $height[$width] Height of the box, defaults to `$width` to easily make a square
12
+ /// @param {Boolean} $circle[false] Makes the box a circle, by default `false`.
13
+ @mixin box(
14
+ $width,
15
+ $height: $width,
16
+ $circle: false
17
+ ) {
18
+ width: $width;
19
+ height: $height;
20
+ @if $circle {
21
+ border-radius: 50% !important;
22
+ }
23
+ }
@@ -0,0 +1,50 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-display
7
+ ////
8
+
9
+ /// Responsive breakpoints for display classes
10
+ /// @type Boolean
11
+ $prototype-display-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Map containing all the `display` classes
14
+ /// @type Map
15
+ $prototype-display: (
16
+ inline,
17
+ inline-block,
18
+ block,
19
+ table,
20
+ table-cell
21
+ ) !default;
22
+
23
+ /// Display classes, by default coming through a map `$prototype-display`
24
+ /// @param {String} $display [] Display classes
25
+ @mixin display($display) {
26
+ display: $display !important;
27
+ }
28
+
29
+ @mixin foundation-prototype-display {
30
+ @each $display in $prototype-display {
31
+ .display-#{$display} {
32
+ @include display($display);
33
+ }
34
+ }
35
+
36
+ @if ($prototype-display-breakpoints) {
37
+ // Loop through Responsive Breakpoints
38
+ @each $size in $breakpoint-classes {
39
+ @include breakpoint($size) {
40
+ @each $display in $prototype-display {
41
+ @if $size != $-zf-zero-breakpoint {
42
+ .#{$size}-display-#{$display} {
43
+ @include display($display);
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,95 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-font-styling
7
+ ////
8
+
9
+ /// Responsive breakpoints for font styling types
10
+ /// @type Boolean
11
+ $prototype-font-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Letter spacing for `.font-wide`
14
+ /// @type Number
15
+ $prototype-wide-letter-spacing: rem-calc(4) !default;
16
+
17
+ /// Default weight for `.font-normal`, defaulted to `global-weight-normal`
18
+ /// @type Number
19
+ $prototype-font-normal: $global-weight-normal !default;
20
+
21
+ /// Default weight for `.font-bold`, defaulted to `global-weight-bold`
22
+ /// @type Number
23
+ $prototype-font-bold: $global-weight-bold !default;
24
+
25
+ /// Font wide letter spacing!
26
+ /// @param {Number} $letter-spacing [$prototype-wide-letter-spacing] Wide letter spacing for the font
27
+ @mixin font-wide(
28
+ $letter-spacing: $prototype-wide-letter-spacing
29
+ ) {
30
+ letter-spacing: $letter-spacing;
31
+ }
32
+
33
+ /// Font Weight Normal, default value coming through `global-weight-normal`
34
+ /// @param {Number} $weight [$prototype-font-normal] Weight of the font (normal)
35
+ @mixin font-normal(
36
+ $weight: $prototype-font-normal
37
+ ) {
38
+ font-weight: $weight;
39
+ }
40
+
41
+ /// Font Weight Bold, default value coming through `global-weight-bold`
42
+ /// @param {Number} $weight [$prototype-font-bold] Weight of the font (bold)
43
+ @mixin font-bold(
44
+ $weight: $prototype-font-bold
45
+ ) {
46
+ font-weight: $weight;
47
+ }
48
+
49
+ /// Font Style Italic
50
+ @mixin font-italic {
51
+ font-style: italic !important;
52
+ }
53
+
54
+ @mixin foundation-prototype-font-styling {
55
+ .font-wide{
56
+ @include font-wide;
57
+ }
58
+
59
+ .font-normal {
60
+ @include font-normal;
61
+ }
62
+
63
+ .font-bold {
64
+ @include font-bold;
65
+ }
66
+
67
+ .font-italic {
68
+ @include font-italic;
69
+ }
70
+
71
+ @if ($prototype-font-breakpoints) {
72
+ // Loop through Responsive Breakpoints
73
+ @each $size in $breakpoint-classes {
74
+ @include breakpoint($size) {
75
+ @if $size != $-zf-zero-breakpoint {
76
+ .#{$size}-font-wide{
77
+ @include font-wide;
78
+ }
79
+
80
+ .#{$size}-font-normal {
81
+ @include font-normal;
82
+ }
83
+
84
+ .#{$size}-font-bold {
85
+ @include font-bold;
86
+ }
87
+
88
+ .#{$size}-font-italic {
89
+ @include font-italic;
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }