material_components_web-sass 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +486 -275
- data/vendor/assets/stylesheets/@material/button/_mixins.scss +4 -9
- data/vendor/assets/stylesheets/@material/button/_variables.scss +3 -0
- data/vendor/assets/stylesheets/@material/button/mdc-button.scss +7 -17
- data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +1 -1
- data/vendor/assets/stylesheets/@material/fab/_mixins.scss +6 -1
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +2 -1
- data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +1 -1
- data/vendor/assets/stylesheets/@material/select/mdc-select.scss +0 -1
- data/vendor/assets/stylesheets/@material/textfield/_mixins.scss +37 -0
- data/vendor/assets/stylesheets/@material/textfield/_variables.scss +44 -0
- data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +235 -210
- data/vendor/assets/stylesheets/@material/theme/_mixins.scss +35 -3
- metadata +4 -2
@@ -19,7 +19,9 @@
|
|
19
19
|
// Applies the correct theme color style to the specified property.
|
20
20
|
// $property is typically color or background-color, but can be any CSS property that accepts color values.
|
21
21
|
// $style should be one of the map keys in $mdc-theme-property-values (_variables.scss), or a literal color value.
|
22
|
-
|
22
|
+
// $edgeOptOut controls whether to feature-detect around Edge to avoid emitting CSS variables for it,
|
23
|
+
// intended for use in cases where interactions with pseudo-element styles cause problems due to Edge bugs.
|
24
|
+
@mixin mdc-theme-prop($property, $style, $important: false, $edgeOptOut: false) {
|
23
25
|
@if type-of($style) == "color" {
|
24
26
|
@if $important {
|
25
27
|
#{$property}: $style !important;
|
@@ -36,11 +38,41 @@
|
|
36
38
|
@if $important {
|
37
39
|
/* @alternate */
|
38
40
|
#{$property}: $value !important;
|
39
|
-
|
41
|
+
|
42
|
+
@if $edgeOptOut {
|
43
|
+
// stylelint-disable max-nesting-depth
|
44
|
+
@at-root {
|
45
|
+
@supports not (-ms-ime-align:auto) {
|
46
|
+
// stylelint-disable scss/selector-no-redundant-nesting-selector
|
47
|
+
& {
|
48
|
+
#{$property}: var(--mdc-theme-#{$style}, $value) !important;
|
49
|
+
}
|
50
|
+
// stylelint-enable scss/selector-no-redundant-nesting-selector
|
51
|
+
}
|
52
|
+
}
|
53
|
+
// stylelint-enable max-nesting-depth
|
54
|
+
} @else {
|
55
|
+
#{$property}: var(--mdc-theme-#{$style}, $value) !important;
|
56
|
+
}
|
40
57
|
} @else {
|
41
58
|
/* @alternate */
|
42
59
|
#{$property}: $value;
|
43
|
-
|
60
|
+
|
61
|
+
@if $edgeOptOut {
|
62
|
+
// stylelint-disable max-nesting-depth
|
63
|
+
@at-root {
|
64
|
+
@supports not (-ms-ime-align:auto) {
|
65
|
+
// stylelint-disable scss/selector-no-redundant-nesting-selector
|
66
|
+
& {
|
67
|
+
#{$property}: var(--mdc-theme-#{$style}, $value);
|
68
|
+
}
|
69
|
+
// stylelint-enable scss/selector-no-redundant-nesting-selector
|
70
|
+
}
|
71
|
+
}
|
72
|
+
// stylelint-enable max-nesting-depth
|
73
|
+
} @else {
|
74
|
+
#{$property}: var(--mdc-theme-#{$style}, $value);
|
75
|
+
}
|
44
76
|
}
|
45
77
|
}
|
46
78
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_components_web-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Tarasov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -176,6 +176,8 @@ files:
|
|
176
176
|
- vendor/assets/stylesheets/@material/tabs/tab-bar-scroller/mdc-tab-bar-scroller.scss
|
177
177
|
- vendor/assets/stylesheets/@material/tabs/tab-bar/mdc-tab-bar.scss
|
178
178
|
- vendor/assets/stylesheets/@material/tabs/tab/mdc-tab.scss
|
179
|
+
- vendor/assets/stylesheets/@material/textfield/_mixins.scss
|
180
|
+
- vendor/assets/stylesheets/@material/textfield/_variables.scss
|
179
181
|
- vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss
|
180
182
|
- vendor/assets/stylesheets/@material/theme/_color_palette.scss
|
181
183
|
- vendor/assets/stylesheets/@material/theme/_constants.scss
|