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