Bug 1439172 - port bug 1427364: Show comments in address autocomplete when they exist. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Sun, 18 Feb 2018 13:42:17 +0100
changeset 31142 b4e185898c1f1d24f762f7c11b3d5c7b37f57b58
parent 31141 e0290580088ab213b003b3e0738cd14718a7461d
child 31143 f51fea20a88c099624cc0145b4168b38eed204c8
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersjorgk
bugs1439172, 1427364
Bug 1439172 - port bug 1427364: Show comments in address autocomplete when they exist. r=jorgk
mail/themes/linux/mail/compose/messengercompose.css
mail/themes/osx/mail/compose/messengercompose.css
mail/themes/windows/mail/compose/messengercompose.css
--- a/mail/themes/linux/mail/compose/messengercompose.css
+++ b/mail/themes/linux/mail/compose/messengercompose.css
@@ -4,16 +4,17 @@
 
 /* ===== messengercompose.css ===========================================
   == Styles for the main Messenger Compose window.
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
 
 #attachmentBucket {
   width: 15em;
   min-width: 15em;
 }
 
 #attachmentBucket:focus {
   box-shadow: 0 0 2px Highlight inset, 0 0 2px Highlight inset;
@@ -272,16 +273,37 @@ menulist:-moz-locale-dir(rtl) > .menulis
 
 .autocomplete-richlistitem[selected] {
   background-color: Highlight;
   color: HighlightText;
 }
 
 /* ::::: autocomplete icons ::::: */
 
+html|span.ac-emphasize-text {
+  font-weight: bold;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url,
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  display: -moz-box;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url {
+  -moz-box-ordinal-group: 1;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  -moz-box-ordinal-group: 2;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-title {
+  -moz-box-ordinal-group: 3;
+}
+
 .ac-site-icon {
   display: -moz-box;
   margin: 1px 5px;
 }
 
 .autocomplete-richlistitem[type="local-abook"] > .ac-site-icon {
   list-style-image: url("chrome://messenger/skin/addressbook/icons/addrbook.png");
 }
--- a/mail/themes/osx/mail/compose/messengercompose.css
+++ b/mail/themes/osx/mail/compose/messengercompose.css
@@ -4,16 +4,17 @@
 
 /* ===== messengercompose.css ===========================================
   == Styles for the main Messenger Compose window.
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
 
 #compose-toolbox:-moz-lwtheme {
   -moz-appearance: none;
   background-color: var(--toolbar-bgcolor);
   color: var(--toolbar-color, inherit);
 }
 
 #attachmentBucket {
@@ -318,16 +319,37 @@ toolbar[nowindowdrag="true"] {
 
 .autocomplete-richlistitem[selected] {
   background-color: Highlight;
   color: HighlightText;
 }
 
 /* ::::: autocomplete icons ::::: */
 
+html|span.ac-emphasize-text {
+  font-weight: bold;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url,
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  display: -moz-box;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url {
+  -moz-box-ordinal-group: 1;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  -moz-box-ordinal-group: 2;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-title {
+  -moz-box-ordinal-group: 3;
+}
+
 .ac-site-icon {
   display: -moz-box;
   margin: 2px 5px;
 }
 
 .autocomplete-richlistitem[type="local-abook"] > .ac-site-icon {
   list-style-image: url("chrome://messenger/skin/addressbook/icons/addrbook.png");
 }
--- a/mail/themes/windows/mail/compose/messengercompose.css
+++ b/mail/themes/windows/mail/compose/messengercompose.css
@@ -4,16 +4,17 @@
 
 /* ===== messengercompose.css ===========================================
   == Styles for the main Messenger Compose window.
   ======================================================================= */
 
 @import url("chrome://messenger/skin/");
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml");
 
 #attachmentBucket {
   -moz-appearance: none;
   width: 15em;
   min-width: 15em;
   border-top: 1px solid #A9B7C9; /* The same color as the splitters */
   border-bottom: 1px solid #A9B7C9;
   background-color: -moz-Field;
@@ -785,16 +786,37 @@ toolbar:not(:-moz-lwtheme) {
 
 .autocomplete-richlistitem[selected] {
   background-color: Highlight;
   color: HighlightText;
 }
 
 /* ::::: autocomplete icons ::::: */
 
+html|span.ac-emphasize-text {
+  font-weight: bold;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url,
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  display: -moz-box;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-url {
+  -moz-box-ordinal-group: 1;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-separator {
+  -moz-box-ordinal-group: 2;
+}
+
+.autocomplete-richlistitem:not([ac-comment=""]) > .ac-title {
+  -moz-box-ordinal-group: 3;
+}
+
 .ac-site-icon {
   display: -moz-box;
   margin: 1px 5px;
 }
 
 .autocomplete-richlistitem[type="local-abook"] > .ac-site-icon {
   list-style-image: url("chrome://messenger/skin/addressbook/icons/addrbook.png");
 }