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,193 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group pagination
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Font size of pagination items.
|
10
|
+
/// @type Number
|
11
|
+
$pagination-font-size: rem-calc(14) !default;
|
12
|
+
|
13
|
+
/// Default bottom margin of the pagination object.
|
14
|
+
/// @type Number
|
15
|
+
$pagination-margin-bottom: $global-margin !default;
|
16
|
+
|
17
|
+
/// Text color of pagination items.
|
18
|
+
/// @type Color
|
19
|
+
$pagination-item-color: $black !default;
|
20
|
+
|
21
|
+
/// Padding inside of pagination items.
|
22
|
+
/// @type Number
|
23
|
+
$pagination-item-padding: rem-calc(3 10) !default;
|
24
|
+
|
25
|
+
/// Right margin to separate pagination items.
|
26
|
+
/// @type Number
|
27
|
+
$pagination-item-spacing: rem-calc(1) !default;
|
28
|
+
|
29
|
+
/// Default radius for pagination items.
|
30
|
+
/// @type Number
|
31
|
+
$pagination-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// Background color of pagination items on hover.
|
34
|
+
/// @type Color
|
35
|
+
$pagination-item-background-hover: $light-gray !default;
|
36
|
+
|
37
|
+
/// Background color of pagination item for the current page.
|
38
|
+
/// @type Color
|
39
|
+
$pagination-item-background-current: $primary-color !default;
|
40
|
+
|
41
|
+
/// Text color of the pagination item for the current page.
|
42
|
+
/// @type Color
|
43
|
+
$pagination-item-color-current: $white !default;
|
44
|
+
|
45
|
+
/// Text color of a disabled pagination item.
|
46
|
+
/// @type Color
|
47
|
+
$pagination-item-color-disabled: $medium-gray !default;
|
48
|
+
|
49
|
+
/// Color of the ellipsis in a pagination menu.
|
50
|
+
/// @type Color
|
51
|
+
$pagination-ellipsis-color: $black !default;
|
52
|
+
|
53
|
+
/// If `false`, don't display page number links on mobile, only next/previous links
|
54
|
+
/// and optionally current page number.
|
55
|
+
/// @type Boolean
|
56
|
+
$pagination-mobile-items: false !default;
|
57
|
+
|
58
|
+
/// If `true`, display the current page number on mobile even if `$pagination-mobile-items` is set to `false`.
|
59
|
+
/// This parameter will only override the visibility setting of the current item for `$pagination-mobile-items: false;`,
|
60
|
+
/// it will not affect the current page number visibility when `$pagination-mobile-items` is set to `true`.
|
61
|
+
/// @type Boolean
|
62
|
+
$pagination-mobile-current-item: false !default;
|
63
|
+
|
64
|
+
/// If `true`, arrows are added to the next and previous links of pagination.
|
65
|
+
/// @type Boolean
|
66
|
+
$pagination-arrows: true !default;
|
67
|
+
|
68
|
+
/// Adds styles for a pagination container. Apply this to a `<ul>`.
|
69
|
+
@mixin pagination-container (
|
70
|
+
$margin-bottom: $pagination-margin-bottom,
|
71
|
+
$font-size: $pagination-font-size,
|
72
|
+
$spacing: $pagination-item-spacing,
|
73
|
+
$radius: $pagination-radius,
|
74
|
+
$color: $pagination-item-color,
|
75
|
+
$padding: $pagination-item-padding,
|
76
|
+
$background-hover: $pagination-item-background-hover
|
77
|
+
) {
|
78
|
+
@include clearfix;
|
79
|
+
margin-#{$global-left}: 0;
|
80
|
+
margin-bottom: $margin-bottom;
|
81
|
+
|
82
|
+
// List item
|
83
|
+
li {
|
84
|
+
margin-#{$global-right}: $spacing;
|
85
|
+
border-radius: $radius;
|
86
|
+
font-size: $font-size;
|
87
|
+
|
88
|
+
@if $pagination-mobile-items {
|
89
|
+
display: inline-block;
|
90
|
+
}
|
91
|
+
@else {
|
92
|
+
display: none;
|
93
|
+
|
94
|
+
&:last-child,
|
95
|
+
&:first-child {
|
96
|
+
display: inline-block;
|
97
|
+
}
|
98
|
+
|
99
|
+
@if $pagination-mobile-current-item {
|
100
|
+
&.current {
|
101
|
+
display: inline-block;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
@include breakpoint(medium) {
|
106
|
+
display: inline-block;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
// Page links
|
112
|
+
a,
|
113
|
+
button {
|
114
|
+
display: block;
|
115
|
+
padding: $padding;
|
116
|
+
border-radius: $radius;
|
117
|
+
color: $color;
|
118
|
+
|
119
|
+
&:hover {
|
120
|
+
background: $background-hover;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
/// Adds styles for the current pagination item. Apply this to an `<a>`.
|
126
|
+
@mixin pagination-item-current (
|
127
|
+
$padding: $pagination-item-padding,
|
128
|
+
$background-current: $pagination-item-background-current,
|
129
|
+
$color-current: $pagination-item-color-current
|
130
|
+
) {
|
131
|
+
padding: $padding;
|
132
|
+
background: $background-current;
|
133
|
+
color: $color-current;
|
134
|
+
cursor: default;
|
135
|
+
}
|
136
|
+
|
137
|
+
/// Adds styles for a disabled pagination item. Apply this to an `<a>`.
|
138
|
+
@mixin pagination-item-disabled (
|
139
|
+
$padding: $pagination-item-padding,
|
140
|
+
$color: $pagination-item-color-disabled
|
141
|
+
) {
|
142
|
+
padding: $padding;
|
143
|
+
color: $color;
|
144
|
+
cursor: not-allowed;
|
145
|
+
|
146
|
+
&:hover {
|
147
|
+
background: transparent;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
/// Adds styles for an ellipsis for use in a pagination list.
|
152
|
+
@mixin pagination-ellipsis (
|
153
|
+
$padding: $pagination-item-padding,
|
154
|
+
$color: $pagination-ellipsis-color
|
155
|
+
) {
|
156
|
+
padding: $padding;
|
157
|
+
content: '\2026';
|
158
|
+
color: $color;
|
159
|
+
}
|
160
|
+
|
161
|
+
@mixin foundation-pagination {
|
162
|
+
.pagination {
|
163
|
+
@include pagination-container;
|
164
|
+
|
165
|
+
.current {
|
166
|
+
@include pagination-item-current;
|
167
|
+
}
|
168
|
+
|
169
|
+
.disabled {
|
170
|
+
@include pagination-item-disabled;
|
171
|
+
}
|
172
|
+
|
173
|
+
.ellipsis::after {
|
174
|
+
@include pagination-ellipsis;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
@if $pagination-arrows {
|
179
|
+
.pagination-previous a::before,
|
180
|
+
.pagination-previous.disabled::before {
|
181
|
+
display: inline-block;
|
182
|
+
margin-#{$global-right}: 0.5rem;
|
183
|
+
content: '\00ab';
|
184
|
+
}
|
185
|
+
|
186
|
+
.pagination-next a::after,
|
187
|
+
.pagination-next.disabled::after {
|
188
|
+
display: inline-block;
|
189
|
+
margin-#{$global-left}: 0.5rem;
|
190
|
+
content: '\00bb';
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
/// Adds styles for a progress bar container.
|
6
|
+
@mixin progress-container {
|
7
|
+
height: $progress-height;
|
8
|
+
margin-bottom: $progress-margin-bottom;
|
9
|
+
border-radius: $progress-radius;
|
10
|
+
background-color: $progress-background;
|
11
|
+
}
|
12
|
+
|
13
|
+
/// Adds styles for the inner meter of a progress bar.
|
14
|
+
@mixin progress-meter {
|
15
|
+
position: relative;
|
16
|
+
display: block;
|
17
|
+
width: 0%;
|
18
|
+
height: 100%;
|
19
|
+
background-color: $progress-meter-background;
|
20
|
+
|
21
|
+
@if has-value($progress-radius) {
|
22
|
+
border-radius: $global-radius;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
/// Adds styles for text in the progress meter.
|
27
|
+
@mixin progress-meter-text {
|
28
|
+
@include absolute-center;
|
29
|
+
position: absolute;
|
30
|
+
margin: 0;
|
31
|
+
font-size: 0.75rem;
|
32
|
+
font-weight: bold;
|
33
|
+
color: $white;
|
34
|
+
white-space: nowrap;
|
35
|
+
|
36
|
+
@if has-value($progress-radius) {
|
37
|
+
border-radius: $progress-radius;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@mixin foundation-progress-bar {
|
42
|
+
// Progress bar
|
43
|
+
.progress {
|
44
|
+
@include progress-container;
|
45
|
+
|
46
|
+
@each $name, $color in $foundation-palette {
|
47
|
+
&.#{$name} {
|
48
|
+
.progress-meter {
|
49
|
+
background-color: $color;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// Inner meter
|
56
|
+
.progress-meter {
|
57
|
+
@include progress-meter;
|
58
|
+
}
|
59
|
+
|
60
|
+
// Inner meter text
|
61
|
+
.progress-meter-text {
|
62
|
+
@include progress-meter-text;
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group responsive-embed
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Margin below a responsive embed container.
|
10
|
+
/// @type Number
|
11
|
+
$responsive-embed-margin-bottom: rem-calc(16) !default;
|
12
|
+
|
13
|
+
/// Aspect ratios used to determine padding-bottom of responsive embed containers.
|
14
|
+
/// @type Map
|
15
|
+
$responsive-embed-ratios: (
|
16
|
+
default: 4 by 3,
|
17
|
+
widescreen: 16 by 9,
|
18
|
+
) !default;
|
19
|
+
|
20
|
+
// WARNING: Will be removed in version 6.4
|
21
|
+
$responsive-embed-ratio: default;
|
22
|
+
|
23
|
+
/// Creates a responsive embed container.
|
24
|
+
/// @param {String|List} $ratio [default] - Ratio of the container. Can be a key from the `$responsive-embed-ratios` map or a list formatted as `x by y`.
|
25
|
+
@mixin responsive-embed($ratio: default) {
|
26
|
+
@if type-of($ratio) == 'string' {
|
27
|
+
$ratio: map-get($responsive-embed-ratios, $ratio);
|
28
|
+
}
|
29
|
+
position: relative;
|
30
|
+
height: 0;
|
31
|
+
margin-bottom: $responsive-embed-margin-bottom;
|
32
|
+
padding-bottom: ratio-to-percentage($ratio);
|
33
|
+
overflow: hidden;
|
34
|
+
|
35
|
+
iframe,
|
36
|
+
object,
|
37
|
+
embed,
|
38
|
+
video {
|
39
|
+
position: absolute;
|
40
|
+
top: 0;
|
41
|
+
#{$global-left}: 0;
|
42
|
+
width: 100%;
|
43
|
+
height: 100%;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
@mixin foundation-responsive-embed {
|
48
|
+
.responsive-embed,
|
49
|
+
.flex-video {
|
50
|
+
@include responsive-embed($ratio: default);
|
51
|
+
|
52
|
+
$ratios: map-remove($responsive-embed-ratios,default);
|
53
|
+
|
54
|
+
@each $name, $ratio in $ratios {
|
55
|
+
&.#{$name} {
|
56
|
+
padding-bottom: ratio-to-percentage($ratio);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
@mixin foundation-flex-video {
|
63
|
+
@warn 'This mixin is being replaced by foundation-responsive-embed(). foundation-flex-video() will be removed in Foundation 6.4.';
|
64
|
+
@include foundation-responsive-embed;
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin flex-video($ratio: $responsive-embed-ratio) {
|
68
|
+
@warn 'This mixin is being replaced by responsive-embed(). flex-video() will be removed in Foundation 6.4.';
|
69
|
+
@include responsive-embed($ratio);
|
70
|
+
}
|
@@ -0,0 +1,180 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group reveal
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default background color of a modal.
|
10
|
+
/// @type Color
|
11
|
+
$reveal-background: $white !default;
|
12
|
+
|
13
|
+
/// Default width of a modal, with no class applied.
|
14
|
+
/// @type Number
|
15
|
+
$reveal-width: 600px !default;
|
16
|
+
|
17
|
+
/// Default maximum width of a modal.
|
18
|
+
/// @type Number
|
19
|
+
$reveal-max-width: $global-width !default;
|
20
|
+
|
21
|
+
/// Default padding inside a modal.
|
22
|
+
/// @type Number
|
23
|
+
$reveal-padding: $global-padding !default;
|
24
|
+
|
25
|
+
/// Default border around a modal.
|
26
|
+
/// @type Number
|
27
|
+
$reveal-border: 1px solid $medium-gray !default;
|
28
|
+
|
29
|
+
/// Default radius for modal.
|
30
|
+
/// @type Number
|
31
|
+
$reveal-radius: $global-radius !default;
|
32
|
+
|
33
|
+
/// z-index for modals. The overlay uses this value, while the modal itself uses this value plus one.
|
34
|
+
/// @type Number
|
35
|
+
$reveal-zindex: 1005 !default;
|
36
|
+
|
37
|
+
/// Background color of modal overlays.
|
38
|
+
/// @type Color
|
39
|
+
$reveal-overlay-background: rgba($black, 0.45) !default;
|
40
|
+
|
41
|
+
|
42
|
+
// Placeholder selector for medium-and-up modals
|
43
|
+
// Prevents duplicate CSS when defining multiple Reveal sizes
|
44
|
+
@include breakpoint(medium) {
|
45
|
+
%reveal-centered {
|
46
|
+
right: auto;
|
47
|
+
left: auto;
|
48
|
+
margin: 0 auto;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
/// Adds styles for a modal overlay.
|
54
|
+
/// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
|
55
|
+
@mixin reveal-overlay($background: $reveal-overlay-background) {
|
56
|
+
position: fixed;
|
57
|
+
top: 0;
|
58
|
+
right: 0;
|
59
|
+
bottom: 0;
|
60
|
+
left: 0;
|
61
|
+
z-index: $reveal-zindex;
|
62
|
+
|
63
|
+
display: none;
|
64
|
+
background-color: $background;
|
65
|
+
overflow-y: scroll;
|
66
|
+
}
|
67
|
+
|
68
|
+
/// Adds base styles for a modal.
|
69
|
+
@mixin reveal-modal-base {
|
70
|
+
@include disable-mouse-outline;
|
71
|
+
z-index: $reveal-zindex + 1;
|
72
|
+
// Workaround android browser z-index bug
|
73
|
+
backface-visibility: hidden;
|
74
|
+
|
75
|
+
display: none;
|
76
|
+
padding: $reveal-padding;
|
77
|
+
|
78
|
+
border: $reveal-border;
|
79
|
+
border-radius: $reveal-radius;
|
80
|
+
background-color: $reveal-background;
|
81
|
+
|
82
|
+
@include breakpoint(medium) {
|
83
|
+
min-height: 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Make sure rows don't have a min-width on them
|
87
|
+
.column {
|
88
|
+
min-width: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Strip margins from the last item in the modal
|
92
|
+
> :last-child {
|
93
|
+
margin-bottom: 0;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
/// Adjusts the width of a modal.
|
98
|
+
/// @param {Number} $width - Width of the modal. Generally a percentage.
|
99
|
+
/// @param {Number} $max-width [$reveal-max-width] - Maximum width of the modal.
|
100
|
+
@mixin reveal-modal-width(
|
101
|
+
$width: $reveal-width,
|
102
|
+
$max-width: $reveal-max-width
|
103
|
+
) {
|
104
|
+
@include breakpoint(medium) {
|
105
|
+
@extend %reveal-centered;
|
106
|
+
width: $width;
|
107
|
+
max-width: $max-width;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
/// Creates a full-screen modal, which stretches the full width and height of the window.
|
112
|
+
@mixin reveal-modal-fullscreen {
|
113
|
+
top: 0;
|
114
|
+
left: 0;
|
115
|
+
|
116
|
+
width: 100%;
|
117
|
+
max-width: none;
|
118
|
+
height: 100%;
|
119
|
+
height: 100vh; // sass-lint:disable-line no-duplicate-properties
|
120
|
+
min-height: 100vh;
|
121
|
+
margin-left: 0;
|
122
|
+
|
123
|
+
border: 0;
|
124
|
+
border-radius: 0;
|
125
|
+
}
|
126
|
+
|
127
|
+
@mixin foundation-reveal {
|
128
|
+
// [TODO] Is this necessary?
|
129
|
+
body.is-reveal-open { // sass-lint:disable-line no-qualifying-elements
|
130
|
+
overflow: hidden;
|
131
|
+
}
|
132
|
+
|
133
|
+
// html gets this class only in iOS
|
134
|
+
html.is-reveal-open,
|
135
|
+
html.is-reveal-open body {
|
136
|
+
min-height: 100%;
|
137
|
+
overflow: hidden;
|
138
|
+
position: fixed;
|
139
|
+
user-select: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
// Overlay
|
143
|
+
.reveal-overlay {
|
144
|
+
@include reveal-overlay;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Modal container
|
148
|
+
.reveal {
|
149
|
+
@include reveal-modal-base;
|
150
|
+
@include reveal-modal-width($reveal-width);
|
151
|
+
position: relative;
|
152
|
+
top: 100px;
|
153
|
+
margin-right: auto;
|
154
|
+
margin-left: auto;
|
155
|
+
overflow-y: auto;
|
156
|
+
|
157
|
+
// Remove padding
|
158
|
+
&.collapse {
|
159
|
+
padding: 0;
|
160
|
+
}
|
161
|
+
|
162
|
+
// Sizing classes
|
163
|
+
&.tiny { @include reveal-modal-width(30%); }
|
164
|
+
&.small { @include reveal-modal-width(50%); }
|
165
|
+
&.large { @include reveal-modal-width(90%); }
|
166
|
+
|
167
|
+
// Full-screen mode
|
168
|
+
&.full {
|
169
|
+
@include reveal-modal-fullscreen;
|
170
|
+
}
|
171
|
+
|
172
|
+
@include breakpoint($-zf-zero-breakpoint only) {
|
173
|
+
@include reveal-modal-fullscreen;
|
174
|
+
}
|
175
|
+
|
176
|
+
&.without-overlay {
|
177
|
+
position: fixed;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
// [TODO] Check how plugin confirms disabled or vertical status
|
6
|
+
// [TODO] Check if transition: all; is necessary
|
7
|
+
|
8
|
+
////
|
9
|
+
/// @group slider
|
10
|
+
////
|
11
|
+
|
12
|
+
/// Default slider width of a vertical slider. (Doesn't apply to the native slider.)
|
13
|
+
/// @type Number
|
14
|
+
$slider-width-vertical: 0.5rem !default;
|
15
|
+
|
16
|
+
/// Transition properties to apply to the slider handle and fill. (Doesn't apply to the native slider.)
|
17
|
+
/// @type Transition
|
18
|
+
$slider-transition: all 0.2s ease-in-out !default;
|
19
|
+
|
20
|
+
/// Adds the general styles for sliders.
|
21
|
+
@mixin slider-container {
|
22
|
+
position: relative;
|
23
|
+
height: $slider-height;
|
24
|
+
margin-top: 1.25rem;
|
25
|
+
margin-bottom: 2.25rem;
|
26
|
+
|
27
|
+
background-color: $slider-background;
|
28
|
+
cursor: pointer;
|
29
|
+
user-select: none;
|
30
|
+
touch-action: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
/// Adds the general styles for active fill for sliders.
|
34
|
+
@mixin slider-fill {
|
35
|
+
position: absolute;
|
36
|
+
top: 0;
|
37
|
+
left: 0;
|
38
|
+
|
39
|
+
display: inline-block;
|
40
|
+
max-width: 100%;
|
41
|
+
height: $slider-height;
|
42
|
+
|
43
|
+
background-color: $slider-fill-background;
|
44
|
+
transition: $slider-transition;
|
45
|
+
|
46
|
+
&.is-dragging {
|
47
|
+
transition: all 0s linear;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
/// Adds the general styles for the slider handles.
|
52
|
+
@mixin slider-handle {
|
53
|
+
@include disable-mouse-outline;
|
54
|
+
@include vertical-center;
|
55
|
+
left: 0;
|
56
|
+
z-index: 1;
|
57
|
+
|
58
|
+
display: inline-block;
|
59
|
+
width: $slider-handle-width;
|
60
|
+
height: $slider-handle-height;
|
61
|
+
|
62
|
+
border-radius: $slider-radius;
|
63
|
+
background-color: $slider-handle-background;
|
64
|
+
transition: $slider-transition;
|
65
|
+
touch-action: manipulation;
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
background-color: scale-color($slider-handle-background, $lightness: -15%);
|
69
|
+
}
|
70
|
+
|
71
|
+
&.is-dragging {
|
72
|
+
transition: all 0s linear;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
@mixin slider-disabled {
|
77
|
+
opacity: $slider-opacity-disabled;
|
78
|
+
cursor: not-allowed;
|
79
|
+
}
|
80
|
+
|
81
|
+
@mixin slider-vertical {
|
82
|
+
display: inline-block;
|
83
|
+
width: $slider-width-vertical;
|
84
|
+
height: 12.5rem;
|
85
|
+
margin: 0 1.25rem;
|
86
|
+
transform: scale(1, -1);
|
87
|
+
|
88
|
+
.slider-fill {
|
89
|
+
top: 0;
|
90
|
+
width: $slider-width-vertical;
|
91
|
+
max-height: 100%;
|
92
|
+
}
|
93
|
+
|
94
|
+
.slider-handle {
|
95
|
+
position: absolute;
|
96
|
+
top: 0;
|
97
|
+
left: 50%;
|
98
|
+
width: $slider-handle-height;
|
99
|
+
height: $slider-handle-width;
|
100
|
+
transform: translateX(-50%);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
104
|
+
@mixin foundation-slider {
|
105
|
+
// Container
|
106
|
+
.slider {
|
107
|
+
@include slider-container;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Fill area
|
111
|
+
.slider-fill {
|
112
|
+
@include slider-fill;
|
113
|
+
}
|
114
|
+
|
115
|
+
// Draggable handle
|
116
|
+
.slider-handle {
|
117
|
+
@include slider-handle;
|
118
|
+
}
|
119
|
+
|
120
|
+
// Disabled state
|
121
|
+
.slider.disabled,
|
122
|
+
.slider[disabled] {
|
123
|
+
@include slider-disabled;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Vertical slider
|
127
|
+
.slider.vertical {
|
128
|
+
@include slider-vertical;
|
129
|
+
}
|
130
|
+
|
131
|
+
// RTL support
|
132
|
+
@if $global-text-direction == rtl {
|
133
|
+
.slider:not(.vertical) {
|
134
|
+
transform: scale(-1, 1);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@mixin foundation-sticky {
|
6
|
+
.sticky-container {
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
|
10
|
+
.sticky {
|
11
|
+
position: relative;
|
12
|
+
z-index: 0;
|
13
|
+
transform: translate3d(0, 0, 0);
|
14
|
+
}
|
15
|
+
|
16
|
+
.sticky.is-stuck {
|
17
|
+
position: fixed;
|
18
|
+
z-index: 5;
|
19
|
+
width: 100%;
|
20
|
+
|
21
|
+
&.is-at-top {
|
22
|
+
top: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
&.is-at-bottom {
|
26
|
+
bottom: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.sticky.is-anchored {
|
31
|
+
position: relative;
|
32
|
+
right: auto;
|
33
|
+
left: auto;
|
34
|
+
|
35
|
+
&.is-at-bottom {
|
36
|
+
bottom: 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|