primevue-mirror/components/lib/theme/aura/textarea/index.js

82 lines
2.5 KiB
JavaScript
Raw Normal View History

2024-02-17 13:29:15 +00:00
export default {
variables: {
2024-02-18 08:54:20 +00:00
common: {
root: {
background: '{textfield.background}',
backgroundDisabled: '{textfield.background.disabled}',
backgroundFilled: '{textfield.background.filled}',
backgroundFilledHover: '{textfield.background.filled.hover}',
backgroundFilledFocus: '{textfield.background.filled.focus}',
borderColor: '{textfield.border.color}',
borderColorHover: '{textfield.border.color.hover}',
borderColorFocus: '{textfield.border.color.focus}',
borderColorInvalid: '{textfield.border.color.invalid}',
textColor: '{textfield.text.color}',
textColorDisabled: '{textfield.text.disabled}',
placeholderTextColor: '{textfield.placeholder.text.color}',
boxShadow: '{textfield.box.shadow}'
2024-02-17 13:29:15 +00:00
}
}
},
css: `
.p-inputtextarea {
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
color: var(--p-textarea-text-color);
background: var(--p-textarea-background);
padding: 0.5rem 0.75rem;
border: 1px solid var(--p-textarea-border-color);
transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration);
appearance: none;
border-radius: var(--p-rounded-base);
outline-color: transparent;
2024-02-18 08:54:20 +00:00
box-shadow: var(--p-textarea-box-shadow);
2024-02-17 13:29:15 +00:00
}
.p-inputtextarea:enabled:hover {
border-color: var(--p-textarea-border-color-hover);
}
.p-inputtextarea:enabled:focus {
border-color: var(--p-textarea-border-color-focus);
outline: 0 none;
}
.p-inputtextarea.p-invalid {
border-color: var(--p-textarea-border-color-invalid);
}
.p-inputtextarea.p-variant-filled {
background-color: var(--p-textarea-background-filled);
}
.p-inputtextarea.p-variant-filled:enabled:hover {
background-color: var(--p-textarea-background-filled-hover);
}
.p-inputtextarea.p-variant-filled:enabled:focus {
background-color: var(--p-textarea-background-filled-focus);
}
.p-inputtextarea::placeholder {
color: var(--p-textarea-placeholder-text-color);
}
.p-fluid .p-inputtextarea {
width: 100%;
}
.p-inputtextarea-resizable {
overflow: hidden;
resize: none;
}
.p-inputtextarea:disabled {
opacity: 1;
background: var(--p-textarea-background-disabled);
color: var(--p-textarea-text-color-disabled);
}
`
};