refactor: simplify page layout for improved responsiveness
- Removed constrained width classes from multiple pages to allow full-width layout, enhancing adaptability on larger screens. - Updated app.css to eliminate unnecessary max-width properties, ensuring a more fluid design across various components. - Adjusted styles in Navigation and other pages for consistent full-width presentation, improving user experience on diverse devices.
This commit is contained in:
1 parent
83ee300192
commit
8c9c97bedb
16 files changed
+28
-62
No files matched your search
+11
-46
@@ -18,8 +18,6 @@
|
||||
--header-h: 52px;
|
||||
--font: system-ui, -apple-system, 'Segoe UI', sans-serif;
|
||||
--capture-content-max: 800px;
|
||||
/* Admin: nutzt volle Hauptspalte bis zu dieser Obergrenze (siehe .app-main:has(.admin-shell)) */
|
||||
--admin-main-max: min(1720px, calc(100vw - 200px));
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
@@ -72,37 +70,13 @@ body { font-family: var(--font); background: var(--bg); color: var(--text1); -we
|
||||
}
|
||||
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
|
||||
|
||||
/* === Seiten-Inhalt: einheitlich volle Breite bis 1023px; ab Desktop optionale Max-Breite === */
|
||||
/* === Seiten-Inhalt: volle Breite der Spalte, kein künstlicher Max-Wert auf großen Screens === */
|
||||
.app-page {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.app-page--constrained-lg {
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.app-page--constrained-md {
|
||||
max-width: 900px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.app-page--constrained-sm {
|
||||
max-width: 720px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.app-page--reading {
|
||||
max-width: 640px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Form-Grids: minmax(0,…) verhindert Grid-Overflow; eine Spalte bis zum ersten Breakpoint */
|
||||
.responsive-grid-2 {
|
||||
display: grid;
|
||||
@@ -1515,7 +1489,7 @@ a.analysis-split__nav-item {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 18px 20px;
|
||||
max-width: 720px;
|
||||
max-width: 100%;
|
||||
}
|
||||
.skills-catalog-detail__title {
|
||||
font-size: 15px;
|
||||
@@ -2307,18 +2281,13 @@ a.analysis-split__nav-item {
|
||||
.app-main {
|
||||
padding: 24px 32px 32px;
|
||||
padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Admin: mehr horizontaler Raum für Tabellen auf großen Screens (:has ~2022+, sonst bleibt 1200px) */
|
||||
.app-main:has(.admin-shell) {
|
||||
max-width: var(--admin-main-max);
|
||||
}
|
||||
|
||||
/* Dashboard (P3): Begrüßung + Kennzahlen-Zeile */
|
||||
.dashboard-greeting {
|
||||
display: flex;
|
||||
@@ -2422,7 +2391,7 @@ a.analysis-split__nav-item {
|
||||
color: var(--text3);
|
||||
margin: 4px 0 0 0;
|
||||
line-height: 1.35;
|
||||
max-width: 640px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.dashboard-section__body {
|
||||
@@ -2638,8 +2607,9 @@ a.analysis-split__nav-item {
|
||||
}
|
||||
|
||||
.exercise-detail-shell {
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.exercise-detail-section {
|
||||
margin-bottom: 14px;
|
||||
@@ -2819,11 +2789,6 @@ a.analysis-split__nav-item {
|
||||
min-width: 0;
|
||||
}
|
||||
@media (min-width: 900px) {
|
||||
.framework-edit {
|
||||
max-width: min(1200px, 100%);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.framework-edit__tabbar {
|
||||
display: none !important;
|
||||
}
|
||||
@@ -3189,8 +3154,8 @@ a.analysis-split__nav-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
min-height: calc(100dvh - var(--header-h) - var(--nav-h) - env(safe-area-inset-bottom, 0px) - 48px);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user