ywana-core8 0.1.94 → 0.1.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +38 -6
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield2.css +38 -6
- package/test-textfield2-icons.html +150 -0
package/dist/index.css
CHANGED
@@ -6762,18 +6762,27 @@ body.datatable2-resizing {
|
|
6762
6762
|
.textfield2-clear,
|
6763
6763
|
.textfield2-password-toggle {
|
6764
6764
|
position: absolute;
|
6765
|
-
|
6765
|
+
/* Centrado respecto al input, no al contenedor completo */
|
6766
|
+
top: calc(1.5rem + 1.25rem); /* padding-top del contenedor + mitad de la altura del input */
|
6766
6767
|
transform: translateY(-50%);
|
6767
6768
|
right: 0.75rem; /* Más espacio desde el borde */
|
6768
6769
|
color: var(--text-color-light, #666);
|
6769
6770
|
cursor: pointer;
|
6770
6771
|
transition: color 0.2s ease;
|
6771
6772
|
z-index: 2;
|
6773
|
+
/* Asegurar que el icono tenga el tamaño correcto */
|
6774
|
+
width: 1.5rem;
|
6775
|
+
height: 1.5rem;
|
6776
|
+
display: flex;
|
6777
|
+
align-items: center;
|
6778
|
+
justify-content: center;
|
6772
6779
|
}
|
6773
6780
|
|
6774
6781
|
/* Icons positioning for outlined variant */
|
6775
6782
|
.textfield2-outlined .textfield2-clear,
|
6776
6783
|
.textfield2-outlined .textfield2-password-toggle {
|
6784
|
+
/* Para outlined, centramos respecto al input que tiene padding de 1rem */
|
6785
|
+
top: 50%;
|
6777
6786
|
right: 0.75rem; /* Alineado con el padding del input */
|
6778
6787
|
}
|
6779
6788
|
|
@@ -6782,10 +6791,11 @@ body.datatable2-resizing {
|
|
6782
6791
|
color: var(--text-color, #333);
|
6783
6792
|
}
|
6784
6793
|
|
6785
|
-
/* For fields without labels,
|
6794
|
+
/* For fields without labels, ajustar posición */
|
6786
6795
|
.textfield2.no-label .textfield2-clear,
|
6787
6796
|
.textfield2.no-label .textfield2-password-toggle {
|
6788
|
-
/*
|
6797
|
+
/* Para campos sin label, centramos respecto al input directamente */
|
6798
|
+
top: calc(0.5rem + 1.25rem); /* padding-top reducido + mitad altura input */
|
6789
6799
|
}
|
6790
6800
|
|
6791
6801
|
.textfield2-password-toggle {
|
@@ -7041,21 +7051,43 @@ body.datatable2-resizing {
|
|
7041
7051
|
.textfield2 {
|
7042
7052
|
padding-top: 1.25rem;
|
7043
7053
|
}
|
7044
|
-
|
7054
|
+
|
7045
7055
|
.textfield2 > input,
|
7046
7056
|
.textfield2 > textarea {
|
7047
7057
|
font-size: 0.9rem;
|
7048
7058
|
padding: 8px 8px 8px 0.4rem;
|
7049
7059
|
}
|
7050
|
-
|
7060
|
+
|
7051
7061
|
.textfield2 > label {
|
7052
7062
|
font-size: 0.8rem;
|
7053
7063
|
left: 0.3rem;
|
7054
7064
|
}
|
7055
|
-
|
7065
|
+
|
7056
7066
|
.textfield2-helper {
|
7057
7067
|
font-size: 0.7rem;
|
7058
7068
|
}
|
7069
|
+
|
7070
|
+
/* Ajustar posición de iconos en móvil */
|
7071
|
+
.textfield2-clear,
|
7072
|
+
.textfield2-password-toggle {
|
7073
|
+
top: calc(1.25rem + 1.2rem); /* padding-top móvil + mitad altura input móvil */
|
7074
|
+
right: 0.5rem;
|
7075
|
+
width: 1.3rem;
|
7076
|
+
height: 1.3rem;
|
7077
|
+
}
|
7078
|
+
|
7079
|
+
.textfield2.no-label .textfield2-clear,
|
7080
|
+
.textfield2.no-label .textfield2-password-toggle {
|
7081
|
+
top: calc(0.5rem + 1.2rem); /* padding-top reducido + mitad altura input móvil */
|
7082
|
+
}
|
7083
|
+
|
7084
|
+
.textfield2-password-toggle {
|
7085
|
+
right: 2.2rem;
|
7086
|
+
}
|
7087
|
+
|
7088
|
+
.textfield2.textfield2-password .textfield2-clear {
|
7089
|
+
right: 2.2rem;
|
7090
|
+
}
|
7059
7091
|
}
|
7060
7092
|
|
7061
7093
|
/* High contrast mode support */
|