@onemrvapublic/design-system-theme 20.7.0-develop.3 → 20.7.0-develop.6
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.
- package/overrides/_form-field.scss +9 -0
- package/overrides/_input.scss +0 -219
- package/package.json +1 -1
|
@@ -23,6 +23,15 @@
|
|
|
23
23
|
padding: var(--spacer);
|
|
24
24
|
//margin-bottom: var(--spacer);
|
|
25
25
|
|
|
26
|
+
.mat-mdc-form-field-required-marker {
|
|
27
|
+
@include mat.form-field-overrides(
|
|
28
|
+
(
|
|
29
|
+
outlined-label-text-color: var(--mat-sys-error),
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
color: var(--mat-form-field-outlined-label-text-color);
|
|
33
|
+
}
|
|
34
|
+
|
|
26
35
|
.mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
27
36
|
.mdc-notched-outline--upgraded {
|
|
28
37
|
.mdc-floating-label--float-above {
|
package/overrides/_input.scss
CHANGED
|
@@ -16,222 +16,3 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
//@mixin theme($theme) {
|
|
21
|
-
// @include mat.input-base($theme);
|
|
22
|
-
// @include mat.input-theme($theme);
|
|
23
|
-
//
|
|
24
|
-
// .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
25
|
-
// .mdc-notched-outline--upgraded {
|
|
26
|
-
// .mdc-floating-label--float-above {
|
|
27
|
-
// --mat-mdc-form-field-label-transform: translateY(
|
|
28
|
-
// calc(calc(10px + var(--mat-form-field-container-height) / 2) * -1)
|
|
29
|
-
// );
|
|
30
|
-
// }
|
|
31
|
-
// }
|
|
32
|
-
// }
|
|
33
|
-
//
|
|
34
|
-
// .mat-mdc-form-field {
|
|
35
|
-
// line-height: 26px;
|
|
36
|
-
// padding: 8px;
|
|
37
|
-
// --mat-mdc-form-field-floating-label-scale: 1;
|
|
38
|
-
//
|
|
39
|
-
// .mat-mdc-form-field-required-marker {
|
|
40
|
-
// color: µ.error($theme, 500);
|
|
41
|
-
// }
|
|
42
|
-
//
|
|
43
|
-
// .mat-mdc-text-field-wrapper {
|
|
44
|
-
// padding: 0 8px;
|
|
45
|
-
// }
|
|
46
|
-
//
|
|
47
|
-
// .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
|
|
48
|
-
// color: µ.grayscale($theme, 900);
|
|
49
|
-
// }
|
|
50
|
-
//
|
|
51
|
-
// .mat-mdc-form-field-hint-spacer {
|
|
52
|
-
// display: none;
|
|
53
|
-
// }
|
|
54
|
-
//
|
|
55
|
-
// .mat-mdc-form-field-hint-wrapper {
|
|
56
|
-
// padding: 4px 0;
|
|
57
|
-
// }
|
|
58
|
-
//
|
|
59
|
-
// .mat-mdc-form-field-icon-suffix {
|
|
60
|
-
// mat-icon {
|
|
61
|
-
// height: auto;
|
|
62
|
-
// }
|
|
63
|
-
// }
|
|
64
|
-
//
|
|
65
|
-
// &:not(.mat-form-field-onemrva-warning) {
|
|
66
|
-
// .mat-mdc-form-field-error-wrapper {
|
|
67
|
-
// padding: 0;
|
|
68
|
-
// position: static;
|
|
69
|
-
//
|
|
70
|
-
// .mat-mdc-form-field-error {
|
|
71
|
-
// margin-bottom: 8px;
|
|
72
|
-
// padding: 8px 1em;
|
|
73
|
-
// background-color: #ffebe6;
|
|
74
|
-
// border-bottom: 1px solid µ.error($theme, 500);
|
|
75
|
-
// color: µ.error($theme, 500);
|
|
76
|
-
// display: flex;
|
|
77
|
-
// line-height: 1.125;
|
|
78
|
-
//
|
|
79
|
-
// .mat-icon {
|
|
80
|
-
// float: left;
|
|
81
|
-
// font-size: 16px;
|
|
82
|
-
// font-variation-settings: 'FILL' 1;
|
|
83
|
-
// margin-right: 8px;
|
|
84
|
-
// vertical-align: baseline;
|
|
85
|
-
// flex: 0 0 16px;
|
|
86
|
-
// line-height: 16px;
|
|
87
|
-
// }
|
|
88
|
-
// }
|
|
89
|
-
// }
|
|
90
|
-
// }
|
|
91
|
-
//
|
|
92
|
-
// mat-hint.with-counter {
|
|
93
|
-
// position: relative;
|
|
94
|
-
// height: 21px;
|
|
95
|
-
// width: 100%;
|
|
96
|
-
//
|
|
97
|
-
// .counter {
|
|
98
|
-
// position: absolute;
|
|
99
|
-
// right: 0;
|
|
100
|
-
// top: 0;
|
|
101
|
-
// }
|
|
102
|
-
// }
|
|
103
|
-
//
|
|
104
|
-
// &.mat-form-field-onemrva-warning {
|
|
105
|
-
// .mat-mdc-form-field-error-wrapper {
|
|
106
|
-
// padding: 0;
|
|
107
|
-
// position: static;
|
|
108
|
-
//
|
|
109
|
-
// .mat-mdc-form-field-error {
|
|
110
|
-
// margin-bottom: 8px;
|
|
111
|
-
// padding: 8px 1em;
|
|
112
|
-
// background-color: µ.warn($theme, 50);
|
|
113
|
-
// border-bottom: 1px solid µ.warn($theme, 600);
|
|
114
|
-
// color: µ.warn($theme, 600);
|
|
115
|
-
// display: flex;
|
|
116
|
-
// line-height: 1.125;
|
|
117
|
-
//
|
|
118
|
-
// .mat-icon {
|
|
119
|
-
// float: left;
|
|
120
|
-
// font-size: 16px;
|
|
121
|
-
// font-variation-settings: 'FILL' 1;
|
|
122
|
-
// margin-right: 8px;
|
|
123
|
-
// vertical-align: baseline;
|
|
124
|
-
// flex: 0 0 16px;
|
|
125
|
-
// line-height: 16px;
|
|
126
|
-
// }
|
|
127
|
-
// }
|
|
128
|
-
// }
|
|
129
|
-
//
|
|
130
|
-
// .mat-mdc-form-field-hint-wrapper {
|
|
131
|
-
// padding: 0;
|
|
132
|
-
// position: static;
|
|
133
|
-
//
|
|
134
|
-
// .mat-warn {
|
|
135
|
-
// margin-bottom: 8px;
|
|
136
|
-
// padding: 8px 1em;
|
|
137
|
-
// background-color: µ.warn($theme, 50);
|
|
138
|
-
// border-bottom: 1px solid µ.warn($theme, 600);
|
|
139
|
-
// color: µ.warn($theme, 600);
|
|
140
|
-
// display: flex;
|
|
141
|
-
// line-height: 1.125;
|
|
142
|
-
//
|
|
143
|
-
// .mat-icon {
|
|
144
|
-
// float: left;
|
|
145
|
-
// font-size: 16px;
|
|
146
|
-
// font-variation-settings: 'FILL' 1;
|
|
147
|
-
// margin-right: 8px;
|
|
148
|
-
// vertical-align: baseline;
|
|
149
|
-
// flex: 0 0 16px;
|
|
150
|
-
// }
|
|
151
|
-
// }
|
|
152
|
-
// }
|
|
153
|
-
// }
|
|
154
|
-
//
|
|
155
|
-
// &:not(.mat-form-field-invalid):not(.mat-form-field-onemrva-warning):not(
|
|
156
|
-
// .mat-form-field-disabled
|
|
157
|
-
// ) {
|
|
158
|
-
// .mdc-notched-outline {
|
|
159
|
-
// .mdc-notched-outline__leading,
|
|
160
|
-
// .mdc-notched-outline__trailing {
|
|
161
|
-
// border-color: µ.grayscale($theme, 200);
|
|
162
|
-
// outline: 1px solid transparent;
|
|
163
|
-
// }
|
|
164
|
-
//
|
|
165
|
-
// .mdc-notched-outline__notch {
|
|
166
|
-
// border-bottom-color: µ.grayscale($theme, 200);
|
|
167
|
-
// outline: 1px solid transparent;
|
|
168
|
-
// }
|
|
169
|
-
// }
|
|
170
|
-
//
|
|
171
|
-
// @include inputStyle(µ.grayscale($theme, 800));
|
|
172
|
-
// }
|
|
173
|
-
//
|
|
174
|
-
// &.mat-form-field-invalid:not(.mat-form-field-onemrva-warning):not(
|
|
175
|
-
// .mat-form-field-disabled
|
|
176
|
-
// ) {
|
|
177
|
-
// mat-label,
|
|
178
|
-
// .mat-mdc-form-field-required-marker {
|
|
179
|
-
// color: µ.error($theme);
|
|
180
|
-
// }
|
|
181
|
-
//
|
|
182
|
-
// .mdc-notched-outline {
|
|
183
|
-
// .mdc-notched-outline__leading,
|
|
184
|
-
// .mdc-notched-outline__trailing {
|
|
185
|
-
// border-width: 2px;
|
|
186
|
-
// border-color: µ.error($theme);
|
|
187
|
-
// }
|
|
188
|
-
//
|
|
189
|
-
// .mdc-notched-outline__notch {
|
|
190
|
-
// border-width: 2px;
|
|
191
|
-
// border-bottom-color: µ.error($theme);
|
|
192
|
-
// }
|
|
193
|
-
// }
|
|
194
|
-
//
|
|
195
|
-
// .mdc-text-field__input {
|
|
196
|
-
// caret-color: µ.error($theme, 500);
|
|
197
|
-
// }
|
|
198
|
-
//
|
|
199
|
-
// @include inputStyle(µ.error($theme));
|
|
200
|
-
// }
|
|
201
|
-
//
|
|
202
|
-
// &.mat-form-field-onemrva-warning:not(.mat-form-field-disabled) {
|
|
203
|
-
// .mdc-notched-outline {
|
|
204
|
-
// mat-label,
|
|
205
|
-
// .mat-mdc-form-field-required-marker {
|
|
206
|
-
// color: µ.warn($theme, 600);
|
|
207
|
-
// }
|
|
208
|
-
//
|
|
209
|
-
// .mdc-notched-outline__leading,
|
|
210
|
-
// .mdc-notched-outline__trailing {
|
|
211
|
-
// border-width: 2px;
|
|
212
|
-
// border-color: µ.warn($theme, 600);
|
|
213
|
-
// }
|
|
214
|
-
//
|
|
215
|
-
// .mdc-notched-outline__notch {
|
|
216
|
-
// border-width: 2px;
|
|
217
|
-
// border-bottom-color: µ.warn($theme, 600);
|
|
218
|
-
// }
|
|
219
|
-
// }
|
|
220
|
-
//
|
|
221
|
-
// @include inputStyle(µ.warn($theme, 600));
|
|
222
|
-
// }
|
|
223
|
-
//
|
|
224
|
-
// .mat-mdc-form-field-bottom-align::before {
|
|
225
|
-
// display: initial;
|
|
226
|
-
// order: 99;
|
|
227
|
-
// }
|
|
228
|
-
// }
|
|
229
|
-
//
|
|
230
|
-
// .mat-mdc-text-field-wrapper.mdc-text-field--outlined {
|
|
231
|
-
// .mat-mdc-form-field-infix {
|
|
232
|
-
// padding: 7px 0 4px 0;
|
|
233
|
-
// display: flex;
|
|
234
|
-
// align-items: center;
|
|
235
|
-
// }
|
|
236
|
-
// }
|
|
237
|
-
//}
|