material_components_web-sass 0.12.1 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -0
- data/lib/material_components_web/sass/version.rb +1 -1
- data/vendor/assets/javascripts/material-components-web.js +1289 -445
- data/vendor/assets/stylesheets/@material/dialog/mdc-dialog.scss +2 -2
- data/vendor/assets/stylesheets/@material/drawer/temporary/mdc-temporary-drawer.scss +5 -0
- data/vendor/assets/stylesheets/@material/layout-grid/_mixins.scss +21 -29
- data/vendor/assets/stylesheets/@material/layout-grid/_variables.scss +14 -2
- data/vendor/assets/stylesheets/@material/layout-grid/mdc-layout-grid.scss +30 -4
- data/vendor/assets/stylesheets/@material/list/mdc-list.scss +0 -4
- data/vendor/assets/stylesheets/@material/menu/simple/mdc-simple-menu.scss +19 -1
- data/vendor/assets/stylesheets/@material/slider/_variables.scss +18 -0
- data/vendor/assets/stylesheets/@material/slider/mdc-slider.scss +226 -0
- data/vendor/assets/stylesheets/@material/toolbar/_mixins.scss +41 -0
- data/vendor/assets/stylesheets/@material/toolbar/_variables.scss +26 -0
- data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +25 -19
- data/vendor/assets/stylesheets/_material-components-web.scss +1 -0
- metadata +6 -2
@@ -0,0 +1,41 @@
|
|
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
|
+
|
17
|
+
@import "./variables";
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Applies styles to the different types of icons that can exist in toolbars.
|
21
|
+
* Both .mdc-toolbar__icon and .mdc-toolbar__icon--menu share all styles except for
|
22
|
+
* horizontal padding.
|
23
|
+
*/
|
24
|
+
@mixin mdc-shared-icon-style($padding-type: null) {
|
25
|
+
display: flex;
|
26
|
+
align-items: center;
|
27
|
+
justify-content: center;
|
28
|
+
|
29
|
+
// stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after
|
30
|
+
@if $padding-type == menu {
|
31
|
+
padding: $mdc-toobar-element-vertical-padding;
|
32
|
+
} @else {
|
33
|
+
padding: $mdc-toobar-element-vertical-padding 8px;
|
34
|
+
}
|
35
|
+
// stylelint enable
|
36
|
+
|
37
|
+
border: none;
|
38
|
+
background-color: inherit;
|
39
|
+
color: inherit;
|
40
|
+
text-decoration: none;
|
41
|
+
}
|
@@ -0,0 +1,26 @@
|
|
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
|
+
|
17
|
+
$mdc-toolbar-row-height: 64px;
|
18
|
+
$mdc-toolbar-mobile-row-height: 56px;
|
19
|
+
$mdc-toolbar-mobile-landscape-row-height: 48px;
|
20
|
+
$mdc-toolbar-padding: 20px 28px;
|
21
|
+
$mdc-toobar-element-vertical-padding: 16px;
|
22
|
+
|
23
|
+
$mdc-toolbar-ratio-to-extend-flexible: 4 !default;
|
24
|
+
|
25
|
+
$mdc-toolbar-mobile-landscape-width-breakpoint: 959px;
|
26
|
+
$mdc-toolbar-mobile-breakpoint: 599px;
|
@@ -18,15 +18,8 @@
|
|
18
18
|
@import "@material/rtl/mixins";
|
19
19
|
@import "@material/theme/mixins";
|
20
20
|
@import "@material/typography/mixins";
|
21
|
-
|
22
|
-
|
23
|
-
$mdc-toolbar-mobile-row-height: 56px;
|
24
|
-
$mdc-toolbar-padding: 20px 28px;
|
25
|
-
$mdc-toolbar-mobile-padding: 16px;
|
26
|
-
|
27
|
-
$mdc-toolbar-ratio-to-extend-flexible: 4 !default;
|
28
|
-
|
29
|
-
$mdc-toolbar-mobile-breakpoint: 599px;
|
21
|
+
@import "./mixins";
|
22
|
+
@import "./variables";
|
30
23
|
|
31
24
|
// postcss-bem-linter: define toolbar
|
32
25
|
.mdc-toolbar {
|
@@ -43,16 +36,21 @@ $mdc-toolbar-mobile-breakpoint: 599px;
|
|
43
36
|
&__row {
|
44
37
|
display: flex;
|
45
38
|
position: relative;
|
39
|
+
align-items: center;
|
46
40
|
width: 100%;
|
47
41
|
height: auto;
|
48
42
|
min-height: $mdc-toolbar-row-height;
|
49
|
-
padding: $mdc-toolbar-padding;
|
50
43
|
box-sizing: border-box;
|
51
44
|
|
45
|
+
// TODO: refactor this out when #23 is implemented
|
46
|
+
@media (max-width: $mdc-toolbar-mobile-landscape-width-breakpoint)
|
47
|
+
and (orientation: landscape) {
|
48
|
+
min-height: $mdc-toolbar-mobile-landscape-row-height;
|
49
|
+
}
|
50
|
+
|
52
51
|
// TODO: refactor this out when #23 is implemented
|
53
52
|
@media (max-width: $mdc-toolbar-mobile-breakpoint) {
|
54
53
|
min-height: $mdc-toolbar-mobile-row-height;
|
55
|
-
padding: $mdc-toolbar-mobile-padding;
|
56
54
|
}
|
57
55
|
}
|
58
56
|
|
@@ -62,6 +60,7 @@ $mdc-toolbar-mobile-breakpoint: 599px;
|
|
62
60
|
align-items: flex-start;
|
63
61
|
justify-content: center;
|
64
62
|
min-width: 0;
|
63
|
+
height: 100%;
|
65
64
|
z-index: 1;
|
66
65
|
|
67
66
|
&--align-start {
|
@@ -78,13 +77,26 @@ $mdc-toolbar-mobile-breakpoint: 599px;
|
|
78
77
|
&__title {
|
79
78
|
@include mdc-typography(title);
|
80
79
|
|
80
|
+
align-self: center;
|
81
81
|
margin: 0;
|
82
|
+
margin-left: 16px;
|
83
|
+
padding: $mdc-toobar-element-vertical-padding 0;
|
82
84
|
line-height: 1.5rem;
|
83
85
|
text-overflow: ellipsis;
|
84
86
|
white-space: nowrap;
|
85
87
|
overflow: hidden;
|
86
88
|
z-index: 1;
|
87
89
|
}
|
90
|
+
|
91
|
+
&__icon {
|
92
|
+
@include mdc-shared-icon-style;
|
93
|
+
@include mdc-theme-prop(color, text-primary-on-primary);
|
94
|
+
}
|
95
|
+
|
96
|
+
&__icon--menu {
|
97
|
+
@include mdc-shared-icon-style(menu);
|
98
|
+
@include mdc-theme-prop(color, text-primary-on-primary);
|
99
|
+
}
|
88
100
|
}
|
89
101
|
|
90
102
|
.mdc-toolbar--fixed {
|
@@ -124,15 +136,9 @@ $mdc-toolbar-mobile-breakpoint: 599px;
|
|
124
136
|
.mdc-toolbar__title {
|
125
137
|
@include mdc-typography(display1);
|
126
138
|
|
127
|
-
|
128
|
-
transform: translateY(calc(#{$mdc-toolbar-row-height} * (var(--mdc-toolbar-ratio-to-extend-flexible, #{$mdc-toolbar-ratio-to-extend-flexible}) - 1)));
|
139
|
+
align-self: flex-end;
|
129
140
|
font-weight: #{map-get($mdc-typography-font-weight-values, normal)};
|
130
141
|
line-height: 1.5rem;
|
131
|
-
|
132
|
-
@media (max-width: $mdc-toolbar-mobile-breakpoint) {
|
133
|
-
transform: translateY($mdc-toolbar-mobile-row-height * ($mdc-toolbar-ratio-to-extend-flexible - 1));
|
134
|
-
transform: translateY(calc(#{$mdc-toolbar-mobile-row-height} * (var(--mdc-toolbar-ratio-to-extend-flexible, #{$mdc-toolbar-ratio-to-extend-flexible}) - 1)));
|
135
|
-
}
|
136
142
|
}
|
137
143
|
|
138
144
|
.mdc-toolbar__row:first-child::after {
|
@@ -182,7 +188,7 @@ $mdc-toolbar-mobile-breakpoint: 599px;
|
|
182
188
|
.mdc-toolbar-fixed-adjust {
|
183
189
|
margin-top: $mdc-toolbar-row-height;
|
184
190
|
|
185
|
-
@media (max-width:
|
191
|
+
@media (max-width: $mdc-toolbar-mobile-breakpoint) {
|
186
192
|
margin-top: $mdc-toolbar-mobile-row-height;
|
187
193
|
}
|
188
194
|
}
|
@@ -32,6 +32,7 @@
|
|
32
32
|
@import "@material/radio/mdc-radio";
|
33
33
|
@import "@material/ripple/mdc-ripple";
|
34
34
|
@import "@material/select/mdc-select";
|
35
|
+
@import "@material/slider/mdc-slider";
|
35
36
|
@import "@material/snackbar/mdc-snackbar";
|
36
37
|
@import "@material/switch/mdc-switch";
|
37
38
|
@import "@material/tabs/mdc-tabs";
|
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.13.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-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -164,6 +164,8 @@ files:
|
|
164
164
|
- vendor/assets/stylesheets/@material/ripple/mdc-ripple.scss
|
165
165
|
- vendor/assets/stylesheets/@material/rtl/_mixins.scss
|
166
166
|
- vendor/assets/stylesheets/@material/select/mdc-select.scss
|
167
|
+
- vendor/assets/stylesheets/@material/slider/_variables.scss
|
168
|
+
- vendor/assets/stylesheets/@material/slider/mdc-slider.scss
|
167
169
|
- vendor/assets/stylesheets/@material/snackbar/_variables.scss
|
168
170
|
- vendor/assets/stylesheets/@material/snackbar/mdc-snackbar.scss
|
169
171
|
- vendor/assets/stylesheets/@material/switch/_mixins.scss
|
@@ -179,6 +181,8 @@ files:
|
|
179
181
|
- vendor/assets/stylesheets/@material/theme/_mixins.scss
|
180
182
|
- vendor/assets/stylesheets/@material/theme/_variables.scss
|
181
183
|
- vendor/assets/stylesheets/@material/theme/mdc-theme.scss
|
184
|
+
- vendor/assets/stylesheets/@material/toolbar/_mixins.scss
|
185
|
+
- vendor/assets/stylesheets/@material/toolbar/_variables.scss
|
182
186
|
- vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss
|
183
187
|
- vendor/assets/stylesheets/@material/typography/_mixins.scss
|
184
188
|
- vendor/assets/stylesheets/@material/typography/_variables.scss
|