style engine updated
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
DEMO IS RUNNING:
|
||||||
|
https://demo.sowadanas.dynv6.net/
|
||||||
|
|
||||||
|
|
||||||
howto:
|
howto:
|
||||||
--> Watch out for names. Stylesheet and javascript names, will be used global!
|
--> Watch out for names. Stylesheet and javascript names, will be used global!
|
||||||
-----------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -42,42 +42,107 @@ function restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async function loadServerStyles(activeTheme = 'dark') {
|
||||||
async function loadServerStyles(theme = 'dark') {
|
|
||||||
const res = await fetch('models/stylesheet.json');
|
const res = await fetch('models/stylesheet.json');
|
||||||
const json = await res.json();
|
const json = await res.json();
|
||||||
|
|
||||||
function jsonToCssVars(obj, prefix = '') {
|
function toCssVars(obj, prefix = '', group = '') {
|
||||||
let vars = [];
|
let vars = [];
|
||||||
|
|
||||||
for (const key in obj) {
|
for (const key in obj) {
|
||||||
const value = obj[key];
|
const value = obj[key];
|
||||||
const newPrefix = prefix ? `${prefix}-${key}` : key;
|
const newPrefix = prefix ? `${prefix}-${key}` : key;
|
||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
if (value.length === 3) vars.push(`--theme-${newPrefix}: rgb(${value.join(', ')});`);
|
if (value.length === 3) {
|
||||||
else if (value.length === 4) vars.push(`--theme-${newPrefix}: rgba(${value.join(', ')});`);
|
vars.push(`--${group}-${newPrefix}: rgb(${value.join(', ')});`);
|
||||||
} else if (typeof value === 'object' && value !== null) {
|
} else if (value.length === 4) {
|
||||||
vars.push(jsonToCssVars(value, newPrefix));
|
vars.push(`--${group}-${newPrefix}: rgba(${value.join(', ')});`);
|
||||||
} else if (value !== '') {
|
|
||||||
vars.push(`--theme-${newPrefix}: ${value};`);
|
|
||||||
}
|
}
|
||||||
// console.log(vars.join('\n'))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (typeof value === 'object' && value !== null) {
|
||||||
|
vars.push(toCssVars(value, newPrefix, group));
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (value !== '') {
|
||||||
|
vars.push(`--${group}-${newPrefix}: ${value};`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return vars.join('\n');
|
return vars.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
const themeVars = json.theme[theme];
|
let css = '';
|
||||||
const css = `:root {\n${jsonToCssVars(themeVars)}\n}`;
|
|
||||||
|
|
||||||
|
// =========================
|
||||||
|
// 1. GLOBAL ROOT (times + base tokens)
|
||||||
|
// =========================
|
||||||
|
if (json.times) {
|
||||||
|
css += `:root {\n${toCssVars(json.times, '', 'times')}\n}\n`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// =========================
|
||||||
|
// 2. THEME (selected variant)
|
||||||
|
// =========================
|
||||||
|
const themeVars = json.theme?.[activeTheme] || {};
|
||||||
|
|
||||||
|
css += `
|
||||||
|
:root {
|
||||||
|
${toCssVars(themeVars, '', 'theme')}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
// =========================
|
||||||
|
// 3. RESPONSIVE (media queries)
|
||||||
|
// =========================
|
||||||
|
const responsive = json.responsive || {};
|
||||||
|
|
||||||
|
for (const breakpoint in responsive) {
|
||||||
|
const bpVars = responsive[breakpoint];
|
||||||
|
|
||||||
|
// flatten vars
|
||||||
|
const vars = toCssVars(bpVars, '', 'responsive');
|
||||||
|
|
||||||
|
let media = '';
|
||||||
|
|
||||||
|
if (breakpoint === 'mobile') {
|
||||||
|
media = '@media (max-width: 600px)';
|
||||||
|
}
|
||||||
|
else if (breakpoint === 'tablet') {
|
||||||
|
media = '@media (min-width: 601px) and (max-width: 1024px)';
|
||||||
|
}
|
||||||
|
else if (breakpoint === 'desktop') {
|
||||||
|
media = '@media (min-width: 1025px)';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
continue; // unknown breakpoint skip
|
||||||
|
}
|
||||||
|
|
||||||
|
css += `${media} {
|
||||||
|
:root {
|
||||||
|
${vars}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// =========================
|
||||||
|
// 4. INJECT STYLE TAG
|
||||||
|
// =========================
|
||||||
let styleTag = document.getElementById('theme-styles');
|
let styleTag = document.getElementById('theme-styles');
|
||||||
|
|
||||||
if (!styleTag) {
|
if (!styleTag) {
|
||||||
styleTag = document.createElement('style');
|
styleTag = document.createElement('style');
|
||||||
styleTag.id = 'theme-styles';
|
styleTag.id = 'theme-styles';
|
||||||
document.head.appendChild(styleTag);
|
document.head.appendChild(styleTag);
|
||||||
}
|
}
|
||||||
styleTag.textContent = css;
|
|
||||||
document.getElementById('start-menu-icon').src = `../images/radix_os_${theme}_img.png`;
|
|
||||||
|
|
||||||
|
styleTag.textContent = css;
|
||||||
|
|
||||||
|
document.getElementById('start-menu-icon').src =
|
||||||
|
`../images/radix_os_${activeTheme}_img.png`;
|
||||||
|
console.log(css)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
.selectable { user-select: text !important; cursor: var(--theme-cursor-pointer) 0 16, pointer; }
|
.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\:100px { width:100px; }
|
||||||
input.width\:90px { width:90px; }
|
input.width\:90px { width:90px; }
|
||||||
input.width\:75px { width:75px; }
|
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; }
|
*::placeholder, input[id="sAMAccountName"] { font-style:italic; font-weight:100; letter-spacing:3px; }
|
||||||
|
|
||||||
html, button { font-size: var(--fontSize); font-family: var(--fontFamily); }
|
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.monolyth { background-color:transparent; }
|
||||||
button:not(:disabled).monolyth:hover { opacity:0.9; }
|
button:not(:disabled).monolyth:hover { opacity:0.9; }
|
||||||
button.bluebutton { color:var(--theme-button-blue-default-color); background:var(--theme-button-blue-default-backcolor); }
|
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 */
|
/* #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; }
|
.copy-icon:hover { opacity:1; }
|
||||||
/* #endregion */
|
/* #endregion */
|
||||||
|
|
||||||
|
|
||||||
/* #region Tooltip */
|
/* #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; }
|
.global-tooltip.visible { opacity:1; }
|
||||||
/* #endregion*/
|
/* #endregion*/
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ button:not(:disabled).yellowbutton:hover { background:var(--theme-button-yellow-
|
|||||||
/* #region Messagebox */
|
/* #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 { 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-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:hover { transform:scale(1.02); }
|
||||||
.message-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
|
.message-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
|
||||||
.message-title { flex:1; font-weight:600; }
|
.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>
|
<span class="cb-label">Ein / Aus</span>
|
||||||
</label>
|
</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; }
|
.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-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 }
|
.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: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 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 */
|
/* #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 { 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 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 { 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 .18s cubic-bezier(.2,.9,.2,1); }
|
.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 { transform:translateY(-1px); }
|
||||||
.cb input:checked + .cb-box::after { transform:scale(1) translate(-1px, 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); }
|
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-radius:4px;
|
||||||
border:1px solid #ccc;
|
border:1px solid #ccc;
|
||||||
background:#f5f5f5;
|
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 {
|
.feedbox-btn:hover {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ body, html { margin:0; padding:0; height:100%; overflow: hidden; font-family: va
|
|||||||
|
|
||||||
.window-icon { height: 12px; background-size:contain; transform: translate(1px, -1px); background-repeat: no-repeat; background-position: left; background-color: rgb(144, 179, 144); padding:4px;border-radius: 6px;}
|
.window-icon { height: 12px; background-size:contain; transform: translate(1px, -1px); background-repeat: no-repeat; background-position: left; background-color: rgb(144, 179, 144); padding:4px;border-radius: 6px;}
|
||||||
.window .controls { display: flex; flex-shrink: 0;}
|
.window .controls { display: flex; flex-shrink: 0;}
|
||||||
.window .controls button { transition: background-color .3s, color .3s; padding: 2px 10px; border:none;}
|
.window .controls button { transition: background-color var(--times-transition-colors), color var(--times-transition-colors); padding: 2px 10px; border:none;}
|
||||||
.window-content { display: flex; flex-direction: column; flex:1; padding:8px; overflow: auto; }
|
.window-content { display: flex; flex-direction: column; flex:1; padding:8px; overflow: auto; }
|
||||||
.window[class="max"] .window-resize-handle { display: none; }
|
.window[class="max"] .window-resize-handle { display: none; }
|
||||||
.window-resize-handle { position:absolute; right:0; bottom:0; width:12px; height:12px; cursor:se-resize; z-index: 10; }
|
.window-resize-handle { position:absolute; right:0; bottom:0; width:12px; height:12px; cursor:se-resize; z-index: 10; }
|
||||||
@@ -25,10 +25,10 @@ body, html { margin:0; padding:0; height:100%; overflow: hidden; font-family: va
|
|||||||
|
|
||||||
|
|
||||||
#taskbar { z-index: 2; position: absolute; width:100%; bottom:0; left:0; height:auto; overflow:visible; display:flex; flex: 0 0 auto; min-width:0; align-items:center; padding:0 8px; box-sizing:border-box; }
|
#taskbar { z-index: 2; position: absolute; width:100%; bottom:0; left:0; height:auto; overflow:visible; display:flex; flex: 0 0 auto; min-width:0; align-items:center; padding:0 8px; box-sizing:border-box; }
|
||||||
#start-btn { transition: background-color 0.3s ease; padding: 8px 12px; border-radius: 5px; border: none; margin-right:8px; }
|
#start-btn { transition: background-color var(--times-transition-colors) ease; padding: 8px 12px; border-radius: 5px; border: none; margin-right:8px; }
|
||||||
#taskbar-windows { display:flex; gap:6px; align-items:center; flex:1; overflow-y:hidden;overflow-x: auto; min-width: 0;scrollbar-width: thin; }
|
#taskbar-windows { display:flex; gap:6px; align-items:center; flex:1; overflow-y:hidden;overflow-x: auto; min-width: 0;scrollbar-width: thin; }
|
||||||
.taskbar-item { display: flex; position: relative; padding:4px 10px; border-radius:4px; }
|
.taskbar-item { display: flex; position: relative; padding:4px 10px; border-radius:4px; }
|
||||||
.taskbar-item::before { content: ''; position: absolute; bottom:1px; left:50%; width:40%; height: 4px; border-radius:4px; transform:translateX(-50%) scaleX(0); transform-origin:center; transition:transform 0.3s ease; }
|
.taskbar-item::before { content: ''; position: absolute; bottom:1px; left:50%; width:40%; height: 4px; border-radius:4px; transform:translateX(-50%) scaleX(0); transform-origin:center; transition:transform var(--times-transition-colors) ease; }
|
||||||
.taskbar-item.focus::before { transform: translateX(-50%) scaleX(1); }
|
.taskbar-item.focus::before { transform: translateX(-50%) scaleX(1); }
|
||||||
|
|
||||||
.notify-button { margin-left:auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
|
.notify-button { margin-left:auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
|
||||||
@@ -52,25 +52,25 @@ body, html { margin:0; padding:0; height:100%; overflow: hidden; font-family: va
|
|||||||
.hidden { opacity: 0; pointer-events: none; }
|
.hidden { opacity: 0; pointer-events: none; }
|
||||||
|
|
||||||
/* Open submenu vertical */
|
/* Open submenu vertical */
|
||||||
#start-menu { z-index: 2; transition: opacity 0.3s; display:flex; flex-direction:column; position: absolute; bottom: 50px; left: 8px; width: auto; min-width: 300px; border-radius: 8px; overflow: hidden; }
|
#start-menu { z-index: 2; transition: opacity var(--times-transition-opacity); display:flex; flex-direction:column; position: absolute; bottom: 50px; left: 8px; width: auto; min-width: 300px; border-radius: 8px; overflow: hidden; }
|
||||||
.start-header { display: flex; align-items: center; padding: 8px; font-weight: 600; }
|
.start-header { display: flex; align-items: center; padding: 8px; font-weight: 600; }
|
||||||
.start-header > img { height: 24px; width: 24px; margin-right: 5px; }
|
.start-header > img { height: 24px; width: 24px; margin-right: 5px; }
|
||||||
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 60vh; overflow-y: auto; }
|
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 60vh; overflow-y: auto; }
|
||||||
.start-item { padding: 8px 12px 16px 20px; display: flex; gap: 8px; transition: background 0.2s; border-radius: 4px; }
|
.start-item { padding: 8px 12px 16px 20px; display: flex; gap: 8px; transition: background var(--times-transition-colors); border-radius: 4px; }
|
||||||
.start-item:not(:has(.submenu)) { padding: 12px;align-items:center; }
|
.start-item:not(:has(.submenu)) { padding: 12px;align-items:center; }
|
||||||
.start-icon, #start-menu-icon { height: 20px; width: 20px; border-radius: 8px; padding:4px; }
|
.start-icon, #start-menu-icon { height: 20px; width: 20px; border-radius: 8px; padding:4px; }
|
||||||
.menu-label { display: block; margin-top: 4px; padding-bottom: 0; margin-left: 26px }
|
.menu-label { display: block; margin-top: 4px; padding-bottom: 0; margin-left: 26px }
|
||||||
.start-item.has-submenu { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
|
.start-item.has-submenu { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
|
||||||
.start-item.has-submenu > .submenu { width: 100%; list-style: none; padding-left: 2px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; margin: 2px 0 0 8px; }
|
.start-item.has-submenu > .submenu { width: 100%; list-style: none; padding-left: 2px; max-height: 0; overflow: hidden; transition: max-height var(--times-transition-transform) ease; margin: 2px 0 0 8px; }
|
||||||
|
|
||||||
.start-item-sys-container { position: relative; left:0; bottom: -8px; padding: 5px 0px; width:100%; display:flex; height:30px; flex-direction:row; justify-content:flex-end; }
|
.start-item-sys-container { position: relative; left:0; bottom: -8px; padding: 5px 0px; width:100%; display:flex; height:30px; flex-direction:row; justify-content:flex-end; }
|
||||||
.start-sys-item { margin: 0 10px 0 8px !important; }
|
.start-sys-item { margin: 0 10px 0 8px !important; }
|
||||||
|
|
||||||
.start-submenu-head { position: relative; margin-left: 16px; height:32px; display:flex; flex-direction: row; align-items: center; gap:8px; }
|
.start-submenu-head { position: relative; margin-left: 16px; height:32px; display:flex; flex-direction: row; align-items: center; gap:8px; }
|
||||||
.start-item.has-submenu > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(0deg); border: 5px solid transparent; border-top-color: #aaa; transition: transform 0.3s; }
|
.start-item.has-submenu > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(0deg); border: 5px solid transparent; border-top-color: #aaa; transition: transform var(--times-transition-transform); }
|
||||||
.start-item.has-submenu.open > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(180deg); border: 5px solid transparent; border-top-color: #aaa; transition: transform 0.3s; }
|
.start-item.has-submenu.open > .menu-label::after { content: ""; position: absolute; right: 14px; transform: translateY(50%) rotate(180deg); border: 5px solid transparent; border-top-color: #aaa; transition: var(--times-transition-transform); }
|
||||||
.start-item.has-submenu.open > .submenu { max-height: 500px; }
|
.start-item.has-submenu.open > .submenu { max-height: 500px; }
|
||||||
.start-item.has-submenu > .submenu li { opacity: 0; transform: translateY(-5px); transition: opacity 0.2s, transform 0.2s; }
|
.start-item.has-submenu > .submenu li { opacity: 0; transform: translateY(-5px); transition: opacity var(--times-transition-opacity), transform 0.2s; }
|
||||||
.start-item.has-submenu.open > .submenu li { opacity: 1; transform: translateY(0); }
|
.start-item.has-submenu.open > .submenu li { opacity: 1; transform: translateY(0); }
|
||||||
|
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ img.icon { width: auto; height:20px; object-fit: contain; filter: var(--theme-no
|
|||||||
}
|
}
|
||||||
|
|
||||||
.window-content {
|
.window-content {
|
||||||
padding: 12px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Taskbar größer für Touch */
|
/* Taskbar größer für Touch */
|
||||||
@@ -119,13 +119,15 @@ img.icon { width: auto; height:20px; object-fit: contain; filter: var(--theme-no
|
|||||||
}
|
}
|
||||||
|
|
||||||
#start-btn {
|
#start-btn {
|
||||||
padding: 5px 14px;
|
padding: 4px 8px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.taskbar-item {
|
.taskbar-item {
|
||||||
padding: 5px 5px 0 0;
|
padding: 0 5px 4px 0;
|
||||||
white-space:nowrap; text-overflow:ellipsis;
|
top: 0px;
|
||||||
|
white-space:nowrap;
|
||||||
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 100%; overflow-y: auto; }
|
.start-list { list-style: none; margin: 0; padding: 8px 0; height: 100%; overflow-y: auto; }
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: translateY(10px);
|
transform: translateY(10px);
|
||||||
transition: all 0.25s ease;
|
transition: all var(--times-transition-transform) ease;
|
||||||
z-index: 99999999;
|
z-index: 99999999;
|
||||||
text-align: end;
|
text-align: end;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
/* cursor: pointer; */
|
/* cursor: pointer; */
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: transform 0.25s;
|
transition: transform var(--times-transition-transform);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user