Skip to content

Commit 069f98b

Browse files
fix(toolbox): Fix notification-message theming
1 parent 3c4e581 commit 069f98b

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

theme/parts/toolbox.css

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -75,46 +75,47 @@ findbar:-moz-window-inactive description,
7575

7676
/* Content notifications */
7777
.notificationbox-stack notification-message {
78+
background-color: color-mix(in srgb, var(--gnome-accent-bg) 30%, var(--gnome-window-background)) !important;
7879
border: 0 !important;
79-
font-size: 1em !important;
80-
padding: 0 !important;
80+
border-top: 1px solid var(--gnome-toolbar-border-color) !important;
8181
border-radius: 0 !important;
8282
margin: 0 !important;
83-
}
84-
.notificationbox-stack notification-message[style*="margin-top"] {
85-
margin-top: -48px !important;
86-
}
87-
.notification-content {
88-
padding-block: 0 !important;
89-
}
83+
84+
&[type="warning"] {
85+
background-color: #ffe900 !important;
86+
}
87+
&[type="critical"] {
88+
background-color: #d70022 !important;
89+
}
9090

91-
.container.infobar {
92-
background: var(--gnome-toolbar-background) !important;
91+
&[style*="margin-top"] {
92+
margin-top: -48px !important;
93+
}
94+
95+
&::before {
96+
display: none !important;
97+
}
98+
}
99+
link[href="chrome://global/content/elements/moz-message-bar.css"] ~ .container {
100+
background: none !important;
93101
box-shadow: none !important;
94102
padding: 6px !important;
95103
border-radius: 0 !important;
96-
}
97-
.container.infobar::before {
98-
display: none !important;
99-
}
100104

101-
.container.infobar .icon {
102-
height: 16px !important;
103-
width: 16px !important;
104-
margin: 8px 0 !important;
105-
}
106-
.notificationbox-stack notification-message[type="warning"] {
107-
background: #ffe900 !important;
108-
}
109-
.notificationbox-stack notification-message[type="critical"] {
110-
background: #d70022 !important;
111-
}
105+
.icon {
106+
color: var(--gnome-window-color)
107+
height: 16px !important;
108+
width: 16px !important;
109+
margin: 8px 0 !important;
110+
}
111+
112+
.text-container {
113+
flex: auto;
114+
}
112115

113-
.notificationbox-stack[notificationside="top"] notification-message {
114-
border-bottom: 1px solid var(--gnome-toolbar-border-color) !important;
115-
}
116-
.notificationbox-stack[notificationside="bottom"] notification-message {
117-
border-top: 1px solid var(--gnome-toolbar-border-color) !important;
116+
.text-content {
117+
font-weight: bold !important;
118+
}
118119
}
119120

120121
/* Bookmarks */

0 commit comments

Comments
 (0)