Bug 1388457 - Make toolbar buttons smaller in compact mode. r?daleharvey draft
authorDão Gottwald <dao@mozilla.com>
Wed, 09 Aug 2017 10:21:37 +0200
changeset 643067 dd4d6c27c745911598c2741fce59da06bb3ccdcf
parent 642916 1d042bcb2632ea6a38fa08dbe21a6e8a0ee46961
child 725194 64611b7c9433240cea034fc516543b12478cf6c6
push id72976
push userdgottwald@mozilla.com
push dateWed, 09 Aug 2017 08:22:03 +0000
reviewersdaleharvey
bugs1388457
milestone57.0a1
Bug 1388457 - Make toolbar buttons smaller in compact mode. r?daleharvey MozReview-Commit-ID: 3wiiattnQCv
browser/themes/shared/toolbarbuttons.inc.css
--- a/browser/themes/shared/toolbarbuttons.inc.css
+++ b/browser/themes/shared/toolbarbuttons.inc.css
@@ -14,17 +14,20 @@
 
   --backbutton-border-color: hsla(240,5%,5%,.3);
   /* This default value of --toolbarbutton-height is defined to prevent
      CSS errors for an invalid variable. The value should not get used,
      as a more specific value should be set when the value will be used. */
   --toolbarbutton-height: 0;
 }
 
-/* Larger buttons in touch mode */
+:root[uidensity=compact] {
+  --toolbarbutton-inner-padding: 5px;
+}
+
 :root[uidensity=touch] {
   --toolbarbutton-inner-padding: 9px;
 }
 
 toolbar[brighttext] {
   --toolbarbutton-hover-background: hsla(0,0%,100%,.2);
   --toolbarbutton-active-background: hsla(0,0%,100%,.3);