primevue-mirror/components/lib/themes/primeone/base/textarea/index.js

59 lines
1.5 KiB
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
.p-inputtextarea {
font-family: inherit;
font-feature-settings: inherit;
font-size: 1rem;
2024-03-25 18:59:56 +00:00
color: ${dt('textarea.color')};
background: ${dt('textarea.background')};
padding: 0.5rem 0.75rem;
2024-03-25 18:59:56 +00:00
border: 1px solid ${dt('textarea.border.color')};
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, border-color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
appearance: none;
border-radius: ${dt('rounded.base')};
outline-color: transparent;
2024-03-25 18:59:56 +00:00
box-shadow: ${dt('textarea.box.shadow')};
}
.p-inputtextarea:enabled:hover {
2024-03-25 18:59:56 +00:00
border-color: ${dt('textarea.hover.border.color')};
}
.p-inputtextarea:enabled:focus {
2024-03-25 18:59:56 +00:00
border-color: ${dt('textarea.focus.border.color')};
outline: 0 none;
}
.p-inputtextarea.p-invalid {
2024-03-25 18:59:56 +00:00
border-color: ${dt('textarea.invalid.border.color')};
}
.p-inputtextarea.p-variant-filled {
2024-03-25 18:59:56 +00:00
background-color: ${dt('textarea.filled.background')};
}
.p-inputtextarea.p-variant-filled:enabled:focus {
2024-03-25 18:59:56 +00:00
background-color: ${dt('textarea.filled.focus.background')};
}
.p-inputtextarea:disabled {
opacity: 1;
2024-03-25 18:59:56 +00:00
background: ${dt('textarea.disabled.background')};
color: ${dt('textarea.disabled.color')};
}
.p-inputtextarea::placeholder {
2024-03-25 18:59:56 +00:00
color: ${dt('textarea.placeholder.color')};
}
.p-fluid .p-inputtextarea {
width: 100%;
}
.p-inputtextarea-resizable {
overflow: hidden;
resize: none;
}
`
};