Bug 1348495 - Stop setting padding for .button-box on Linux. r=karlt
authorDão Gottwald <dao@mozilla.com>
Sat, 18 Mar 2017 08:40:19 +0100
changeset 348410 2684ce503c2ebca79205bfc05efddaa5e275388a
parent 348409 b6ac1fe1a0241f948df91405ac72db4375848dd8
child 348411 f713510190c54c2dddcf2b7bd48b1bb560292759
push id39153
push userdgottwald@mozilla.com
push dateMon, 20 Mar 2017 12:19:26 +0000
treeherderautoland@2684ce503c2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1348495
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1348495 - Stop setting padding for .button-box on Linux. r=karlt MozReview-Commit-ID: 7nh452uE5qc
toolkit/themes/linux/global/button.css
--- a/toolkit/themes/linux/global/button.css
+++ b/toolkit/themes/linux/global/button.css
@@ -15,20 +15,16 @@ button {
   margin: 1px 5px 2px 5px;
   min-width: 6.3em;
   color: ButtonText;
   text-shadow: none;
 }
 
 .button-box {
   -moz-appearance: button-focus;
-  padding-top: 1px;
-  padding-bottom: 2px;
-  padding-inline-start: 3px;
-  padding-inline-end: 4px;
 }
 
 .button-icon {
   margin-inline-end: 2px;
 }
 
 .button-text {
   margin: 0 !important;
@@ -44,39 +40,23 @@ button:hover {
 /* .......... active/open/checked state .......... */
 
 button:hover:active,
 button[open="true"],
 button[checked="true"] {
   color: ButtonText;
 }
 
-button:hover:active > .button-box,
-button[open="true"] > .button-box,
-button[checked="true"] > .button-box {
-  padding-top: 2px;
-  padding-bottom: 1px;
-  padding-inline-start: 4px;
-  padding-inline-end: 3px;
-}
-
 /* .......... disabled state .......... */
 
 button[disabled="true"],
 button[disabled="true"]:hover:active {
   color: GrayText;
 }
 
-button[disabled="true"] > .button-box {
-  padding-top: 1px !important;
-  padding-bottom: 2px !important;
-  padding-inline-start: 3px !important;
-  padding-inline-end: 4px !important;
-}
-
 /* ::::: menu/menu-button buttons ::::: */
 
 button[type="menu-button"] {
   -moz-appearance: dualbutton;
 }
 
 .button-menubutton-button {
   margin: 0;