Remove duplicate CSS rules and simplify z-index hierarchy in globals.css
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-121
@@ -53,7 +53,6 @@ button:disabled {
|
|||||||
|
|
||||||
.app {
|
.app {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background: var(--background);
|
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -304,14 +303,9 @@ button:disabled {
|
|||||||
|
|
||||||
.react-grid-item.react-draggable-dragging,
|
.react-grid-item.react-draggable-dragging,
|
||||||
.react-grid-item.resizing {
|
.react-grid-item.resizing {
|
||||||
z-index: 200;
|
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gridItemMenuOpen {
|
|
||||||
z-index: 250 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.react-grid-item > .react-resizable-handle {
|
.react-grid-item > .react-resizable-handle {
|
||||||
z-index: 40;
|
z-index: 40;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
@@ -403,20 +397,11 @@ button:disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.widgetMenu {
|
.widgetMenu {
|
||||||
position: relative;
|
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgetMenuButton {
|
.widgetMenuButton {
|
||||||
height: 30px;
|
|
||||||
padding: 0 9px;
|
|
||||||
color: var(--text);
|
|
||||||
background: var(--surface-strong);
|
|
||||||
border: 1px solid var(--border);
|
|
||||||
border-radius: 9px;
|
|
||||||
cursor: pointer;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgetMenuButton:hover,
|
.widgetMenuButton:hover,
|
||||||
@@ -425,18 +410,10 @@ button:disabled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.widgetDropdown {
|
.widgetDropdown {
|
||||||
position: absolute;
|
|
||||||
top: calc(100% + 8px);
|
|
||||||
right: 0;
|
|
||||||
z-index: 350;
|
|
||||||
width: 190px;
|
width: 190px;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 7px;
|
|
||||||
padding: 10px;
|
|
||||||
background: var(--surface);
|
background: var(--surface);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 14px;
|
|
||||||
box-shadow: var(--shadow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgetDropdownButton {
|
.widgetDropdownButton {
|
||||||
@@ -1408,31 +1385,6 @@ button:disabled {
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app {
|
|
||||||
position: relative;
|
|
||||||
isolation: isolate;
|
|
||||||
--dashboard-background-image: none;
|
|
||||||
--dashboard-background-opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app::before {
|
|
||||||
content: "";
|
|
||||||
position: fixed;
|
|
||||||
inset: 0;
|
|
||||||
z-index: -1;
|
|
||||||
pointer-events: none;
|
|
||||||
background-image: var(--dashboard-background-image);
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
opacity: var(--dashboard-background-opacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
.app > * {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.settingsSubPanel {
|
.settingsSubPanel {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
@@ -1522,56 +1474,21 @@ button:disabled {
|
|||||||
z-index: 1200;
|
z-index: 1200;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboardWorkspace,
|
|
||||||
.widgetGridShell,
|
|
||||||
.emptyDashboard {
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app::before {
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app > * {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app > .topBar,
|
.app > .topBar,
|
||||||
.app > .adminTopBar {
|
.app > .adminTopBar {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 5000;
|
z-index: 5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topBar .profileMenu {
|
|
||||||
position: relative;
|
|
||||||
z-index: 5100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.topBar .profileDropdown {
|
.topBar .profileDropdown {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 5200;
|
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboardWorkspace,
|
.widgetGrid {
|
||||||
.widgetGridShell,
|
|
||||||
.widgetGrid,
|
|
||||||
.emptyDashboard,
|
|
||||||
.react-grid-layout,
|
|
||||||
.react-grid-item {
|
|
||||||
z-index: auto;
|
z-index: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-grid-item.react-draggable-dragging,
|
|
||||||
.react-grid-item.resizing {
|
|
||||||
z-index: 200;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gridItemMenuOpen {
|
|
||||||
z-index: 250 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.widgetCard-search .searchWidgetForm {
|
.widgetCard-search .searchWidgetForm {
|
||||||
grid-template-columns: minmax(82px, 130px) minmax(0, 1fr) auto !important;
|
grid-template-columns: minmax(82px, 130px) minmax(0, 1fr) auto !important;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -1805,6 +1722,8 @@ button:disabled {
|
|||||||
.app {
|
.app {
|
||||||
position: relative;
|
position: relative;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
|
--dashboard-background-image: none;
|
||||||
|
--dashboard-background-opacity: 0;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2472,33 +2391,6 @@ button:disabled {
|
|||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Widget-Menüs immer über anderen Widgets anzeigen */
|
|
||||||
.react-grid-item {
|
|
||||||
overflow: visible !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.react-grid-item.gridItemMenuOpen {
|
|
||||||
z-index: 99999 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gridItemMenuOpen,
|
|
||||||
.gridItemMenuOpen .widgetCard,
|
|
||||||
.gridItemMenuOpen .widgetHeader,
|
|
||||||
.gridItemMenuOpen .widgetMenu {
|
|
||||||
overflow: visible !important;
|
|
||||||
z-index: 99999 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.widgetMenu {
|
|
||||||
position: relative !important;
|
|
||||||
z-index: 100000 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.widgetDropdown {
|
|
||||||
position: absolute !important;
|
|
||||||
z-index: 100001 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Suche-Widget: im normalen Modus ohne Rahmen/Header, im Bearbeitungsmodus aber mit Ziehen/Menü */
|
/* Suche-Widget: im normalen Modus ohne Rahmen/Header, im Bearbeitungsmodus aber mit Ziehen/Menü */
|
||||||
.widgetCard-search {
|
.widgetCard-search {
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
@@ -2839,16 +2731,6 @@ button:disabled {
|
|||||||
z-index: 99999 !important;
|
z-index: 99999 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widgetMenu {
|
|
||||||
position: relative !important;
|
|
||||||
z-index: 100000 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.widgetDropdown {
|
|
||||||
position: absolute !important;
|
|
||||||
z-index: 100001 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fix: Widget-Edit-Header sauber vertikal zentrieren */
|
/* Fix: Widget-Edit-Header sauber vertikal zentrieren */
|
||||||
.widgetCard.widgetEditing .widgetHeader {
|
.widgetCard.widgetEditing .widgetHeader {
|
||||||
min-height: 44px !important;
|
min-height: 44px !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user