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-password {
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-password .p-password-panel {
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-meter {
|
|
|
|
height: 10px;
|
|
|
|
margin-bottom: 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('password.meter.border.color')};
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-strength {
|
|
|
|
height: 100%;
|
|
|
|
width: 0;
|
|
|
|
transition: width 1s ease-in-out;
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-strength.weak {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('password.weak.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-strength.medium {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('password.medium.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-strength.strong {
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('password.strong.background')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-fluid .p-password {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-input::-ms-reveal,
|
|
|
|
.p-password-input::-ms-clear {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-password-panel {
|
|
|
|
padding: 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
background: ${dt('password.overlay.background')};
|
|
|
|
color: ${dt('password.overlay.color')};
|
|
|
|
border: 1px solid ${dt('password.overlay.border.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
2024-03-12 08:19:23 +00:00
|
|
|
border-radius: ${dt('rounded.base')};
|
2024-02-19 22:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.p-password > svg:last-of-type,
|
|
|
|
.p-password > i:last-of-type {
|
|
|
|
right: 0.75rem;
|
2024-03-13 18:50:24 +00:00
|
|
|
color: ${dt('password.icon.color')};
|
2024-02-19 22:53:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -0.5rem;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p-password:has(svg,i) .p-password-input {
|
|
|
|
padding-right: 2.5rem;
|
|
|
|
}
|
|
|
|
`
|
|
|
|
};
|