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

31 lines
473 B
JavaScript
Raw Normal View History

export default {
css: ({ dt }) => `
.p-icon-field {
position: relative;
}
2024-03-25 18:57:56 +00:00
.p-input-icon {
position: absolute;
top: 50%;
margin-top: -.5rem;
2024-03-25 18:57:56 +00:00
color: ${dt('iconfield.color')};
}
2024-04-07 09:53:01 +00:00
.p-icon-field .p-input-icon:first-child {
left: 0.75rem;
}
2024-04-07 09:53:01 +00:00
.p-icon-field .p-input-icon:last-child {
right: 0.75rem;
}
2024-04-07 09:53:01 +00:00
.p-icon-field .p-inputtext:last-child {
padding-left: 2.5rem;
}
2024-04-07 09:53:01 +00:00
.p-icon-field .p-inputtext:first-child {
padding-right: 2.5rem;
}
`
};