jekyll-theme-foundation 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +48 -0
  4. data/_includes/google-analytics.html +8 -0
  5. data/_includes/head.html +17 -0
  6. data/_includes/scripts.html +4 -0
  7. data/_layouts/default.html +16 -0
  8. data/_layouts/home.html +5 -0
  9. data/_layouts/page.html +5 -0
  10. data/_layouts/post.html +5 -0
  11. data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
  12. data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
  13. data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
  14. data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
  15. data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
  16. data/_sass/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  17. data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  18. data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  19. data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  20. data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  21. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  22. data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  23. data/_sass/assets/foundation-float.scss +5 -0
  24. data/_sass/assets/foundation-prototype.scss +3 -0
  25. data/_sass/assets/foundation-rtl.scss +5 -0
  26. data/_sass/assets/foundation.scss +3 -0
  27. data/_sass/jekyll-theme-foundation.scss +5 -0
  28. data/_sass/scss/_global.scss +249 -0
  29. data/_sass/scss/components/_accordion-menu.scss +171 -0
  30. data/_sass/scss/components/_accordion.scss +155 -0
  31. data/_sass/scss/components/_badge.scss +63 -0
  32. data/_sass/scss/components/_breadcrumbs.scss +117 -0
  33. data/_sass/scss/components/_button-group.scss +253 -0
  34. data/_sass/scss/components/_button.scss +385 -0
  35. data/_sass/scss/components/_callout.scss +106 -0
  36. data/_sass/scss/components/_card.scss +129 -0
  37. data/_sass/scss/components/_close-button.scss +102 -0
  38. data/_sass/scss/components/_drilldown.scss +142 -0
  39. data/_sass/scss/components/_dropdown-menu.scss +274 -0
  40. data/_sass/scss/components/_dropdown.scss +79 -0
  41. data/_sass/scss/components/_flex-video.scss +1 -0
  42. data/_sass/scss/components/_flex.scss +117 -0
  43. data/_sass/scss/components/_float.scss +27 -0
  44. data/_sass/scss/components/_label.scss +64 -0
  45. data/_sass/scss/components/_media-object.scss +114 -0
  46. data/_sass/scss/components/_menu-icon.scss +9 -0
  47. data/_sass/scss/components/_menu.scss +495 -0
  48. data/_sass/scss/components/_off-canvas.scss +506 -0
  49. data/_sass/scss/components/_orbit.scss +196 -0
  50. data/_sass/scss/components/_pagination.scss +193 -0
  51. data/_sass/scss/components/_progress-bar.scss +64 -0
  52. data/_sass/scss/components/_responsive-embed.scss +70 -0
  53. data/_sass/scss/components/_reveal.scss +180 -0
  54. data/_sass/scss/components/_slider.scss +137 -0
  55. data/_sass/scss/components/_sticky.scss +39 -0
  56. data/_sass/scss/components/_switch.scss +247 -0
  57. data/_sass/scss/components/_table.scss +330 -0
  58. data/_sass/scss/components/_tabs.scss +196 -0
  59. data/_sass/scss/components/_thumbnail.scss +67 -0
  60. data/_sass/scss/components/_title-bar.scss +84 -0
  61. data/_sass/scss/components/_tooltip.scss +160 -0
  62. data/_sass/scss/components/_top-bar.scss +175 -0
  63. data/_sass/scss/components/_visibility.scss +132 -0
  64. data/_sass/scss/forms/_checkbox.scss +41 -0
  65. data/_sass/scss/forms/_error.scss +88 -0
  66. data/_sass/scss/forms/_fieldset.scss +53 -0
  67. data/_sass/scss/forms/_forms.scss +34 -0
  68. data/_sass/scss/forms/_help-text.scss +30 -0
  69. data/_sass/scss/forms/_input-group.scss +142 -0
  70. data/_sass/scss/forms/_label.scss +50 -0
  71. data/_sass/scss/forms/_meter.scss +116 -0
  72. data/_sass/scss/forms/_progress.scss +94 -0
  73. data/_sass/scss/forms/_range.scss +149 -0
  74. data/_sass/scss/forms/_select.scss +86 -0
  75. data/_sass/scss/forms/_text.scss +179 -0
  76. data/_sass/scss/foundation.scss +133 -0
  77. data/_sass/scss/grid/_classes.scss +176 -0
  78. data/_sass/scss/grid/_column.scss +112 -0
  79. data/_sass/scss/grid/_flex-grid.scss +259 -0
  80. data/_sass/scss/grid/_grid.scss +48 -0
  81. data/_sass/scss/grid/_gutter.scss +82 -0
  82. data/_sass/scss/grid/_layout.scss +76 -0
  83. data/_sass/scss/grid/_position.scss +76 -0
  84. data/_sass/scss/grid/_row.scss +99 -0
  85. data/_sass/scss/grid/_size.scss +24 -0
  86. data/_sass/scss/prototype/_arrow.scss +36 -0
  87. data/_sass/scss/prototype/_border-box.scss +35 -0
  88. data/_sass/scss/prototype/_border-none.scss +35 -0
  89. data/_sass/scss/prototype/_bordered.scss +54 -0
  90. data/_sass/scss/prototype/_box.scss +23 -0
  91. data/_sass/scss/prototype/_display.scss +50 -0
  92. data/_sass/scss/prototype/_font-styling.scss +95 -0
  93. data/_sass/scss/prototype/_list-style-type.scss +95 -0
  94. data/_sass/scss/prototype/_overflow.scss +72 -0
  95. data/_sass/scss/prototype/_position.scss +114 -0
  96. data/_sass/scss/prototype/_prototype.scss +87 -0
  97. data/_sass/scss/prototype/_relation.scss +157 -0
  98. data/_sass/scss/prototype/_rotate.scss +31 -0
  99. data/_sass/scss/prototype/_rounded.scss +54 -0
  100. data/_sass/scss/prototype/_separator.scss +96 -0
  101. data/_sass/scss/prototype/_shadow.scss +43 -0
  102. data/_sass/scss/prototype/_sizing.scss +73 -0
  103. data/_sass/scss/prototype/_spacing.scss +204 -0
  104. data/_sass/scss/prototype/_text-decoration.scss +48 -0
  105. data/_sass/scss/prototype/_text-transformation.scss +48 -0
  106. data/_sass/scss/prototype/_text-utilities.scss +88 -0
  107. data/_sass/scss/settings/_settings.scss +869 -0
  108. data/_sass/scss/typography/_alignment.scss +22 -0
  109. data/_sass/scss/typography/_base.scss +509 -0
  110. data/_sass/scss/typography/_helpers.scss +80 -0
  111. data/_sass/scss/typography/_print.scss +86 -0
  112. data/_sass/scss/typography/_typography.scss +26 -0
  113. data/_sass/scss/util/_breakpoint.scss +348 -0
  114. data/_sass/scss/util/_color.scss +129 -0
  115. data/_sass/scss/util/_direction.scss +31 -0
  116. data/_sass/scss/util/_flex.scss +85 -0
  117. data/_sass/scss/util/_math.scss +72 -0
  118. data/_sass/scss/util/_mixins.scss +313 -0
  119. data/_sass/scss/util/_selector.scss +41 -0
  120. data/_sass/scss/util/_typography.scss +26 -0
  121. data/_sass/scss/util/_unit.scss +152 -0
  122. data/_sass/scss/util/_util.scss +14 -0
  123. data/_sass/scss/util/_value.scss +160 -0
  124. data/_sass/scss/xy-grid/_cell.scss +169 -0
  125. data/_sass/scss/xy-grid/_classes.scss +476 -0
  126. data/_sass/scss/xy-grid/_collapse.scss +74 -0
  127. data/_sass/scss/xy-grid/_frame.scss +85 -0
  128. data/_sass/scss/xy-grid/_grid.scss +35 -0
  129. data/_sass/scss/xy-grid/_gutters.scss +45 -0
  130. data/_sass/scss/xy-grid/_layout.scss +33 -0
  131. data/_sass/scss/xy-grid/_position.scss +28 -0
  132. data/_sass/scss/xy-grid/_xy-grid.scss +51 -0
  133. data/assets/css/main.scss +5 -0
  134. data/assets/css/motion-ui.min.css +1 -0
  135. data/assets/js/foundation.min.js +5 -0
  136. data/assets/js/motion-ui.min.js +1 -0
  137. metadata +235 -0
@@ -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-list-style-type
7
+ ////
8
+
9
+ /// Responsive breakpoints for list styling types
10
+ /// @type Boolean
11
+ $prototype-list-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Map containing all the `style-type-unordered` classes
14
+ /// @type Map
15
+ $prototype-style-type-unordered: (
16
+ disc,
17
+ circle,
18
+ square
19
+ ) !default;
20
+
21
+ /// Map containing all the `style-type-ordered` classes
22
+ /// @type Map
23
+ $prototype-style-type-ordered: (
24
+ decimal,
25
+ lower-alpha,
26
+ lower-latin,
27
+ lower-roman,
28
+ upper-alpha,
29
+ upper-latin,
30
+ upper-roman
31
+ ) !default;
32
+
33
+
34
+ /// Style type for unordered Lists, by default coming through a map `$prototype-style-type-unordered`
35
+ /// @param {String} $style-type-unordered [] Style type for unordered Lists
36
+ @mixin style-type-unordered($style-type-unordered) {
37
+ list-style-type: $style-type-unordered !important;
38
+ }
39
+
40
+ /// Style type for ordered Lists, by default coming through a map `$prototype-style-type-ordered`
41
+ /// @param {String} $style-type-ordered [] Style type for ordered Lists
42
+ @mixin style-type-ordered($style-type-ordered) {
43
+ list-style-type: $style-type-ordered !important;
44
+ }
45
+
46
+ @mixin list-unordered {
47
+ @each $style-type-unordered in $prototype-style-type-unordered {
48
+ ul.list-#{$style-type-unordered} {
49
+ @include style-type-unordered($style-type-unordered);
50
+ }
51
+ }
52
+
53
+ @if ($prototype-list-breakpoints) {
54
+ // Loop through Responsive Breakpoints
55
+ @each $size in $breakpoint-classes {
56
+ @include breakpoint($size) {
57
+ @each $style-type-unordered in $prototype-style-type-unordered {
58
+ @if $size != $-zf-zero-breakpoint {
59
+ ul.#{$size}-list-#{$style-type-unordered} {
60
+ @include style-type-unordered($style-type-unordered);
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ @mixin list-ordered {
70
+ @each $style-type-ordered in $prototype-style-type-ordered {
71
+ ol.list-#{$style-type-ordered} {
72
+ @include style-type-ordered($style-type-ordered);
73
+ }
74
+ }
75
+
76
+ @if ($prototype-list-breakpoints) {
77
+ // Loop through Responsive Breakpoints
78
+ @each $size in $breakpoint-classes {
79
+ @include breakpoint($size) {
80
+ @each $style-type-ordered in $prototype-style-type-ordered {
81
+ @if $size != $-zf-zero-breakpoint {
82
+ ol.#{$size}-list-#{$style-type-ordered} {
83
+ @include style-type-ordered($style-type-ordered);
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ @mixin foundation-prototype-list-style-type {
93
+ @include list-unordered;
94
+ @include list-ordered;
95
+ }
@@ -0,0 +1,72 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-overflow
7
+ ////
8
+
9
+ /// Responsive breakpoints for overflow helper classes
10
+ /// @type Boolean
11
+ $prototype-overflow-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Map containing all the `overflow` classes
14
+ /// @type Map
15
+ $prototype-overflow: (
16
+ visible,
17
+ hidden,
18
+ scroll
19
+ ) !default;
20
+
21
+ /// Overflow classes, by default coming through a map `$prototype-overflow`
22
+ /// @param {String} $overflow [] Overflow classes
23
+ @mixin overflow($overflow) {
24
+ overflow: $overflow !important;
25
+ }
26
+
27
+ /// Overflow classes on horizontal axis, by default coming through a map `$prototype-overflow`
28
+ /// @param {String} $overflow [] Overflow classes (horizontal axis)
29
+ @mixin overflow-x($overflow) {
30
+ overflow-x: $overflow !important;
31
+ }
32
+
33
+ /// Overflow classes on vertical axis, by default coming through a map `$prototype-overflow`
34
+ /// @param {String} $overflow [] Overflow classes (vertical axis)
35
+ @mixin overflow-y($overflow) {
36
+ overflow-y: $overflow !important;
37
+ }
38
+
39
+ @mixin foundation-prototype-overflow {
40
+ @each $overflow in $prototype-overflow {
41
+ .overflow-#{$overflow} {
42
+ @include overflow($overflow);
43
+ }
44
+ .overflow-x-#{$overflow} {
45
+ @include overflow-x($overflow);
46
+ }
47
+ .overflow-y-#{$overflow} {
48
+ @include overflow-y($overflow);
49
+ }
50
+ }
51
+
52
+ @if ($prototype-overflow-breakpoints) {
53
+ // Loop through Responsive Breakpoints
54
+ @each $size in $breakpoint-classes {
55
+ @include breakpoint($size) {
56
+ @each $overflow in $prototype-overflow {
57
+ @if $size != $-zf-zero-breakpoint {
58
+ .#{$size}-overflow-#{$overflow} {
59
+ @include overflow($overflow);
60
+ }
61
+ .#{$size}-overflow-x-#{$overflow} {
62
+ @include overflow-x($overflow);
63
+ }
64
+ .#{$size}-overflow-y-#{$overflow} {
65
+ @include overflow-y($overflow);
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,114 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-position
7
+ ////
8
+
9
+ /// Responsive breakpoints for position helpers
10
+ /// @type Boolean
11
+ $prototype-position-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Map containing all the `position` classes
14
+ /// @type Map
15
+ $prototype-position: (
16
+ static,
17
+ relative,
18
+ absolute,
19
+ fixed
20
+ ) !default;
21
+
22
+ /// z-index for fixed positioning
23
+ /// @type Number
24
+ $prototype-position-z-index: 975 !default;
25
+
26
+ /// Position classes, by default coming through a map `$prototype-position`, whereas all the offset values are multiplied by `$global-position` which by default is equal to `1rem`.
27
+ /// @param {String} $position [] Position classes, Either `static`, `relative`, `absolute` or `fixed`
28
+ /// @param {Number} $top [null] - Top offset
29
+ /// @param {Number} $right [null] - Right offset
30
+ /// @param {Number} $bottom [null] - Bottom offset
31
+ /// @param {Number} $left [null] - Left offset
32
+ @mixin position(
33
+ $position,
34
+ $top: null,
35
+ $right: null,
36
+ $bottom: null,
37
+ $left: null
38
+ ) {
39
+ position: $position !important;
40
+ @if $top != null {
41
+ top: $top * $global-position !important;
42
+ }
43
+ @if $right != null {
44
+ right: $right * $global-position !important;
45
+ }
46
+ @if $bottom != null {
47
+ bottom: $bottom * $global-position !important;
48
+ }
49
+ @if $left != null {
50
+ left: $left * $global-position !important;
51
+ }
52
+ }
53
+
54
+ /// Position Fixed on top corners
55
+ /// @param {Number} $z-index [$prototype-position-z-index] z-index for `position-fixed-top`
56
+ @mixin position-fixed-top(
57
+ $z-index: $prototype-position-z-index
58
+ ) {
59
+ @include position(fixed, 0, 0, null, 0);
60
+ z-index: $z-index;
61
+ }
62
+
63
+ /// Position Fixed on bottom corners
64
+ /// @param {Number} $z-index [$prototype-position-z-index] z-index for `position-fixed-bottom`
65
+ @mixin position-fixed-bottom(
66
+ $z-index: $prototype-position-z-index
67
+ ) {
68
+ @include position(fixed, null, 0, 0, 0);
69
+ z-index: $z-index;
70
+ }
71
+
72
+ @mixin foundation-prototype-position {
73
+ // Position: Static, Relative, Fixed, Absolute
74
+ @each $position in $prototype-position {
75
+ .position-#{$position} {
76
+ @include position($position);
77
+ }
78
+ }
79
+
80
+ // Position: Fixed Top, Fixed Bottom
81
+ .position-fixed-top {
82
+ @include position-fixed-top;
83
+ }
84
+ .position-fixed-bottom {
85
+ @include position-fixed-bottom;
86
+ }
87
+
88
+ @if ($prototype-position-breakpoints) {
89
+ // Loop through Responsive Breakpoints
90
+ @each $size in $breakpoint-classes {
91
+ @include breakpoint($size) {
92
+ // Position: Static, Relative, Fixed, Absolute
93
+ @each $position in $prototype-position {
94
+ @if $size != $-zf-zero-breakpoint {
95
+ .#{$size}-position-#{$position} {
96
+ @include position($position);
97
+ }
98
+ }
99
+ }
100
+
101
+ // Position: Fixed Top, Fixed Bottom
102
+ @if $size != $-zf-zero-breakpoint {
103
+ .#{$size}-position-fixed-top {
104
+ @include position-fixed-top;
105
+ }
106
+
107
+ .#{$size}-position-fixed-bottom {
108
+ @include position-fixed-bottom;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,87 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype
7
+ ////
8
+
9
+ // Relational Mixins
10
+ @import 'relation';
11
+
12
+ // Box Mixin
13
+ @import 'box';
14
+
15
+ // Rotate Mixin
16
+ @import 'rotate';
17
+
18
+ // Text utilities
19
+ @import 'text-utilities';
20
+
21
+ // Text transformation classes
22
+ @import 'text-transformation';
23
+
24
+ // Text Decoration classes
25
+ @import 'text-decoration';
26
+
27
+ // Font Styling
28
+ @import 'font-styling';
29
+
30
+ // List Style type
31
+ @import 'list-style-type';
32
+
33
+ // Rounded Utility
34
+ @import 'rounded';
35
+
36
+ // Bordered Utility
37
+ @import 'bordered';
38
+
39
+ // Shadow Utility
40
+ @import 'shadow';
41
+
42
+ // Arrow Utility
43
+ @import 'arrow';
44
+
45
+ // Separator Utility
46
+ @import 'separator';
47
+
48
+ // Overflow helper classes
49
+ @import 'overflow';
50
+
51
+ // Display classes
52
+ @import 'display';
53
+
54
+ // Position Helpers
55
+ @import 'position';
56
+
57
+ // Border box
58
+ @import 'border-box';
59
+
60
+ // Border none Utilty
61
+ @import 'border-none';
62
+
63
+ // Sizing Utilities
64
+ @import 'sizing';
65
+
66
+ // Spacing Utilities
67
+ @import 'spacing';
68
+
69
+ @mixin foundation-prototype-classes {
70
+ @include foundation-prototype-text-utilities;
71
+ @include foundation-prototype-text-transformation;
72
+ @include foundation-prototype-text-decoration;
73
+ @include foundation-prototype-font-styling;
74
+ @include foundation-prototype-list-style-type;
75
+ @include foundation-prototype-rounded;
76
+ @include foundation-prototype-bordered;
77
+ @include foundation-prototype-shadow;
78
+ @include foundation-prototype-arrow;
79
+ @include foundation-prototype-separator;
80
+ @include foundation-prototype-overflow;
81
+ @include foundation-prototype-display;
82
+ @include foundation-prototype-position;
83
+ @include foundation-prototype-border-box;
84
+ @include foundation-prototype-border-none;
85
+ @include foundation-prototype-sizing;
86
+ @include foundation-prototype-spacing;
87
+ }
@@ -0,0 +1,157 @@
1
+ /// Select all children from the first to `$num`.
2
+ /// @param {Number} $num[] First `n` numbers of total children
3
+ @mixin first($num) {
4
+ @if $num == 1 {
5
+ &:first-child {
6
+ @content;
7
+ }
8
+ } @else {
9
+ &:nth-child(-n + #{$num}) {
10
+ @content;
11
+ }
12
+ }
13
+ }
14
+
15
+ /// Select the first exact child
16
+ @mixin first-child {
17
+ &:first-of-type {
18
+ @content;
19
+ }
20
+ }
21
+
22
+ /// Select all children from the last to `$num`.
23
+ /// @param {Number} $num[] Last `n` numbers of total children
24
+ @mixin last($num) {
25
+ &:nth-last-child(-n + #{$num}) {
26
+ @content;
27
+ }
28
+ }
29
+
30
+ /// Select the last exact child
31
+ @mixin last-child {
32
+ &:last-of-type {
33
+ @content;
34
+ }
35
+ }
36
+
37
+ /// Select children every `$num`.
38
+ /// @param {Number} $num[] Every `n` number of all children
39
+ @mixin every($num) {
40
+ &:nth-child(#{$num}n) {
41
+ @content;
42
+ }
43
+ }
44
+
45
+ /// Select only the first and last child.
46
+ @mixin first-last {
47
+ &:first-child,
48
+ &:last-child {
49
+ @content;
50
+ }
51
+ }
52
+
53
+ /// Select all children after the first to `$num`.
54
+ /// @param {Number} $num[] After First `n` numbers of total children
55
+ @mixin after-first($num) {
56
+ &:nth-child(n + #{$num + 1}) {
57
+ @content;
58
+ }
59
+ }
60
+
61
+ /// Select all children before `$num` from the last.
62
+ /// @param {Number} $num[] From Last `n` numbers of total children
63
+ @mixin from-last($num) {
64
+ &:nth-last-child(#{$num}) {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ /// Select the `$num` child from the first and the `$num` child from the last.
70
+ /// @param {Number} $num[] `n` number called from first and last
71
+ @mixin from-first-last($num) {
72
+ &:nth-child(#{$num}),
73
+ &:nth-last-child(#{$num}) {
74
+ @content;
75
+ }
76
+ }
77
+
78
+ /// Select all children but `$num`.
79
+ /// @param {Number} $num[] `n` number that should be excluded from all other children
80
+ @mixin all-but($num) {
81
+ &:not(:nth-child(#{$num})) {
82
+ @content;
83
+ }
84
+ }
85
+
86
+ /// Select all children between the `$num` first and the `$num` last.
87
+ /// @param {Number} $num[] `n` number excluded from first and last from all other children
88
+ @mixin all-but-first-last($num) {
89
+ &:nth-child(n + #{$num}):nth-last-child(n + #{$num}) {
90
+ @content;
91
+ }
92
+ }
93
+
94
+ /// Will only select the child if it’s unique. That means that if there are at least 2 children, the style will not be applied.
95
+ @mixin unique {
96
+ &:only-child {
97
+ @content;
98
+ }
99
+ }
100
+
101
+ /// Will only select children if they are not unique. That means that if there are at least 2 children, the style will be applied.
102
+ @mixin not-unique() {
103
+ &:not(:only-child) {
104
+ @content;
105
+ }
106
+ }
107
+
108
+ /// Select all children between `$first` and `$last`.
109
+ /// @param {Number} $first[] First `nth` number
110
+ /// @param {Number} $last[] Last `nth` number
111
+ @mixin between($first, $last) {
112
+ &:nth-child(n + #{$first}):nth-child(-n + #{$last}) {
113
+ @content;
114
+ }
115
+ }
116
+
117
+ /// Select all even children.
118
+ @mixin even {
119
+ &:nth-child(even) {
120
+ @content;
121
+ }
122
+ }
123
+
124
+ /// Select all even children between `$first` and `$last`.
125
+ /// @param {Number} $first[] First `nth` number
126
+ /// @param {Number} $last[] Last `nth` number
127
+ @mixin even-between($first, $last) {
128
+ &:nth-child(even):nth-child(n + #{$first}):nth-child(-n + #{$last}) {
129
+ @content;
130
+ }
131
+ }
132
+
133
+ /// Select all odd children.
134
+ @mixin odd {
135
+ &:nth-child(odd) {
136
+ @content;
137
+ }
138
+ }
139
+
140
+ /// Select all odd children between `$first` and `$last`.
141
+ /// @param {Number} $first[] First `nth` number
142
+ /// @param {Number} $last[] Last `nth` number
143
+ @mixin odd-between($first, $last) {
144
+ &:nth-child(odd):nth-child(n + #{$first}):nth-child(-n + #{$last}) {
145
+ @content;
146
+ }
147
+ }
148
+
149
+ /// Select all `$num` children between `$first` and `$last`.
150
+ /// @param {Number} $num[] Every `n` number between `$first` and `$last`.
151
+ /// @param {Number} $first[] First `n` number
152
+ /// @param {Number} $last[] Last `n` number
153
+ @mixin number-between($num, $first, $last) {
154
+ &:nth-child(#{$num}n):nth-child(n + #{$first}):nth-child(-n + #{$last}) {
155
+ @content;
156
+ }
157
+ }
@@ -0,0 +1,31 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-rotate
7
+ ////
8
+
9
+ /// Rotate Mixin: Rotate an element to a certain deg
10
+ /// @param {Number} $deg[] Degree of rotation
11
+ @mixin rotate($deg) {
12
+ transform:rotate($deg + deg);
13
+ }
14
+
15
+ /// RotateX Mixin: Rotate an element to a certain deg on X-Axis
16
+ /// @param {Number} $deg[] Degree of rotation
17
+ @mixin rotateX($deg) {
18
+ transform:rotateX($deg + deg);
19
+ }
20
+
21
+ /// RotateY Mixin: Rotate an element to a certain deg on Y-Axis
22
+ /// @param {Number} $deg[] Degree of rotation
23
+ @mixin rotateY($deg) {
24
+ transform:rotateY($deg + deg);
25
+ }
26
+
27
+ /// RotateZ Mixin: Rotate an element to a certain deg on Z-Axis
28
+ /// @param {Number} $deg[] Degree of rotation
29
+ @mixin rotateZ($deg) {
30
+ transform:rotateZ($deg + deg);
31
+ }
@@ -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-rounded
7
+ ////
8
+
9
+ /// Responsive breakpoints for rounded utility.
10
+ /// @type Boolean
11
+ $prototype-rounded-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Default value for `prototype-border-radius`
14
+ /// @type Number
15
+ $prototype-border-radius: rem-calc(3) !default;
16
+
17
+ /// Rounded utility (all corners): Adds radius corners (all corners) to an element by default.
18
+ /// @param {Number} $radius [$prototype-border-radius] Border radius (all corners)
19
+ @mixin border-radius(
20
+ $radius: $prototype-border-radius
21
+ ) {
22
+ border-radius: $radius;
23
+ }
24
+
25
+ /// Rounded square utility or rectangle utility (all corners): Rounds all corners to an element by default to make a pill shape.
26
+ @mixin border-rounded {
27
+ border-radius: 5000px !important;
28
+ }
29
+
30
+ @mixin foundation-prototype-rounded {
31
+ .rounded {
32
+ @include border-rounded;
33
+ }
34
+
35
+ .radius {
36
+ @include border-radius;
37
+ }
38
+
39
+ @if ($prototype-rounded-breakpoints) {
40
+ // Loop through Responsive Breakpoints
41
+ @each $size in $breakpoint-classes {
42
+ @include breakpoint($size) {
43
+ @if $size != $-zf-zero-breakpoint {
44
+ .#{$size}-rounded {
45
+ @include border-rounded;
46
+ }
47
+ .#{$size}-radius {
48
+ @include border-radius;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,96 @@
1
+ // Foundation for Sites by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ ////
6
+ /// @group prototype-separator
7
+ ////
8
+
9
+ /// Responsive breakpoints for separator.
10
+ /// @type Boolean
11
+ $prototype-separator-breakpoints: $global-prototype-breakpoints !default;
12
+
13
+ /// Default alignment of a separator.
14
+ /// @type String
15
+ $prototype-separator-align: center !default;
16
+
17
+ /// Height of a separator.
18
+ /// @type Number
19
+ $prototype-separator-height: rem-calc(2) !default;
20
+
21
+ /// Width of a separator.
22
+ /// @type Number
23
+ $prototype-separator-width: 3rem !default;
24
+
25
+ /// Default color of a separator.
26
+ /// @type Color
27
+ $prototype-separator-background: $primary-color !default;
28
+
29
+ /// Top Margin of a separator.
30
+ /// @type Number
31
+ $prototype-separator-margin-top: $global-margin !default;
32
+
33
+ /// Title separator Utility, mostly used to style the main heading of a section
34
+ /// @param {String} $align [$prototype-separator-align] - separator Alignment
35
+ /// @param {Number} $height [$prototype-separator-height] - Width
36
+ /// @param {Number} $width [$prototype-separator-width] - Height
37
+ /// @param {Color} $background [$prototype-separator-background] - Background
38
+ /// @param {Number} $top [$prototype-separator-margin-top] - Margin Top
39
+ @mixin separator (
40
+ $align: $prototype-separator-align,
41
+ $height: $prototype-separator-height,
42
+ $width: $prototype-separator-width,
43
+ $background: $prototype-separator-background,
44
+ $top: $prototype-separator-margin-top
45
+ ) {
46
+ text-align: $align !important;
47
+ @include clearfix;
48
+
49
+ &::after {
50
+ @include position(relative);
51
+ width: $width;
52
+ border-bottom: $height solid $background;
53
+ margin: $top auto 0;
54
+
55
+ @if $align == left {
56
+ margin-left: 0 !important;
57
+ }
58
+
59
+ @if $align == right {
60
+ margin-right: 0 !important;
61
+ }
62
+ }
63
+ }
64
+
65
+ @mixin foundation-prototype-separator {
66
+ .separator-center {
67
+ @include separator(center);
68
+ }
69
+
70
+ .separator-left {
71
+ @include separator(left);
72
+ }
73
+
74
+ .separator-right {
75
+ @include separator(right);
76
+ }
77
+
78
+ @if ($prototype-separator-breakpoints) {
79
+ // Loop through Responsive Breakpoints
80
+ @each $size in $breakpoint-classes {
81
+ @include breakpoint($size) {
82
+ @if $size != $-zf-zero-breakpoint {
83
+ .#{$size}-separator-center {
84
+ @include separator(center);
85
+ }
86
+ .#{$size}-separator-left {
87
+ @include separator(left);
88
+ }
89
+ .#{$size}-separator-right {
90
+ @include separator(right);
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }