fix: CSS class names consistent with index.html, restore touch zones and float animation (v1.4.1)
This commit is contained in:
+26
-20
@@ -1,7 +1,10 @@
|
|||||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a0f; color: #e8e6f0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
|
html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a0f; color: #e8e6f0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
|
||||||
|
|
||||||
|
/* === SETUP SCREEN === */
|
||||||
.setup-screen { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
|
.setup-screen { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
|
||||||
.setup-header { padding: 1.5rem 2rem 1rem; flex-shrink: 0; }
|
.setup-header { padding: 1.5rem 2rem 1rem; flex-shrink: 0; text-align: center; }
|
||||||
|
.setup-logo { width: 64px; height: 64px; margin-bottom: 0.5rem; }
|
||||||
.setup-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
|
.setup-header h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
|
||||||
.setup-header h1 span { color: #6366f1; }
|
.setup-header h1 span { color: #6366f1; }
|
||||||
#connection-status { font-size: 0.85rem; color: #666; margin-top: 0.3rem; transition: color 0.3s; }
|
#connection-status { font-size: 0.85rem; color: #666; margin-top: 0.3rem; transition: color 0.3s; }
|
||||||
@@ -16,38 +19,41 @@ html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a0f; c
|
|||||||
.album-item:hover { background: rgba(255,255,255,0.08); }
|
.album-item:hover { background: rgba(255,255,255,0.08); }
|
||||||
.album-item.selected { background: rgba(99,102,241,0.15); border-color: #6366f1; }
|
.album-item.selected { background: rgba(99,102,241,0.15); border-color: #6366f1; }
|
||||||
.album-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.06); }
|
.album-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,0.06); }
|
||||||
.album-info { flex: 1; }
|
.album-info { flex: 1; min-width: 0; }
|
||||||
.album-name { font-size: 1rem; font-weight: 500; }
|
.album-name { font-size: 1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.album-count { font-size: 0.8rem; color: #888; margin-top: 2px; }
|
.album-count { font-size: 0.8rem; color: #888; margin-top: 2px; }
|
||||||
.album-shared-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; background: rgba(99,102,241,0.25); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.04em; }
|
.album-shared-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; background: rgba(99,102,241,0.25); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.04em; }
|
||||||
|
.setup-error { padding: 0 2rem; }
|
||||||
|
.error-box { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 8px; padding: 1rem; color: #fca5a5; }
|
||||||
|
.loading-text { color: #555; font-size: 0.9rem; text-align: center; padding: 2rem; }
|
||||||
.setup-footer { padding: 1rem 2rem 1.5rem; flex-shrink: 0; }
|
.setup-footer { padding: 1rem 2rem 1.5rem; flex-shrink: 0; }
|
||||||
.btn-start { width: 100%; padding: 0.9rem; background: #6366f1; border: none; border-radius: 10px; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
|
.btn-start { width: 100%; padding: 0.9rem; background: #6366f1; border: none; border-radius: 10px; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
|
||||||
.btn-start:hover:not(:disabled) { background: #4f46e5; }
|
.btn-start:hover:not(:disabled) { background: #4f46e5; }
|
||||||
.btn-start:disabled { opacity: 0.5; cursor: not-allowed; }
|
.btn-start:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||||
.setup-error { display: none; padding: 1rem; }
|
|
||||||
.error-box { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 8px; padding: 1rem; color: #fca5a5; }
|
|
||||||
.loading-text { color: #555; font-size: 0.9rem; text-align: center; padding: 2rem; }
|
|
||||||
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
|
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
|
||||||
@keyframes spin { to { transform: rotate(360deg); } }
|
|
||||||
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
|
/* === SLIDESHOW SCREEN === */
|
||||||
.slideshow-screen { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
|
.slideshow-screen { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
|
||||||
#pile-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
|
#pile-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
|
||||||
.bg-blur { position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; background-size: cover; background-position: center; filter: blur(20px) brightness(0.4) saturate(0.8); opacity: 0; transition: opacity 1.5s ease; }
|
.bg-blur { position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; background-size: cover; background-position: center; filter: blur(20px) brightness(0.35) saturate(0.8); opacity: 0; transition: opacity 1.5s ease; }
|
||||||
.bg-blur.visible { opacity: 1; }
|
.bg-blur.visible { opacity: 1; }
|
||||||
.main-frame-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
|
.main-frame-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; pointer-events: none; }
|
||||||
.main-frame { background: #ede8df; padding: 12px 12px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.8s ease; }
|
.main-frame { background: #ede8df; padding: 12px 12px 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.8s ease; animation: floatFrame 6s ease-in-out infinite; }
|
||||||
.main-frame.visible { opacity: 1; }
|
.main-frame.visible { opacity: 1; }
|
||||||
#main-photo { display: block; max-width: 80vw; max-height: 80vh; width: auto; height: auto; }
|
#main-photo { display: block; max-width: 80vw; max-height: 75vh; width: auto; height: auto; }
|
||||||
#main-video { display: none; max-width: 80vw; max-height: 80vh; width: auto; height: auto; }
|
#main-video { display: none; max-width: 80vw; max-height: 75vh; width: auto; height: auto; }
|
||||||
|
.touch-zones { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; }
|
||||||
|
.touch-zones > div { flex: 1; cursor: pointer; }
|
||||||
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.4s; }
|
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.4s; }
|
||||||
.overlay.hidden { opacity: 0; }
|
.overlay.hidden { opacity: 0; }
|
||||||
.clock { position: absolute; top: 1.5rem; right: 2rem; font-size: 3rem; font-weight: 200; color: rgba(255,255,255,0.9); text-shadow: 0 2px 8px rgba(0,0,0,0.5); letter-spacing: -0.02em; pointer-events: none; }
|
.clock { position: absolute; top: 1.5rem; right: 2rem; font-size: 3rem; font-weight: 200; color: rgba(255,255,255,0.9); text-shadow: 0 2px 8px rgba(0,0,0,0.5); letter-spacing: -0.02em; }
|
||||||
.date-display { position: absolute; top: 6rem; right: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.5); pointer-events: none; text-align: right; }
|
.date-display { position: absolute; top: 6rem; right: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.5); text-align: right; }
|
||||||
.exif-info { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: rgba(255,255,255,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.6); white-space: nowrap; pointer-events: none; }
|
.exif-info { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: rgba(255,255,255,0.6); text-shadow: 0 1px 4px rgba(0,0,0,0.6); white-space: nowrap; }
|
||||||
.progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.1); }
|
.progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.1); }
|
||||||
.progress-fill { height: 100%; width: 0%; background: rgba(255,255,255,0.4); }
|
.progress-fill { height: 100%; width: 0%; background: rgba(255,255,255,0.4); }
|
||||||
.btn-settings { position: absolute; bottom: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; width: 44px; height: 44px; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; pointer-events: all; }
|
.btn-settings { position: absolute; bottom: 1.5rem; right: 1.5rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: 44px; height: 44px; color: rgba(255,255,255,0.8); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; pointer-events: all; }
|
||||||
.btn-settings.visible { opacity: 1; }
|
.btn-settings.visible { opacity: 1; }
|
||||||
.controls-hint { position: absolute; bottom: 1.5rem; left: 1.5rem; display: flex; gap: 0.5rem; pointer-events: all; }
|
|
||||||
.ctrl-btn { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 0.4rem 0.8rem; color: rgba(255,255,255,0.7); font-size: 0.8rem; cursor: pointer; }
|
@keyframes spin { to { transform: rotate(360deg); } }
|
||||||
.ctrl-btn:hover { background: rgba(0,0,0,0.6); color: #fff; }
|
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
|
||||||
|
@keyframes floatFrame { 0%, 100% { transform: translateY(0px) rotate(-0.3deg); } 50% { transform: translateY(-8px) rotate(0.3deg); } }
|
||||||
|
|||||||
Reference in New Issue
Block a user