| 1 | /* ***** BEGIN LICENSE BLOCK ***** |
| 2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 | * |
| 4 | * The contents of this file are subject to the Mozilla Public License Version |
| 5 | * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 | * the License. You may obtain a copy of the License at |
| 7 | * http://www.mozilla.org/MPL/ |
| 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 "Classic" theme of mozilla.org code. |
| 15 | * |
| 16 | * The Initial Developer of the Original Code is |
| 17 | * the Mozilla Organization. |
| 18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 |
| 19 | * the Initial Developer. All Rights Reserved. |
| 20 | * |
| 21 | * Contributor(s): |
| 22 | * Robert Kaiser <KaiRo@KaiRo.at> |
| 23 | * |
| 24 | * Alternatively, the contents of this file may be used under the terms of |
| 25 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
| 26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 | * in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 | * of those above. If you wish to allow use of your version of this file only |
| 29 | * under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 | * use your version of this file under the terms of the MPL, indicate your |
| 31 | * decision by deleting the provisions above and replace them with the notice |
| 32 | * and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 | * the provisions above, a recipient may use your version of this file under |
| 34 | * the terms of any one of the MPL, the GPL or the LGPL. |
| 35 | * |
| 36 | * ***** END LICENSE BLOCK ***** */ |
| 37 | |
| 38 | /** Contains style definitions for the navigator application |
| 39 | **/ |
| 40 | |
| 41 | @import url("chrome://navigator/content/navigator.css"); |
| 42 | @import url("chrome://communicator/skin/"); |
| 43 | @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css"); |
| 44 | |
| 45 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 46 | |
| 47 | /* ::::: primary toolbar buttons ::::: */ |
| 48 | |
| 49 | #back-button { |
| 50 | list-style-image: url("chrome://navigator/skin/icons/back.gif"); |
| 51 | } |
| 52 | |
| 53 | #back-button[disabled="true"] { |
| 54 | list-style-image: url("chrome://navigator/skin/icons/back-disabled.gif") !important; |
| 55 | } |
| 56 | |
| 57 | #forward-button { |
| 58 | list-style-image: url("chrome://navigator/skin/icons/forward.gif"); |
| 59 | } |
| 60 | |
| 61 | #forward-button[disabled="true"] { |
| 62 | list-style-image: url("chrome://navigator/skin/icons/forward-disabled.gif") !important; |
| 63 | } |
| 64 | |
| 65 | #reload-button { |
| 66 | list-style-image: url("chrome://navigator/skin/icons/reload.gif"); |
| 67 | } |
| 68 | |
| 69 | #reload-button[disabled="true"] { |
| 70 | list-style-image: url("chrome://navigator/skin/icons/reload-disabled.gif") !important; |
| 71 | } |
| 72 | |
| 73 | #stop-button { |
| 74 | list-style-image: url("chrome://global/skin/icons/stop.gif"); |
| 75 | } |
| 76 | |
| 77 | #stop-button[disabled="true"] { |
| 78 | list-style-image: url("chrome://global/skin/icons/stop-disabled.gif") !important; |
| 79 | } |
| 80 | |
| 81 | #print-button { |
| 82 | list-style-image: url("chrome://global/skin/icons/print.gif"); |
| 83 | } |
| 84 | |
| 85 | #print-button[disabled="true"] { |
| 86 | list-style-image: url("chrome://global/skin/icons/print-disabled.gif") !important; |
| 87 | } |
| 88 | |
| 89 | #clear-button { |
| 90 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); |
| 91 | } |
| 92 | |
| 93 | /* Hides text below the above buttons - should now be configurable */ |
| 94 | /* |
| 95 | .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text, |
| 96 | .toolbarbutton-1 > .toolbarbutton-text { |
| 97 | display: none; |
| 98 | } |
| 99 | */ |
| 100 | |
| 101 | #fullscreen-exit-button { |
| 102 | list-style-image: none; |
| 103 | } |
| 104 | |
| 105 | #fullscreen-exit-button > .toolbarbutton-text { |
| 106 | /* display: normal; */ |
| 107 | } |
| 108 | |
| 109 | /* ::::: small primary toolbar buttons ::::: */ |
| 110 | |
| 111 | .toolbarbutton-text[toolbarmode="small"] { |
| 112 | display: none; |
| 113 | } |
| 114 | |
| 115 | .toolbarbutton-icon[toolbarmode="small"] { |
| 116 | display: inline; |
| 117 | } |
| 118 | |
| 119 | #nav-bar[buttonstyle="text"] > #nav-bar-inner, |
| 120 | #nav-bar[buttonstyle="pictures"] > #nav-bar-inner, |
| 121 | #nav-bar[toolbarmode="small"] > #nav-bar-inner { |
| 122 | margin: 2px 0px 2px 4px; |
| 123 | } |
| 124 | |
| 125 | toolbar[toolbarmode="small"] > toolbargrippy { |
| 126 | display: none; |
| 127 | } |
| 128 | |
| 129 | /* ::::: fullscreen window controls ::::: */ |
| 130 | |
| 131 | #window-controls { |
| 132 | -moz-box-align: center; |
| 133 | padding: 0 2px 0 4px; |
| 134 | border-left: 1px solid #9999CC; |
| 135 | } |
| 136 | |
| 137 | #window-controls > toolbarbutton { |
| 138 | padding: 2px 0px 2px 2px; |
| 139 | } |
| 140 | |
| 141 | #minimize-button { |
| 142 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); |
| 143 | } |
| 144 | |
| 145 | #restore-button { |
| 146 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); |
| 147 | } |
| 148 | |
| 149 | #close-button { |
| 150 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); |
| 151 | } |
| 152 | |
| 153 | /* ::::: nav-bar-inner ::::: */ |
| 154 | |
| 155 | #nav-bar-inner { |
| 156 | padding-left: 0px; |
| 157 | min-width: 0px; |
| 158 | margin: 7px 4px 8px 4px; |
| 159 | } |
| 160 | |
| 161 | #urlbar { |
| 162 | border: 1px solid; |
| 163 | -moz-border-top-colors: #71737A; |
| 164 | -moz-border-right-colors: #EFF0F4; |
| 165 | -moz-border-bottom-colors: #EFF0F4; |
| 166 | -moz-border-left-colors: #71737A; |
| 167 | margin: 0px 7px 0px 0px; |
| 168 | } |
| 169 | |
| 170 | #urlbar[level="high"] > .autocomplete-textbox-container, |
| 171 | #urlbar[level="low"] > .autocomplete-textbox-container { |
| 172 | background-color: #FFFFCC; |
| 173 | } |
| 174 | |
| 175 | /* ::::: page proxy icon ::::: */ |
| 176 | |
| 177 | #page-proxy-deck, |
| 178 | #page-proxy-favicon, |
| 179 | #page-proxy-button { |
| 180 | width: 16px; |
| 181 | height: 16px; |
| 182 | } |
| 183 | |
| 184 | #page-proxy-deck { |
| 185 | cursor: -moz-grab; |
| 186 | margin: 1px 1px 1px 2px; |
| 187 | } |
| 188 | |
| 189 | #page-proxy-button { |
| 190 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
| 191 | padding-top: 2px; |
| 192 | padding-bottom: 2px; |
| 193 | } |
| 194 | |
| 195 | #page-proxy-favicon { |
| 196 | list-style-image: none; |
| 197 | } |
| 198 | |
| 199 | /* ::::: autocomplete ::::: */ |
| 200 | |
| 201 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
| 202 | padding-left: 13px; |
| 203 | } |
| 204 | |
| 205 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
| 206 | color: #808080; |
| 207 | /* font-style: italic; */ |
| 208 | } |
| 209 | |
| 210 | .autocomplete-search-box { |
| 211 | border-top: 1px solid #9999CC; |
| 212 | background-color: #666699; |
| 213 | color: #000000; |
| 214 | } |
| 215 | |
| 216 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
| 217 | border-top: 1px solid #666699; |
| 218 | } |
| 219 | |
| 220 | .autocomplete-search-engine { |
| 221 | padding: 2px; |
| 222 | } |
| 223 | |
| 224 | .autocomplete-search-engine[menuactive="true"] { |
| 225 | background-color: #9999CC; |
| 226 | color: #000000; |
| 227 | } |
| 228 | |
| 229 | .autocomplete-search-engine-img { |
| 230 | margin-right: 4px; |
| 231 | } |
| 232 | |
| 233 | /* ::::: go and searchbuttons ::::: */ |
| 234 | |
| 235 | #search-button, |
| 236 | #go-button { |
| 237 | margin: 0px 3px 0px 0px; |
| 238 | /* min-height: 25px; */ |
| 239 | font-weight: bold; |
| 240 | background-color: #9999CC; |
| 241 | } |
| 242 | |
| 243 | #search-button { |
| 244 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ |
| 245 | font-weight: bold; |
| 246 | } |
| 247 | |
| 248 | /* ::::: security button ::::: */ |
| 249 | |
| 250 | #security-button { |
| 251 | list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); |
| 252 | margin-left: 2px; |
| 253 | } |
| 254 | |
| 255 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
| 256 | #security-button[level="high"], |
| 257 | #security-button[level="low"] { |
| 258 | list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); |
| 259 | } |
| 260 | |
| 261 | #security-button[level="broken"] { |
| 262 | list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); |
| 263 | } |
| 264 | |
| 265 | #privacy-button { |
| 266 | list-style-image: url("chrome://communicator/skin/permissions/taskbar-cookie.gif"); |
| 267 | } |
| 268 | |
| 269 | #popupIcon { |
| 270 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); |
| 271 | } |
| 272 | |
| 273 | #popupImage { |
| 274 | list-style-image: url("chrome://navigator/skin/icons/about-popups.gif"); |
| 275 | margin: 6px 0px; |
| 276 | } |
| 277 | |
| 278 | /* ::::: personal toolbar ::::: */ |
| 279 | |
| 280 | #bookmarks-button { |
| 281 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); |
| 282 | } |
| 283 | |
| 284 | #bookmarks-button[open="true"] { |
| 285 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); |
| 286 | } |
| 287 | |
| 288 | #home-button { |
| 289 | list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); |
| 290 | } |
| 291 | |
| 292 | toolbarbutton.chevron { |
| 293 | list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important; |
| 294 | } |
| 295 | |
| 296 | toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { |
| 297 | display: none; |
| 298 | } |