Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/components/elements/button/style.module.css
10263 views
1
.button {
2
@apply px-4 py-2 inline-flex items-center justify-center;
3
@apply rounded text-base font-semibold transition-all duration-100;
4
@apply focus:ring-[3px] focus:ring-offset-2 focus:ring-offset-gray-700 focus:ring-opacity-50;
5
6
/* Sizing Controls */
7
&.small {
8
@apply px-4 py-0 h-8 font-normal text-sm focus:ring-2;
9
}
10
11
&.large {
12
@apply px-5 py-3;
13
}
14
15
&.secondary {
16
@apply text-gray-50 bg-transparent;
17
18
&:disabled {
19
background: transparent !important;
20
}
21
}
22
23
&:disabled {
24
@apply cursor-not-allowed;
25
}
26
27
&.square {
28
@apply p-0 w-12 h-12;
29
30
&.small {
31
@apply w-8 h-8;
32
}
33
}
34
}
35
36
.primary {
37
@apply bg-blue-600 text-blue-50;
38
@apply hover:bg-blue-500 active:bg-blue-500 focus:ring-blue-400 focus:ring-opacity-75;
39
40
&.secondary {
41
@apply hover:bg-blue-600 active:bg-blue-600;
42
}
43
44
&:disabled {
45
@apply bg-blue-500/75 text-blue-200/75;
46
}
47
}
48
49
.text {
50
@apply bg-gray-500 text-gray-50;
51
@apply hover:bg-gray-400 active:bg-gray-400 focus:ring-gray-300 focus:ring-opacity-50;
52
53
&.secondary {
54
@apply hover:bg-gray-500 active:bg-gray-500;
55
}
56
57
&:disabled {
58
@apply bg-gray-500/75 text-gray-200/75;
59
}
60
}
61
62
.danger {
63
@apply bg-red-600 text-gray-50;
64
@apply hover:bg-red-500 active:bg-red-500 focus:ring-red-400 focus:ring-opacity-75;
65
66
&.secondary {
67
@apply hover:bg-red-600 active:bg-red-600;
68
}
69
70
&:disabled {
71
@apply bg-red-600/75 text-red-50/75;
72
}
73
}
74
75