Refactor and optimize settings.html styles
This commit is contained in:
176
settings.html
176
settings.html
@@ -4,104 +4,140 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Einstellungen</title>
|
<title>Einstellungen</title>
|
||||||
<style>
|
<style>
|
||||||
|
/* Grund-Reset */
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
html, body {
|
html, body {
|
||||||
margin: 0; padding: 0; width: 100%; height: 100%;
|
width: 100%; height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex; align-items: center; justify-content: center;
|
font-family: 'Inter', sans-serif;
|
||||||
font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
|
display: flex;
|
||||||
background: linear-gradient(120deg, #8ecae6 0%, #fff 100%);
|
justify-content: center;
|
||||||
/* SkyMode default */
|
align-items: center;
|
||||||
transition: background 0.6s;
|
transition: background 0.5s ease;
|
||||||
}
|
}
|
||||||
|
/* Sky-Mode Hintergrund */
|
||||||
|
body.sky {
|
||||||
|
background: linear-gradient(120deg, #8ecae6 0%, #38bdf8 70%, #fff 100%);
|
||||||
|
}
|
||||||
|
/* Night-Mode (rosa) */
|
||||||
body.night {
|
body.night {
|
||||||
background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 100%);
|
background: linear-gradient(120deg, #fbc2eb 0%, #a6c1ee 70%, #fff 100%);
|
||||||
}
|
}
|
||||||
|
/* Wolken-Overlay */
|
||||||
.clouds {
|
.clouds {
|
||||||
position: absolute; top: 0; left: 0; width: 100vw; height: 100vh;
|
position: absolute; top: 0; left: 0;
|
||||||
pointer-events: none; z-index: 0; opacity: 0.35;
|
width: 100vw; height: 100vh;
|
||||||
background: url('data:image/svg+xml;utf8,<svg width="400" height="200" viewBox="0 0 400 200" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="60" cy="90" rx="55" ry="32" fill="%23fff"/><ellipse cx="120" cy="110" rx="55" ry="30" fill="%23fff"/><ellipse cx="170" cy="90" rx="50" ry="25" fill="%23fff"/></svg>');
|
pointer-events: none;
|
||||||
background-repeat: repeat-x;
|
background: url('data:image/svg+xml;utf8,<svg width="200" height="100" xmlns="http://www.w3.org/2000/svg"><ellipse cx="50" cy="50" rx="50" ry="30" fill="%23ffffff88"/><ellipse cx="120" cy="60" rx="50" ry="25" fill="%23ffffff88"/></svg>') repeat-x;
|
||||||
animation: cloudmove 60s linear infinite;
|
opacity: 0.3;
|
||||||
|
animation: cloudMove 80s linear infinite;
|
||||||
}
|
}
|
||||||
@keyframes cloudmove {
|
@keyframes cloudMove {
|
||||||
from { background-position-x: 0; }
|
from { background-position-x: 0; }
|
||||||
to { background-position-x: -400px; }
|
to { background-position-x: -200px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dialog-Box */
|
||||||
.dialog {
|
.dialog {
|
||||||
position: relative; z-index: 1;
|
position: relative;
|
||||||
border-radius: 24px;
|
z-index: 10;
|
||||||
padding: 2.2rem 2.5rem 1.5rem 2.5rem;
|
width: 420px;
|
||||||
min-width: 380px;
|
background: rgba(255,255,255,0.93);
|
||||||
max-width: 430px;
|
backdrop-filter: blur(8px);
|
||||||
box-shadow: 0 8px 42px rgba(60, 80, 160, 0.16), 0 2px 8px #fff3;
|
border-radius: 20px;
|
||||||
background: rgba(255,255,255,0.96);
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
||||||
backdrop-filter: blur(2px);
|
padding: 1.8rem 2.2rem;
|
||||||
border: none;
|
display: flex; flex-direction: column; gap: 1.2rem;
|
||||||
display: flex; flex-direction: column;
|
|
||||||
gap: 1.2rem;
|
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
display: flex; justify-content: space-between; align-items: center;
|
display: flex; align-items: center; justify-content: space-between;
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
}
|
||||||
.header h1 {
|
.header h1 {
|
||||||
font-size: 2rem; margin: 0;
|
font-size: 1.9rem;
|
||||||
font-weight: 900; letter-spacing: -1px;
|
font-weight: 800;
|
||||||
text-shadow: 0 3px 18px #9be5fc7a;
|
color: #1e293b;
|
||||||
}
|
}
|
||||||
.close-btn {
|
.close-btn {
|
||||||
background: transparent; border: none; font-size: 2rem;
|
background: none; border: none;
|
||||||
color: #db2777; cursor: pointer; font-weight: 400;
|
font-size: 1.6rem; cursor: pointer;
|
||||||
|
color: #64748b;
|
||||||
transition: color 0.2s;
|
transition: color 0.2s;
|
||||||
}
|
}
|
||||||
.close-btn:hover { color: #0284c7; }
|
.close-btn:hover { color: #0f172a; }
|
||||||
.options { display: flex; flex-direction: column; gap: 1.2rem; }
|
|
||||||
label.option, .dropdown-label {
|
/* Optionen */
|
||||||
font-size: 1.17rem;
|
.options { display: flex; flex-direction: column; gap: 1.0rem; }
|
||||||
font-weight: 600;
|
label {
|
||||||
display: flex; align-items: center; gap: 0.8em;
|
display: flex; align-items: center; font-size: 1.05rem;
|
||||||
|
color: #1e293b;
|
||||||
}
|
}
|
||||||
input[type="checkbox"] {
|
label.option input {
|
||||||
|
margin-right: 0.8rem;
|
||||||
|
width: 1.3em; height: 1.3em;
|
||||||
accent-color: #38bdf8;
|
accent-color: #38bdf8;
|
||||||
width: 1.35em; height: 1.35em;
|
|
||||||
border-radius: 5px; margin-right: 0.7em;
|
|
||||||
box-shadow: 0 0 2px #0ea5e9;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
input[type="number"], select {
|
.row {
|
||||||
border: 1.5px solid #bae6fd;
|
display: flex; align-items: center; justify-content: space-between;
|
||||||
border-radius: 8px;
|
|
||||||
padding: 0.4em 0.8em; margin-left: 0.6em; font-size: 1.07em;
|
|
||||||
background: #f0faff; color: #334155; font-weight: 500;
|
|
||||||
transition: box-shadow 0.2s;
|
|
||||||
}
|
}
|
||||||
input[type="number"]:focus, select:focus {
|
.row > span {
|
||||||
|
flex: 1;
|
||||||
|
color: #1e293b;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.row > input,
|
||||||
|
.row > select {
|
||||||
|
flex: 1;
|
||||||
|
margin-left: 0.8rem;
|
||||||
|
padding: 0.4em 0.6em;
|
||||||
|
border: 1.2px solid #cbd5e1;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #334155;
|
||||||
|
background: #f8fafc;
|
||||||
|
transition: border-color 0.2s, box-shadow 0.2s;
|
||||||
|
}
|
||||||
|
.row > input:focus,
|
||||||
|
.row > select:focus {
|
||||||
|
border-color: #38bdf8;
|
||||||
|
box-shadow: 0 0 0 2px rgba(56,189,248,0.3);
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: 0 0 0 2px #7dd3fc;
|
|
||||||
}
|
}
|
||||||
.buttons { display: flex; justify-content: flex-end; gap: 1.5em; margin-top: 2em;}
|
|
||||||
button {
|
/* Buttons */
|
||||||
padding: 0.5em 1.6em;
|
.buttons {
|
||||||
font-size: 1.1em;
|
display: flex; justify-content: flex-end; gap: 1rem;
|
||||||
font-weight: 700;
|
margin-top: 1.4rem;
|
||||||
border-radius: 8px;
|
}
|
||||||
border: none;
|
button.action {
|
||||||
background: linear-gradient(93deg, #38bdf8 10%, #f472b6 90%);
|
padding: 0.5em 1.3em;
|
||||||
color: #fff;
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
border: none; border-radius: 6px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 2px 8px #bae6fd50;
|
transition: background 0.2s;
|
||||||
transition: background 0.2s, box-shadow 0.2s;
|
|
||||||
}
|
}
|
||||||
button:hover { background: linear-gradient(90deg, #0ea5e9, #db2777);}
|
#cancelBtn {
|
||||||
button#cancelBtn {
|
background: #e2e8f0;
|
||||||
background: #e0e7ef;
|
color: #475569;
|
||||||
color: #64748b;
|
|
||||||
font-weight: 500;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
}
|
||||||
button#cancelBtn:hover { background: #cbd5e1; color: #000; }
|
#cancelBtn:hover {
|
||||||
|
background: #cbd5e1;
|
||||||
|
color: #1e293b;
|
||||||
|
}
|
||||||
|
#okBtn {
|
||||||
|
background: #38bdf8;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
#okBtn:hover {
|
||||||
|
background: #0ea5e9;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Infotext */
|
||||||
.ollama-info {
|
.ollama-info {
|
||||||
margin-top: 1.2em; color: #dc2626; font-weight: bold; text-align: center;
|
font-size: 0.95rem;
|
||||||
|
color: #dc2626;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 0.8rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user