fix: varaibles

This commit is contained in:
Lucas
2026-10-26 16:34:17 +01:00
parent 883f52f911
commit dac9557749
3 changed files with 29 additions and 17 deletions
+3 -6
View File
@@ -109,6 +109,8 @@ button,
padding-bottom: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left); padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right); padding-right: env(safe-area-inset-right);
padding-left: 0;
padding-right: 0;
} }
/* Touch devices: bigger hit targets, no hover-only behaviour */ /* Touch devices: bigger hit targets, no hover-only behaviour */
@@ -117,12 +119,7 @@ button,
select, select,
input[type='checkbox'], input[type='checkbox'],
input[type='radio'] { input[type='radio'] {
min-height: 44px; min-height: var(--touch-target);
}
::-webkit-scrollbar {
width: 0;
height: 0;
} }
} }
+16 -3
View File
@@ -491,19 +491,19 @@
/* Touch-sized items */ /* Touch-sized items */
.sidebar-item, .sidebar-item,
.sidebar-item--editing { .sidebar-item--editing {
height: 44px; height: var(--touch-target);
} }
.sidebar-rail--expanded .sidebar-item { .sidebar-rail--expanded .sidebar-item {
width: 100%; width: 100%;
} }
.sidebar-toggle { .sidebar-toggle {
height: 40px; height: calc(var(--touch-target) * 0.9);
} }
/* Preset dropdown */ /* Preset dropdown */
.sidebar-app-trigger, .sidebar-app-trigger,
.sidebar-app-input { .sidebar-app-input {
height: 40px; height: calc(var(--touch-target) * 0.9);
} }
.sidebar-app-input, .sidebar-app-input,
.sidebar-item-input { .sidebar-item-input {
@@ -517,4 +517,17 @@
padding: var(--space-3) var(--space-2); padding: var(--space-3) var(--space-2);
font-size: var(--font-sm); font-size: var(--font-sm);
} }
}
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
.sidebar-label,
.sidebar-item-input {
font-size: max(20px, var(--font-sm));
}
.sidebar-app-trigger,
.sidebar-app-input,
.sidebar-app-option {
font-size: max(13px, var(--font-xs));
}
} }
+10 -8
View File
@@ -72,21 +72,21 @@
--transition-base: 180ms; --transition-base: 180ms;
/* ---------- Header ---------- */ /* ---------- Header ---------- */
--header-height: 50px; --header-height: 2.8rem;
--font-size-header: 1rem; --font-size-header: 1rem;
--tab-height: calc(var(--header-height) * 0.75); --tab-height: calc(var(--header-height) * 0.75);
/* ---------- Card ---------- */ /* ---------- Card ---------- */
--card-width: 500px; --card-width: 500px;
--card-control-height: 40px; --card-control-height: 2.2rem;
/* ---------- Button ---------- */ /* ---------- Button ---------- */
--disabled-opacity: 0.45; --disabled-opacity: 0.45;
/* ---------- SideBar ---------- */ /* ---------- SideBar ---------- */
--sidebar-width-collapsed: calc(var(--header-height) * 0.85 + 2 * var(--space-3)); --sidebar-width-collapsed: calc(var(--header-height) * 0.85 + 2 * var(--space-3));
--sidebar-width-expanded: 200px; --sidebar-width-expanded: 11rem;
/* ---------- DSP ---------- */ /* ---------- DSP ---------- */
--dsp-control-heigth: 40%; --dsp-control-heigth: 40%;
@@ -97,13 +97,15 @@
--safe-left: env(safe-area-inset-left, 0px); --safe-left: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-right, 0px); --safe-right: env(safe-area-inset-right, 0px);
--topbar-h: calc(var(--header-height) + var(--safe-top)); --topbar-h: calc(var(--header-height) + var(--safe-top));
--touch-target: 2.45rem;
} }
@media (max-width: 768px) { @media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
:root { :root {
--header-height: 56px; --header-height: 3.1rem;
--tab-height: 40px; --tab-height: 2.2rem;
--sidebar-width-collapsed: 56px; --sidebar-width-collapsed: 3.1rem;
--sidebar-width-expanded: min(80vw, 280px); --sidebar-width-expanded: min(80vw, 15.5rem);
--touch-target: 2.45rem;
} }
} }