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;
|
|
|
|
color: var(--p-inputtext-text-color);
|
|
|
|
background: var(--p-inputtext-background);
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
border: 1px solid var(--p-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;
|
|
|
|
box-shadow: var(--p-inputtext-box-shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:enabled:hover {
|
|
|
|
border-color: var(--p-inputtext-border-color-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:enabled:focus {
|
|
|
|
border-color: var(--p-inputtext-border-color-focus);
|
|
|
|
outline: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-invalid {
|
|
|
|
border-color: var(--p-inputtext-border-color-invalid);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-variant-filled {
|
|
|
|
background-color: var(--p-inputtext-background-filled);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext.p-variant-filled:enabled:focus {
|
|
|
|
background-color: var(--p-inputtext-background-filled-focus);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-inputtext:disabled {
|
|
|
|
opacity: 1;
|
|
|
|
background: var(--p-inputtext-background-disabled);
|
|
|
|
color: var(--p-inputtext-text-color-disabled);
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
|
|
|
color: var(--p-inputtext-placeholder-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-inputtext {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|