summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/app.css
blob: bb6ae9b2c85af7c563215fc913badcdd5f14fb7a (plain) (blame)
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
@import 'tailwindcss';
@config '../tailwind.config.cjs';
@plugin "@iconify/tailwind4";

@theme {
	--breakpoint-3xl: 120rem;
}

@layer base {
	button:not(:disabled),
	[role='button']:not(:disabled) {
		cursor: pointer;
	}
}

@utility btn {
	@apply flex items-center justify-center rounded-xs p-2 text-white transition-colors focus-visible:outline disabled:opacity-40;
}

@utility btn-xs {
	@apply btn rounded-xs p-0.5 py-0;
}

@utility btn-blue {
	@apply btn bg-blue-700 hover:bg-blue-600 focus:outline-blue-400 focus-visible:outline-blue-400 disabled:bg-blue-900;
}

@utility btn-rose {
	@apply btn bg-rose-700 hover:bg-rose-600 focus:outline-rose-400 focus-visible:outline-rose-400 disabled:bg-rose-900;
}

@utility btn-slate {
	@apply btn bg-slate-700 hover:bg-slate-600 focus:outline-slate-400 focus-visible:outline-slate-400 disabled:bg-slate-800;
}

@utility btn-transparent {
	@apply btn rounded-full bg-black/50 p-1 text-white/80 backdrop-blur-xs hover:bg-black/50 hover:text-white;
}

@utility icon-xs {
	@apply text-[18px];
}

@utility icon-base {
	@apply text-[24px];
}

@utility icon-lg {
	@apply text-[28px];
}

@utility icon-2xl {
	@apply text-[48px];
}

@utility icon-gray {
	&.hoverable:hover {
		@apply text-gray-200/80;
	}

	&.dim {
		@apply text-gray-100/40;
	}
}

@utility hoverable {
	&.icon-gray:hover {
		@apply text-gray-200/80;
	}

	&.icon-yellow:hover {
		@apply text-yellow-300/80;
	}
}

@utility dim {
	&.icon-gray {
		@apply text-gray-100/40;
	}

	&.icon-yellow {
		@apply text-slate-100/40;
	}
}

@utility icon-yellow {
	@apply text-yellow-300;

	&.hoverable:hover {
		@apply text-yellow-300/80;
	}

	&.dim {
		@apply text-slate-100/40;
	}
}

@utility toggled {
	@apply bg-indigo-700 hover:bg-indigo-600;
}

@utility ellipsis-nowrap {
	@apply overflow-hidden text-ellipsis whitespace-nowrap;
}

@utility rounded-inherit {
	border-radius: inherit;
}

@utility grid-card-h {
	grid-template-columns: 210px 1fr;
	grid-template-rows: 300px;
}

@utility grid-card-cover-only {
	@apply !grid-card-h;
}

@utility grid-card-v {
	grid-template-columns: 1fr;
	grid-template-rows: 500px 1fr;
}

@layer base {
	body {
		display: grid;
		grid-template-columns: 3rem 1fr;
		scrollbar-color: var(--color-gray-500) rgba(0, 0, 0, 0);
		font-family: 'Noto Sans', sans-serif;
	}

	input,
	textarea {
		@apply w-full rounded-sm bg-slate-900 p-[.4rem];
	}

	input,
	textarea,
	select {
		@apply focus:isolate focus:outline focus:outline-slate-400 focus-visible:isolate focus-visible:outline-slate-400;
	}

	button {
		@apply focus:outline-slate-400 focus-visible:isolate focus-visible:outline focus-visible:outline-slate-400;
	}

	a {
		@apply focus-visible:isolate focus-visible:outline-2 focus-visible:outline-blue-600;
	}

	label {
		@apply mb-0.5 inline-block;
	}

	form {
		@apply flex flex-col gap-4 p-px text-sm;
	}

	.rounded-group > * {
		@apply rounded-none! first:rounded-l-xs! last:rounded-r-xs!;
	}

	.rounded-group-start > * {
		@apply rounded-none! first:rounded-l-xs!;
	}

	.rounded-group-end > * {
		@apply rounded-none! last:rounded-r-xs!;
	}

	.grid-labels {
		@apply grid grid-cols-[1fr_5fr] gap-2;
	}

	header {
		grid-area: header;
	}

	aside {
		overflow: auto;
		grid-area: sidebar;
		@apply 3xl:w-[36rem] lg:w-[28rem] xl:w-[32rem];
	}

	main {
		grid-area: main;
	}
}

.svelecte {
	--sv-bg: var(--color-slate-900);
	--sv-disabled-bg: var(--color-slate-900);
	--sv-border: 1px solid rgba(0, 0, 0, 0);
	--sv-dropdown-active-bg: var(--color-indigo-800);
	--sv-item-selected-bg: var(--color-indigo-800);
	--sv-item-btn-bg-hover: var(--color-rose-900);
	--sv-item-btn-color-hover: var(--color-rose-100);
	--sv-separator-bg: var(--color-gray-700);
	--sv-min-height: 38px;
	--sv-item-wrap-padding: 3px 3px 3px 5px;
	--sv-selection-multi-wrap-padding: 3px 3px 3px 5px;
}

.svelecte.is-focused {
	--sv-border: 1px solid var(--color-slate-400);
}

.svelecte input::placeholder {
	color: var(--color-gray-500);
}

.exclude .svelecte {
	--sv-border: 1px solid var(--color-red-900);
	--sv-item-selected-bg: var(--color-rose-800);
	--sv-dropdown-active-bg: var(--color-rose-800);
}

.exclude .svelecte.is-focused {
	--sv-border: 1px solid var(--color-red-500);
}

.sv-item--btn {
	border-radius: 0 2px 2px 0 !important;
}

.sv-item--wrap {
	border-radius: 2px 0 0 2px !important;
}

.sv-item--wrap.in-dropdown {
	border-radius: 2px !important;
}