-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplayer-sync.css
More file actions
166 lines (154 loc) · 4.91 KB
/
Copy pathplayer-sync.css
File metadata and controls
166 lines (154 loc) · 4.91 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
.player-sync-widget {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.player-sync-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
min-height: 40px;
padding: 0 15px;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 7px;
background: rgba(22, 28, 38, 0.94);
color: #fff;
font: inherit;
font-weight: 700;
cursor: pointer;
box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
}
.player-sync-button:hover { transform: translateY(-1px); }
.player-sync-button:active { transform: translateY(0); }
.player-sync-button-icon { font-size: 1rem; line-height: 1; }
.player-sync-status {
max-width: min(38vw, 430px);
overflow: hidden;
color: rgba(255, 255, 255, 0.72);
font-size: 0.78rem;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.player-sync-status[data-state="ready"] { color: #b9f3d0; }
.player-sync-status[data-state="error"] { color: #ffc2c2; }
.player-sync-status[data-state="loading"] { color: #dce9ff; }
.player-sync-modal[hidden] { display: none; }
.player-sync-modal {
position: fixed;
z-index: 10020;
inset: 0;
display: grid;
place-items: center;
padding: 18px;
background: rgba(7, 10, 16, 0.68);
backdrop-filter: blur(10px);
}
.player-sync-panel {
width: min(480px, 100%);
padding: 22px;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 8px;
background: #151a23;
color: #f6f8fb;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
.player-sync-panel-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.player-sync-panel h2 { margin: 2px 0 0; font-size: 1.25rem; letter-spacing: 0; }
.player-sync-eyebrow { margin: 0; color: #8fa5c2; font-size: 0.68rem; font-weight: 800; }
.player-sync-close {
width: 36px;
height: 36px;
border: 0;
border-radius: 6px;
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-size: 1.45rem;
cursor: pointer;
}
.player-sync-help,
.player-sync-security { color: #aeb8c7; font-size: 0.84rem; line-height: 1.6; }
.player-sync-field { display: grid; gap: 7px; margin-top: 18px; }
.player-sync-field span { color: #c9d2df; font-size: 0.72rem; font-weight: 800; }
.player-sync-field input {
box-sizing: border-box;
width: 100%;
min-height: 46px;
padding: 10px 12px;
border: 1px solid #3d4655;
border-radius: 6px;
outline: none;
background: #0d1118;
color: #fff;
font: inherit;
}
.player-sync-field input:focus { border-color: #8bbcff; box-shadow: 0 0 0 3px rgba(97, 165, 255, 0.15); }
.player-sync-actions { display: flex; gap: 10px; margin-top: 14px; }
.player-sync-actions .btn { flex: 1; min-height: 42px; }
.player-sync-modal-status { min-height: 1.35em; margin: 10px 0 0; color: #b9d5ff; font-size: 0.82rem; }
.player-sync-modal-open { overflow: hidden; }
.player-sync-played { position: relative; }
.player-sync-played::after {
content: "已游玩";
position: absolute;
z-index: 3;
top: 7px;
right: 7px;
padding: 3px 6px;
border-radius: 4px;
background: #16734a;
color: #fff;
font-size: 0.66rem;
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
pointer-events: none;
}
.reference-item.player-sync-played::after,
.remaining-item.player-sync-played::after {
position: static;
flex: 0 0 auto;
margin-left: auto;
}
@media (max-width: 720px) {
.controls {
position: sticky;
z-index: 20;
top: 0;
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 7px !important;
padding: 8px !important;
border-radius: 7px !important;
background: rgba(14, 18, 25, 0.92) !important;
backdrop-filter: blur(12px);
}
.controls .btn { min-width: 0; min-height: 38px; padding: 8px 9px; font-size: 0.78rem; }
.player-sync-widget { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.player-sync-button { min-height: 38px; padding: 0 12px; font-size: 0.78rem; }
.player-sync-status { max-width: none; font-size: 0.7rem; }
.stats { gap: 7px !important; margin: 12px 0 !important; }
.stat-card { min-width: 0 !important; padding: 10px 8px !important; border-radius: 7px !important; }
.stat-number { font-size: 1.25rem !important; }
.stat-label { font-size: 0.7rem !important; }
.songs-list { gap: 9px !important; }
.song-card { padding: 10px !important; border-radius: 7px !important; }
.player-sync-modal { align-items: end; padding: 0; }
.player-sync-panel {
box-sizing: border-box;
width: 100%;
max-height: 88vh;
overflow-y: auto;
padding: 18px 16px max(18px, env(safe-area-inset-bottom));
border-width: 1px 0 0;
border-radius: 8px 8px 0 0;
}
.player-sync-actions { flex-direction: column; }
}