|
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 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 | 16 |
|
17 | 17 | @import "@material/elevation/mixins";
|
18 | 18 | @import "@material/theme/mixins";
|
19 | 19 | @import "@material/typography/mixins";
|
20 | 20 |
|
21 |
| -/* postcss-bem-linter: define card */ |
| 21 | +// postcss-bem-linter: define card |
22 | 22 | .mdc-card {
|
23 | 23 | @include mdc-elevation(2);
|
24 | 24 |
|
|
31 | 31 | &__primary {
|
32 | 32 | padding: 16px;
|
33 | 33 |
|
34 |
| - /* Add extra space before large title. */ |
| 34 | + // Add extra space before large title. |
35 | 35 | .mdc-card__title--large {
|
36 | 36 | padding-top: 8px;
|
37 | 37 | }
|
38 | 38 |
|
39 |
| - /* Add extra padding if this is the last block. */ |
| 39 | + // Add extra padding if this is the last block. |
40 | 40 | &:last-child {
|
41 | 41 | padding-bottom: 24px;
|
42 | 42 | }
|
|
53 | 53 | @include mdc-theme-prop(color, text-primary-on-dark);
|
54 | 54 | }
|
55 | 55 |
|
56 |
| - /* Remove top padding if immediately preceded by a primary block. */ |
| 56 | + // Remove top padding if immediately preceded by a primary block. |
57 | 57 | .mdc-card__primary + & {
|
58 | 58 | margin-top: -8px;
|
59 | 59 | padding-top: 0;
|
60 | 60 | }
|
61 | 61 |
|
62 |
| - /* Add extra padding if this is the last block. */ |
| 62 | + // Add extra padding if this is the last block. |
63 | 63 | &:last-child {
|
64 | 64 | padding-bottom: 24px;
|
65 | 65 | }
|
|
70 | 70 | padding: 8px;
|
71 | 71 | box-sizing: border-box;
|
72 | 72 |
|
73 |
| - /* Adjust text color for dark theme. */ |
| 73 | + // Adjust text color for dark theme. |
74 | 74 | @include mdc-theme-dark(".mdc-card") {
|
75 | 75 | @include mdc-theme-prop(color, text-primary-on-dark);
|
76 | 76 | }
|
77 | 77 |
|
78 |
| - /* Tweak button paddings and margins when they're used as actions */ |
| 78 | + // Tweak button paddings and margins when they're used as actions |
79 | 79 | .mdc-card__action {
|
80 | 80 | margin: 0 8px 0 0;
|
81 | 81 | }
|
|
84 | 84 | margin-right: 0;
|
85 | 85 | }
|
86 | 86 |
|
87 |
| - /* Vertical actions (one per line) */ |
| 87 | + // Vertical actions (one per line) |
88 | 88 | &--vertical {
|
89 | 89 | flex-flow: column;
|
90 | 90 | align-items: flex-start;
|
|
127 | 127 | @include mdc-typography(body2);
|
128 | 128 | @include mdc-theme-prop(color, text-primary-on-background);
|
129 | 129 |
|
130 |
| - /* Adjust text color for dark theme. */ |
| 130 | + // Adjust text color for dark theme. |
131 | 131 | @include mdc-theme-dark(".mdc-card") {
|
132 | 132 | @include mdc-theme-prop(color, text-primary-on-dark);
|
133 | 133 | }
|
134 | 134 |
|
135 |
| - margin: -.063rem 0; /* -1sp 0 */ |
| 135 | + margin: -.063rem 0; // -1sp 0 |
136 | 136 | }
|
137 | 137 |
|
138 | 138 | &__title--large {
|
|
145 | 145 | @include mdc-typography(body1);
|
146 | 146 | @include mdc-theme-prop(color, text-primary-on-background);
|
147 | 147 |
|
148 |
| - /* Adjust text color for dark theme. */ |
| 148 | + // Adjust text color for dark theme. |
149 | 149 | @include mdc-theme-dark(".mdc-card") {
|
150 | 150 | @include mdc-theme-prop(color, text-primary-on-dark);
|
151 | 151 | }
|
152 | 152 |
|
153 |
| - margin: -.063rem 0; /* -1sp 0 */ |
| 153 | + margin: -.063rem 0; // -1sp 0 |
154 | 154 | }
|
155 | 155 |
|
156 | 156 | &__horizontal-block {
|
|
170 | 170 | margin-left: 16px;
|
171 | 171 | }
|
172 | 172 |
|
173 |
| - &:last-child .mdc-card__media-item { |
| 173 | + // postcss-bem-linter: ignore |
| 174 | + .mdc-card__media-item--3x { |
174 | 175 | margin-bottom: 16px;
|
175 | 176 | }
|
176 | 177 | }
|
177 | 178 | }
|
178 | 179 |
|
179 |
| -/* postcss-bem-linter: end */ |
| 180 | +// postcss-bem-linter: end |
0 commit comments