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-inputtext {
|
|
|
|
font-family: inherit;
|
|
|
|
font-feature-settings: inherit;
|
|
|
|
font-size: 1rem;
|
2024-03-13 11:59:34 +00:00
|
|
|
color: ${dt('inputtext.color')};
|
|
|
|
background: ${dt('inputtext.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('inputtext.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('inputtext.box.shadow')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:enabled:hover {
|
2024-03-13 11:59:34 +00:00
|
|
|
border-color: ${dt('inputtext.hover.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:enabled:focus {
|
2024-03-13 11:59:34 +00:00
|
|
|
border-color: ${dt('inputtext.focus.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
outline: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-invalid {
|
2024-03-13 11:59:34 +00:00
|
|
|
border-color: ${dt('inputtext.invalid.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-variant-filled {
|
2024-03-13 11:59:34 +00:00
|
|
|
background: ${dt('inputtext.filled.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-variant-filled:enabled:focus {
|
2024-03-13 11:59:34 +00:00
|
|
|
background-color: ${dt('inputtext.filled.focus.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:disabled {
|
|
|
|
opacity: 1;
|
2024-03-13 11:59:34 +00:00
|
|
|
background: ${dt('inputtext.disabled.background')};
|
|
|
|
color: ${dt('inputtext.disabled.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-input-icon-right > svg:last-of-type,
|
|
|
|
.p-input-icon-right > i:last-of-type {
|
|
|
|
right: 0.75rem;
|
|
|
|
color: #94a3b8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-input-icon-right > .p-inputtext {
|
|
|
|
padding-right: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext::placeholder {
|
2024-03-13 11:59:34 +00:00
|
|
|
color: ${dt('inputtext.placeholder.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-inputtext {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|