mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5667 - Remove base option from theme config
This commit is contained in:
parent
6d688ef675
commit
0979dde96d
438 changed files with 10872 additions and 11957 deletions
|
@ -1,5 +1,62 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const theme = ({ dt }) => `
|
||||
.p-inputtextarea {
|
||||
font-family: inherit;
|
||||
font-feature-settings: inherit;
|
||||
font-size: 1rem;
|
||||
color: ${dt('textarea.color')};
|
||||
background: ${dt('textarea.background')};
|
||||
padding: 0.5rem 0.75rem;
|
||||
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;
|
||||
box-shadow: ${dt('textarea.box.shadow')};
|
||||
}
|
||||
|
||||
.p-inputtextarea:enabled:hover {
|
||||
border-color: ${dt('textarea.hover.border.color')};
|
||||
}
|
||||
|
||||
.p-inputtextarea:enabled:focus {
|
||||
border-color: ${dt('textarea.focus.border.color')};
|
||||
outline: 0 none;
|
||||
}
|
||||
|
||||
.p-inputtextarea.p-invalid {
|
||||
border-color: ${dt('textarea.invalid.border.color')};
|
||||
}
|
||||
|
||||
.p-inputtextarea.p-variant-filled {
|
||||
background-color: ${dt('textarea.filled.background')};
|
||||
}
|
||||
|
||||
.p-inputtextarea.p-variant-filled:enabled:focus {
|
||||
background-color: ${dt('textarea.filled.focus.background')};
|
||||
}
|
||||
|
||||
.p-inputtextarea:disabled {
|
||||
opacity: 1;
|
||||
background: ${dt('textarea.disabled.background')};
|
||||
color: ${dt('textarea.disabled.color')};
|
||||
}
|
||||
|
||||
.p-inputtextarea::placeholder {
|
||||
color: ${dt('textarea.placeholder.color')};
|
||||
}
|
||||
|
||||
.p-fluid .p-inputtextarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.p-inputtextarea-resizable {
|
||||
overflow: hidden;
|
||||
resize: none;
|
||||
}
|
||||
`;
|
||||
|
||||
const classes = {
|
||||
root: ({ instance, props }) => [
|
||||
'p-inputtextarea p-component',
|
||||
|
@ -14,5 +71,6 @@ const classes = {
|
|||
|
||||
export default BaseStyle.extend({
|
||||
name: 'textarea',
|
||||
theme,
|
||||
classes
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue