material-sass 4.0.0.beta → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/Rakefile +12 -12
- data/{app/assets → assets}/javascripts/material-sprockets.js +0 -0
- data/{app/assets → assets}/javascripts/material.js +54 -4
- data/{app/assets → assets}/javascripts/material.min.js +1 -1
- data/{app/assets → assets}/javascripts/material/addons/picker.date.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/addons/waves.js +0 -0
- data/assets/javascripts/material/components/expansion-panel.js +50 -0
- data/{app/assets → assets}/javascripts/material/components/floating-label.js +1 -1
- data/{app/assets → assets}/javascripts/material/components/navdrawer.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/selection-control-focus.js +2 -3
- data/{app/assets → assets}/javascripts/material/components/tab-switch.js +0 -0
- data/{app/assets → assets}/javascripts/material/components/util.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/picker.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/textarea-autosize.js +0 -0
- data/{app/assets → assets}/javascripts/material/initializers/waves.js +0 -0
- data/{app/assets → assets}/stylesheets/material.min.css +0 -0
- data/{app/assets → assets}/stylesheets/material.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/_colours.scss +7 -11
- data/{app/assets → assets}/stylesheets/material/_functions.scss +8 -14
- data/{app/assets → assets}/stylesheets/material/_mixins.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/_print.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/_utilities.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/_variables.scss +0 -2
- data/{app/assets → assets}/stylesheets/material/base/_base.scss +24 -49
- data/{app/assets → assets}/stylesheets/material/base/_grid.scss +1 -5
- data/{app/assets → assets}/stylesheets/material/base/_typography.scss +1 -11
- data/{app/assets → assets}/stylesheets/material/bootstrap/_alert.scss +14 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_badge.scss +19 -7
- data/{app/assets → assets}/stylesheets/material/bootstrap/_breadcrumb.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_carousel.scss +0 -6
- data/{app/assets → assets}/stylesheets/material/bootstrap/_close.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/bootstrap/_code.scss +0 -9
- data/{app/assets → assets}/stylesheets/material/bootstrap/_custom-form.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_form.scss +4 -16
- data/{app/assets → assets}/stylesheets/material/bootstrap/_image.scss +10 -14
- data/{app/assets → assets}/stylesheets/material/bootstrap/_jumbotron.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_media.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_nav.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_pagination.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/bootstrap/_popover.scss +4 -10
- data/{app/assets → assets}/stylesheets/material/bootstrap/_responsive-embed.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/bootstrap/_transition.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/material.scss +1 -10
- data/{app/assets → assets}/stylesheets/material/material/_button-flat.scss +3 -2
- data/{app/assets → assets}/stylesheets/material/material/_button-float.scss +4 -4
- data/{app/assets → assets}/stylesheets/material/material/_button-group.scss +40 -95
- data/{app/assets → assets}/stylesheets/material/material/_button.scss +8 -24
- data/{app/assets → assets}/stylesheets/material/material/_card.scss +28 -48
- data/{app/assets → assets}/stylesheets/material/material/_chip.scss +3 -7
- data/{app/assets → assets}/stylesheets/material/material/_data-table.scss +40 -37
- data/{app/assets → assets}/stylesheets/material/material/_dialog.scss +79 -53
- data/assets/stylesheets/material/material/_expansion-panel.scss +247 -0
- data/{app/assets → assets}/stylesheets/material/material/_menu.scss +99 -96
- data/{app/assets → assets}/stylesheets/material/material/_navdrawer.scss +26 -54
- data/{app/assets → assets}/stylesheets/material/material/_picker.scss +8 -13
- data/{app/assets → assets}/stylesheets/material/material/_progress-circular.scss +0 -1
- data/{app/assets → assets}/stylesheets/material/material/_progress.scss +41 -53
- data/{app/assets → assets}/stylesheets/material/material/_selection-control.scss +4 -25
- data/{app/assets → assets}/stylesheets/material/material/_stepper.scss +1 -9
- data/{app/assets → assets}/stylesheets/material/material/_tab.scss +16 -16
- data/assets/stylesheets/material/material/_text-field-box.scss +59 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field-floating-label.scss +28 -13
- data/{app/assets → assets}/stylesheets/material/material/_text-field-input-group.scss +40 -49
- data/assets/stylesheets/material/material/_text-field-textarea.scss +15 -0
- data/{app/assets → assets}/stylesheets/material/material/_text-field.scss +23 -42
- data/{app/assets → assets}/stylesheets/material/material/_toolbar.scss +50 -37
- data/{app/assets → assets}/stylesheets/material/material/_tooltip.scss +6 -12
- data/{app/assets → assets}/stylesheets/material/mixins/_background-variant.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_border-radius.scss +2 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_breakpoint.scss +7 -6
- data/{app/assets → assets}/stylesheets/material/mixins/_clearfix.scss +0 -0
- data/assets/stylesheets/material/mixins/_float.scss +13 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_form.scss +37 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_grid-framework.scss +30 -24
- data/{app/assets → assets}/stylesheets/material/mixins/_grid.scss +8 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_hex-to-rgba.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_hover.scss +19 -19
- data/{app/assets → assets}/stylesheets/material/mixins/_image.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_list.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_material-icons.scss +4 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_nav-divider.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_reset-text.scss +1 -1
- data/{app/assets → assets}/stylesheets/material/mixins/_screenreader.scss +1 -2
- data/{app/assets → assets}/stylesheets/material/mixins/_strip-unit.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-alignment.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-emphasis.scss +6 -5
- data/{app/assets → assets}/stylesheets/material/mixins/_text-hide.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_text-truncate.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/mixins/_transition.scss +0 -8
- data/{app/assets → assets}/stylesheets/material/mixins/_typography.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_align.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_background.scss +0 -4
- data/{app/assets → assets}/stylesheets/material/utilities/_border.scss +2 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_clearfix.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_display.scss +6 -2
- data/{app/assets → assets}/stylesheets/material/utilities/_flex.scss +10 -6
- data/{app/assets → assets}/stylesheets/material/utilities/_float.scss +3 -3
- data/{app/assets → assets}/stylesheets/material/utilities/_material-icons.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_position.scss +14 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_screenreader.scss +0 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_sizing.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_spacing.scss +32 -31
- data/{app/assets → assets}/stylesheets/material/utilities/_text.scss +2 -13
- data/{app/assets → assets}/stylesheets/material/utilities/_visibility.scss +2 -0
- data/{app/assets → assets}/stylesheets/material/utilities/_waves.scss +3 -3
- data/assets/stylesheets/material/variables/_elevation-shadow.scss +69 -0
- data/{app/assets → assets}/stylesheets/material/variables/_grid.scss +0 -4
- data/assets/stylesheets/material/variables/_palette.scss +66 -0
- data/{app/assets → assets}/stylesheets/material/variables/_spacer.scss +6 -11
- data/assets/stylesheets/material/variables/_transition.scss +27 -0
- data/{app/assets → assets}/stylesheets/material/variables/_typography.scss +21 -27
- data/{app/assets → assets}/stylesheets/material/variables/_variable-bootstrap.scss +22 -50
- data/{app/assets → assets}/stylesheets/material/variables/_variable-material.scss +108 -141
- data/lib/material-sass.rb +52 -4
- data/lib/material-sass/engine.rb +8 -8
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -0
- metadata +145 -149
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- data/app/assets/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- data/app/assets/fonts/material-icons/README.md +0 -9
- data/app/assets/fonts/material-icons/codepoints +0 -932
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/images/bg/amber.jpg +0 -0
- data/app/assets/images/bg/brand.jpg +0 -0
- data/app/assets/images/bg/green.jpg +0 -0
- data/app/assets/images/bg/purple.jpg +0 -0
- data/app/assets/images/bg/red.jpg +0 -0
- data/app/assets/images/bg/teal.jpg +0 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +0 -118
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +0 -18
- data/app/assets/stylesheets/material/mixins/_pull.scss +0 -7
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +0 -91
- data/app/assets/stylesheets/material/variables/_palette.scss +0 -45
- data/app/assets/stylesheets/material/variables/_transition.scss +0 -29
@@ -90,6 +90,7 @@
|
|
90
90
|
.picker-wrap {
|
91
91
|
@include border-radius($border-radius);
|
92
92
|
@include transition-standard-complex(transform);
|
93
|
+
@include typography-body-1;
|
93
94
|
|
94
95
|
box-shadow: map-get($picker-elevation-shadow, shadow);
|
95
96
|
display: inline-block;
|
@@ -97,7 +98,7 @@
|
|
97
98
|
max-width: ($picker-cell-size * 7 + $picker-inner-spacer-x * 2);
|
98
99
|
outline: 0;
|
99
100
|
position: relative;
|
100
|
-
transform: scale(.87);
|
101
|
+
transform: scale(0.87);
|
101
102
|
vertical-align: middle;
|
102
103
|
|
103
104
|
.picker-opened & {
|
@@ -105,8 +106,6 @@
|
|
105
106
|
}
|
106
107
|
}
|
107
108
|
|
108
|
-
|
109
|
-
|
110
109
|
// Footer
|
111
110
|
|
112
111
|
.picker-footer {
|
@@ -125,8 +124,6 @@
|
|
125
124
|
}
|
126
125
|
}
|
127
126
|
|
128
|
-
|
129
|
-
|
130
127
|
// Header
|
131
128
|
|
132
129
|
.picker-header {
|
@@ -178,16 +175,14 @@
|
|
178
175
|
}
|
179
176
|
}
|
180
177
|
|
181
|
-
|
182
|
-
|
183
178
|
// Material date display
|
184
179
|
|
185
180
|
.picker-date-display {
|
186
181
|
@include border-top-radius($border-radius);
|
187
|
-
@include color-yiq($picker-header-bg);
|
188
182
|
@include text-align(left);
|
189
183
|
|
190
184
|
background-color: $picker-header-bg;
|
185
|
+
color: color-yiq($picker-header-bg);
|
191
186
|
padding: $picker-header-padding-y $picker-header-padding-x;
|
192
187
|
}
|
193
188
|
|
@@ -208,8 +203,6 @@
|
|
208
203
|
}
|
209
204
|
}
|
210
205
|
|
211
|
-
|
212
|
-
|
213
206
|
// Table
|
214
207
|
|
215
208
|
.picker-day {
|
@@ -222,9 +215,8 @@
|
|
222
215
|
width: $picker-cell-size;
|
223
216
|
|
224
217
|
&.picker-day-selected {
|
225
|
-
@include color-yiq($picker-day-bg-selected);
|
226
|
-
|
227
218
|
background-color: $picker-day-bg-selected;
|
219
|
+
color: color-yiq($picker-day-bg-selected);
|
228
220
|
}
|
229
221
|
}
|
230
222
|
|
@@ -250,11 +242,14 @@
|
|
250
242
|
td,
|
251
243
|
th {
|
252
244
|
border: 0;
|
253
|
-
font-weight: normal;
|
254
245
|
padding: 0;
|
255
246
|
text-align: center;
|
256
247
|
vertical-align: middle;
|
257
248
|
}
|
249
|
+
|
250
|
+
th {
|
251
|
+
font-weight: inherit;
|
252
|
+
}
|
258
253
|
}
|
259
254
|
|
260
255
|
.picker-weekday {
|
@@ -11,6 +11,17 @@
|
|
11
11
|
.progress-bar {
|
12
12
|
border-bottom: $progress-bar-height solid $progress-bar-bg;
|
13
13
|
|
14
|
+
@each $color, $values in $theme-colors {
|
15
|
+
&.bg-#{$color} {
|
16
|
+
background-color: transparent !important; // stylelint-disable-line declaration-no-important
|
17
|
+
border-bottom-color: map-get(theme-color($color), color);
|
18
|
+
|
19
|
+
&::after {
|
20
|
+
background-color: map-get(theme-color($color), lighter);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
14
25
|
&::after {
|
15
26
|
background-color: $progress-bg;
|
16
27
|
content: '';
|
@@ -22,29 +33,8 @@
|
|
22
33
|
left: 0;
|
23
34
|
z-index: -1;
|
24
35
|
}
|
25
|
-
|
26
|
-
// Colour
|
27
|
-
@each $color, $values in $theme-colors {
|
28
|
-
&.bg-#{$color} {
|
29
|
-
background-color: transparent !important;
|
30
|
-
border-bottom-color: map-get(theme-color($color), color);
|
31
|
-
|
32
|
-
&::after {
|
33
|
-
background-color: map-get(theme-color($color), lighter);
|
34
|
-
}
|
35
|
-
|
36
|
-
&::before {
|
37
|
-
background-image: repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
38
|
-
// scss-lint:disable VendorPrefix
|
39
|
-
background-image: -webkit-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
40
|
-
// scss-lint:enable VendorPrefix
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
36
|
}
|
45
37
|
|
46
|
-
|
47
|
-
|
48
38
|
// Animated & striped
|
49
39
|
|
50
40
|
.progress-bar-animated {
|
@@ -70,8 +60,18 @@
|
|
70
60
|
box-sizing: content-box;
|
71
61
|
position: relative;
|
72
62
|
|
73
|
-
|
74
|
-
|
63
|
+
@each $color, $values in $theme-colors {
|
64
|
+
&.bg-#{$color}::before {
|
65
|
+
// stylelint-disable value-no-vendor-prefix
|
66
|
+
background-image: repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
67
|
+
background-image: -webkit-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
68
|
+
background-image: -moz-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
69
|
+
// stylelint-enable
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&[style*='width:100%'],
|
74
|
+
&[style*='width: 100%'] {
|
75
75
|
border-right: 0;
|
76
76
|
}
|
77
77
|
|
@@ -83,10 +83,11 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
&::before {
|
86
|
+
// stylelint-disable value-no-vendor-prefix
|
86
87
|
background-image: repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, #{$progress-bg}, #{$progress-bg} #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
87
|
-
// scss-lint:disable VendorPrefix
|
88
88
|
background-image: -webkit-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, #{$progress-bg}, #{$progress-bg} #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
89
|
-
|
89
|
+
background-image: -moz-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, #{$progress-bg}, #{$progress-bg} #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
90
|
+
// stylelint-enable
|
90
91
|
background-position: 0 0;
|
91
92
|
background-repeat: repeat-x;
|
92
93
|
background-size: ($progress-bar-height * 3) ($progress-bar-height * 3);
|
@@ -99,16 +100,6 @@
|
|
99
100
|
left: 0;
|
100
101
|
z-index: -1;
|
101
102
|
}
|
102
|
-
|
103
|
-
// Colour
|
104
|
-
@each $color, $values in $theme-colors {
|
105
|
-
&.bg-#{$color}::before {
|
106
|
-
background-image: repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
107
|
-
// scss-lint:disable VendorPrefix
|
108
|
-
background-image: -webkit-repeating-radial-gradient(#{$progress-bar-height / 2} #{$progress-bar-height / 2}, map-get(theme-color($color), lighter), map-get(theme-color($color), lighter) #{$progress-bar-height / 2}, transparent #{$progress-bar-height / 2}, transparent 100%);
|
109
|
-
// scss-lint:enable VendorPrefix
|
110
|
-
}
|
111
|
-
}
|
112
103
|
}
|
113
104
|
|
114
105
|
@keyframes progress-bar-animation {
|
@@ -121,8 +112,6 @@
|
|
121
112
|
}
|
122
113
|
}
|
123
114
|
|
124
|
-
|
125
|
-
|
126
115
|
// Indeterminate
|
127
116
|
|
128
117
|
.progress-bar-indeterminate {
|
@@ -130,6 +119,21 @@
|
|
130
119
|
position: relative;
|
131
120
|
width: 100%;
|
132
121
|
|
122
|
+
@each $color, $values in $theme-colors {
|
123
|
+
&.bg-#{$color} {
|
124
|
+
border-bottom-color: map-get(theme-color($color), lighter);
|
125
|
+
|
126
|
+
&::after,
|
127
|
+
&::before {
|
128
|
+
background-color: map-get(theme-color($color), color);
|
129
|
+
}
|
130
|
+
|
131
|
+
&::before {
|
132
|
+
background-image: none;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
133
137
|
&::after,
|
134
138
|
&::before {
|
135
139
|
@include border-radius($border-radius);
|
@@ -156,22 +160,6 @@
|
|
156
160
|
bottom: ($progress-bar-height * -1);
|
157
161
|
z-index: 0;
|
158
162
|
}
|
159
|
-
|
160
|
-
// Colour
|
161
|
-
@each $color, $values in $theme-colors {
|
162
|
-
&.bg-#{$color} {
|
163
|
-
border-bottom-color: map-get(theme-color($color), lighter);
|
164
|
-
|
165
|
-
&::after,
|
166
|
-
&::before {
|
167
|
-
background-color: map-get(theme-color($color), color);
|
168
|
-
}
|
169
|
-
|
170
|
-
&::before {
|
171
|
-
background-image: none;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
}
|
175
163
|
}
|
176
164
|
|
177
165
|
@keyframes progress-bar-indeterminate-after {
|
@@ -23,7 +23,7 @@
|
|
23
23
|
&::before {
|
24
24
|
@include transition-standard(background-color, opacity, transform);
|
25
25
|
|
26
|
-
background-color:
|
26
|
+
background-color: currentColor;
|
27
27
|
border-radius: 50%;
|
28
28
|
content: '';
|
29
29
|
display: block;
|
@@ -34,7 +34,7 @@
|
|
34
34
|
position: absolute;
|
35
35
|
top: 0;
|
36
36
|
left: 0;
|
37
|
-
transform: scale(.87, .87) translateZ(0);
|
37
|
+
transform: scale(0.87, 0.87) translateZ(0);
|
38
38
|
width: ($selection-control-indicator-size * 2);
|
39
39
|
}
|
40
40
|
}
|
@@ -44,27 +44,20 @@
|
|
44
44
|
position: absolute;
|
45
45
|
z-index: -1;
|
46
46
|
|
47
|
-
// Active, focus, hover
|
48
47
|
&:active,
|
49
48
|
&.focus {
|
50
49
|
~ .custom-control-indicator::before {
|
51
|
-
opacity:
|
50
|
+
opacity: $selection-control-radial-opacity;
|
52
51
|
transform: scale(1, 1) translateZ(0);
|
53
52
|
}
|
54
53
|
}
|
55
54
|
|
56
|
-
// Checked
|
57
55
|
&:checked ~ {
|
58
56
|
.custom-control-indicator {
|
59
57
|
color: $selection-control-color-active;
|
60
|
-
|
61
|
-
&::before {
|
62
|
-
background-color: hex-to-rgba($selection-control-color-active, .12);
|
63
|
-
}
|
64
58
|
}
|
65
59
|
}
|
66
60
|
|
67
|
-
// Disabled
|
68
61
|
&:disabled ~ {
|
69
62
|
.custom-control-indicator,
|
70
63
|
.custom-control-description {
|
@@ -77,9 +70,6 @@
|
|
77
70
|
}
|
78
71
|
}
|
79
72
|
|
80
|
-
|
81
|
-
|
82
|
-
// Stacked layout
|
83
73
|
.custom-controls-stacked {
|
84
74
|
display: flex;
|
85
75
|
flex-direction: column;
|
@@ -91,8 +81,6 @@
|
|
91
81
|
}
|
92
82
|
}
|
93
83
|
|
94
|
-
|
95
|
-
|
96
84
|
// Checkbox
|
97
85
|
|
98
86
|
.custom-checkbox {
|
@@ -103,20 +91,16 @@
|
|
103
91
|
}
|
104
92
|
|
105
93
|
.custom-control-input {
|
106
|
-
// Checked
|
107
94
|
&:checked ~ .custom-control-indicator::after {
|
108
95
|
content: $selection-control-checkbox-icon-checked;
|
109
96
|
}
|
110
97
|
|
111
|
-
// Indeterminate
|
112
98
|
&:indeterminate ~ .custom-control-indicator::after {
|
113
99
|
content: $selection-control-checkbox-icon-indeterminate;
|
114
100
|
}
|
115
101
|
}
|
116
102
|
}
|
117
103
|
|
118
|
-
|
119
|
-
|
120
104
|
// Radio button
|
121
105
|
|
122
106
|
.custom-radio {
|
@@ -127,15 +111,12 @@
|
|
127
111
|
}
|
128
112
|
|
129
113
|
.custom-control-input {
|
130
|
-
// Checked
|
131
114
|
&:checked ~ .custom-control-indicator::after {
|
132
115
|
content: $selection-control-radio-icon-checked;
|
133
116
|
}
|
134
117
|
}
|
135
118
|
}
|
136
119
|
|
137
|
-
|
138
|
-
|
139
120
|
// Switch
|
140
121
|
|
141
122
|
.custom-switch {
|
@@ -171,9 +152,8 @@
|
|
171
152
|
}
|
172
153
|
|
173
154
|
.custom-control-input {
|
174
|
-
// Checked
|
175
155
|
&:checked ~ .custom-control-indicator {
|
176
|
-
background-color: hex-to-rgba($selection-control-color-active, .5);
|
156
|
+
background-color: hex-to-rgba($selection-control-color-active, 0.5);
|
177
157
|
|
178
158
|
&::after,
|
179
159
|
&::before {
|
@@ -185,7 +165,6 @@
|
|
185
165
|
}
|
186
166
|
}
|
187
167
|
|
188
|
-
// Disabled
|
189
168
|
&:disabled ~ .custom-control-indicator {
|
190
169
|
background-color: $selection-control-track-bg-disabled;
|
191
170
|
|
@@ -26,7 +26,6 @@
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
|
29
|
-
// Horizontal and vertical stepper
|
30
29
|
.stepper-horiz {
|
31
30
|
background-color: $stepper-bg;
|
32
31
|
display: flex;
|
@@ -85,8 +84,6 @@
|
|
85
84
|
}
|
86
85
|
}
|
87
86
|
|
88
|
-
|
89
|
-
|
90
87
|
// Misc
|
91
88
|
|
92
89
|
.stepper-icon {
|
@@ -105,9 +102,8 @@
|
|
105
102
|
|
106
103
|
.stepper.active &,
|
107
104
|
.stepper.done & {
|
108
|
-
@include color-yiq($stepper-icon-bg-active);
|
109
|
-
|
110
105
|
background-color: $stepper-icon-bg-active;
|
106
|
+
color: color-yiq($stepper-icon-bg-active);
|
111
107
|
}
|
112
108
|
|
113
109
|
.material-icons {
|
@@ -130,7 +126,3 @@
|
|
130
126
|
font-weight: bolder;
|
131
127
|
}
|
132
128
|
}
|
133
|
-
|
134
|
-
.stepper-text-sub {
|
135
|
-
font-weight: $font-weight-regular;
|
136
|
-
}
|
@@ -23,22 +23,8 @@
|
|
23
23
|
background-color: $nav-tab-bg-hover;
|
24
24
|
}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
background-color: $nav-tab-indicator-bg;
|
30
|
-
content: '';
|
31
|
-
display: block;
|
32
|
-
height: $nav-tab-indicator-height;
|
33
|
-
opacity: 0;
|
34
|
-
position: absolute;
|
35
|
-
right: 0;
|
36
|
-
bottom: 0;
|
37
|
-
left: 0;
|
38
|
-
}
|
39
|
-
|
40
|
-
&:active,
|
41
|
-
&.active {
|
26
|
+
&.active,
|
27
|
+
&:active {
|
42
28
|
opacity: 1;
|
43
29
|
}
|
44
30
|
|
@@ -55,6 +41,20 @@
|
|
55
41
|
color: $nav-tab-color-disabled;
|
56
42
|
opacity: 1;
|
57
43
|
}
|
44
|
+
|
45
|
+
&::before {
|
46
|
+
@include transition-standard(opacity);
|
47
|
+
|
48
|
+
background-color: $nav-tab-indicator-bg;
|
49
|
+
content: '';
|
50
|
+
display: block;
|
51
|
+
height: $nav-tab-indicator-height;
|
52
|
+
opacity: 0;
|
53
|
+
position: absolute;
|
54
|
+
right: 0;
|
55
|
+
bottom: 0;
|
56
|
+
left: 0;
|
57
|
+
}
|
58
58
|
}
|
59
59
|
|
60
60
|
.nav-item.show .nav-link {
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.textfield-box {
|
2
|
+
&.floating-label {
|
3
|
+
@include textfield-box-size($textfield-font-size, $textfield-box-height, $textfield-line-height, $textfield-box-padding-x, $textfield-box-padding-y);
|
4
|
+
|
5
|
+
padding-top: 0;
|
6
|
+
|
7
|
+
&.has-value > label,
|
8
|
+
&.is-focused > label {
|
9
|
+
top: $textfield-box-label-spacer-y;
|
10
|
+
}
|
11
|
+
|
12
|
+
> .form-control {
|
13
|
+
padding-bottom: ($textfield-box-label-spacer-y - $textfield-border-width / $font-size-root * 1rem);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
> .form-control {
|
18
|
+
@include form-control-size($textfield-font-size, $textfield-box-height, $textfield-line-height, $textfield-box-padding-x, $textfield-box-padding-y);
|
19
|
+
|
20
|
+
background-color: $textfield-box-bg;
|
21
|
+
border-radius: $textfield-box-border-radius;
|
22
|
+
}
|
23
|
+
|
24
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
25
|
+
> select.form-control:not([multiple]):not([size]) {
|
26
|
+
@include form-select-size($textfield-font-size, $textfield-box-height, $textfield-box-padding-x);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Size
|
31
|
+
.textfield-box-lg {
|
32
|
+
&.floating-label {
|
33
|
+
@include textfield-box-size($textfield-font-size-lg, $textfield-box-height-lg, $textfield-line-height-lg, $textfield-box-padding-x-lg, $textfield-box-padding-y-lg);
|
34
|
+
}
|
35
|
+
|
36
|
+
> .form-control {
|
37
|
+
@include form-control-size($textfield-font-size-lg, $textfield-box-height-lg, $textfield-line-height-lg, $textfield-box-padding-x-lg, $textfield-box-padding-y-lg);
|
38
|
+
}
|
39
|
+
|
40
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
41
|
+
> select.form-control:not([multiple]):not([size]) {
|
42
|
+
@include form-select-size($textfield-font-size-lg, $textfield-box-height-lg, $textfield-box-padding-x-lg);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.textfield-box-sm {
|
47
|
+
&.floating-label {
|
48
|
+
@include textfield-box-size($textfield-font-size-sm, $textfield-box-height-sm, $textfield-line-height-sm, $textfield-box-padding-x-sm, $textfield-box-padding-y-sm);
|
49
|
+
}
|
50
|
+
|
51
|
+
> .form-control {
|
52
|
+
@include form-control-size($textfield-font-size-sm, $textfield-box-height-sm, $textfield-line-height-sm, $textfield-box-padding-x-sm, $textfield-box-padding-y-sm);
|
53
|
+
}
|
54
|
+
|
55
|
+
// stylelint-disable-next-line selector-no-qualifying-type
|
56
|
+
> select.form-control:not([multiple]):not([size]) {
|
57
|
+
@include form-select-size($textfield-font-size-sm, $textfield-box-height-sm, $textfield-box-padding-x-sm);
|
58
|
+
}
|
59
|
+
}
|