Bug 1560727 - use shared accountManage.css for shared CSS. r=Paenglab
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Tue, 25 Jun 2019 23:44:02 +0300
changeset 35952 d15c56d62143a589c71354a0659e3f5488a6540b
parent 35951 3004cd1a0a75432d7e04592580a8a7511f38dab5
child 35953 365e9e6a7f2c144fb1f33e586d908736baa6a9a5
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersPaenglab
bugs1560727
Bug 1560727 - use shared accountManage.css for shared CSS. r=Paenglab
mail/themes/linux/mail/accountManage.css
mail/themes/osx/mail/accountManage.css
mail/themes/shared/jar.inc.mn
mail/themes/shared/mail/accountManage.css
mail/themes/windows/mail/accountManage.css
--- a/mail/themes/linux/mail/accountManage.css
+++ b/mail/themes/linux/mail/accountManage.css
@@ -1,94 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-/* ===== accountManage.css ==============================================
-  == Styles for the Mail Account Manager.
-  ======================================================================= */
-
-@import url("chrome://messenger/skin/");
-@import url("chrome://messenger/content/bindings.css");
-
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
-/* ::::: account manager :::::: */
-
-.specialFolderPickerGrid {
-  margin-inline-start: 20px;
-}
-
-.fccReplyFollowsParent {
-  margin-inline-start: 20px;
-}
-
-.signatureBox {
-  font-family: -moz-fixed;
-}
-
-listitem[default="true"],
-#identitiesList > listitem:first-child {
-  font-weight: bold;
-}
-
-treechildren::-moz-tree-cell-text(isDefaultServer-true) {
-  text-decoration: underline;
-}
+@import url("chrome://messenger/skin/shared/accountManage.css");
 
 treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-smtp) {
   list-style-image: url("chrome://messenger/skin/icons/server.png");
   -moz-image-region: rect(16px 64px 32px 48px);
 }
-
-treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-im) {
-  list-style-image: url("chrome://chat/skin/prpl-generic/icon.png");
-}
-
-#accounttree treechildren::-moz-tree-indentation {
-  width: 1ch;
-}
-
-#accountActionsDropdown {
-  min-width: 30ch;
-}
-
-/* ::::: SMTP Server Panel :::::: */
-
-.smtpServerListItem {
-  padding-inline-start: 3px;
-}
-
-#backgroundBox {
-  background-color: #FFFFFF;
-  opacity: 0.5;
-}
-
-#smtpServerInfoBox {
-  border: 1px solid ThreeDShadow;
-  border-right-color: ThreeDHighlight;
-  border-bottom-color: ThreeDHighlight;
-  margin: 0 5px 5px;
-}
-
-#smtpServerInfoBox textbox {
-  background-color: transparent;
-}
-
-#archiveTree > treechildren {
-  background-color: -moz-Field;
-}
-
-/* ::::: dialog header ::::: */
-
-.dialogheader {
-  margin: 0 5px 5px;
-  border: 1px solid ThreeDDarkShadow;
-  padding: 5px 8px;
-  background-color: Highlight;
-  color: HighlightText;
-}
-
-.dialogheader-title {
-  margin: 0 !important;
-  font-size: larger;
-  font-weight: bold;
-}
--- a/mail/themes/osx/mail/accountManage.css
+++ b/mail/themes/osx/mail/accountManage.css
@@ -1,111 +1,53 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-/* ===== accountManage.css ==============================================
-  == Styles for the Mail Account Manager.
-  ======================================================================= */
-
-@import url("chrome://messenger/skin/");
-@import url("chrome://messenger/content/bindings.css");
-
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
-/* ::::: account manager :::::: */
-
-.specialFolderPickerGrid {
-  margin-inline-start: 20px;
-}
+@import url("chrome://messenger/skin/shared/accountManage.css");
 
-.fccReplyFollowsParent {
-  margin-inline-start: 20px;
-}
-
-.signatureBox {
-  font-family: -moz-fixed;
-}
-
-#am-main-title, .dialogheader {
-  display: none;
-}
-
-.dialog-button[dlgtype="help"] {
-  display: none;
-}
 
 #accounttree {
   margin-inline-end: 8px;
 }
 
-#accountActionsDropdown {
-  min-width: 30ch;
-}
-
-listitem[default="true"],
-#identitiesList > listitem:first-child,
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true) {
   font-weight: bold;
 }
 
-treechildren::-moz-tree-cell-text(isDefaultServer-true) {
-  text-decoration: underline;
-}
-
 treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-smtp) {
   list-style-image: url("chrome://messenger/skin/icons/server.png");
   -moz-image-region: rect(0 112px 16px 96px);
 }
 
 @media (min-resolution: 2dppx) {
   treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-smtp) {
     list-style-image: url("chrome://messenger/skin/icons/server@2x.png");
     -moz-image-region: rect(0 224px 32px 192px);
   }
-}
 
-treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-im) {
-  list-style-image: url("chrome://chat/skin/prpl-generic/icon.png");
-}
-
-@media (min-resolution: 2dppx) {
   treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-im) {
     list-style-image: url("chrome://chat/skin/prpl-generic/icon32.png");
   }
 }
 
-#accounttree treechildren::-moz-tree-indentation {
-  width: 1ch;
-}
-
 button:not(.dialog-button) {
   min-height: 19px; /* aqua size for small buttons */
 }
 
 description {
   margin: 4px 4px 8px;
 }
 
 #archiveTree > treechildren {
   background-color: #FFFFFF;
 }
 
-#smtpServerInfoBox {
-  border: 1px solid ThreeDShadow;
-  border-right-color: ThreeDHighlight;
-  border-bottom-color: ThreeDHighlight;
-  margin: 0 5px 5px;
-}
-
 /* ::::: dialog header ::::: */
 
 .dialogheader {
   margin: 0 5px 5px;
   padding: 5px 8px;
 }
 
 .dialogheader-title {
-  margin: 0 !important;
-  font-size: larger;
-  font-weight: bold;
   display: none;
 }
--- a/mail/themes/shared/jar.inc.mn
+++ b/mail/themes/shared/jar.inc.mn
@@ -99,16 +99,17 @@
   skin/classic/messenger/icons/thread-col.svg                 (../shared/mail/icons/thread-col.svg)
   skin/classic/messenger/icons/tick.png                       (../shared/mail/icons/tick.png)
   skin/classic/messenger/icons/timeline.svg                   (../shared/mail/icons/timeline.svg)
   skin/classic/messenger/icons/toolbarbutton-arrow.svg        (../shared/mail/icons/toolbarbutton-arrow.svg)
   skin/classic/messenger/icons/userIcon.svg                   (../shared/mail/icons/userIcon.svg)
   skin/classic/messenger/icons/waiting.svg                    (../shared/mail/icons/waiting.svg)
   skin/classic/messenger/shared/accountCentral.css            (../shared/mail/accountCentral.css)
   skin/classic/messenger/shared/accountCreation.css           (../shared/mail/accountCreation.css)
+  skin/classic/messenger/shared/accountManage.css             (../shared/mail/accountManage.css)
   skin/classic/messenger/shared/accountProvisioner.css        (../shared/mail/accountProvisioner.css)
   skin/classic/messenger/shared/addressbook.css               (../shared/mail/addressbook.css)
   skin/classic/messenger/shared/compacttheme.css              (../shared/mail/compacttheme.css)
   skin/classic/messenger/shared/in-content/dialog.css         (../shared/mail/incontentprefs/dialog.css)
   skin/classic/messenger/shared/in-content/aboutPreferences.css (../shared/mail/incontentprefs/aboutPreferences.css)
   skin/classic/messenger/shared/in-content/account.svg        (../shared/mail/incontentprefs/account.svg)
   skin/classic/messenger/shared/in-content/advanced.svg       (../shared/mail/incontentprefs/advanced.svg)
   skin/classic/messenger/shared/in-content/attachment.svg     (../shared/mail/incontentprefs/attachment.svg)
copy from mail/themes/windows/mail/accountManage.css
copy to mail/themes/shared/mail/accountManage.css
--- a/mail/themes/windows/mail/accountManage.css
+++ b/mail/themes/shared/mail/accountManage.css
@@ -20,30 +20,25 @@
 .fccReplyFollowsParent {
   margin-inline-start: 20px;
 }
 
 .signatureBox {
   font-family: -moz-fixed;
 }
 
-listitem[default="true"],
-#identitiesList > listitem:first-child {
+richlistitem[default="true"],
+#identitiesList > richlistitem:first-child {
   font-weight: bold;
 }
 
 treechildren::-moz-tree-cell-text(isDefaultServer-true) {
   text-decoration: underline;
 }
 
-treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-smtp) {
-  list-style-image: url("chrome://messenger/skin/icons/server.png");
-  -moz-image-region: rect(16px 64px 32px 48px);
-}
-
 treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-im) {
   list-style-image: url("chrome://chat/skin/prpl-generic/icon.png");
 }
 
 #accounttree treechildren::-moz-tree-indentation {
   width: 1ch;
 }
 
--- a/mail/themes/windows/mail/accountManage.css
+++ b/mail/themes/windows/mail/accountManage.css
@@ -1,94 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-/* ===== accountManage.css ==============================================
-  == Styles for the Mail Account Manager.
-  ======================================================================= */
-
-@import url("chrome://messenger/skin/");
-@import url("chrome://messenger/content/bindings.css");
-
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
-/* ::::: account manager :::::: */
-
-.specialFolderPickerGrid {
-  margin-inline-start: 20px;
-}
-
-.fccReplyFollowsParent {
-  margin-inline-start: 20px;
-}
-
-.signatureBox {
-  font-family: -moz-fixed;
-}
-
-listitem[default="true"],
-#identitiesList > listitem:first-child {
-  font-weight: bold;
-}
-
-treechildren::-moz-tree-cell-text(isDefaultServer-true) {
-  text-decoration: underline;
-}
+@import url("chrome://messenger/skin/shared/accountManage.css");
 
 treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-smtp) {
   list-style-image: url("chrome://messenger/skin/icons/server.png");
   -moz-image-region: rect(16px 64px 32px 48px);
 }
-
-treechildren::-moz-tree-image(folderNameCol, isServer-true, serverType-im) {
-  list-style-image: url("chrome://chat/skin/prpl-generic/icon.png");
-}
-
-#accounttree treechildren::-moz-tree-indentation {
-  width: 1ch;
-}
-
-#accountActionsDropdown {
-  min-width: 30ch;
-}
-
-/* ::::: SMTP Server Panel :::::: */
-
-.smtpServerListItem {
-  padding-inline-start: 3px;
-}
-
-#backgroundBox {
-  background-color: #FFFFFF;
-  opacity: 0.5;
-}
-
-#smtpServerInfoBox {
-  border: 1px solid ThreeDShadow;
-  border-right-color: ThreeDHighlight;
-  border-bottom-color: ThreeDHighlight;
-  margin: 0 5px 5px;
-}
-
-#smtpServerInfoBox textbox {
-  background-color: transparent;
-}
-
-#archiveTree > treechildren {
-  background-color: -moz-Field;
-}
-
-/* ::::: dialog header ::::: */
-
-.dialogheader {
-  margin: 0 5px 5px;
-  border: 1px solid ThreeDDarkShadow;
-  padding: 5px 8px;
-  background-color: Highlight;
-  color: HighlightText;
-}
-
-.dialogheader-title {
-  margin: 0 !important;
-  font-size: larger;
-  font-weight: bold;
-}