-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathinput.css
92 lines (92 loc) · 1.88 KB
/
input.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.input {
@apply bg-base-100 rounded-btn border border-transparent text-base;
input {
@apply bg-primary bg-transparent;
&:focus {
@apply outline-none;
}
}
&[list]::-webkit-calendar-picker-indicator {
line-height: 1em;
}
&-bordered {
@apply border-base-content/20;
}
&:focus,
&:focus-within {
box-shadow: none;
@apply border-base-content/20 outline-base-content/20 outline outline-2 outline-offset-2;
}
&-ghost {
@apply bg-opacity-5;
&:focus,
&:focus-within {
@apply text-base-content bg-opacity-100;
box-shadow: none;
}
}
&-primary {
@apply border-primary;
&:focus,
&:focus-within {
@apply outline-primary border-primary;
}
}
&-secondary {
@apply border-secondary;
&:focus,
&:focus-within {
@apply outline-secondary border-secondary;
}
}
&-accent {
@apply border-accent;
&:focus,
&:focus-within {
@apply outline-accent border-accent;
}
}
&-info {
@apply border-info;
&:focus,
&:focus-within {
@apply outline-info border-info;
}
}
&-success {
@apply border-success;
&:focus,
&:focus-within {
@apply outline-success border-success;
}
}
&-warning {
@apply border-warning;
&:focus,
&:focus-within {
@apply outline-warning border-warning;
}
}
&-error {
@apply border-error;
&:focus,
&:focus-within {
@apply outline-error border-error;
}
}
&:has(> input[disabled]),
&-disabled,
&:disabled,
&[disabled] {
@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 cursor-not-allowed placeholder-opacity-20;
}
&:has(> input[disabled]) > input[disabled] {
@apply cursor-not-allowed;
}
/* &::-webkit-calendar-picker-indicator {
display: none;
} */
&::-webkit-date-and-time-value {
text-align: inherit;
}
}