Files
photo-server/public/styles.css
josedario87 4c729866aa
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 27s
Configurar despliegue con Docker, Traefik y Authentik
- Agregar Dockerfile para build multi-stage con Node 20
- Configurar docker-compose.yml con Traefik y Authentik exteriorlvl2
- Crear workflow de Gitea Actions para CI/CD automático
- Configurar routers público (assets) y protegido (app + APIs)
- Documentar arquitectura y proceso de despliegue
2025-10-27 12:00:05 -06:00

91 lines
4.9 KiB
CSS

:root {
--bg: #0f1115;
--panel: #181b22;
--text: #e8eaf0;
--muted: #9aa3b2;
--accent: #56b6c2;
--border: #2a2f3a;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.app { display: flex; flex-direction: column; height: 100%; }
.topbar {
min-height: 56px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
border-bottom: 1px solid var(--border);
background: #12151b;
}
.brand { font-weight: 600; letter-spacing: 0.2px; }
.actions { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--text); }
.btn input[type=file] { display: none; }
.hint { color: var(--muted); font-size: 12px; }
.content { display: grid; grid-template-columns: 1fr 320px; flex: 1 1 auto; min-height: 0; }
.viewer { position: relative; height: 100%; border-right: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: #0d0f14; overflow: hidden; }
.viewer.over { outline: 2px dashed var(--accent); outline-offset: -8px; }
.placeholder { color: var(--muted); text-align: center; }
.dropmsg { opacity: 0.8; }
.stage { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.img-wrap { user-select: none; cursor: grab; }
.img-wrap.grabbing { cursor: grabbing; }
.photo { max-width: 95vw; max-height: 95vh; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.nav { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.nav-btn { pointer-events: auto; margin: 0 8px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.nav-btn:hover { background: rgba(0,0,0,0.5); }
.nav .left { }
.nav .right { }
.counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.info-header { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); padding: 6px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap; z-index: 3; }
.tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.tools { z-index: 3; }
.tool-btn { background: rgba(0,0,0,0.5); border: 1px solid var(--border); color: var(--text); padding: 6px 8px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.tool-btn:hover { background: rgba(0,0,0,0.65); }
.side { background: var(--panel); height: 100%; overflow: auto; }
.panel { padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.04); }
.row:last-child { border-bottom: none; }
.key { color: var(--muted); min-width: 84px; }
.name-input { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border); background: #11151c; color: var(--text); }
.small-muted { color: var(--muted); font-size: 12px; }
.ok { color: #8bd17c; }
.warn { color: #f0c674; }
.val a { color: var(--accent); text-decoration: none; }
.val a:hover { text-decoration: underline; }
.sep { height: 12px; }
.muted { color: var(--muted); }
.error .val { color: #ff6b6b; }
/* Tree */
.tree { max-height: 35vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: #12161d; }
.node { padding: 4px 4px; cursor: default; user-select: none; }
.node.file { cursor: pointer; display: flex; align-items: center; gap: 8px; border-radius: 6px; padding: 4px 6px; }
.node.file:hover { background: rgba(255,255,255,0.04); }
.node.file.active { background: rgba(86, 182, 194, 0.15); }
.dir-row { display: flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 6px; padding: 4px 6px; }
.dir-row:hover { background: rgba(255,255,255,0.04); }
.children { padding-left: 16px; }
.caret { width: 14px; display: inline-block; color: var(--muted); }
.dot { color: var(--muted); width: 10px; display: inline-block; text-align: center; }
.label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 900px) {
.content { grid-template-columns: 1fr; }
.side { border-top: 1px solid var(--border); }
}
/* Filters */
.filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; gap: 8px; align-items: center; background: #12161b; border: 1px solid var(--border); padding: 6px 8px; border-radius: 8px; }
.filter-group label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; }
.filter-group input[type=checkbox] { margin: 0; }