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