material_components_web-sass 0.8.0 → 0.9.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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/material_components_web/sass/version.rb +1 -1
  4. data/vendor/assets/javascripts/material-components-web.js +1359 -580
  5. data/vendor/assets/stylesheets/@material/animation/_functions.scss +15 -15
  6. data/vendor/assets/stylesheets/@material/animation/_mixins.scss +15 -15
  7. data/vendor/assets/stylesheets/@material/animation/_variables.scss +15 -15
  8. data/vendor/assets/stylesheets/@material/animation/mdc-animation.scss +15 -15
  9. data/vendor/assets/stylesheets/@material/checkbox/_keyframes.scss +15 -15
  10. data/vendor/assets/stylesheets/@material/checkbox/_variables.scss +15 -15
  11. data/vendor/assets/stylesheets/@material/checkbox/mdc-checkbox.scss +6 -0
  12. data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +2 -0
  13. data/vendor/assets/stylesheets/@material/drawer/_mixins.scss +15 -15
  14. data/vendor/assets/stylesheets/@material/drawer/mdc-drawer.scss +16 -15
  15. data/vendor/assets/stylesheets/@material/drawer/permanent/mdc-permanent-drawer.scss +22 -16
  16. data/vendor/assets/stylesheets/@material/drawer/persistent/mdc-persistent-drawer.scss +87 -0
  17. data/vendor/assets/stylesheets/@material/drawer/slidable/_mixins.scss +33 -0
  18. data/vendor/assets/stylesheets/@material/drawer/slidable/_variables.scss +20 -0
  19. data/vendor/assets/stylesheets/@material/drawer/temporary/mdc-temporary-drawer.scss +27 -28
  20. data/vendor/assets/stylesheets/@material/elevation/_mixins.scss +15 -15
  21. data/vendor/assets/stylesheets/@material/elevation/_variables.scss +15 -15
  22. data/vendor/assets/stylesheets/@material/elevation/mdc-elevation.scss +15 -15
  23. data/vendor/assets/stylesheets/@material/form-field/mdc-form-field.scss +15 -15
  24. data/vendor/assets/stylesheets/@material/grid-list/mdc-grid-list.scss +1 -1
  25. data/vendor/assets/stylesheets/@material/icon-toggle/mdc-icon-toggle.scss +15 -15
  26. data/vendor/assets/stylesheets/@material/list/mdc-list.scss +1 -1
  27. data/vendor/assets/stylesheets/@material/menu/mdc-menu.scss +15 -15
  28. data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +15 -15
  29. data/vendor/assets/stylesheets/@material/radio/mdc-radio.scss +2 -0
  30. data/vendor/assets/stylesheets/@material/ripple/_keyframes.scss +15 -15
  31. data/vendor/assets/stylesheets/@material/rtl/_mixins.scss +15 -15
  32. data/vendor/assets/stylesheets/@material/select/mdc-select.scss +21 -23
  33. data/vendor/assets/stylesheets/@material/snackbar/_variables.scss +15 -15
  34. data/vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss +15 -15
  35. data/vendor/assets/stylesheets/@material/textfield/mdc-textfield.scss +15 -15
  36. data/vendor/assets/stylesheets/@material/theme/_constants.scss +15 -15
  37. data/vendor/assets/stylesheets/@material/theme/_functions.scss +15 -15
  38. data/vendor/assets/stylesheets/@material/theme/_mixins.scss +15 -15
  39. data/vendor/assets/stylesheets/@material/theme/_variables.scss +15 -15
  40. data/vendor/assets/stylesheets/@material/theme/mdc-theme.scss +15 -15
  41. data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +23 -15
  42. data/vendor/assets/stylesheets/@material/typography/_mixins.scss +15 -15
  43. data/vendor/assets/stylesheets/@material/typography/_variables.scss +16 -15
  44. data/vendor/assets/stylesheets/@material/typography/mdc-typography.scss +15 -15
  45. metadata +5 -2
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright 2016 Google Inc. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ @import "@material/rtl/mixins";
18
+
19
+ @mixin mdc-slideable-drawer {
20
+ height: 100%;
21
+ transform: translateX(-107%);
22
+ transform: translateX(calc(-100% - 20px));
23
+ will-change: transform;
24
+ }
25
+
26
+ @mixin mdc-slideable-drawer-rtl {
27
+ transform: translateX(107%);
28
+ transform: translateX(calc(100% + 20px));
29
+ }
30
+
31
+ @mixin mdc-slideable-drawer-open {
32
+ transform: none;
33
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2016 Google Inc. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ $mdc-slidable-drawer-transition-time: .13s;
18
+ $mdc-slidable-drawer-transition-open-time: .33s;
19
+ $mdc-slidable-drawer-transition: mdc-animation-enter(transform, $mdc-slidable-drawer-transition-time);
20
+ $mdc-slidable-drawer-transition-open: mdc-animation-enter(transform, $mdc-slidable-drawer-transition-open-time);
@@ -1,24 +1,26 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "@material/animation/functions";
18
18
  @import "@material/elevation/mixins";
19
19
  @import "@material/rtl/mixins";
20
20
  @import "@material/theme/mixins";
21
21
  @import "../mixins";
22
+ @import "../slidable/mixins";
23
+ @import "../slidable/variables";
22
24
 
23
25
  .mdc-temporary-drawer {
24
26
  @include mdc-drawer-base_;
@@ -61,24 +63,21 @@
61
63
  @include mdc-theme-prop(color, text-primary-on-dark);
62
64
  }
63
65
 
66
+ @include mdc-slideable-drawer;
67
+
68
+ @include mdc-rtl(".mdc-temporary-drawer__drawer") {
69
+ @include mdc-slideable-drawer-rtl;
70
+ }
71
+
64
72
  display: flex;
65
73
  position: absolute;
66
74
  flex-direction: column;
67
75
  width: calc(100% - 56px);
68
76
  max-width: 280px;
69
- height: 100%;
70
- transform: translateX(-107%);
71
- transform: translateX(calc(-100% - 20px));
72
- will-change: transform;
73
77
  box-sizing: border-box;
74
78
  overflow: hidden;
75
79
  touch-action: none;
76
80
 
77
- @include mdc-rtl(".mdc-temporary-drawer") {
78
- transform: translateX(107%);
79
- transform: translateX(calc(100% + 20px));
80
- }
81
-
82
81
  /* TODO(sgomes): replace with global breakpoints when we have them */
83
82
  @media (min-width: 600px) {
84
83
  width: calc(100% - 64px);
@@ -108,11 +107,11 @@
108
107
  }
109
108
 
110
109
  &.mdc-temporary-drawer--open .mdc-temporary-drawer__drawer {
111
- transition: mdc-animation-enter(transform, .33s);
110
+ transition: $mdc-slidable-drawer-transition-open;
112
111
  }
113
112
 
114
113
  .mdc-temporary-drawer__drawer {
115
- transition: mdc-animation-enter(transform, .13s);
114
+ transition: $mdc-slidable-drawer-transition;
116
115
  }
117
116
  }
118
117
 
@@ -125,13 +124,13 @@
125
124
  }
126
125
 
127
126
  .mdc-temporary-drawer__drawer {
128
- transform: none;
127
+ @include mdc-slideable-drawer-open;
129
128
  }
130
129
 
131
130
  // Specificity fix to ensure that mdc-drawer is not translated off-screen within an RTL context
132
131
  @include mdc-rtl {
133
132
  .mdc-temporary-drawer__drawer {
134
- transform: none;
133
+ @include mdc-slideable-drawer-open;
135
134
  }
136
135
  }
137
136
  }
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "./variables";
18
18
 
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "@material/animation/variables";
18
18
 
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "./mixins";
18
18
 
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "@material/rtl/mixins";
18
18
  @import "@material/theme/mixins";
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright 2016 Google Inc. All Rights Reserved.
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  /** postcss-bem-linter: define icon-toggle */
18
18
 
@@ -162,7 +162,7 @@ a.mdc-list-item {
162
162
  // Cause the upgraded list item to cover the entirety of the list, causing ripples to emanate
163
163
  // across the entire list element.
164
164
  left: $mdc-list-side-padding * -1;
165
- width: calc(100% + #{$mdc-list-side-padding * 2});
165
+ width: 100%;
166
166
  padding: 0 $mdc-list-side-padding;
167
167
  overflow: hidden;
168
168
 
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "./simple/mdc-simple-menu";
18
18
 
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  @import "@material/animation/variables";
18
18
  @import "@material/elevation/mixins";
@@ -40,6 +40,7 @@ $mdc-radio-transition-duration: 120ms;
40
40
  display: inline-block;
41
41
  position: relative;
42
42
  box-sizing: border-box;
43
+ flex: 0 0 $mdc-radio-touch-area;
43
44
  width: $mdc-radio-touch-area;
44
45
  height: $mdc-radio-touch-area;
45
46
  padding: ($mdc-radio-touch-area - $mdc-radio-ui-size) / 2;
@@ -66,6 +67,7 @@ $mdc-radio-transition-duration: 120ms;
66
67
  &__background {
67
68
  display: inline-block;
68
69
  position: absolute;
70
+ left: ($mdc-radio-touch-area - $mdc-radio-ui-size) / 2;
69
71
  width: $mdc-radio-ui-pct;
70
72
  height: $mdc-radio-ui-pct;
71
73
  box-sizing: border-box;
@@ -1,18 +1,18 @@
1
- /**
2
- * Copyright 2016 Google Inc. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
1
+ //
2
+ // Copyright 2017 Google Inc. All Rights Reserved.
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
16
 
17
17
  /** MDC Ripple keyframes are split into their own file so that _mixins.scss can rely on them. */
18
18