Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/dropdown/style.module.css
10262 views
1
.menu {
2
@apply relative inline-block text-left;
3
4
& .button {
5
@apply inline-flex justify-center items-center w-full py-2 text-neutral-100 rounded-md;
6
@apply transition-all duration-100;
7
8
&:hover, &[aria-expanded="true"] {
9
@apply bg-neutral-600 text-white;
10
}
11
12
&:focus, &:focus-within, &:active {
13
@apply ring-2 ring-opacity-50 ring-neutral-300 text-white;
14
}
15
16
& svg {
17
@apply w-5 h-5 transition-transform duration-75;
18
}
19
20
&[aria-expanded="true"] svg[data-animated="true"] {
21
@apply rotate-180;
22
}
23
}
24
25
& .items_container {
26
@apply absolute right-0 mt-2 origin-top-right bg-neutral-900 rounded z-10;
27
}
28
}
29
30
.menu_item {
31
@apply flex items-center rounded w-full px-2 py-2;
32
33
& svg {
34
@apply w-4 h-4 mr-4 text-neutral-300;
35
}
36
37
&:hover, &:focus {
38
@apply bg-blue-500 text-blue-50;
39
40
& svg {
41
@apply text-blue-50;
42
}
43
}
44
45
&.danger {
46
&:hover, &:focus {
47
@apply bg-red-500 text-red-50;
48
49
& svg {
50
@apply text-red-50;
51
}
52
}
53
}
54
55
&.disabled {
56
@apply cursor-not-allowed hover:bg-neutral-800 opacity-30 focus:bg-transparent focus:hover:bg-neutral-800;
57
}
58
}
59
60