1
0

auto-git:

[change] index.html
This commit is contained in:
2025-06-02 23:25:10 +02:00
parent c8b3c10f8f
commit 8f6d8f2e51

View File

@@ -5,327 +5,207 @@
<title>auto-git</title> <title>auto-git</title>
<script src="https://cdn.tailwindcss.com"></script> <script src="https://cdn.tailwindcss.com"></script>
<style> <style>
:root { :root {
--bg-main: #fff; /* Default-Modus: Weißes Panel mit Rosa-Akzenten */
--bg-sidebar: #fff1f2; --bg-main: #fff; /* Hintergrund Content */
--accent: #9f1239; --bg-sidebar: #fff1f2; /* Sidebar */
--border: #ffe4e6; --accent: #9f1239; /* Rosa */
} --border: #ffe4e6;
}
body.sky-mode {
/* Sky-Mode: Himmelshintergrund und passende Akzente */
--bg-main: rgb(173,216,230); /* sanftes Baby-Blau */
--bg-sidebar: rgb(200,220,240); /* etwas dunkleres Blau */
--accent: rgb(20,60,100); /* dunkles Marine-Blau als Akzent */
--border: rgb(180,200,220);
}
body { body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0; overflow: hidden;
background: var(--bg-main); }
color: #23262f;
}
.container { /* Außenschale für den Diff: overflow + max-height */
max-width: 850px; .diff-container {
margin: 3em auto; max-height: 0;
background: var(--bg-main); overflow: hidden;
padding: 2em 2em 2.5em 2em; transition: max-height 0.3s ease;
border-radius: 18px; background-color: #f3f4f6;
box-shadow: 0 6px 36px rgba(159,18,57,0.09), 0 2px 8px rgba(159,18,57,0.04); }
border: 1.5px solid var(--border);
}
h2 { /* Pfeil-Icon: 90°-Rotation */
margin: 0 0 1.2em 0; .rotate {
font-size: 2.1em; transition: transform 0.3s ease;
font-weight: 700; }
color: var(--accent); .rotate.open {
letter-spacing: -0.5px; transform: rotate(90deg);
} }
.section { /* Diff-Zeilen hervorheben */
margin-bottom: 2.2em; .diff-line {
} white-space: pre-wrap;
font-family: monospace;
}
.diff-line.addition {
background-color: #dafbe1; /* GitHub-grün */
}
.diff-line.deletion {
background-color: #ffeef0; /* GitHub-rot */
}
/* Deaktivierter Button */
.disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* verhindert den Hover-Effekt, wenn disabled */
button.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
button.disabled:hover {
background-color: transparent;
}
input[type="text"] { @keyframes glow {
width: 68%; 0%, 100% { box-shadow: 0 0 4px gold; }
font-size: 1.07em; 50% { box-shadow: 0 0 12px gold; }
padding: 0.7em 1.2em; }
border: 2px solid var(--border);
border-radius: 7px;
background: #fff6fa;
transition: border 0.2s;
color: #681128;
}
input[type="text"]:focus {
outline: none;
border-color: var(--accent);
background: #fff9fc;
}
button { /* Klasse für den aktuellen Commit */
font-size: 1.05em; .current-commit {
font-weight: 500; animation: glow 4s infinite ease-in-out;
padding: 0.6em 1.6em; /* stell sicher, dass Du überhaupt eine sichtbare Border hast: */
margin-left: 1em; border-width: 1px !important;
background: var(--accent); border-style: solid !important;
color: #fff; border-color: gold !important;
border: none; }
border-radius: 8px; .needs-relocation {
cursor: pointer; opacity: 0.5;
box-shadow: 0 1.5px 6px rgba(159,18,57,0.09); filter: grayscale(1);
transition: background 0.18s, box-shadow 0.15s; pointer-events: auto !important; /* Damit Buttons weiter gehen */
} }
button:disabled { .relocation-warning-symbol {
background: #ffd5de; color: #e11d48;
color: #fff; font-weight: bold;
cursor: not-allowed; font-size: 1.2em;
} margin-right: 2px;
display: flex;
align-items: center;
justify-content: center;
}
.spinner { #currentTitle {
display: none; /* erlauben, dass der Text umbricht */
margin-left: 1em; white-space: normal;
font-size: 1em; word-break: break-all; /* bricht auch mitten in langen Wörtern */
color: var(--accent); overflow-wrap: anywhere; /* bricht an Notfällen wie '/' */
} /* keine Ellipse mehr */
.spinner.active { overflow: visible;
display: inline-block; /* falls der Parent eine horizontale Scrollbar bekommt, wird sie nicht vom Titel verursacht */
} }
label { /* Sicherstellen, dass der Content-Bereich nicht horizontal scrollt */
font-weight: 600; .flex-1.p-4.overflow-y-auto {
color: #7b1930; overflow-x: hidden;
margin-bottom: 0.5em; }
display: block;
font-size: 1.02em;
}
#moreBtn { /* generelle List-Items in der Sidebar */
display: none; aside ul#folderList li {
margin-top: 1em; background: transparent; /* kein festes Rosa mehr */
} color: var(--accent); /* Text- und Icon-Farbe */
border-radius: 0.375rem; /* gleiche r-Klasse wie before */
transition: background 0.2s ease;
}
/* Gallery: immer 4 pro Zeile, responsive */ /* Hover-Effekt */
.images, aside ul#folderList li:hover,
.models { aside ul#folderList li.selected {
display: grid; background: var(--border); /* statt hover:bg-[#fecdd3] */
grid-template-columns: repeat(4, 1fr); }
gap: 16px;
margin-top: 1.4em;
}
@media (max-width: 1100px) {
.images, .models { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
.images, .models { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
.images, .models { grid-template-columns: 1fr; }
}
.images img,
.model-thumb {
width: 100%;
aspect-ratio: 1/1;
object-fit: cover;
border: 2px solid var(--border);
border-radius: 11px;
cursor: pointer;
background: var(--bg-sidebar);
transition: box-shadow 0.18s, border-color 0.14s;
}
.images img:hover,
.model-thumb:hover {
box-shadow: 0 0 0 3px #fda4af65;
border-color: var(--accent);
}
.model-thumb {
display: flex;
align-items: center;
justify-content: center;
}
/* Context menu */ /* Icon und Text separat noch sicher auf var(--accent) setzen */
#ctxMenu { aside ul#folderList li svg,
position: absolute; aside ul#folderList li span {
z-index: 5000; color: var(--accent) !important;
background: #fff; }
border: 1.5px solid var(--border);
border-radius: 8px;
box-shadow: 0 4px 24px rgba(159,18,57,0.10);
display: none;
min-width: 164px;
font-size: 1em;
overflow: hidden;
}
#ctxMenu div {
padding: 0.77em 1.21em;
cursor: pointer;
transition: background 0.13s;
}
#ctxMenu div:hover {
background: #fff1f2;
color: var(--accent);
}
/* LLM & JSON Output Boxes */ .diff-container {
.section:has(#llm_out:empty) { position: relative;
display: none !important; }
} .copy-diff-btn {
#llm_out { all: unset !important;
background: #fff1f2; position: absolute !important;
padding: 1em 1.1em; top: 0.25rem !important; /* knapp unter dem Container-Rand */
border: 1.7px solid var(--border); right: 0.25rem !important;
border-radius: 7px; padding: 0.25rem !important;
max-height: 220px; border-radius: 0.25rem !important;
overflow-y: auto; cursor: pointer !important;
white-space: pre-wrap; background: transparent !important;
word-wrap: break-word; }
font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', monospace; .copy-diff-btn:hover {
font-size: 1em; background: transparent !important;
margin-bottom: 1.1em; }
margin-top: 0.2em; /* Entferne ggf. globales pre-Top-Padding */
color: #7b1930; .diff-container pre {
} padding-top: 0 !important;
}
#json_out { .sidebar, .interaction-bar, .content-area button {
background: #fff1f2; -webkit-user-select: none;
padding: 1em 1.1em; user-select: none;
border: 1.7px solid var(--border); }
border-radius: 7px; .content-area ul#contentList li {
width: 100%; word-break: break-all;
height: 220px; overflow-wrap: anywhere;
resize: none; }
font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', monospace; #folderHierarchyDropdown.open {
font-size: 1em; display: block;
margin: 0 auto 1.2em; }
box-sizing: border-box; #folderTitleArrow.open {
color: #681128; transform: rotate(90deg);
} }
.interaction-bar {
min-height: 3.5rem; /* = h-16 (56px, wie jetzt schon) */
padding-top: 0 !important;
padding-bottom: 0 !important;
font-size: 0.95rem;
}
/* Tabs */ .interaction-bar .flex {
.tabs { line-height: 1.2; /* wenig Zeilenabstand */
display: flex; height: 100%; /* volle Höhe ausnutzen, vertikal zentrieren */
gap: 1.4em; margin-left: 90px;
margin-bottom: 1.4em; }
}
.tab {
background: #fff1f2;
border: none;
padding: 0.72em 2.2em;
cursor: pointer;
border-radius: 8px 8px 0 0;
font-weight: 600;
font-size: 1.11em;
color: #b91c3a;
transition: background 0.13s, color 0.11s;
}
.tab.active {
background: #fff;
color: var(--accent);
border-bottom: 2.5px solid var(--accent);
z-index: 1;
}
/* Lightbox & Overlays – identisch für Bilder & 3D! */ .interaction-bar span {
#lightboxOverlay, font-size: inherit !important; /* gleiche Größe wie restlicher Text */
#lightbox3DOverlay { font-weight: 800;
display: none; }
position: fixed;
z-index: 3000;
top: 0; left: 0; width: 100vw; height: 100vh;
background: rgba(255, 17, 62, 0.84); /* leichter Rot-Ton im Overlay */
justify-content: center;
align-items: center;
transition: background 0.18s;
}
#lightboxContent, .interaction-bar div > div {
#lightbox3DContent { margin-bottom: 0.1em; /* nur minimal Abstand */
position: relative; }
max-width: 96vw; .interaction-bar div > div:last-child {
max-height: 96vh; margin-bottom: 0;
margin: auto; }
display: flex; .commits-glow {
flex-direction: column; text-shadow:
align-items: center; 1px 1px 2px rgba(0,0,0,0.25),
} 0px 1px 1px color-mix(in srgb, currentColor 40%, black);
}
#lightboxImg { .paw-queued {
max-width: 92vw; position: absolute;
max-height: 87vh; top: 33px; /* so weit nach unten */
border-radius: 12px; right: 40px; /* nur ganz am Rand, feintune hier! */
background: #fff1f2; width: 2rem;
border: 2.5px solid var(--border); height: 2rem;
box-shadow: 0 5px 34px rgba(159,18,57,0.14); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.10));
display: block; pointer-events: none;
} z-index: 10;
}
/* X-Button – immer oben rechts */ }
#lightboxClose,
#lightbox3DClose {
position: fixed;
top: 24px;
right: 32px;
z-index: 3100;
background: none;
border: none;
color: var(--accent);
font-size: 2.3em;
font-weight: 500;
padding: 0;
cursor: pointer;
box-shadow: none;
line-height: 1;
transition: color 0.18s;
}
#lightboxClose:hover,
#lightbox3DClose:hover {
color: #fd4c77;
}
/* Pfeile – immer 10vw vom Rand, identisch in beiden Lightboxes */
#lightboxPrev,
#lightboxNext,
#lightbox3DPrev,
#lightbox3DNext {
position: fixed;
top: 50%;
transform: translateY(-50%);
z-index: 3100;
background: none;
border: none;
color: var(--accent);
font-size: 3em;
font-weight: 500;
padding: 0;
cursor: pointer;
box-shadow: none;
line-height: 1;
transition: color 0.17s;
pointer-events: auto;
user-select: none;
}
#lightboxPrev,
#lightbox3DPrev { left: 7vw; }
#lightboxNext,
#lightbox3DNext { right: 7vw; }
#lightboxPrev:hover,
#lightboxNext:hover,
#lightbox3DPrev:hover,
#lightbox3DNext:hover { color: #fd4c77; }
/* Klickbare Lightbox-Sides zum Navigieren */
.lightbox-nav-left,
.lightbox-nav-right {
position: fixed;
top: 0; bottom: 0;
width: 20vw;
z-index: 3099;
cursor: pointer;
}
.lightbox-nav-left { left: 0; }
.lightbox-nav-right { right: 0; }
@media (max-width: 1000px) {
.lightbox-nav-left, .lightbox-nav-right { width: 30vw; }
}
/* Remove ugly outlines */
button:focus { outline: none; }
textarea { resize: none !important; }
</style> </style>
</head> </head>
<body class="flex h-screen bg-white"> <body class="flex h-screen bg-white">