From af482a75c38677520e660b3c5b673b7b6cc40363 Mon Sep 17 00:00:00 2001 From: Bharat Raghunathan Date: Sat, 18 Aug 2018 15:20:26 +0000 Subject: [PATCH] Bug 1483252 - Replace 0px with 0 throughout menu.css r=dao MozReview-Commit-ID: DiHVfBuSH7V Differential Revision: https://phabricator.services.mozilla.com/D3689 --HG-- extra : moz-landing-system : lando --- toolkit/themes/linux/global/menu.css | 24 ++++++++++++------------ toolkit/themes/windows/global/menu.css | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/toolkit/themes/linux/global/menu.css b/toolkit/themes/linux/global/menu.css index 64ebe6ee57f9..331ce178d02f 100644 --- a/toolkit/themes/linux/global/menu.css +++ b/toolkit/themes/linux/global/menu.css @@ -49,7 +49,7 @@ menucaption[disabled="true"] { } menubar > menu { - padding: 0px 4px; + padding: 0 4px; color: -moz-menubartext; } @@ -95,9 +95,9 @@ menulist > menupopup > menu { .menu-text, .menu-iconic-left, .menu-iconic-text { - margin-top: 0px !important; - margin-bottom: 0px !important; - margin-inline-start: 0px !important; + margin-top: 0 !important; + margin-bottom: 0 !important; + margin-inline-start: 0 !important; margin-inline-end: 2px !important; } @@ -108,8 +108,8 @@ menulist > menupopup > menu { .menu-accel, .menu-iconic-accel { - margin-top: 0px !important; - margin-bottom: 0px !important; + margin-top: 0 !important; + margin-bottom: 0 !important; margin-inline-start: 7px !important; } @@ -129,10 +129,10 @@ menulist > menupopup > menu { } .menu-right { - margin-top: 0px; - margin-bottom: 0px; + margin-top: 0; + margin-bottom: 0; margin-inline-start: 6px; - margin-inline-end: 0px; + margin-inline-end: 0; width: 1ex; height: 1ex; /* These next two rules are needed to prevent inheritance and thus ugliness */ @@ -142,9 +142,9 @@ menulist > menupopup > menu { } .menubar-left { - margin-top: 0px; - margin-bottom: 0px; - margin-inline-start: 0px; + margin-top: 0; + margin-bottom: 0; + margin-inline-start: 0; margin-inline-end: 2px; } diff --git a/toolkit/themes/windows/global/menu.css b/toolkit/themes/windows/global/menu.css index 012c46685e39..8825ddcadb39 100644 --- a/toolkit/themes/windows/global/menu.css +++ b/toolkit/themes/windows/global/menu.css @@ -53,8 +53,8 @@ menucaption { .menu-iconic-accel, .menu-text, .menu-iconic-text { - margin: 0px !important; - padding: 1px 0px; + margin: 0 !important; + padding: 1px 0; } .menu-text { @@ -199,8 +199,8 @@ menulist > menupopup > menu > .menu-iconic-left { menulist > menupopup > menuitem > label, menulist > menupopup > menucaption > label, menulist > menupopup > menu > label { - padding-top: 0px; - padding-bottom: 0px; + padding-top: 0; + padding-bottom: 0; } menulist:-moz-focusring > menupopup > menuitem[_moz-menuactive="true"] { @@ -231,7 +231,7 @@ menuitem[checked="true"] { menuitem[type="checkbox"] > .menu-iconic-left, menuitem[checked="true"] > .menu-iconic-left { -moz-appearance: menucheckbox; - padding-top: 0px; + padding-top: 0; } menuitem[type="radio"] { @@ -239,7 +239,7 @@ menuitem[type="radio"] { } menuitem[type="radio"] > .menu-iconic-left { -moz-appearance: menuradio; - padding-top: 0px; + padding-top: 0; } menuitem[type="checkbox"] > .menu-iconic-left > .menu-iconic-icon,