CSS for catgories #5864
Replies: 5 comments 2 replies
-
|
Could you share the CSS you've tried and a screenshot or example of the category markup? Without seeing the implementation, it's difficult to tell why the styles aren't being applied. Common issues include:
If you post the relevant HTML and CSS, it should be much easier to identify what's preventing the RGBA background color from taking effect. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I cleaned up the CSS a little bit and here is my final code: /* 1. Hauptcontainer: Hintergrund, Blur, helle Schrift & Schatten für Schwebe-Effekt */
.grid-stack-item-content:not([class*="pihole"]):not([class*="Pihole"]) {
background: rgba(38, 38, 38, 0.75) !important;
backdrop-filter: blur(15px) !important;
-webkit-backdrop-filter: blur(15px) !important;
border-radius: var(--mantine-radius-lg) !important;
overflow: hidden !important;
color: lightgray !important;
box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.7), 4px 4px 10px rgba(0, 0, 0, 0.3) !important;
}
/* 2. SICHERE Transparenz-Regeln */
.glass-widget .mantine-Paper-root,
.glass-widget .mantine-Card-root,
.grid-stack-item-content:not([class*="pihole"]):not([class*="Pihole"]) .mantine-Paper-root,
.grid-stack-item-content:not([class*="pihole"]):not([class*="Pihole"]) .mantine-Card-root {
background: transparent !important;
}
.grid-stack-item-content:not([class*="pihole"]):not([class*="Pihole"]) *:not([class*="Progress"]):not([role="progressbar"]):not([class*="Badge"]) {
color: lightgray !important;
}
/* 3. Hover-Effekt: Text wird rot beim Drüberfahren */
.grid-stack-item-content:not([class*="pihole"]):not([class*="Pihole"]) *:not([class*="Progress"]):not([role="progressbar"]):not([class*="Badge"]):hover {
color: red !important;
}
/* 4. Spezifische Anpassung für die Docker-Status-Badges */
.grid-stack-item-content [class*="Badge"][data-color="green"],
.grid-stack-item-content [class*="Badge"][data-color="teal"] {
background-color: #2b8a3e !important;
color: #ffffff !important;
}
.grid-stack-item-content [class*="Badge"][data-color="red"] {
background-color: #c92a2a !important;
color: #ffffff !important;
}
/* 5. Oberste Leiste (Header) & Action-Buttons */
header,
.mantine-Header-root {
background-color: rgba(38, 38, 38, 0.25) !important;
backdrop-filter: blur(15px) !important;
-webkit-backdrop-filter: blur(15px) !important;
}
header,
.mantine-Header-root,
header *,
.mantine-Header-root * {
color: lightgray !important;
}
header .mantine-ActionIcon-root:hover,
.mantine-Header-root .mantine-ActionIcon-root:hover,
header button:hover,
.mantine-Header-root button:hover {
background-color: rgba(255, 255, 255, 0.1) !important;
}
/* 6. Suchfeld in der Leiste */
header input,
.mantine-Input-input,
[class*="Search"] input {
background-color: rgba(255, 255, 255, 0.08) !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
color: lightgray !important;
}
header input::placeholder,
.mantine-Input-input::placeholder {
color: rgba(211, 211, 211, 0.6) !important;
}
/* 7. Lesezeichen (Bookmarks) */
[class*="bookmark-module"],
[class*="bookmark-module"] * {
background: transparent !important;
}
[class*="bookmark-module"] {
border: none !important;
outline: 1px solid #ffffff !important;
outline-offset: -3px !important;
border-radius: var(--mantine-radius-md, 8px) !important;
transition: outline-color 0.2s ease !important;
}
[class*="bookmark-module"]:hover {
outline-color: red !important;
}
/* 8. Alle Overlays (Wetter-HoverCards, Such-Modals, Dropdowns & Menüs) */
.mantine-Tooltip-tooltip,
.mantine-Popover-dropdown,
.mantine-HoverCard-dropdown,
.mantine-Menu-dropdown,
.mantine-Autocomplete-dropdown,
.mantine-Select-dropdown,
.mantine-Spotlight-content,
.mantine-Modal-content {
background-color: rgba(38, 38, 38, 0.85) !important;
backdrop-filter: blur(15px) !important;
-webkit-backdrop-filter: blur(15px) !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.75) !important;
border-radius: var(--mantine-radius-md, 8px) !important;
}
.mantine-Tooltip-tooltip *,
.mantine-Popover-dropdown *,
.mantine-HoverCard-dropdown *,
.mantine-Menu-dropdown *,
.mantine-Autocomplete-dropdown *,
.mantine-Select-dropdown *,
.mantine-Spotlight-content *,
.mantine-Modal-content * {
color: lightgray !important;
background: transparent !important;
}
.mantine-Tooltip-arrow,
.mantine-Popover-arrow,
.mantine-HoverCard-arrow,
.mantine-Menu-arrow {
background-color: rgba(38, 38, 38, 0.85) !important;
border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
/* 9. Suchergebnisse & Menü-Einträge (Hover) */
.mantine-Menu-item:hover,
.mantine-Spotlight-action:hover,
.mantine-Select-item:hover,
.mantine-Autocomplete-item:hover {
background-color: rgba(255, 255, 255, 0.1) !important;
border-radius: var(--mantine-radius-sm, 4px) !important;
}
/* --------------------------------------------------------- */
/* 10. HOVER-EFFEKT NUR FÜR APP-KACHELN */
/* --------------------------------------------------------- */
.grid-stack-item:has(.app-hover),
.grid-stack-item:has(a[href]):not(:has([class*="bookmark-module"])):not(:has(.no-hover)):not(:has([data-kind="category"])) {
z-index: 1 !important;
}
.grid-stack-item:has(.app-hover):hover,
.grid-stack-item:has(a[href]):not(:has([class*="bookmark-module"])):not(:has(.no-hover)):not(:has([data-kind="category"])):hover {
z-index: 1000 !important;
}
.app-hover,
.grid-stack-item:has(a[href]):not(:has([class*="bookmark-module"])):not(:has(.no-hover)):not(:has([data-kind="category"])) .grid-stack-item-content {
transition: transform 0.2s ease, box-shadow 0.2s ease !important;
will-change: transform;
}
.app-hover:hover,
.grid-stack-item:has(a[href]):not(:has([class*="bookmark-module"])):not(:has(.no-hover)):not(:has([data-kind="category"])):hover .grid-stack-item-content {
transform: scale(1.05) !important;
box-shadow: 15px 15px 35px rgba(0, 0, 0, 0.9), 8px 8px 20px rgba(0, 0, 0, 0.5) !important;
}
/* --------------------------------------------------------- */
/* 11. KATEGORIEN FIX */
/* --------------------------------------------------------- */
.mantine-Card-root:has([data-kind="category"]),
.mantine-Paper-root:has([data-kind="category"]),
[class*="itemCard"]:has([data-kind="category"]) {
background: rgba(38, 38, 38, 0.85) !important;
backdrop-filter: blur(15px) !important;
-webkit-backdrop-filter: blur(15px) !important;
border-radius: var(--mantine-radius-lg) !important;
box-shadow: 10px 10px 25px rgba(0, 0, 0, 0.7), 4px 4px 10px rgba(0, 0, 0, 0.3) !important;
border: none !important;
}
.mantine-Card-root:has([data-kind="category"]) .mantine-Title-root,
.mantine-Card-root:has([data-kind="category"]) .tabler-icon {
color: lightgray !important;
}
.mantine-Card-root:has([data-kind="category"]) > .mantine-Stack-root > .mantine-Group-root:hover {
background-color: rgba(255, 255, 255, 0.05) !important;
border-radius: var(--mantine-radius-md) !important;
}
/* --------------------------------------------------------- */
/* 12. NOTIZEN (Notebook) FIX */
/* --------------------------------------------------------- */
.notebook-wrapper .mantine-RichTextEditor-root,
.notebook-wrapper .mantine-RichTextEditor-content,
.notebook-wrapper .mantine-ScrollArea-root,
.notebook-wrapper .mantine-ScrollArea-viewport,
.notebook-wrapper .mantine-ScrollArea-content,
.notebook-wrapper .mantine-RichTextEditor-Typography {
background: transparent !important;
background-color: transparent !important;
border: none !important;
}
.notebook-wrapper .tiptap *,
.notebook-wrapper .mantine-RichTextEditor-content * {
color: lightgray !important;
}
/* --------------------------------------------------------- */
/* 13. DOCKER WIDGET FIX */
/* --------------------------------------------------------- */
/* Entfernt den fest verbauten weißen Hintergrund der React-Tabelle */
.dockerContainers-wrapper .mantine-Paper-root,
.dockerContainers-wrapper .mrt-table-paper,
.dockerContainers-wrapper .mrt-table-container,
.dockerContainers-wrapper table,
.dockerContainers-wrapper thead,
.dockerContainers-wrapper tbody,
.dockerContainers-wrapper tr,
.dockerContainers-wrapper th,
.dockerContainers-wrapper td {
background: transparent !important;
background-color: transparent !important;
}
/* Leichter Hover-Effekt für die Tabellenzeilen, damit die Zeilen beim Drüberfahren sichtbar bleiben */
.dockerContainers-wrapper tbody tr:hover td {
background-color: rgba(255, 255, 255, 0.05) !important;
}```` |
Beta Was this translation helpful? Give feedback.
-
|
Done |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I tried several css snipes for changing the background color with a rgba value of categories. But nothing wih success.
Can anyone give me a hint?
Beta Was this translation helpful? Give feedback.
All reactions