-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.css
75 lines (67 loc) · 1.33 KB
/
tailwind.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
@tailwind base;
@tailwind components;
@tailwind utilities;
.link {
@apply text-blue-500 visited:text-purple-500 underline;
}
@media (prefers-color-scheme: dark) {
input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
input[type="checkbox"],
input[type="date"] {
@apply text-white bg-slate-700;
}
input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"]{
@apply rounded;
}
input[type="checkbox"] {
@apply text-black bg-white rounded cursor-pointer;
}
textarea {
@apply bg-slate-700 text-white;
}
.link:visited {
@apply text-yellow-400;
}
}
.tooltip {
@apply relative;
}
.tooltip:focus:after,
.tooltip:hover:after {
@apply bg-slate-600 text-white absolute p-2 rounded-md;
content: attr(data-tooltip);
top: -80px;
left: 0px;
}
.tooltip:focus:before,
.tooltip:hover:before {
content: "";
position: absolute;
display: block;
top: -5px;
left: 8px;
width: 10px;
margin: auto;
border-left: 5px solid transparent;
border-top: 5px solid #475569;
border-right: 5px solid transparent;
}
.tooltip-left-0:focus:after,
.tooltip-left-0:hover:after {
left: 0;
}
.tooltip-wide:focus:after,
.tooltip-wide:hover:after {
left: 20%;
}
.tooltip-drf:focus:after,
.tooltip-drf:hover:after {
width: 200%;
}