-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathapp.css
More file actions
243 lines (196 loc) · 4.48 KB
/
app.css
File metadata and controls
243 lines (196 loc) · 4.48 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
@import 'tailwindcss';
@plugin '@tailwindcss/typography';
@plugin '@tailwindcss/forms';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../../vendor/filament/**/*.blade.php';
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-mirage: #141624;
--color-haiti: #16182c;
--color-cloud: #2b2e53;
--font-poppins: 'Poppins', Verdana, sans-serif;
}
@utility container {
margin-inline: auto;
}
@layer base {
button:not(:disabled),
[role='button']:not(:disabled) {
cursor: pointer;
}
}
/*
The default border color has changed to `currentcolor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}
}
@layer base {
html {
-webkit-tap-highlight-color: transparent;
}
}
@keyframes shine {
0% {
background-position: 200% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Prevents scrollbars from appearing when a popover is open */
html:has(#mobile-menu-popover:popover-open) {
overflow: hidden;
}
/* Scrollbar width */
::-webkit-scrollbar {
height: 8px;
width: 8px;
}
/* Scrollbar track */
::-webkit-scrollbar-track {
background: transparent;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: transparent;
}
/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
border-radius: 999px;
}
/* Light Theme */
::-webkit-scrollbar-thumb {
@apply bg-gray-300/80;
}
/* Scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
@apply bg-gray-300;
}
/* Dark Theme */
.dark ::-webkit-scrollbar-thumb {
@apply bg-cloud/60;
}
/* Scrollbar thumb on hover */
.dark ::-webkit-scrollbar-thumb:hover {
@apply bg-cloud;
}
/* Whole menu */
nav.docs-navigation ul {
@apply list-none text-sm;
}
/* Categories */
nav.docs-navigation > ul > li {
@apply mb-3;
& > a {
@apply font-semibold;
@apply mb-1.5 px-3 py-2.5 no-underline;
@apply rounded-xl border dark:border-white/15;
}
}
nav.docs-navigation > ul > li.active > a {
@apply text-black dark:text-white;
& > svg {
@apply text-violet-400;
}
}
nav.docs-navigation > ul > li > a {
@apply transition duration-200 will-change-transform;
}
nav.docs-navigation > ul > li:hover > a {
@apply translate-x-0.5 bg-gray-50 dark:bg-gray-900/50;
}
/* Sub menus */
nav.docs-navigation > ul > li > ul {
& > li {
@apply font-normal;
& a {
@apply ml-3 block w-full border-l-[1.5px] py-1.5 pl-3 transition-all duration-200 dark:border-white/10;
}
&.exact-active a {
@apply border-violet-400 font-medium text-violet-800/80 dark:border-violet-400/90 dark:text-white;
}
&:hover a {
@apply border-violet-400 dark:border-violet-400/90;
}
}
}
.prose h1 {
@apply text-2xl;
}
.prose h2 {
@apply text-xl;
}
.prose h3 {
@apply text-lg;
}
.prose h4 {
@apply text-base;
}
.prose pre {
@apply rounded-xl p-6 shadow-lg;
}
.prose pre code {
@apply text-gray-50;
}
.prose code {
@apply px-1;
}
.prose a {
@apply text-indigo-700 dark:text-indigo-300;
}
.prose a:hover {
@apply text-indigo-600 no-underline dark:text-indigo-300;
}
.prose img {
@apply rounded-xl shadow-md;
}
.prose img.no-format {
@apply rounded-none shadow-none;
}
/*
Margin and rounding are personal preferences,
overflow-x-auto is recommended.
*/
.prose pre {
@apply my-4 overflow-x-auto rounded-md bg-transparent p-0;
}
/*
Add some vertical padding and expand the width
to fill its container. The horizontal padding
comes at the line level so that background
colors extend edge to edge.
*/
.prose pre code.torchlight {
@apply block min-w-max py-4;
}
/*
Horizontal line padding.
*/
.prose pre code.torchlight .line {
@apply px-4;
}
/*
Push the code away from the line numbers and
summary caret indicators.
*/
.prose pre code.torchlight .line-number,
.prose pre code.torchlight .summary-caret {
@apply mr-4;
}