sync both themes with toolkit windows theme changes in Mozilla 35 cycle
[themes.git] / EarlyBlue / global / autocomplete.css
index 591da91125dd7861dc083316771b7578d04cbc17..6bd01046c758f321680f75961cd7ca1cf30b3062 100644 (file)
@@ -124,6 +124,32 @@ panel[type="autocomplete-richlistbox"],
   border-top: 1px solid #666699;
 }
 
+.ac-title-box {
+}
+
+.ac-url-box {
+  /* When setting a vertical margin here, half of that needs to be added
+     .ac-title-box's translateY for when .ac-url-box is hidden (see below). */
+/*  margin: 1px 0 4px;*/
+}
+
+.autocomplete-richlistitem[actiontype="keyword"] .ac-url-box,
+.autocomplete-richlistitem[actiontype="searchengine"] .ac-url-box,
+.autocomplete-richlistitem[actiontype="visiturl"] .ac-url-box,
+.autocomplete-richlistitem[type~="autofill"] .ac-url-box {
+  visibility: hidden;
+}
+
+.autocomplete-richlistitem[actiontype="keyword"] .ac-title-box,
+.autocomplete-richlistitem[actiontype="searchengine"] .ac-title-box,
+.autocomplete-richlistitem[actiontype="visiturl"] .ac-title-box,
+.autocomplete-richlistitem[type~="autofill"] .ac-title-box {
+  /* Center the title by moving it down by half of .ac-url-box's height,
+     including vertical margins (if any). */
+/*  transform: translateY(calc(.5em + 2px));*/
+  transform: translateY(calc(.5em));
+}
+
 .ac-site-icon {
   width: 16px;
   height: 16px;