Mobile CSS: Dark Mode Support + Textarea volle Breite
- Hardcodierte Farben durch CSS-Variablen ersetzt - Dark Mode Fallback für Dolibarr Themes hinzugefügt - Beschreibungs-Textarea nutzt jetzt volle Breite auf Mobile - opacity statt fester Farbe für Beschreibungstext Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d0e867aba3
commit
f1afcc6a22
1 changed files with 23 additions and 6 deletions
|
|
@ -177,9 +177,9 @@
|
||||||
padding: 10px 5px;
|
padding: 10px 5px;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background: #fff;
|
background: var(--colorbackbody, inherit);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
|
box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mod-stundenzettel .tabsAction a.butAction,
|
.mod-stundenzettel .tabsAction a.butAction,
|
||||||
|
|
@ -271,8 +271,8 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Textarea in Edit-Mode kompakter */
|
/* Textarea in Edit-Mode kompakter (aber nicht in mobile-description-row) */
|
||||||
.mod-stundenzettel tr.oddeven textarea {
|
.mod-stundenzettel tr.oddeven:not(.mobile-description-row) textarea {
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
width: 150px !important;
|
width: 150px !important;
|
||||||
}
|
}
|
||||||
|
|
@ -283,7 +283,7 @@
|
||||||
/* Mobile-Zeilen anzeigen */
|
/* Mobile-Zeilen anzeigen */
|
||||||
.mod-stundenzettel .mobile-description-row {
|
.mod-stundenzettel .mobile-description-row {
|
||||||
display: table-row;
|
display: table-row;
|
||||||
background: #f8f9fa !important;
|
background: var(--colorbacklineimpair2, inherit) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mod-stundenzettel .mobile-description-row td {
|
.mod-stundenzettel .mobile-description-row td {
|
||||||
|
|
@ -310,7 +310,7 @@
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
color: #666;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -365,3 +365,20 @@
|
||||||
transform: scale(1.2);
|
transform: scale(1.2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
DARK MODE SUPPORT
|
||||||
|
============================================ */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
/* Nur anwenden wenn Dolibarr Dark Theme aktiv (body hat dark-Klasse) */
|
||||||
|
body.theme-eldy-dark .mod-stundenzettel .tabsAction,
|
||||||
|
body[class*="dark"] .mod-stundenzettel .tabsAction {
|
||||||
|
background: var(--colorbackbody, #1e1e1e);
|
||||||
|
box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.theme-eldy-dark .mod-stundenzettel .mobile-description-row,
|
||||||
|
body[class*="dark"] .mod-stundenzettel .mobile-description-row {
|
||||||
|
background: var(--colorbacklineimpair2, #2d2d2d) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue