summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/app.css
blob: e1b6ca08585f72e35942a882227dabd449c85f53 (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
@tailwind base;
@tailwind components;
@tailwind utilities;

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

	input,
	textarea {
		@apply w-full rounded bg-slate-900 p-[.4rem] focus:outline focus:outline-1 focus:outline-slate-500;
	}

	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-sm last:rounded-r-sm !important;
	}

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

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

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

	header {
		grid-area: header;
	}

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

	main {
		grid-area: main;
	}
}

@layer components {
	.btn {
		@apply flex items-center justify-center rounded-sm p-2 text-white transition-colors disabled:opacity-40;
	}

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

	.btn-blue {
		@apply btn bg-blue-700 hover:bg-blue-600 disabled:bg-blue-900;
	}

	.btn-rose {
		@apply btn bg-rose-700 hover:bg-rose-600 disabled:bg-rose-900;
	}

	.btn-slate {
		@apply btn bg-slate-700 hover:bg-slate-600 disabled:bg-slate-800;
	}

	.btn-indigo {
		@apply btn bg-indigo-700 hover:bg-indigo-600 disabled:bg-indigo-800;
	}

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

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

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

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

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

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

	.icon-yellow {
		@apply text-yellow-300;
	}

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

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

@layer utilities {
	.toggled {
		@apply bg-indigo-700 hover:bg-indigo-600;
	}

	.floating {
		@apply rounded-full bg-black/50 p-1 text-white/80 backdrop-blur-sm hover:bg-black/50 hover:text-white;
	}

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

	.rounded-inherit {
		border-radius: inherit;
	}

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

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

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

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

.svelecte.is-focused {
	--sv-border: 1px solid theme(colors.slate.500);
}

.svelecte input::placeholder {
	color: theme(colors.gray.500);
}

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

.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;
}