1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | @use '@material/feature-targeting/feature-targeting';
|
27 | @use '@material/rtl/rtl';
|
28 | @use '@material/theme/theme';
|
29 | @use '@material/typography/typography';
|
30 | @use './variables';
|
31 |
|
32 | @mixin core-styles($query: feature-targeting.all()) {
|
33 | $feat-color: feature-targeting.create-target($query, color);
|
34 | $feat-structure: feature-targeting.create-target($query, structure);
|
35 |
|
36 | .mdc-form-field {
|
37 | @include typography.typography(body2, $query);
|
38 |
|
39 | @include feature-targeting.targets($feat-color) {
|
40 | @include theme.property(color, text-primary-on-background);
|
41 | }
|
42 |
|
43 | @include feature-targeting.targets($feat-structure) {
|
44 | display: inline-flex;
|
45 | align-items: center;
|
46 | vertical-align: middle;
|
47 | }
|
48 |
|
49 | > label {
|
50 | @include feature-targeting.targets($feat-structure) {
|
51 | @include rtl.reflexive-property(margin, 0, auto);
|
52 | @include rtl.reflexive-property(padding, variables.$item-spacing, 0);
|
53 |
|
54 | order: 0;
|
55 | }
|
56 | }
|
57 | }
|
58 |
|
59 | .mdc-form-field--nowrap {
|
60 | > label {
|
61 | @include feature-targeting.targets($feat-structure) {
|
62 | text-overflow: ellipsis;
|
63 | overflow: hidden;
|
64 | white-space: nowrap;
|
65 | }
|
66 | }
|
67 | }
|
68 |
|
69 | .mdc-form-field--align-end {
|
70 | > label {
|
71 | @include feature-targeting.targets($feat-structure) {
|
72 | @include rtl.reflexive-property(margin, auto, 0);
|
73 | @include rtl.reflexive-property(padding, 0, variables.$item-spacing);
|
74 |
|
75 | order: -1;
|
76 | }
|
77 | }
|
78 | }
|
79 |
|
80 | .mdc-form-field--space-between {
|
81 | @include feature-targeting.targets($feat-structure) {
|
82 | justify-content: space-between;
|
83 | }
|
84 |
|
85 | > label {
|
86 | @include feature-targeting.targets($feat-structure) {
|
87 | margin: 0;
|
88 |
|
89 | @include rtl.rtl {
|
90 |
|
91 | margin: 0;
|
92 | }
|
93 | }
|
94 | }
|
95 | }
|
96 | }
|