Bug 1115924 - InContent pages: remove the focusring border when not active. r=jaws
authorRichard Marti <richard.marti@gmail.com>
Sun, 01 Feb 2015 20:24:26 +0100
changeset 229050 5bf16b55dd0d31705f30e63fd4c64ecbc0257e22
parent 229049 2fa362f5b1b8f4ebdf0c4e9dd0f34018869e3f91
child 229051 3ad37a67d2d5327b62a714ad2faad5c1cae138b7
push id28280
push usercbook@mozilla.com
push dateMon, 16 Feb 2015 14:48:41 +0000
treeherdermozilla-central@2a6a0c025c7b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1115924
milestone38.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 1115924 - InContent pages: remove the focusring border when not active. r=jaws
toolkit/themes/windows/global/in-content/common.css
--- a/toolkit/themes/windows/global/in-content/common.css
+++ b/toolkit/themes/windows/global/in-content/common.css
@@ -58,14 +58,34 @@ xul|*.checkbox-icon {
 }
 
 html|a:-moz-focusring,
 xul|*.text-link:-moz-focusring,
 xul|*.inline-link:-moz-focusring {
   border: 1px dotted -moz-DialogText;
 }
 
+/* Don't draw a transparent border for the focusring because when page
+   colors are disabled, the border is drawn in -moz-DialogText */
+xul|*.text-link:not(:-moz-focusring),
+xul|button:not(:-moz-focusring) > xul|*.button-box,
+xul|menulist:not(:-moz-focusring) > xul|*.menulist-label-box,
 xul|radio:not([focused="true"]) > xul|*.radio-label-box,
 xul|checkbox:not(:-moz-focusring) > xul|*.checkbox-label-box {
   border-width: 0;
   margin: 1px;
+}
+
+xul|*.text-link:not(:-moz-focusring) {
+  margin-top: 2px;
+  margin-right: 1px !important;
+  margin-left: 1px !important;
+  margin-bottom: 3px;
+}
+
+xul|menulist:not(:-moz-focusring) > xul|*.menulist-label-box {
+  margin: 2px;
+}
+
+xul|radio:not([focused="true"]) > xul|*.radio-label-box,
+xul|checkbox:not(:-moz-focusring) > xul|*.checkbox-label-box {
   -moz-margin-start: 0;
 }