Skip to content

Commit ba20068

Browse files
committed
fix: improved css
1 parent f7193c1 commit ba20068

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/index.css

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
floating-label,
22
.floating-label_field {
33
position: relative;
4-
display: block;
4+
display: flex;
5+
align-items: center;
56
box-sizing: border-box;
67
border: none !important;
8+
min-height: 40px;
79
padding: 8px 0px;
810
}
911

@@ -21,6 +23,7 @@ floating-label *,
2123

2224
.floating-label {
2325
width: 100%;
26+
min-height: 24px;
2427
padding: 0px 14px;
2528
border: none !important;
2629
outline: none !important;
@@ -45,7 +48,7 @@ floating-label *,
4548
}
4649

4750
cocreate-select.floating-label {
48-
min-height: 24px;
51+
/* min-height: 24px; */
4952
padding: 0px 2px !important;
5053
}
5154
cocreate-select[multiple].floating-label {
@@ -59,7 +62,6 @@ input.floating-label[type="week"],
5962
input.floating-label[type="month"],
6063
select.floating-label {
6164
color: transparent;
62-
height: 24px;
6365
}
6466
input.floating-label.active[type="date"],
6567
input.floating-label.active[type="time"],
@@ -69,19 +71,22 @@ input.floating-label.active[type="month"],
6971
select.floating-label.active {
7072
color: inherit;
7173
}
74+
.floating-label:has(input[type="color"]),
75+
.floating-label_field:has(input[type="color"]) {
76+
padding: 0px;
77+
}
78+
79+
/* textarea.floating-label {
80+
padding: 8px 14px;
81+
} */
7282
select.floating-label[multiple] {
7383
height: auto;
84+
/* padding: 8px 14px; */
7485
}
7586
.floating-label[type="file"] {
76-
min-height: 24px;
7787
cursor: pointer;
7888
}
7989

80-
input[type="color"] {
81-
height: 39px;
82-
padding: 5px 6px 5px 6px !important;
83-
}
84-
8590
.floating-label_outline {
8691
display: flex;
8792
position: absolute;
@@ -100,7 +105,6 @@ input[type="color"] {
100105
border-color: inherit;
101106
border-width: 1px;
102107
border-style: solid;
103-
transition: border 0.15s cubic-bezier(0.4, 0, 0.2, 1);
104108
}
105109

106110
.floating-label_leading {

0 commit comments

Comments
 (0)