Browse Source

UI: Improve filled text field style

pull/8305/head
Igor Kulikov 4 years ago
parent
commit
75e9e45321
  1. 24
      ui-ngx/src/theme-overwrites.scss

24
ui-ngx/src/theme-overwrites.scss

@ -21,27 +21,25 @@
@mixin _mat-form-field-overwrites($primary, $config-or-theme) { @mixin _mat-form-field-overwrites($primary, $config-or-theme) {
.mat-mdc-form-field.mat-form-field-appearance-fill { .mat-mdc-form-field.mat-form-field-appearance-fill {
.mdc-text-field--filled { .mdc-text-field--filled, .mat-mdc-form-field-focus-overlay {
&:before { &:before {
content: ""; content: "";
display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
background-color: mat.get-color-from-palette($primary); background-color: mat.get-color-from-palette($primary);
opacity: 0.03;
} }
background-color: transparent; background-color: transparent;
}
.mdc-text-field--filled {
&:before {
opacity: 0.03;
}
&:not(.mdc-text-field--disabled) { &:not(.mdc-text-field--disabled) {
&:before { &:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: mat.get-color-from-palette($primary);
opacity: 0.06; opacity: 0.06;
} }
background-color: transparent; background-color: transparent;
@ -49,16 +47,8 @@
} }
.mat-mdc-form-field-focus-overlay { .mat-mdc-form-field-focus-overlay {
&:before { &:before {
content: "";
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: mat.get-color-from-palette($primary);
opacity: 0.87; opacity: 0.87;
} }
background-color: transparent;
} }
} }
} }

Loading…
Cancel
Save