Skip to content

Commit ac96446

Browse files
committed
refactor: image gallery css in remote functions
1 parent 41c15c2 commit ac96446

2 files changed

Lines changed: 382 additions & 383 deletions

File tree

Lines changed: 380 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,380 @@
1+
:host {
2+
all: initial !important;
3+
}
4+
5+
.phoenix-image-gallery-container {
6+
position: fixed !important;
7+
bottom: 0 !important;
8+
left: 50% !important;
9+
transform: translateX(-50%) !important;
10+
width: calc(100% - 24px) !important;
11+
max-width: 1160px !important;
12+
background-color: #2c2c2c !important;
13+
border-radius: 6px 6px 0 0 !important;
14+
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial !important;
15+
border: 2px solid rgba(255, 255, 255, 0.3) !important;
16+
border-bottom: none !important;
17+
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3) !important;
18+
z-index: 2147483647 !important;
19+
overflow: hidden !important;
20+
}
21+
22+
.phoenix-image-gallery-header {
23+
display: flex !important;
24+
padding: 10px 8px 6px 8px !important;
25+
}
26+
27+
.phoenix-image-gallery-header-title {
28+
display: flex !important;
29+
align-items: center !important;
30+
color: #a0a0a0 !important;
31+
gap: 4px !important;
32+
font-size: 14px !important;
33+
margin-bottom: 2px !important;
34+
margin-right: 10px !important;
35+
}
36+
37+
@media (max-width: 580px) {
38+
.phoenix-image-gallery-header-title {
39+
display: none !important;
40+
}
41+
}
42+
43+
.phoenix-image-gallery-header-icon {
44+
height: 16px !important;
45+
width: 18px !important;
46+
}
47+
48+
.phoenix-image-gallery-header-icon svg {
49+
display: block !important;
50+
vertical-align: middle !important;
51+
}
52+
53+
.phoenix-image-gallery-header-text {
54+
line-height: 1 !important;
55+
display: flex !important;
56+
align-items: center !important;
57+
}
58+
59+
.phoenix-image-gallery-search-container {
60+
display: flex !important;
61+
align-items: center !important;
62+
}
63+
64+
.search-wrapper {
65+
position: relative !important;
66+
margin-right: 6px !important;
67+
}
68+
69+
.search-wrapper input {
70+
padding: 5px 4px 6px 36px !important;
71+
border-radius: 4px !important;
72+
border: none !important;
73+
background-color: #1e1e1e !important;
74+
color: #e0e0e0 !important;
75+
}
76+
77+
.search-wrapper .search-icon {
78+
position: absolute !important;
79+
left: 6px !important;
80+
top: 55% !important;
81+
transform: translateY(-50%) !important;
82+
background: none !important;
83+
border: none !important;
84+
color: #aaa !important;
85+
cursor: pointer !important;
86+
}
87+
88+
.search-wrapper .search-icon:hover {
89+
color: #e0e0e0 !important;
90+
}
91+
92+
.search-wrapper input:focus {
93+
outline: 1px solid #3a8ef6 !important;
94+
}
95+
96+
@media (max-width: 370px) {
97+
.search-wrapper input {
98+
width: 100px !important;
99+
}
100+
}
101+
102+
.phoenix-image-gallery-upload-container button {
103+
display: flex !important;
104+
align-items: center !important;
105+
gap: 2px !important;
106+
background: transparent !important;
107+
color: #a0a0a0 !important;
108+
border: none !important;
109+
border-radius: 3px !important;
110+
padding: 3px 8px 3px 3px !important;
111+
margin-top: 1px !important;
112+
font-size: 12px !important;
113+
cursor: pointer !important;
114+
}
115+
116+
.phoenix-image-gallery-upload-container button:hover {
117+
background: #3c3f41 !important;
118+
}
119+
120+
@media (max-width: 470px) {
121+
.phoenix-image-gallery-upload-container button {
122+
font-size: 0 !important;
123+
padding: 3px 5px 3px 6px !important;
124+
}
125+
126+
.phoenix-image-gallery-upload-container button svg {
127+
font-size: 16px !important;
128+
}
129+
}
130+
131+
.phoenix-image-gallery-right-buttons {
132+
display: flex !important;
133+
align-items: center !important;
134+
gap: 3px !important;
135+
margin-left: auto !important;
136+
margin-bottom: 2px !important;
137+
}
138+
139+
.phoenix-image-gallery-right-buttons button {
140+
display: flex !important;
141+
background: transparent !important;
142+
color: #a0a0a0 !important;
143+
border: none !important;
144+
border-radius: 3px !important;
145+
padding: 4px 8px !important;
146+
cursor: pointer !important;
147+
}
148+
149+
.phoenix-image-gallery-right-buttons button:hover {
150+
background: #3c3f41 !important;
151+
}
152+
153+
.phoenix-image-gallery-right-buttons svg {
154+
width: 16px !important;
155+
height: 16px !important;
156+
}
157+
158+
.phoenix-image-gallery-strip {
159+
overflow: hidden !important;
160+
scroll-behavior: smooth !important;
161+
padding: 6px !important;
162+
}
163+
164+
.phoenix-image-gallery-row {
165+
display: flex !important;
166+
gap: 5px !important;
167+
}
168+
169+
.phoenix-ribbon-thumb {
170+
flex: 0 0 auto !important;
171+
width: 112px !important;
172+
height: 112px !important;
173+
border-radius: 4px !important;
174+
overflow: hidden !important;
175+
position: relative !important;
176+
cursor: pointer !important;
177+
outline: 1px solid rgba(255,255,255,0.08) !important;
178+
transition: transform 0.15s ease, outline-color 0.15s ease, box-shadow 0.15s ease !important;
179+
background: #0b0e14 !important;
180+
}
181+
182+
.phoenix-ribbon-thumb img {
183+
width: 100% !important;
184+
height: 100% !important;
185+
object-fit: cover !important;
186+
display: block !important;
187+
}
188+
189+
.phoenix-ribbon-thumb:hover {
190+
transform: translateY(-2px) scale(1.02) !important;
191+
outline-color: rgba(255,255,255,0.25) !important;
192+
box-shadow: 0 8px 18px rgba(0,0,0,0.36) !important;
193+
}
194+
195+
.phoenix-image-gallery-nav {
196+
position: absolute !important;
197+
top: 50% !important;
198+
border-radius: 12px !important;
199+
border: 1px solid rgba(255,255,255,0.14) !important;
200+
color: #eaeaf0 !important;
201+
background: rgba(21,25,36,0.65) !important;
202+
cursor: pointer !important;
203+
font-size: 22px !important;
204+
font-weight: 600 !important;
205+
user-select: none !important;
206+
transition: all 0.2s ease !important;
207+
z-index: 2147483647 !important;
208+
padding: 2.5px 11px 7px 11px !important;
209+
display: none !important;
210+
align-items: center !important;
211+
justify-content: center !important;
212+
line-height: 1 !important;
213+
text-align: center !important;
214+
}
215+
216+
.phoenix-image-gallery-nav:hover {
217+
background: rgba(21,25,36,0.85) !important;
218+
border-color: rgba(255,255,255,0.25) !important;
219+
}
220+
221+
.phoenix-image-gallery-nav:active {
222+
transform: scale(0.95) !important;
223+
}
224+
225+
.phoenix-image-gallery-nav.left {
226+
left: 15px !important;
227+
}
228+
229+
.phoenix-image-gallery-nav.right {
230+
right: 15px !important;
231+
}
232+
233+
.phoenix-image-gallery-loading {
234+
display: flex !important;
235+
align-items: center !important;
236+
justify-content: center !important;
237+
min-height: 112px !important;
238+
color: #eaeaf0 !important;
239+
font-size: 14px !important;
240+
}
241+
242+
.phoenix-ribbon-error {
243+
display: flex !important;
244+
align-items: center !important;
245+
justify-content: center !important;
246+
min-height: 112px !important;
247+
color: #ff6b6b !important;
248+
font-size: 14px !important;
249+
}
250+
251+
.phoenix-loading-more {
252+
display: flex !important;
253+
align-items: center !important;
254+
justify-content: center !important;
255+
min-width: 120px !important;
256+
min-height: 110px !important;
257+
margin-left: 2px !important;
258+
background: rgba(255,255,255,0.03) !important;
259+
border-radius: 8px !important;
260+
color: #e8eaf0 !important;
261+
font-size: 12px !important;
262+
border: 1px dashed rgba(255,255,255,0.1) !important;
263+
}
264+
265+
.phoenix-ribbon-attribution {
266+
position: absolute !important;
267+
bottom: 6px !important;
268+
left: 6px !important;
269+
background: rgba(0,0,0,0.8) !important;
270+
color: white !important;
271+
padding: 4px 6px !important;
272+
border-radius: 5px !important;
273+
font-size: 10px !important;
274+
line-height: 1.2 !important;
275+
max-width: calc(100% - 12px) !important;
276+
text-shadow: 0 1px 2px rgba(0,0,0,0.9) !important;
277+
pointer-events: auto !important;
278+
opacity: 0 !important;
279+
transition: all 0.2s ease !important;
280+
}
281+
282+
.phoenix-ribbon-attribution .photographer {
283+
display: block !important;
284+
font-weight: 500 !important;
285+
white-space: nowrap !important;
286+
overflow: hidden !important;
287+
text-overflow: ellipsis !important;
288+
color: white !important;
289+
text-decoration: none !important;
290+
}
291+
292+
.phoenix-ribbon-attribution .photographer:hover {
293+
text-decoration: underline !important;
294+
}
295+
296+
.phoenix-ribbon-attribution .source {
297+
display: block !important;
298+
font-size: 9px !important;
299+
opacity: 0.85 !important;
300+
color: white !important;
301+
text-decoration: none !important;
302+
}
303+
304+
.phoenix-ribbon-attribution .source:hover {
305+
text-decoration: underline !important;
306+
}
307+
308+
.phoenix-download-icon {
309+
position: absolute !important;
310+
top: 8px !important;
311+
right: 8px !important;
312+
background: rgba(0,0,0,0.7) !important;
313+
border: none !important;
314+
color: #eee !important;
315+
border-radius: 50% !important;
316+
width: 18px !important;
317+
height: 18px !important;
318+
padding: 4px !important;
319+
display: flex !important;
320+
align-items: center !important;
321+
justify-content: center !important;
322+
cursor: pointer !important;
323+
font-size: 16px !important;
324+
z-index: 2147483647 !important;
325+
transition: all 0.2s ease !important;
326+
pointer-events: none !important;
327+
opacity: 0 !important;
328+
}
329+
330+
.phoenix-ribbon-thumb:hover .phoenix-download-icon {
331+
opacity: 1 !important;
332+
pointer-events: auto !important;
333+
}
334+
335+
.phoenix-ribbon-thumb:hover .phoenix-ribbon-attribution {
336+
opacity: 1 !important;
337+
}
338+
339+
.phoenix-ribbon-attribution:hover {
340+
opacity: 1 !important;
341+
}
342+
343+
.phoenix-download-icon:hover {
344+
background: rgba(0,0,0,0.9) !important;
345+
transform: scale(1.1) !important;
346+
}
347+
348+
.phoenix-ribbon-thumb.downloading {
349+
opacity: 0.6 !important;
350+
pointer-events: none !important;
351+
}
352+
353+
.phoenix-download-indicator {
354+
position: absolute !important;
355+
top: 50% !important;
356+
left: 50% !important;
357+
transform: translate(-50%, -50%) !important;
358+
background: rgba(0, 0, 0, 0.8) !important;
359+
border-radius: 50% !important;
360+
width: 40px !important;
361+
height: 40px !important;
362+
display: flex !important;
363+
align-items: center !important;
364+
justify-content: center !important;
365+
z-index: 10 !important;
366+
}
367+
368+
.phoenix-download-spinner {
369+
width: 20px !important;
370+
height: 20px !important;
371+
border: 2px solid rgba(255, 255, 255, 0.3) !important;
372+
border-top: 2px solid #fff !important;
373+
border-radius: 50% !important;
374+
animation: phoenix-spin 1s linear infinite !important;
375+
}
376+
377+
@keyframes phoenix-spin {
378+
0% { transform: rotate(0deg); }
379+
100% { transform: rotate(360deg); }
380+
}

0 commit comments

Comments
 (0)