material_components_web-sass 0.21.0 → 0.21.1
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/stylesheets/@material/fab/_mixins.scss +1 -1
- data/vendor/assets/stylesheets/@material/toolbar/_mixins.scss +2 -10
- data/vendor/assets/stylesheets/@material/toolbar/_variables.scss +6 -2
- data/vendor/assets/stylesheets/@material/toolbar/mdc-toolbar.scss +25 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6fdad56ca66489e91f089efa9b6189f1e06288
|
4
|
+
data.tar.gz: 36980319afe25681f31cab1cca53f51b3cab1121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 503e72559a46c9ac7e1bdd2f206ac74c5b79297878c79341fb11068e4ee3caa00132d550c310f07c4bc8f58d55ecb3ce3e1ffe11227d520eef05620381ac77aa
|
7
|
+
data.tar.gz: ddf5ce31c67807557efdbb16ed271feb4b3a078c5a7e2c0931d0c24a564110a705a03e2b675ac8adfaa55240c83ccf11eb0a0c95e8ff89d6d9e9750441b01284
|
data/CHANGELOG.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
// See the License for the specific language governing permissions and
|
13
13
|
// limitations under the License.
|
14
14
|
|
15
|
-
@import "@material/animation/
|
15
|
+
@import "@material/animation/functions";
|
16
16
|
@import "@material/elevation/mixins";
|
17
17
|
@import "@material/elevation/variables";
|
18
18
|
@import "@material/ripple/mixins";
|
@@ -21,21 +21,13 @@
|
|
21
21
|
* Both .mdc-toolbar__icon and .mdc-toolbar__icon--menu share all styles except for
|
22
22
|
* horizontal padding.
|
23
23
|
*/
|
24
|
-
@mixin mdc-shared-icon-style(
|
24
|
+
@mixin mdc-shared-icon-style() {
|
25
25
|
display: flex;
|
26
26
|
align-items: center;
|
27
27
|
justify-content: center;
|
28
|
-
|
29
|
-
|
28
|
+
padding: $mdc-toolbar-element-vertical-padding;
|
30
29
|
border: none;
|
31
30
|
background-color: inherit;
|
32
31
|
color: inherit;
|
33
32
|
text-decoration: none;
|
34
|
-
|
35
|
-
// stylelint-disable at-rule-empty-line-before, block-closing-brace-newline-after
|
36
|
-
@if $padding-type == menu {
|
37
|
-
padding: $mdc-toobar-element-vertical-padding;
|
38
|
-
} @else {
|
39
|
-
padding: $mdc-toobar-element-vertical-padding 8px;
|
40
|
-
}
|
41
33
|
}
|
@@ -17,8 +17,12 @@
|
|
17
17
|
$mdc-toolbar-row-height: 64px;
|
18
18
|
$mdc-toolbar-mobile-row-height: 56px;
|
19
19
|
$mdc-toolbar-mobile-landscape-row-height: 48px;
|
20
|
-
|
21
|
-
$mdc-
|
20
|
+
|
21
|
+
$mdc-toolbar-element-vertical-padding: 16px;
|
22
|
+
$mdc-toolbar-element-horizontal-padding-desktop: 24px;
|
23
|
+
$mdc-toolbar-element-horizontal-padding-mobile: 16px;
|
24
|
+
$mdc-toolbar-title-margin-to-menu-icon-desktop: 8px;
|
25
|
+
$mdc-toolbar-title-margin-to-menu-icon-mobile: 16px;
|
22
26
|
|
23
27
|
$mdc-toolbar-ratio-to-extend-flexible: 4 !default;
|
24
28
|
|
@@ -77,11 +77,10 @@
|
|
77
77
|
&__title {
|
78
78
|
@include mdc-typography(title);
|
79
79
|
@include mdc-typography-overflow-ellipsis;
|
80
|
+
@include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-element-horizontal-padding-desktop);
|
80
81
|
|
81
82
|
align-self: center;
|
82
|
-
|
83
|
-
margin-left: 24px;
|
84
|
-
padding: $mdc-toobar-element-vertical-padding 0;
|
83
|
+
padding: $mdc-toolbar-element-vertical-padding 0;
|
85
84
|
line-height: 1.5rem;
|
86
85
|
z-index: 1;
|
87
86
|
}
|
@@ -90,37 +89,50 @@
|
|
90
89
|
@include mdc-shared-icon-style;
|
91
90
|
@include mdc-theme-prop(color, text-primary-on-primary);
|
92
91
|
|
92
|
+
padding-right: $mdc-toolbar-element-horizontal-padding-desktop / 2;
|
93
|
+
padding-left: $mdc-toolbar-element-horizontal-padding-desktop / 2;
|
93
94
|
cursor: pointer;
|
94
95
|
}
|
95
96
|
|
96
97
|
&__icon:last-of-type {
|
97
|
-
padding-
|
98
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-toolbar-element-horizontal-padding-desktop / 2, $mdc-toolbar-element-horizontal-padding-desktop);
|
98
99
|
}
|
99
100
|
|
100
101
|
&__icon--menu {
|
101
|
-
@include mdc-shared-icon-style
|
102
|
+
@include mdc-shared-icon-style;
|
102
103
|
@include mdc-theme-prop(color, text-primary-on-primary);
|
103
104
|
|
104
|
-
padding:
|
105
|
+
padding-right: $mdc-toolbar-element-horizontal-padding-desktop;
|
106
|
+
padding-left: $mdc-toolbar-element-horizontal-padding-desktop;
|
105
107
|
cursor: pointer;
|
106
108
|
}
|
107
109
|
}
|
108
110
|
|
109
111
|
.mdc-toolbar__icon--menu + .mdc-toolbar__title {
|
110
|
-
margin
|
112
|
+
@include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-title-margin-to-menu-icon-desktop);
|
111
113
|
}
|
112
114
|
|
113
115
|
@media (max-width: $mdc-toolbar-mobile-breakpoint) {
|
114
|
-
.mdc-
|
115
|
-
padding
|
116
|
+
.mdc-toolbar__title {
|
117
|
+
@include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-element-horizontal-padding-mobile);
|
116
118
|
}
|
117
119
|
|
118
|
-
.mdc-toolbar__icon
|
119
|
-
padding:
|
120
|
+
.mdc-toolbar__icon {
|
121
|
+
padding-right: $mdc-toolbar-element-horizontal-padding-mobile / 2;
|
122
|
+
padding-left: $mdc-toolbar-element-horizontal-padding-mobile / 2;
|
120
123
|
}
|
121
124
|
|
122
|
-
.mdc-
|
123
|
-
|
125
|
+
.mdc-toolbar__icon:last-of-type {
|
126
|
+
@include mdc-rtl-reflexive-property(padding, $mdc-toolbar-element-horizontal-padding-mobile / 2, $mdc-toolbar-element-horizontal-padding-mobile);
|
127
|
+
}
|
128
|
+
|
129
|
+
.mdc-toolbar__icon--menu {
|
130
|
+
padding-right: $mdc-toolbar-element-horizontal-padding-mobile;
|
131
|
+
padding-left: $mdc-toolbar-element-horizontal-padding-mobile;
|
132
|
+
}
|
133
|
+
|
134
|
+
.mdc-toolbar__icon--menu + .mdc-toolbar__title {
|
135
|
+
@include mdc-rtl-reflexive-box(margin, left, $mdc-toolbar-title-margin-to-menu-icon-mobile);
|
124
136
|
}
|
125
137
|
}
|
126
138
|
|
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.21.
|
4
|
+
version: 0.21.1
|
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-09-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|