style engine updated

This commit is contained in:
2026-04-23 09:07:52 +02:00
parent 573cc5dc74
commit cba94f6e75
5 changed files with 208 additions and 48 deletions

View File

@@ -8,7 +8,7 @@
.selectable { user-select: text !important; cursor: var(--theme-cursor-pointer) 0 16, pointer; }
input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], textarea, select { border-width:2px; border-style:solid; font-size: var(--fontSize); font-family: var(--fontFamily); border-radius:10px; padding:10px 12px; outline:none; transition:all .5s ease; width:auto; }
input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], textarea, select { border-width:2px; border-style:solid; font-size: var(--fontSize); font-family: var(--fontFamily); border-radius:10px; padding:10px 12px; outline:none; transition:all var(--times-transition-colors) ease; width:auto; }
input.width\:100px { width:100px; }
input.width\:90px { width:90px; }
input.width\:75px { width:75px; }
@@ -18,7 +18,7 @@ input.width\:25px { width:25px; }
*::placeholder, input[id="sAMAccountName"] { font-style:italic; font-weight:100; letter-spacing:3px; }
html, button { font-size: var(--fontSize); font-family: var(--fontFamily); }
button.monolyth, button.bluebutton, button.greenbutton, button.yellowbutton, button.redbutton { display:inline-block; padding:8px 10px; margin:0.2rem 1.6rem; font-weight:600; text-align:center; text-decoration:none; color:rgb(255, 255, 255); border:none; border-radius:8px; box-shadow:0 4px 6px rgba(0,0,0,0.1); transition:all 0.2s ease; }
button.monolyth, button.bluebutton, button.greenbutton, button.yellowbutton, button.redbutton { display:inline-block; padding:8px 10px; margin:0.2rem 1.6rem; font-weight:600; text-align:center; text-decoration:none; color:rgb(255, 255, 255); border:none; border-radius:8px; box-shadow:0 4px 6px rgba(0,0,0,0.1); transition:all var(--times-transition-colors) ease; }
button.monolyth { background-color:transparent; }
button:not(:disabled).monolyth:hover { opacity:0.9; }
button.bluebutton { color:var(--theme-button-blue-default-color); background:var(--theme-button-blue-default-backcolor); }
@@ -49,13 +49,13 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
/* #region Copy icon */
.copy-icon { transition:opacity .25s; cursor:var(--theme-cursor-pointer) -16 16, pointer; opacity:0.7; }
.copy-icon { transition:opacity var(--times-transition-opaticty); cursor:var(--theme-cursor-pointer) -16 16, pointer; opacity:0.7; }
.copy-icon:hover { opacity:1; }
/* #endregion */
/* #region Tooltip */
.global-tooltip { position:fixed; padding:6px 8px; border-width:1px; border-style:solid; border-radius:10px; max-width:50vw; white-space:normal; z-index:999; pointer-events:none; opacity:0; transform:translateY(-30px); transition:opacity .12s ease; }
.global-tooltip { position:fixed; padding:6px 8px; border-width:1px; border-style:solid; border-radius:10px; max-width:50vw; white-space:normal; z-index:999; pointer-events:none; opacity:0; transform:translateY(-30px); transition:opacity var(--times-transition-opaticty) ease; }
.global-tooltip.visible { opacity:1; }
/* #endregion*/
@@ -70,7 +70,7 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
/* #region Messagebox */
#message-container { position: fixed; top: 1rem; right: 1px; display: flex; flex-direction: column; gap: 0.5rem; z-index: 1000; max-height: 80vh; padding-left: 15px; overflow-y: auto; overflow-x: visible; scrollbar-width: none; -ms-overflow-style: none; }
#message-container::-webkit-scrollbar { display: none; }
.message { border-radius: 8px; margin: 8px 8px 8px 0; padding: 10px 14px; width: auto; max-width: 45vw; animation: slideIn 0.4s ease-out; transition: transform 0.2s ease; word-break: break-word; overflow-wrap: anywhere; }
.message { border-radius: 8px; margin: 8px 8px 8px 0; padding: 10px 14px; width: auto; max-width: 45vw; animation: slideIn 0.4s ease-out; transition: transform var(--times-transition-transform) ease; word-break: break-word; overflow-wrap: anywhere; }
.message:hover { transform:scale(1.02); }
.message-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.message-title { flex:1; font-weight:600; }
@@ -93,7 +93,96 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
<span class="cb-label">Ein / Aus</span>
</label>
*/
.cb-switch { --w:45px; --h:27px; display:inline-flex; align-items:center; }
.cb-switch {
--w: var(--responsive-switch-width);
--h: var(--responsive-switch-height);
display: inline-flex;
align-items: center;
flex-shrink: 0;
gap: 8px;
}
/* Input verstecken */
.cb-switch input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
pointer-events: none;
}
/* TRACK */
.switch-track {
width: var(--w);
height: var(--h);
border-radius: 999px;
padding: 3px;
border: 1px solid;
box-sizing: border-box;
display: flex;
align-items: center;
position: relative;
flex-shrink: 0;
transition: background var(--times-transition-colors) ease, border-color var(--times-transition-colors) ease;
}
/* THUMB */
.switch-thumb {
position: absolute;
top: 50%;
left: 3px;
width: calc(var(--h) - 6px);
height: calc(var(--h) - 6px);
background: var(--theme-switch-thumb);
border-radius: 50%;
box-shadow: 0 2px 6px rgba(0,0,0,.15);
transform: translateY(-50%);
transition: left var(--times-transition-transform) cubic-bezier(.2,.9,.2,1), background var(--times-transition-colors) ease;
}
/* CHECKED STATE */
.cb-switch input:checked + .switch-track {
background: var(--theme-switch-active);
}
.cb-switch input:checked + .switch-track .switch-thumb {
left: calc(var(--w) - var(--h) + 3px);
}
/* HOVER */
.cb-switch input:not(:disabled):hover + .switch-track {
border-color: var(--theme-switch-hover);
}
/* FOCUS */
.cb-switch input:focus-visible + .switch-track {
box-shadow: 0 0 0 6px rgba(6, 193, 103, 0.12);
}
/* DISABLED */
.cb-switch input:disabled + .switch-track {
background-color: dimgray;
opacity: 0.6;
}
.cb-switch input:disabled + .switch-track .switch-thumb {
background-color: rgb(54, 50, 50);
}
/* optional label spacing */
.cb-switch label {
cursor: pointer;
}
/* .cb-switch { --w:45px; --h:27px; display:inline-flex; align-items:center; }
.cb-switch input { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.switch-track { width:var(--w); height:var(--h); border-radius:999px; padding:3px; border-width:1px; border-style:solid; box-sizing:border-box; display:inline-flex; align-items:center; transition:background .18s ease, transform .12s ease, border-color .25s ease; }
.switch-thumb { min-width:calc(var(--h) - 2 * 3px); width:calc(var(--h) - 2 * 3px); height:calc(var(--h) - 2 * 3px); background:var(--theme-switch-thumb); border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,.15); transform:translateX(-1px); transition:transform .25s cubic-bezier(.2,.9,.2,1), background .18s ease }
@@ -109,7 +198,7 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
.cb-switch input:focus-visible + .switch-track { box-shadow:0 0 0 6px rgba(6,193,103,0.12); }
.cb-switch input:checked + .switch-track .switch-thumb { transform:translateX(calc(var(--w) - var(--h))); }
.cb-switch label { width: calc(100% - var(--w)); }
.cb-switch label { width: calc(100% - var(--w)); } */
/* #endregion */
@@ -122,8 +211,8 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
*/
.cb { display:inline-flex; align-items:center; gap:10px; user-select:none; transform:translateY(2px); }
.cb input { position:absolute; opacity:0; width:0; height:0; pointer-events:none; }
.cb-box { width:20px; height:20px; border-radius:6px; background:var(--theme-checkbox-backcolor); border-width:2px; border-style:solid; display:inline-grid; place-items:center; transition:transform .12s ease, border-color .12s ease, background .12s ease; }
.cb-box::after { content:""; width:12px; height:8px; transform:scale(0) translateY(-2px); background-repeat:no-repeat; background-position:center; background-size:contain; background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7l7-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition:transform .18s cubic-bezier(.2,.9,.2,1); }
.cb-box { width:20px; height:20px; border-radius:6px; background:var(--theme-checkbox-backcolor); border-width:2px; border-style:solid; display:inline-grid; place-items:center; transition:transform var(--times-transition-transform) ease, border-color var(--times-transition-colors) ease, background var(--times-transition-colors) ease; }
.cb-box::after { content:""; width:12px; height:8px; transform:scale(0) translateY(-2px); background-repeat:no-repeat; background-position:center; background-size:contain; background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7l7-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition:transform var(--times-transition-transform) cubic-bezier(.2,.9,.2,1); }
.cb input:checked + .cb-box { transform:translateY(-1px); }
.cb input:checked + .cb-box::after { transform:scale(1) translate(-1px, 1px); }
table .cb input:checked + .cb-box::after { transform:scale(1) translate(1px, 1px); }
@@ -158,7 +247,7 @@ table .cb input:checked + .cb-box::after { transform:scale(1) translate(1px, 1px
border-radius:4px;
border:1px solid #ccc;
background:#f5f5f5;
transition:all 0.15s;
transition: color var(--times-transition-colors) ease, background var(--times-transition-colors) ease, border-color var(--times-transition-colors) ease;
}
.feedbox-btn:hover {