openaire-assets/library-css/input.scss

255 lines
6.9 KiB
SCSS

.uk-form-label {
font-size: 16px;
font-family: "Roboto", sans-serif;
color: currentColor;
}
.uk-form-hint {
font-family: "Roboto", sans-serif;
color: currentColor;
font-size: 14px;
}
.input-box .uk-input,
.input-box .uk-textarea,
.input-borderless .uk-input,
.input-borderless .uk-textarea {
height: auto;
padding: 0;
background-color: transparent !important;
color: currentColor;
line-height: 31px;
}
.input-box .uk-input,
.input-box .uk-textarea {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.input-box .uk-textarea,
.input-borderless .uk-textarea {
line-height: 20px;
}
.input-box:not([class*='uk-h']) .uk-input,
.input-box:not([class*='uk-h']) .uk-textarea,
.input-borderless:not([class*='uk-h']) .uk-input,
.input-borderless:not([class*='uk-h']) .uk-textarea {
font-size: 14px;
}
.input-box .uk-input:not(.uk-form-danger),
.input-box .uk-textarea:not(.uk-form-danger),
.input-borderless .uk-input:not(.uk-form-danger),
.input-borderless .uk-textarea:not(.uk-form-danger){
border: none !important;
}
.input-box .uk-input::placeholder,
.input-box .uk-textarea::placeholder,
.input-box::placeholder,
.placeholder {
color: #7A7A7A !important;
font-size: 14px;
}
/* TODO(mdc-migration): The following rule targets internal classes of chips that may no longer apply for the MDC version. */
.input-box .mat-chip-list-wrapper,
.input-borderless .mat-chip-list-wrapper {
max-height: 150px;
overflow-y: auto;
overflow-x: hidden;
}
.input-box *:focus,
.input-borderless *:focus {
outline: none;
}
/* Input Box */
.input-box {
background-color: #FAFAFA !important;
border: 1px solid transparent;
padding: 12px 16px;
border-radius: 4px;
color: currentColor;
height: auto;
line-height: 17px;
transition-property: height;
transition-duration: 0.5s;
}
.input-box .uk-textarea {
padding-right: 16px;
}
.input-box .uk-input:focus,
.input-box .uk-textarea:focus,
.input-box:focus{
color: currentColor !important;
}
.input-box:not(.uk-form-danger){
border: 1px solid #D1D1D1 !important;
}
.input-box .mat-mdc-select {
font-family: "Open Sans", sans-serif;
font-size: 16px;
}
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
.input-box .mat-mdc-select.mat-select-invalid .mat-select-arrow {
color: #1A1A1A !important;
}
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
.input-box .mat-select-value {
color: currentColor;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-box .mat-form-field-infix {
border: none !important;
line-height: 30px;
padding: 0 !important;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-box .mat-form-field-appearance-legacy .mat-form-field-wrapper {
padding: 0 !important;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-box .mat-form-field-appearance-legacy .mat-form-field-underline {
display: none;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-box .mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper {
display: none;
}
.input-box .uk-input:disabled,
.input-box .uk-textarea:disabled,
.input-box .mat-mdc-select-disabled .mat-select-value,
.input-box .mat-mdc-form-field .mat-select.mat-select-disabled .mat-select-arrow {
color: currentColor !important;
}
.input-box .mat-mdc-chip.mat-mdc-standard-chip, .mat-chip.mat-standard-chip:hover {
color: #1a1a1a;
border: 1px solid rgba(26, 26, 26, 0.2);
background: white;
}
.input-box .mat-mdc-chip.mat-mdc-standard-chip::after {
background: transparent;
}
/* TODO(mdc-migration): The following rule targets internal classes of chips that may no longer apply for the MDC version. */
.input-box .mat-mdc-chip.mat-mdc-standard-chip .mat-chip-remove {
color: rgba(26, 26, 26, 0.5);
width: 20px;
height: 20px;
}
.input-box .tools {
max-height: 0;
transition: max-height 0.3s linear;
overflow: hidden;
padding-right: 16px;
}
.input-box .tools.focused {
max-height: 100px;
}
/* Input borderless*/
.input-borderless {
background-color: transparent !important;
border: none;
padding: 5px;
color: currentColor;
height: auto;
line-height: 17px;
}
.input-borderless .uk-input:focus,
.input-borderless .uk-textarea:focus,
.input-borderless:focus{
color: currentColor !important;
}
.input-borderless .uk-input:not(.uk-form-danger),
.input-borderless .uk-textarea:not(.uk-form-danger),
.input-borderless:not(.uk-form-danger){
border: none !important;
}
.input-box .placeholder,
.input-borderless .placeholder {
position: absolute;
top: 6px;
left: 6px;
cursor: text;
}
.input-borderless .mat-mdc-select {
font-family: "Open Sans", sans-serif;
font-size: 16px;
}
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
.input-borderless .mat-select-value {
color: currentColor;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-borderless .mat-form-field-infix {
border: none !important;
line-height: 30px;
padding: 0 !important;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-borderless .mat-form-field-appearance-legacy .mat-form-field-wrapper {
padding: 0 !important;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-borderless .mat-form-field-appearance-legacy .mat-form-field-underline {
display: none;
}
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
.input-box .mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper {
display: none;
}
.input-borderless .uk-input:disabled,
.input-borderless .uk-textarea:disabled,
.input-borderless .mat-mdc-select-disabled .mat-select-value,
.input-borderless .mat-mdc-form-field .mat-select.mat-select-disabled .mat-select-arrow {
color: currentColor !important;
}
.input-borderless .mat-mdc-chip.mat-mdc-standard-chip, .mat-chip.mat-standard-chip:hover {
color: #1a1a1a;
border: 1px solid rgba(26, 26, 26, 0.5);
background: white;
}
.input-borderless .mat-mdc-chip.mat-mdc-standard-chip::after {
background: transparent;
}
/* TODO(mdc-migration): The following rule targets internal classes of chips that may no longer apply for the MDC version. */
.input-borderless .mat-mdc-chip.mat-mdc-standard-chip .mat-chip-remove {
color: #1a1a1a;
width: 20px;
height: 20px;
}