mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Calculations for the icon field inputs
This commit is contained in:
parent
7b3d8d467b
commit
c493f0d22a
5 changed files with 11 additions and 11 deletions
|
@ -8,24 +8,24 @@ const theme = ({ dt }) => `
|
|||
.p-inputicon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -.5rem;
|
||||
margin-top: calc(-1 * (${dt('icon.size')} / 2));
|
||||
color: ${dt('iconfield.icon.color')};
|
||||
}
|
||||
|
||||
.p-iconfield .p-inputicon:first-child {
|
||||
left: 0.75rem;
|
||||
left: ${dt('form.field.padding.x')};
|
||||
}
|
||||
|
||||
.p-iconfield .p-inputicon:last-child {
|
||||
right: 0.75rem;
|
||||
right: ${dt('form.field.padding.x')};
|
||||
}
|
||||
|
||||
.p-iconfield .p-inputtext:last-child {
|
||||
padding-left: 2.5rem;
|
||||
padding-left: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
||||
}
|
||||
|
||||
.p-iconfield .p-inputtext:first-child {
|
||||
padding-right: 2.5rem;
|
||||
padding-right:calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')});
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue