Skip to content

Commit 081fe2a

Browse files
fix: fix message bar close button styles
1 parent 99f0c72 commit 081fe2a

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

theme/parts/buttons-fixes.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/* Buttons Issues/Glitches fixes */
22
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
33

4+
/* moz.button size */
5+
moz-button {
6+
--button-size-icon-small: var(--gnome-button-size) !important;
7+
}
8+
49
/* Menulist */
510
link[href="chrome://global/skin/menulist.css"] ~ dropmarker {
611
align-items: center !important;

theme/parts/buttons.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ button.popup-notification-primary-button:not(#hack),
174174

175175
/* Buttons with margins */
176176
#nav-bar toolbarbutton:not(#urlbar-zoom-button, #urlbar-searchmode-switcher):not(.subviewbutton):not(.titlebar-button),
177-
.notification-button,
178177
.subviewbutton.panel-subview-footer:not(:only-of-type),
179178
.panel-footer button:not(:only-of-type):not(:last-child) {
180179
margin: 0 calc(var(--gnome-toolbar-spacing) / 2) !important;

theme/parts/icons.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ button.close::before {
296296
fill: rgb(46, 52, 54) !important;
297297
}
298298
}
299+
moz-button.close {
300+
--message-bar-icon-close-url: var(--gnome-icon-window-close-symbolic) !important;
301+
}
299302

300303
/* Window buttons */
301304
:root[customtitlebar] .titlebar-buttonbox .titlebar-close .toolbarbutton-icon {

theme/parts/toolbox.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,14 @@ findbar:-moz-window-inactive description,
102102
}
103103
link[href="chrome://global/content/elements/moz-message-bar.css"] ~ .container {
104104
background: none !important;
105-
box-shadow: none !important;
106-
padding: var(--gnome-toolbar-padding) !important;
107105
border-radius: 0 !important;
106+
box-shadow: none !important;
107+
gap: var(--gnome-toolbar-spacing) !important;
108+
padding: var(--gnome-toolbar-padding) !important;
109+
110+
.close {
111+
margin: 0 !important;
112+
}
108113

109114
.icon {
110115
color: var(--gnome-window-color);
@@ -115,6 +120,7 @@ link[href="chrome://global/content/elements/moz-message-bar.css"] ~ .container {
115120

116121
.text-container {
117122
flex: auto;
123+
padding-block: 0 !important;
118124
}
119125

120126
.text-content {

0 commit comments

Comments
 (0)