@import '../../styles/colors'; ::ng-deep { .mat-form-field { width: 100%; &.mat-focused { .mat-form-field-outline{ border-color: $primary-color-main; transition: border-color 200ms ease-in-out !important; } } &.hover:not(.mat-focused) { .mat-form-field-outline { border-color: $primary-color-light; transition: border-color 200ms ease-in-out !important; } } .mat-form-field-outline { background-color: #FFFFFF; box-shadow: 0 2px 4px 0 rgba(39,42,72,0.1); border-radius: 4px; border: 1px solid $color-gray1; .mat-form-field-outline-start, .mat-form-field-outline-gap, .mat-form-field-outline-end { border: none; } } .mat-select-arrow { width: 12px; height: 12px; margin: 0 4px; border: none; background-image: url("/graviditetsmappen/assets/img/ic_dropdown.svg"); background-repeat: no-repeat; } &.disabled { .mat-select-arrow { background-image: none; } .mat-select-value-text { color: $color-text-default !important; } .mat-form-field-outline { background-color: $color-gray1; box-shadow: unset; .mat-form-field-outline-start, .mat-form-field-outline-gap, .mat-form-field-outline-end { border: none; } } } } .mat-option.hidden { display: none; } .autocompletePanel { margin-top: 40px !important; } .mat-autocomplete-panel { position: absolute !important; margin-top: 14%; } .mat-form-field-wrapper { padding-bottom: 15px; } .mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label { transform: translateY(-1em); color: $color-text-default; font-family: "PT Sans"; font-size: 14px; font-weight: bold; letter-spacing: 0.35px; line-height: 19px; } .mat-active { .mat-option-text { font-weight: 700; } } .mat-option-text { color: $color-text-default; font-family: "PT Sans"; font-size: 16px; letter-spacing: 0; line-height: 20px; } .autocompleteInput { display: inline-flex; width: 100%; .btn-search { width: 60px; background-color: white; border: 0; &:hover { cursor: text; } } .mat-input-element { padding-left: 0; &.mat-option:hover, &.mat-option { background-color: white; cursor: text; } } .btn-close { width: 40px; height: 40px; border: 0; border-radius: 50%; padding-top: 4px; margin-top: 4px; margin-right: 4px; &:hover { cursor: pointer; } } } }