-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathtailwind.css
More file actions
95 lines (94 loc) · 2.54 KB
/
Copy pathtailwind.css
File metadata and controls
95 lines (94 loc) · 2.54 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
@import "tailwindcss";
@source "./crates/kopuz/**/*.rs";
@source "./crates/components/**/*.rs";
@source "./crates/pages/**/*.rs";
@source "./crates/hooks/**/*.rs";
@source "./crates/player/**/*.rs";
@source "./crates/reader/**/*.rs";
@source "./crates/server/**/*.rs";
@source "./crates/utils/**/*.rs";
@source "./crates/config/**/*.rs";
@source "./crates/kopuz_route/**/*.rs";
/* Invisible range inputs overlaid on custom seek/volume tracks. The native
thumb (~17px) makes the browser inset its click-to-value mapping by half a
thumb on each side, so clicks land offset from the cursor. A zero-width
thumb makes the mapping match the pointer exactly. */
.slider-hit {
-webkit-appearance: none;
appearance: none;
background: transparent;
}
.slider-hit::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 0;
height: 0;
border: none;
}
.slider-hit::-moz-range-thumb {
width: 0;
height: 0;
border: none;
}
/* Grid ⇄ list album/artist view. Cards carry identical markup and classes in
both modes; only the container class flips (grid utilities ⇄ .view-list), so
toggling patches a single DOM node and never re-fetches or re-lays-out card
internals per-card. These rules restyle the grid card into a compact row. */
.vcard {
contain-intrinsic-size: 0 230px;
}
.view-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.view-list > .vcard {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
background: rgba(255, 255, 255, 0.05);
/* Cards carry `content-visibility: auto` inline for the grid, but WebKit then
reveals list rows only as they're scrolled after a mode switch. Rows are
cheap — force-render them all; !important is needed to beat the inline
style without making card attributes mode-dependent again. */
content-visibility: visible !important;
contain: none !important;
}
.view-list > .vcard:hover {
background: rgba(255, 255, 255, 0.1);
}
.view-list .vcard-click {
display: flex;
align-items: center;
gap: 0.75rem;
flex: 1 1 0%;
min-width: 0;
}
.view-list .vcard-cover,
.view-list .vcard-avatar {
width: 3rem;
height: 3rem;
aspect-ratio: auto;
margin-bottom: 0;
flex-shrink: 0;
}
.view-list .vcard-cover {
border-radius: 0.375rem;
}
.view-list .vcard-cover i,
.view-list .vcard-avatar i {
font-size: 1.125rem;
}
.view-list .vcard-meta {
flex: 1 1 0%;
min-width: 0;
text-align: left;
}
.view-list .vcard-menu {
position: static;
margin-left: auto;
flex-shrink: 0;
}