Bug 513858: Inverse themes (light text on dark backgrounds) break theme (content patch), r=stuart
authorMark Finkle <mfinkle@mozilla.com>
Wed, 02 Sep 2009 01:22:53 -0400
changeset 65503 5b70aff42f92fa68b955485f17844ce12c234f51
parent 65502 a9fa9760bbd0d8f110cd0df6712aeccab09014ac
child 65504 c6f107f8996f36e46c59e90caa1093ecc3516623
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstuart
bugs513858
Bug 513858: Inverse themes (light text on dark backgrounds) break theme (content patch), r=stuart
mobile/chrome/content/content.css
--- a/mobile/chrome/content/content.css
+++ b/mobile/chrome/content/content.css
@@ -59,8 +59,64 @@ select {
 }
 
 select:not([size]) > scrollbar,
 select[size="1"] > scrollbar,
 select:not([size]) scrollbarbutton,
 select[size="1"] scrollbarbutton {
   display:block !important;
 }
+
+/* Override inverse OS themes */
+textarea,
+select, select[size], select[multiple], select[size][multiple],
+input:not([type]),
+input[type="text"],
+input[type="file"],
+input[type="password"] {
+  color: black;
+  background-color: white;
+  border: 1px solid silver;
+}
+
+/* Override inverse OS themes */
+button,
+input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+  color: black;
+  background-color: silver;
+  border: 2px outset silver;
+}
+
+/* Override inverse OS themes */
+input[type="radio"],
+input[type="checkbox"] {
+  color: black !important;
+  background-color: white !important;
+  border: 2px inset gray;
+}
+
+/* Override inverse OS themes */
+input[disabled],
+textarea[disabled],
+option[disabled],
+optgroup[disabled],
+select[disabled] {
+  color: silver;
+  background-color: white;
+}
+
+/* Override inverse OS themes */
+button[disabled],
+input[type="reset"][disabled],
+input[type="button"][disabled],
+select[disabled] > input[type="button"],
+input[type="submit"][disabled] {
+  border: 2px outset silver;
+  color: gray;
+}
+
+/* Override inverse OS themes */
+input[type="radio"][disabled],
+input[type="checkbox"][disabled] {
+  border: 1px inset silver;
+}