@onemrvapublic/design-system-theme 20.3.0-develop.3 → 20.3.0-develop.5
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 +58 -38
- package/overrides/_select.scss +8 -0
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
outlined-hover-outline-color: var(--mat-sys-on-surface),
|
|
15
15
|
outlined-outline-width: 1px,
|
|
16
16
|
outlined-focus-outline-width: 2px,
|
|
17
|
-
outlined-label-text-weight: var(--mat-sys-label-small),
|
|
17
|
+
outlined-label-text-weight: var(--mat-sys-label-small-weight),
|
|
18
18
|
)
|
|
19
19
|
);
|
|
20
20
|
|
|
@@ -90,51 +90,71 @@
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* BEGINNING - HERE TO FORCE READONLY STATE */
|
|
93
|
-
|
|
94
|
-
.onemrva-readonly {
|
|
95
|
-
input,
|
|
96
|
-
textarea {
|
|
97
|
-
font-weight: 700;
|
|
98
|
-
}
|
|
93
|
+
// TODO : should use the var as much as possible !!
|
|
99
94
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
.onemrva-readonly,
|
|
96
|
+
form.onemrva-readonly {
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
&,
|
|
99
|
+
* {
|
|
100
|
+
cursor: not-allowed !important;
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
.mat-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
&:not(.mat-form-field-disabled),
|
|
104
|
+
mat-form-field:not(.mat-form-field-disabled) {
|
|
105
|
+
input,
|
|
106
|
+
select,
|
|
107
|
+
textarea {
|
|
108
|
+
&::placeholder {
|
|
109
|
+
opacity: 0 !important;
|
|
110
|
+
}
|
|
111
111
|
}
|
|
112
|
-
}
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
.mat-mdc-notch-piece {
|
|
119
|
-
border-width: 0;
|
|
120
|
-
}
|
|
113
|
+
mat-label,
|
|
114
|
+
label {
|
|
115
|
+
pointer-events: none !important;
|
|
116
|
+
}
|
|
121
117
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
border-color: var(--mat-form-field-outlined-outline-color);
|
|
127
|
-
}
|
|
118
|
+
.mat-select-counter,
|
|
119
|
+
button[type='submit'] {
|
|
120
|
+
display: none !important;
|
|
121
|
+
}
|
|
128
122
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
@include mat.form-field-overrides(
|
|
124
|
+
(
|
|
125
|
+
outlined-outline-width: 0px,
|
|
126
|
+
outlined-focus-outline-width: 0px,
|
|
127
|
+
outlined-label-text-weight: var(--mat-sys-label-small-weight),
|
|
128
|
+
subscript-text-weight: bold,
|
|
129
|
+
)
|
|
130
|
+
);
|
|
132
131
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
mat-hint,
|
|
133
|
+
.mat-mdc-form-field-icon-suffix,
|
|
134
|
+
.mat-mdc-select-arrow-wrapper,
|
|
135
|
+
.mat-mdc-select-placeholder,
|
|
136
|
+
.mat-mdc-form-field-icon-prefix {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper {
|
|
140
|
+
padding-left: max(
|
|
141
|
+
16px,
|
|
142
|
+
var(
|
|
143
|
+
--mat-form-field-outlined-container-shape,
|
|
144
|
+
var(--mat-sys-corner-extra-small)
|
|
145
|
+
) +
|
|
146
|
+
4px
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper {
|
|
150
|
+
padding-right: max(
|
|
151
|
+
16px,
|
|
152
|
+
var(
|
|
153
|
+
--mat-form-field-outlined-container-shape,
|
|
154
|
+
var(--mat-sys-corner-extra-small)
|
|
155
|
+
)
|
|
156
|
+
);
|
|
157
|
+
}
|
|
137
158
|
}
|
|
138
159
|
}
|
|
139
|
-
/* END - HERE TO FORCE READONLY STATE */
|
|
140
160
|
}
|
package/overrides/_select.scss
CHANGED