better styles for textbox focus highlight
[themes.git] / EarlyBlue / global / textbox.css
index e5791898733f99ff5227364f1f18f88fd028076c..c452403ad8447ab3adcd614ada3f453608fdadeb 100644 (file)
  *
  * ***** END LICENSE BLOCK ***** */
 
-@import url("chrome://global/content/autocomplete.css");
-
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-@namespace html url("http://www.w3.org/1999/xhtml");
-
 /* ===== textbox.css ==================================================
   == Styles used by the XUL textbox element.
   ======================================================================= */
 
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
+
 /* ::::: textbox ::::: */
 
 textbox {
   cursor: text;
-  margin: 2px 4px;
+  margin: 2px 3px;
   border: 1px inset #CCD0DD;
   padding: 1px 0px 1px 2px;
   background-color: #FFFFFF;
   color: #000000;
+  min-height: 19px;
 }
 
-html|*.textbox-input, 
+html|*.textbox-input,
 html|*.textbox-textarea {
   margin: 0px !important;
   border: none !important;
@@ -65,6 +64,10 @@ html|*.textbox-textarea {
   font: inherit;
 }
 
+.textbox-input-box menupopup {
+  cursor: default;
+}
+
 /* ..... readonly state ..... */
 
 textbox[readonly="true"] {
@@ -78,16 +81,16 @@ textbox[disabled="true"] {
   cursor: default;
   background-color: #FFFFFF;
   color: #CCCCCC;
-} 
+}
 
 textbox[focused="true"] {
-  border: 2px solid #6699cc;
-  margin: 1px 3px;
+  border: 1px solid #6699CC;
+  outline: 1px solid #6699CC;
 }
 
 textbox[focused="true"][readonly="true"] {
-  border: 1px inset #CCCCCC;
-  margin: 2px 4px;
+  border: 1px solid #6699CC;
+  outline: none;
 }
 
 /* ::::: plain textbox ::::: */
@@ -96,4 +99,14 @@ textbox.plain {
   padding: 0px !important;
   margin: 0px !important;
   border: none !important;
+  outline: none !important;
+  background-color: inherit !important;
+  color: inherit !important;
+  min-height: 0px;
+}
+
+/* ::::: textboxes inside toolbarpaletteitems ::::: */
+
+toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
+  visibility: hidden;
 }