Skip to content

Commit 88b9aa1

Browse files
committed
Display: Fix styles for primevue password
1 parent a562d6d commit 88b9aa1

File tree

1 file changed

+49
-14
lines changed

1 file changed

+49
-14
lines changed
Lines changed: 49 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,56 @@
11
.p-password {
2-
@apply inline-flex w-full;
3-
}
2+
@apply inline-flex relative w-full;
43

5-
.p-password-input {
6-
&::-ms-reveal,
7-
&::-ms-clear {
8-
@apply hidden;
4+
& &-overlay {
5+
@apply min-w-full;
96
}
10-
}
117

12-
.p-float-label {
13-
.p-password {
14-
&.p-inputwrapper-filled,
15-
&.p-inputwrapper-focus {
16-
~ label {
17-
@apply top-0 text-primary text-caption;
18-
}
8+
&-meter {
9+
@apply rounded-lg;
10+
11+
&-label {
12+
@apply h-full w-0 rounded-lg;
13+
}
14+
15+
&-weak {
16+
@apply bg-danger;
17+
}
18+
19+
&-medium {
20+
@apply bg-warning;
21+
}
22+
23+
&-strong {
24+
@apply bg-success;
1925
}
2026
}
27+
28+
&-fluid {
29+
@apply flex;
30+
31+
& .p-password-input {
32+
@apply w-full;
33+
}
34+
}
35+
36+
&-input::-ms-reveal,
37+
&-input::-ms-clear {
38+
display: none;
39+
}
40+
41+
&-overlay {
42+
@apply p-4 bg-white text-gray-90 border-none border-0 outline-none outline-0 drop-shadow-lg rounded-lg;
43+
}
44+
45+
&-content {
46+
@apply flex flex-col gap-4;
47+
}
48+
49+
&-toggle-mask-icon {
50+
@apply inset-y-3.5 right-3.5 text-gray-90 absolute w-4 h-4;
51+
}
52+
53+
&:has(&-mask-icon) &-input {
54+
@apply pr-4;
55+
}
2156
}

0 commit comments

Comments
 (0)