locomotivecms_wagon 2.4.0.rc2 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/generators/foundation/public/javascripts/vendor/foundation.js +10839 -6523
- data/generators/foundation/public/javascripts/vendor/foundation.min.js +5 -3
- data/generators/foundation/public/stylesheets/_settings.scss +455 -115
- data/generators/foundation/public/stylesheets/app.css +0 -3
- data/generators/foundation/public/stylesheets/app.scss +15 -6
- data/generators/foundation/public/stylesheets/foundation.css +4191 -1885
- data/generators/foundation/public/stylesheets/foundation6/_global.scss +106 -54
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +157 -14
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +71 -28
- data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +17 -9
- data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +33 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +168 -30
- data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +165 -44
- data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +9 -18
- data/generators/foundation/public/stylesheets/foundation6/components/_card.scss +129 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +54 -13
- data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +108 -33
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +215 -64
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +22 -7
- data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +1 -68
- data/generators/foundation/public/stylesheets/foundation6/components/_flex.scss +117 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +16 -8
- data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +50 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_menu-icon.scss +9 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +373 -91
- data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +418 -83
- data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +17 -7
- data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +77 -45
- data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +16 -35
- data/generators/foundation/public/stylesheets/foundation6/components/_responsive-embed.scss +70 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +59 -34
- data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +17 -38
- data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +5 -4
- data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +52 -36
- data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +197 -79
- data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +126 -67
- data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +17 -4
- data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +61 -21
- data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +74 -24
- data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +128 -10
- data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +6 -5
- data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +14 -9
- data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +12 -5
- data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +6 -6
- data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +11 -9
- data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +82 -10
- data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +2 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_meter.scss +116 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_progress.scss +94 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_range.scss +149 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +36 -14
- data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +53 -27
- data/generators/foundation/public/stylesheets/foundation6/foundation.scss +59 -17
- data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +100 -56
- data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +22 -22
- data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +164 -96
- data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +19 -4
- data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +61 -10
- data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +49 -5
- data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +14 -9
- data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +42 -15
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +11 -4
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +4 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +1 -1
- data/generators/foundation/public/stylesheets/foundation6/prototype/_arrow.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_border-box.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_border-none.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_bordered.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_box.scss +23 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_display.scss +50 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_font-styling.scss +95 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_list-style-type.scss +95 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_overflow.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_position.scss +114 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_prototype.scss +87 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_relation.scss +157 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_rotate.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_rounded.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_separator.scss +96 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_shadow.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_sizing.scss +73 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_spacing.scss +204 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-decoration.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-transformation.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/prototype/_text-utilities.scss +88 -0
- data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +454 -116
- data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +9 -8
- data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +128 -55
- data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +7 -4
- data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +22 -9
- data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +0 -2
- data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +213 -47
- data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +105 -17
- data/generators/foundation/public/stylesheets/foundation6/util/_direction.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_flex.scss +85 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_math.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +161 -38
- data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +5 -3
- data/generators/foundation/public/stylesheets/foundation6/util/_typography.scss +26 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +100 -17
- data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +4 -5
- data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +68 -25
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/generators/foundation/public/stylesheets/foundation6/vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_cell.scss +169 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_classes.scss +476 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_collapse.scss +74 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_frame.scss +85 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_grid.scss +35 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_gutters.scss +45 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_layout.scss +33 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_position.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/xy-grid/_xy-grid.scss +51 -0
- data/lib/locomotive/wagon/tools/styled_yaml.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +2 -2
- data/spec/fixtures/cassettes/authenticate.yml +102 -48
- data/spec/fixtures/cassettes/delete.yml +519 -259
- data/spec/fixtures/cassettes/push.yml +2724 -1486
- metadata +61 -10
- data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +0 -4
- data/generators/foundation/public/stylesheets/foundation6/vendor/normalize.scss +0 -424
@@ -58,25 +58,33 @@ $orbit-control-zindex: 10 !default;
|
|
58
58
|
/// Adds styles for the inner Orbit slide container. These styles are used on the `.orbit-container` class.
|
59
59
|
@mixin orbit-container {
|
60
60
|
position: relative;
|
61
|
+
height: 0; // Prevent FOUC by not showing until JS sets height
|
61
62
|
margin: 0;
|
62
|
-
overflow: hidden;
|
63
63
|
list-style: none;
|
64
|
+
overflow: hidden;
|
64
65
|
}
|
65
66
|
|
66
67
|
/// Adds styles for the individual slides of an Orbit slider. These styles are used on the `.orbit-slide` class.
|
67
68
|
@mixin orbit-slide {
|
68
69
|
width: 100%;
|
69
|
-
|
70
|
+
|
71
|
+
&.no-motionui {
|
72
|
+
&.is-active {
|
73
|
+
top: 0;
|
74
|
+
left: 0;
|
75
|
+
}
|
76
|
+
}
|
70
77
|
}
|
71
78
|
|
72
79
|
@mixin orbit-figure {
|
73
80
|
margin: 0;
|
74
81
|
}
|
75
82
|
|
83
|
+
/// Adds styles for a slide containing an image. These styles are used on the `.orbit-image` class.
|
76
84
|
@mixin orbit-image {
|
77
|
-
margin: 0;
|
78
85
|
width: 100%;
|
79
86
|
max-width: 100%;
|
87
|
+
margin: 0;
|
80
88
|
}
|
81
89
|
|
82
90
|
/// Adds styles for an orbit slide caption. These styles are used on the `.orbit-caption` class.
|
@@ -84,16 +92,17 @@ $orbit-control-zindex: 10 !default;
|
|
84
92
|
position: absolute;
|
85
93
|
bottom: 0;
|
86
94
|
width: 100%;
|
87
|
-
padding: $orbit-caption-padding;
|
88
95
|
margin-bottom: 0;
|
89
|
-
|
96
|
+
padding: $orbit-caption-padding;
|
97
|
+
|
90
98
|
background-color: $orbit-caption-background;
|
99
|
+
color: color-pick-contrast($orbit-caption-background);
|
91
100
|
}
|
92
101
|
|
93
102
|
/// Adds base styles for the next/previous buttons in an Orbit slider. These styles are shared between the `.orbit-next` and `.orbit-previous` classes in the default CSS.
|
94
103
|
@mixin orbit-control {
|
95
104
|
@include disable-mouse-outline;
|
96
|
-
@include
|
105
|
+
@include vertical-center;
|
97
106
|
z-index: $orbit-control-zindex;
|
98
107
|
padding: $orbit-control-padding;
|
99
108
|
color: $white;
|
@@ -128,8 +137,9 @@ $orbit-control-zindex: 10 !default;
|
|
128
137
|
width: $orbit-bullet-diameter;
|
129
138
|
height: $orbit-bullet-diameter;
|
130
139
|
margin: $orbit-bullet-margin;
|
131
|
-
|
140
|
+
|
132
141
|
border-radius: 50%;
|
142
|
+
background-color: $orbit-bullet-background;
|
133
143
|
|
134
144
|
&:hover {
|
135
145
|
background-color: $orbit-bullet-background-active;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
/// @type Number
|
11
11
|
$pagination-font-size: rem-calc(14) !default;
|
12
12
|
|
13
|
-
/// Default bottom margin of the
|
13
|
+
/// Default bottom margin of the pagination object.
|
14
14
|
/// @type Number
|
15
15
|
$pagination-margin-bottom: $global-margin !default;
|
16
16
|
|
@@ -40,7 +40,7 @@ $pagination-item-background-current: $primary-color !default;
|
|
40
40
|
|
41
41
|
/// Text color of the pagination item for the current page.
|
42
42
|
/// @type Color
|
43
|
-
$pagination-item-color-current:
|
43
|
+
$pagination-item-color-current: $white !default;
|
44
44
|
|
45
45
|
/// Text color of a disabled pagination item.
|
46
46
|
/// @type Color
|
@@ -50,33 +50,58 @@ $pagination-item-color-disabled: $medium-gray !default;
|
|
50
50
|
/// @type Color
|
51
51
|
$pagination-ellipsis-color: $black !default;
|
52
52
|
|
53
|
-
/// If `false`, don't display page number links on mobile, only next/previous links
|
53
|
+
/// If `false`, don't display page number links on mobile, only next/previous links
|
54
|
+
/// and optionally current page number.
|
54
55
|
/// @type Boolean
|
55
56
|
$pagination-mobile-items: false !default;
|
56
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
|
+
|
57
64
|
/// If `true`, arrows are added to the next and previous links of pagination.
|
58
65
|
/// @type Boolean
|
59
66
|
$pagination-arrows: true !default;
|
60
67
|
|
61
68
|
/// Adds styles for a pagination container. Apply this to a `<ul>`.
|
62
|
-
@mixin pagination-container
|
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
|
+
) {
|
63
78
|
@include clearfix;
|
64
79
|
margin-#{$global-left}: 0;
|
65
|
-
margin-bottom: $
|
80
|
+
margin-bottom: $margin-bottom;
|
66
81
|
|
67
82
|
// List item
|
68
83
|
li {
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
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;
|
73
93
|
|
74
|
-
@if not $pagination-mobile-items {
|
75
94
|
&:last-child,
|
76
95
|
&:first-child {
|
77
96
|
display: inline-block;
|
78
97
|
}
|
79
98
|
|
99
|
+
@if $pagination-mobile-current-item {
|
100
|
+
&.current {
|
101
|
+
display: inline-block;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
80
105
|
@include breakpoint(medium) {
|
81
106
|
display: inline-block;
|
82
107
|
}
|
@@ -86,49 +111,37 @@ $pagination-arrows: true !default;
|
|
86
111
|
// Page links
|
87
112
|
a,
|
88
113
|
button {
|
89
|
-
color: $pagination-item-color;
|
90
114
|
display: block;
|
91
|
-
padding: $
|
92
|
-
border-radius: $
|
115
|
+
padding: $padding;
|
116
|
+
border-radius: $radius;
|
117
|
+
color: $color;
|
93
118
|
|
94
119
|
&:hover {
|
95
|
-
background: $
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
// Symbols
|
100
|
-
@if $pagination-arrows {
|
101
|
-
[aria-label="previous"] {
|
102
|
-
&::before {
|
103
|
-
content: '«';
|
104
|
-
display: inline-block;
|
105
|
-
margin-#{$global-right}: 0.75rem;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
|
109
|
-
[aria-label="next"] {
|
110
|
-
&::after {
|
111
|
-
content: '»';
|
112
|
-
display: inline-block;
|
113
|
-
margin-#{$global-left}: 0.75rem;
|
114
|
-
}
|
120
|
+
background: $background-hover;
|
115
121
|
}
|
116
122
|
}
|
117
123
|
}
|
118
124
|
|
119
125
|
/// Adds styles for the current pagination item. Apply this to an `<a>`.
|
120
|
-
@mixin pagination-item-current
|
121
|
-
padding: $pagination-item-padding
|
122
|
-
background: $pagination-item-background-current
|
123
|
-
color: $pagination-item-color-current
|
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;
|
124
134
|
cursor: default;
|
125
135
|
}
|
126
136
|
|
127
137
|
/// Adds styles for a disabled pagination item. Apply this to an `<a>`.
|
128
|
-
@mixin pagination-item-disabled
|
129
|
-
padding: $pagination-item-padding
|
130
|
-
color: $pagination-item-color-disabled
|
131
|
-
|
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;
|
132
145
|
|
133
146
|
&:hover {
|
134
147
|
background: transparent;
|
@@ -136,10 +149,13 @@ $pagination-arrows: true !default;
|
|
136
149
|
}
|
137
150
|
|
138
151
|
/// Adds styles for an ellipsis for use in a pagination list.
|
139
|
-
@mixin pagination-ellipsis
|
140
|
-
|
141
|
-
|
142
|
-
|
152
|
+
@mixin pagination-ellipsis (
|
153
|
+
$padding: $pagination-item-padding,
|
154
|
+
$color: $pagination-ellipsis-color
|
155
|
+
) {
|
156
|
+
padding: $padding;
|
157
|
+
content: '\2026';
|
158
|
+
color: $color;
|
143
159
|
}
|
144
160
|
|
145
161
|
@mixin foundation-pagination {
|
@@ -158,4 +174,20 @@ $pagination-arrows: true !default;
|
|
158
174
|
@include pagination-ellipsis;
|
159
175
|
}
|
160
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
|
+
}
|
161
193
|
}
|
@@ -2,36 +2,12 @@
|
|
2
2
|
// foundation.zurb.com
|
3
3
|
// Licensed under MIT Open Source
|
4
4
|
|
5
|
-
////
|
6
|
-
/// @group progress-bar
|
7
|
-
////
|
8
|
-
|
9
|
-
/// Height of a progress bar.
|
10
|
-
/// @type Number
|
11
|
-
$progress-height: 1rem !default;
|
12
|
-
|
13
|
-
/// Background color of a progress bar.
|
14
|
-
/// @type Color
|
15
|
-
$progress-background: $medium-gray !default;
|
16
|
-
|
17
|
-
/// Bottom margin of a progress bar.
|
18
|
-
/// @type Number
|
19
|
-
$progress-margin-bottom: $global-margin !default;
|
20
|
-
|
21
|
-
/// Default color of a progress bar's meter.
|
22
|
-
/// @type Color
|
23
|
-
$progress-meter-background: $primary-color !default;
|
24
|
-
|
25
|
-
/// Default radius of a progress bar.
|
26
|
-
/// @type Number
|
27
|
-
$progress-radius: $global-radius !default;
|
28
|
-
|
29
5
|
/// Adds styles for a progress bar container.
|
30
6
|
@mixin progress-container {
|
31
|
-
background-color: $progress-background;
|
32
7
|
height: $progress-height;
|
33
8
|
margin-bottom: $progress-margin-bottom;
|
34
9
|
border-radius: $progress-radius;
|
10
|
+
background-color: $progress-background;
|
35
11
|
}
|
36
12
|
|
37
13
|
/// Adds styles for the inner meter of a progress bar.
|
@@ -41,20 +17,25 @@ $progress-radius: $global-radius !default;
|
|
41
17
|
width: 0%;
|
42
18
|
height: 100%;
|
43
19
|
background-color: $progress-meter-background;
|
44
|
-
|
20
|
+
|
21
|
+
@if has-value($progress-radius) {
|
22
|
+
border-radius: $global-radius;
|
23
|
+
}
|
45
24
|
}
|
46
25
|
|
47
26
|
/// Adds styles for text in the progress meter.
|
48
27
|
@mixin progress-meter-text {
|
28
|
+
@include absolute-center;
|
49
29
|
position: absolute;
|
50
|
-
top: 50%;
|
51
|
-
#{$global-left}: 50%;
|
52
|
-
transform: translate(-50%, -50%);
|
53
30
|
margin: 0;
|
54
31
|
font-size: 0.75rem;
|
55
32
|
font-weight: bold;
|
56
33
|
color: $white;
|
57
34
|
white-space: nowrap;
|
35
|
+
|
36
|
+
@if has-value($progress-radius) {
|
37
|
+
border-radius: $progress-radius;
|
38
|
+
}
|
58
39
|
}
|
59
40
|
|
60
41
|
@mixin foundation-progress-bar {
|
@@ -62,7 +43,7 @@ $progress-radius: $global-radius !default;
|
|
62
43
|
.progress {
|
63
44
|
@include progress-container;
|
64
45
|
|
65
|
-
@each $name, $color in $foundation-
|
46
|
+
@each $name, $color in $foundation-palette {
|
66
47
|
&.#{$name} {
|
67
48
|
.progress-meter {
|
68
49
|
background-color: $color;
|
@@ -71,13 +52,13 @@ $progress-radius: $global-radius !default;
|
|
71
52
|
}
|
72
53
|
}
|
73
54
|
|
74
|
-
//
|
55
|
+
// Inner meter
|
75
56
|
.progress-meter {
|
76
57
|
@include progress-meter;
|
58
|
+
}
|
77
59
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
}
|
60
|
+
// Inner meter text
|
61
|
+
.progress-meter-text {
|
62
|
+
@include progress-meter-text;
|
82
63
|
}
|
83
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
|
+
}
|
@@ -18,10 +18,6 @@ $reveal-width: 600px !default;
|
|
18
18
|
/// @type Number
|
19
19
|
$reveal-max-width: $global-width !default;
|
20
20
|
|
21
|
-
/// Offset from the top of the window when a modal is added.
|
22
|
-
/// @type Number
|
23
|
-
$reveal-offset: rem-calc(100) !default;
|
24
|
-
|
25
21
|
/// Default padding inside a modal.
|
26
22
|
/// @type Number
|
27
23
|
$reveal-padding: $global-padding !default;
|
@@ -36,45 +32,59 @@ $reveal-radius: $global-radius !default;
|
|
36
32
|
|
37
33
|
/// z-index for modals. The overlay uses this value, while the modal itself uses this value plus one.
|
38
34
|
/// @type Number
|
39
|
-
$reveal-zindex: 1005;
|
35
|
+
$reveal-zindex: 1005 !default;
|
40
36
|
|
41
37
|
/// Background color of modal overlays.
|
42
38
|
/// @type Color
|
43
39
|
$reveal-overlay-background: rgba($black, 0.45) !default;
|
44
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
|
+
|
45
53
|
/// Adds styles for a modal overlay.
|
46
54
|
/// @param {Color} $background [$reveal-overlay-background] - Background color of the overlay.
|
47
|
-
@mixin reveal-overlay {
|
48
|
-
display: none;
|
55
|
+
@mixin reveal-overlay($background: $reveal-overlay-background) {
|
49
56
|
position: fixed;
|
50
57
|
top: 0;
|
58
|
+
right: 0;
|
51
59
|
bottom: 0;
|
52
60
|
left: 0;
|
53
|
-
right: 0;
|
54
61
|
z-index: $reveal-zindex;
|
55
|
-
|
62
|
+
|
63
|
+
display: none;
|
64
|
+
background-color: $background;
|
56
65
|
overflow-y: scroll;
|
57
66
|
}
|
58
67
|
|
59
68
|
/// Adds base styles for a modal.
|
60
69
|
@mixin reveal-modal-base {
|
61
70
|
@include disable-mouse-outline;
|
62
|
-
display: none;
|
63
71
|
z-index: $reveal-zindex + 1;
|
72
|
+
// Workaround android browser z-index bug
|
73
|
+
backface-visibility: hidden;
|
74
|
+
|
75
|
+
display: none;
|
64
76
|
padding: $reveal-padding;
|
77
|
+
|
65
78
|
border: $reveal-border;
|
66
|
-
// margin: 100px auto 0 100px;
|
67
|
-
margin: 100px auto 0 auto;
|
68
|
-
background-color: $reveal-background;
|
69
79
|
border-radius: $reveal-radius;
|
80
|
+
background-color: $reveal-background;
|
70
81
|
|
71
82
|
@include breakpoint(medium) {
|
72
83
|
min-height: 0;
|
73
84
|
}
|
74
85
|
|
75
86
|
// Make sure rows don't have a min-width on them
|
76
|
-
.column
|
77
|
-
.columns {
|
87
|
+
.column {
|
78
88
|
min-width: 0;
|
79
89
|
}
|
80
90
|
|
@@ -94,24 +104,41 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
94
104
|
@include breakpoint(medium) {
|
95
105
|
@extend %reveal-centered;
|
96
106
|
width: $width;
|
97
|
-
max-width: $
|
107
|
+
max-width: $max-width;
|
98
108
|
}
|
99
109
|
}
|
100
110
|
|
101
111
|
/// Creates a full-screen modal, which stretches the full width and height of the window.
|
102
112
|
@mixin reveal-modal-fullscreen {
|
103
|
-
// scss-lint:disable DuplicateProperty
|
104
113
|
top: 0;
|
105
114
|
left: 0;
|
115
|
+
|
106
116
|
width: 100%;
|
117
|
+
max-width: none;
|
107
118
|
height: 100%;
|
108
|
-
height: 100vh;
|
119
|
+
height: 100vh; // sass-lint:disable-line no-duplicate-properties
|
109
120
|
min-height: 100vh;
|
110
|
-
max-width: none;
|
111
121
|
margin-left: 0;
|
122
|
+
|
123
|
+
border: 0;
|
124
|
+
border-radius: 0;
|
112
125
|
}
|
113
126
|
|
114
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
|
+
|
115
142
|
// Overlay
|
116
143
|
.reveal-overlay {
|
117
144
|
@include reveal-overlay;
|
@@ -121,23 +148,17 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
121
148
|
.reveal {
|
122
149
|
@include reveal-modal-base;
|
123
150
|
@include reveal-modal-width($reveal-width);
|
124
|
-
position:
|
151
|
+
position: relative;
|
152
|
+
top: 100px;
|
153
|
+
margin-right: auto;
|
154
|
+
margin-left: auto;
|
125
155
|
overflow-y: auto;
|
156
|
+
|
126
157
|
// Remove padding
|
127
158
|
&.collapse {
|
128
159
|
padding: 0;
|
129
160
|
}
|
130
161
|
|
131
|
-
// Placeholder selector for medium-and-up modals
|
132
|
-
// Prevents duplicate CSS when defining multiple Reveal sizes
|
133
|
-
@include breakpoint(medium) {
|
134
|
-
%reveal-centered {
|
135
|
-
left: auto;
|
136
|
-
right: auto;
|
137
|
-
margin: 0 auto;
|
138
|
-
}
|
139
|
-
}
|
140
|
-
|
141
162
|
// Sizing classes
|
142
163
|
&.tiny { @include reveal-modal-width(30%); }
|
143
164
|
&.small { @include reveal-modal-width(50%); }
|
@@ -147,9 +168,13 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
|
|
147
168
|
&.full {
|
148
169
|
@include reveal-modal-fullscreen;
|
149
170
|
}
|
150
|
-
}
|
151
|
-
}
|
152
171
|
|
153
|
-
|
154
|
-
|
172
|
+
@include breakpoint($-zf-zero-breakpoint only) {
|
173
|
+
@include reveal-modal-fullscreen;
|
174
|
+
}
|
175
|
+
|
176
|
+
&.without-overlay {
|
177
|
+
position: fixed;
|
178
|
+
}
|
179
|
+
}
|
155
180
|
}
|