| 1 | /* ***** BEGIN LICENSE BLOCK ***** |
| 2 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 | * |
| 4 | * The contents of this file are subject to the Netscape Public License |
| 5 | * Version 1.1 (the "License"); you may not use this file except in |
| 6 | * compliance with the License. You may obtain a copy of the License at |
| 7 | * http://www.mozilla.org/NPL/ |
| 8 | * |
| 9 | * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 11 | * for the specific language governing rights and limitations under the |
| 12 | * License. |
| 13 | * |
| 14 | * The Original Code is mozilla.org code. |
| 15 | * |
| 16 | * The Initial Developer of the Original Code is |
| 17 | * Netscape Communications Corporation. |
| 18 | * Portions created by the Initial Developer are Copyright (C) 1998 |
| 19 | * the Initial Developer. All Rights Reserved. |
| 20 | * |
| 21 | * Contributor(s): |
| 22 | * Joe Hewitt (hewitt@netscape.com) |
| 23 | * Robert Kaiser <KaiRo@KaiRo.at> |
| 24 | * |
| 25 | * Alternatively, the contents of this file may be used under the terms of |
| 26 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
| 27 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 28 | * in which case the provisions of the GPL or the LGPL are applicable instead |
| 29 | * of those above. If you wish to allow use of your version of this file only |
| 30 | * under the terms of either the GPL or the LGPL, and not to allow others to |
| 31 | * use your version of this file under the terms of the NPL, indicate your |
| 32 | * decision by deleting the provisions above and replace them with the notice |
| 33 | * and other provisions required by the GPL or the LGPL. If you do not delete |
| 34 | * the provisions above, a recipient may use your version of this file under |
| 35 | * the terms of any one of the NPL, the GPL or the LGPL. |
| 36 | * |
| 37 | * ***** END LICENSE BLOCK ***** */ |
| 38 | |
| 39 | /* ===== addressbook.css ================================================ |
| 40 | == Styles for the main Address Book window. |
| 41 | ======================================================================= */ |
| 42 | |
| 43 | @import url("chrome://messenger/skin/"); |
| 44 | @import url("chrome://communicator/skin/sidebar/sidebar.css"); |
| 45 | |
| 46 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 47 | |
| 48 | /* ::::: addressbook image precaching ::::: */ |
| 49 | |
| 50 | #resource_bundle_addressbook { |
| 51 | -moz-binding: url("chrome://messenger/skin/addressbook/resources.xml#resource_bundle_addressbook"); |
| 52 | } |
| 53 | |
| 54 | /* ::::: primary toolbar buttons ::::: */ |
| 55 | |
| 56 | #button-newcard { |
| 57 | list-style-image:url("chrome://messenger/skin/addressbook/newcard.gif"); |
| 58 | } |
| 59 | |
| 60 | #button-newcard[disabled="true"], |
| 61 | #button-newcard[disabled="true"]:hover, |
| 62 | #button-newcard[disabled="true"]:hover:active |
| 63 | { |
| 64 | list-style-image : url("chrome://messenger/skin/addressbook/newcard-disabled.gif"); |
| 65 | } |
| 66 | |
| 67 | #button-newlist { |
| 68 | list-style-image: url("chrome://messenger/skin/addressbook/newlist.gif"); |
| 69 | } |
| 70 | |
| 71 | #button-newlist[disabled="true"], |
| 72 | #button-newlist[disabled="true"]:hover, |
| 73 | #button-newlist[disabled="true"]:hover:active |
| 74 | { |
| 75 | list-style-image : url("chrome://messenger/skin/addressbook/newlist-disabled.gif"); |
| 76 | } |
| 77 | |
| 78 | #button-editcard { |
| 79 | list-style-image:url("chrome://messenger/skin/addressbook/person.gif"); |
| 80 | } |
| 81 | |
| 82 | #button-editcard[disabled="true"], |
| 83 | #button-editcard[disabled="true"]:hover, |
| 84 | #button-editcard[disabled="true"]:hover:active |
| 85 | { |
| 86 | list-style-image : url("chrome://messenger/skin/addressbook/person-disabled.gif"); |
| 87 | } |
| 88 | |
| 89 | #button-newmessage { |
| 90 | list-style-image:url("chrome://messenger/skin/addressbook/newmsg.gif"); |
| 91 | } |
| 92 | |
| 93 | #button-newmessage[disabled="true"], |
| 94 | #button-newmessage[disabled="true"]:hover, |
| 95 | #button-newmessage[disabled="true"]:hover:active |
| 96 | { |
| 97 | list-style-image : url("chrome://messenger/skin/addressbook/newmsg-disabled.gif"); |
| 98 | } |
| 99 | |
| 100 | #button-delete { |
| 101 | list-style-image:url("chrome://messenger/skin/addressbook/trash.gif"); |
| 102 | } |
| 103 | |
| 104 | #button-delete[disabled="true"], |
| 105 | #button-delete[disabled="true"]:hover, |
| 106 | #button-delete[disabled="true"]:hover:active |
| 107 | { |
| 108 | list-style-image : url("chrome://messenger/skin/addressbook/trash-disabled.gif"); |
| 109 | } |
| 110 | |
| 111 | /* ::::: sidebar header ::::: */ |
| 112 | |
| 113 | sidebarheader { |
| 114 | border: 1px outset #CCD0DD; |
| 115 | } |
| 116 | |
| 117 | #sidebar-title-box { |
| 118 | border: none; |
| 119 | } |
| 120 | |
| 121 | /* CardView styles - used in the Card View Pane */ |
| 122 | |
| 123 | #CardViewOuterBox { |
| 124 | /* border-left: 1px solid ThreeDShadow; |
| 125 | border-top: 1px solid ThreeDShadow; |
| 126 | border-right: 1px solid ThreeDHighlight; */ |
| 127 | } |
| 128 | |
| 129 | #CardViewBox { |
| 130 | -moz-user-focus: ignore; |
| 131 | overflow: auto; |
| 132 | min-width: 150px; |
| 133 | background-color: #CCD0DD; |
| 134 | } |
| 135 | |
| 136 | #CardViewInnerBox { |
| 137 | margin-top: 2px; |
| 138 | margin-bottom: 2px; |
| 139 | padding-left: 8px; |
| 140 | padding-right: 8px; |
| 141 | } |
| 142 | |
| 143 | #CardTitle { |
| 144 | font-size: 150%; |
| 145 | font-weight: bold; |
| 146 | border-bottom: 2px solid black; |
| 147 | min-width: 120px; |
| 148 | margin: 0px; |
| 149 | } |
| 150 | |
| 151 | .cardViewGroup { |
| 152 | margin-top: 8px; |
| 153 | padding-bottom: 5px; |
| 154 | min-width: 50px; |
| 155 | } |
| 156 | |
| 157 | .CardViewHeading { |
| 158 | padding: 1px; |
| 159 | padding-left: 5px; |
| 160 | margin: 0px 0px 1px 0px; |
| 161 | background-color: #9999CC; |
| 162 | color: #FFFFFF; |
| 163 | font-weight: bold; |
| 164 | min-width: 30px; |
| 165 | } |
| 166 | |
| 167 | .CardViewText, |
| 168 | .CardViewLink { |
| 169 | padding-left: 20px; |
| 170 | padding-right: 2px; |
| 171 | min-width: 30px; |
| 172 | margin: 0px; |
| 173 | } |
| 174 | |
| 175 | .CardViewLink { |
| 176 | color: blue; |
| 177 | text-decoration: underline; |
| 178 | cursor: pointer; |
| 179 | } |
| 180 | |
| 181 | html|a { |
| 182 | padding-left: 0px; |
| 183 | padding-right: 2px; |
| 184 | border: none !important; |
| 185 | } |
| 186 | |
| 187 | html|p { |
| 188 | border: none !important; |
| 189 | } |
| 190 | |
| 191 | /* ::::: border adjustments ::::: */ |
| 192 | |
| 193 | #sidebar-box { |
| 194 | /* border-top: none; |
| 195 | border-right: 1px solid ThreeDHighlight; |
| 196 | border-bottom: none; |
| 197 | border-left: 1px solid ThreeDShadow; */ |
| 198 | } |
| 199 | |
| 200 | #dirTree, #resultsTree { |
| 201 | border: none; |
| 202 | margin: 0px; |
| 203 | } |
| 204 | |
| 205 | #resultsTree { |
| 206 | /* border-left: 1px solid ThreeDShadow; */ |
| 207 | } |
| 208 | |