-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdashboard-tailwind-src.css
More file actions
234 lines (201 loc) · 6.72 KB
/
dashboard-tailwind-src.css
File metadata and controls
234 lines (201 loc) · 6.72 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
/* Tailwind source file in dashboard-tailwind-src.css
To be compiled using `npx tailwindcss`
eg: npx tailwindcss -i ./assets/dashboard-tailwind-src.css -o ./assets/dashboard.css
*/
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--rounded-btn: 0.5rem;
}
/*START: daisyui select (adapted; need to reimpl in tw) */
select {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
font-size: 100%;
font-weight: inherit;
line-height: inherit;
color: inherit;
margin: 0;
padding: 0;
padding-right: 0px;
padding-left: 0px;
text-transform: none;
}
.select {
display: inline-flex;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
height: 3rem;
min-height: 3rem;
padding-left: 1rem;
padding-right: 2.5rem;
font-size: 0.875rem;
line-height: 1.25rem;
line-height: 2;
border-radius: var(--rounded-btn, 0.5rem);
border-width: 1px;
border-color: transparent;
--tw-bg-opacity: 1;
background-color: oklch(1 0 0);
}
[dir="rtl"] .select {
background-position:
calc(0% + 12px) calc(1px + 50%),
calc(0% + 16px) calc(1px + 50%);
}
.dropdown {
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
background-position: calc(100% - 20px) calc(1px + 50%), calc(100% - 16.1px) calc(1px + 50%);
background-size: 4px 4px, 4px 4px;
background-repeat: no-repeat;
}
.max-w-xs {
max-width: 20rem;
}
.select-sm {
height: 2rem;
min-height: 2rem;
padding-left: 0.75rem;
padding-right: 2rem;
font-size: 0.875rem;
line-height: 2rem;
}
.select-bordered {
border-color: var(oklch(var(--bc)/0.2));
}
/*END: daisyui select */
@layer components {
.kiwix-home-btn {
@apply hover:bg-kwordergrey-600 hover:text-white bg-kwordergrey-500 text-kwwhite;
}
.kiwix-home-btn-active {
@apply border-white text-kwordergrey-500 bg-white drop-shadow-md hover:text-kwordergrey-500 hover:bg-white hover:cursor-default;
}
.kiwix-download-btn {
@apply hover:bg-kworange-800 hover:text-white bg-kworange-500 text-kwwhite;
}
.kiwix-download-btn-active {
@apply border-white text-kworange-100 bg-white drop-shadow-md hover:text-kworange-100 hover:bg-white hover:cursor-default;
}
.kiwix-order-dir-btn {
@apply mr-1 last:mr-0 cursor-pointer p-0 text-[0.9em] leading-[1.1em] h-[1.7em] w-[1.7em] rounded-md drop-shadow-none;
}
.kiwix-sort-btn {
@apply mr-0 last:mr-0 cursor-pointer box-border px-[2em] py-0 text-[0.9em] leading-[1.1em] h-[2em] rounded-2xl min-w-[3em] md:min-w-[6em] relative z-40 pr-[1.8em] drop-shadow-none;
}
.kiwix-sort-btn-active {
@apply z-50 hover:cursor-default;
}
.kiwix-mobile-btn {
@apply hover:bg-kwordergrey-600 hover:text-white bg-kwordergrey-100 text-kwwhite;
}
.kiwix-mobile-btn-active {
@apply border-white text-kworange bg-white drop-shadow-md hover:text-kworange-100 hover:bg-white hover:cursor-default;
}
.kiwix-mobile-filter-btn {
@apply mr-0 last:mr-0 cursor-pointer box-border px-[2em] py-0 text-[0.9em] leading-[1.1em] h-[2em] rounded-2xl min-w-[3em] md:min-w-[6em] relative z-40 pr-[1.8em] drop-shadow-none kiwix-mobile-btn mb-1 me-1;
}
.kiwix-mobile-filter-btn-active {
@apply border-white text-kworange-100 bg-white drop-shadow-md hover:text-kworange-100 hover:bg-white hover:cursor-default;
}
.kiwix-download-filter-label {
@apply text-white;
}
.kiwix-reader-platform-btn {
@apply cursor-pointer border-white border bg-kwordergrey-500 md:bg-kwordergrey-500 md:bg-kwreaderbggrey text-white text-sm rounded-xl px-3 py-1 sm:me-1 lg:me-3 last:me-0 hover:bg-kwordergrey-600 md:hover:bg-kwreaderhover hover:text-white hover:border-white;
}
.kiwix-reader-platform-btn-active {
@apply text-kwreaderbggrey bg-white drop-shadow-md hover:text-kwreaderbggrey hover:bg-white hover:border-white hover:cursor-default;
}
.kiwix-home-innerglow {
box-shadow: inset 0 0 1em #a6b2bd;
}
.kiwix-download-innerglow {
box-shadow: inset 0 0 1em #c60;
}
.kiwix-mini-download-open-outerglow {
box-shadow: 0 0 1em 0.5em #c60;
}
.kiwix-mini-download-close-uppershadow {
box-shadow: #f39325 0 -0.4rem 0.9rem 0;
}
.kiwix-mini-download-open-downshadow {
box-shadow: inset 0 0.3em 0.3em #c60;
}
.bg-center-top {
background-position-x: center;
background-position-y: top;
}
.content-max-w {
@apply sm:max-w-screen-sm md:max-w-screen-md lg:max-w-screen-md xl:max-w-screen-lg 2xl:max-w-screen-xl;
}
.content-w {
@apply sm:w-[640px] md:w-[768px] lg:w-[1024px] xl:w-[1280px] 2xl:w-[1536px] w-[90%] mx-auto;
}
.mini-height-card-90 {
height: calc((90vw /8.79) * 4.69);
}
.mini-height-card-60 {
height: calc((60vw /8.79) * 4.69);
}
.inherit {
position: inherit;
}
.hide-after-2:nth-child(3), .hide-after-2:nth-child(4) {
@apply hidden;
}
.mobile-filters-shadow {
filter: drop-shadow(-0.5em 0 0.6em #6f8291);
}
}
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: italic;
font-weight: 100 1000;
font-display: swap;
src: url(dmsans/DMSans-italic-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: italic;
font-weight: 100 1000;
font-display: swap;
src: url(dmsans/DMSans-italic.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 100 1000;
font-display: swap;
src: url(dmsans/DMSans-normal-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 100 1000;
font-display: swap;
src: url(dmsans/DMSans-normal.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.dm-sans {
font-family: "DM Sans", serif;
font-weight: 400;
font-style: normal;
}
body {
font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
}