Bug 1387618 - Increase tab close button size in touch mode. r?daleharvey
MozReview-Commit-ID: 1L1bDnQtItQ
--- a/browser/themes/shared/tabs.inc.css
+++ b/browser/themes/shared/tabs.inc.css
@@ -1,13 +1,15 @@
%if 0
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%endif
+%filter substitution
+%define horizontalTabPadding 9px
:root {
--tab-toolbar-navbar-overlap: 1px;
--tab-line-color: highlight;
--tab-min-height: 33px;
}
:root[uidensity=compact] {
@@ -47,17 +49,17 @@
/* The selected tab should appear above the border between the tabs toolbar and
the navigation toolbar. */
.tabbrowser-tab[visuallyselected=true] {
position: relative;
z-index: 2;
}
.tab-content {
- padding: 0 9px;
+ padding: 0 @horizontalTabPadding@;
}
.tab-content[pinned] {
padding: 0 12px;
}
.tab-throbber,
.tab-icon-image,
@@ -193,21 +195,25 @@
}
.tab-label {
margin-inline-end: 0;
margin-inline-start: 0;
}
.tab-close-button {
- margin-inline-start: 1px;
margin-inline-end: -2px;
padding: 0;
}
+:root[uidensity=touch] .tab-close-button {
+ margin-inline-end: -@horizontalTabPadding@;
+ padding: 10px calc(@horizontalTabPadding@ - 2px);
+}
+
.tab-icon-sound {
margin-inline-start: 1px;
width: 16px;
height: 16px;
padding: 0;
}
.tab-icon-sound[soundplaying],