-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.module.css
More file actions
111 lines (94 loc) · 1.58 KB
/
index.module.css
File metadata and controls
111 lines (94 loc) · 1.58 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@reference "../../styles/index.css";
.badge {
@apply rounded-full
text-center
whitespace-nowrap
text-white;
&.small {
@apply px-1.5
py-0.5
text-xs;
}
&.medium {
@apply px-2.5
py-0.5
text-base;
}
&.default {
@apply bg-green-600;
}
&.error {
@apply bg-danger-600;
}
&.warning {
@apply bg-warning-600;
}
&.info {
@apply bg-info-600;
}
&.neutral {
@apply bg-neutral-800;
}
&[data-tooltip] {
@apply relative
cursor-help;
}
&[data-tooltip]::after {
@apply pointer-events-none
absolute
top-full
left-1/2
z-10
mt-2
w-max
-translate-x-1/2
rounded-md
bg-neutral-900
px-2.5
py-1.5
text-xs
font-medium
text-white
opacity-0
transition-opacity
dark:bg-neutral-100
dark:text-neutral-900;
content: attr(data-tooltip);
}
&[data-tooltip]::before {
@apply pointer-events-none
absolute
top-full
left-1/2
z-10
mt-1
h-2
w-2
-translate-x-1/2
rotate-45
bg-neutral-900
opacity-0
transition-opacity
dark:bg-neutral-100;
content: '';
}
&[data-tooltip]:hover::after,
&[data-tooltip]:hover::before,
&[data-tooltip]:focus-visible::after,
&[data-tooltip]:focus-visible::before {
@apply opacity-100;
}
&.circular {
@apply font-ibm-plex-mono
inline-flex
items-center
justify-center
p-0;
&.small {
@apply size-5;
}
&.medium {
@apply size-7;
}
}
}