| 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 | /********** resource bundle binding **********/ |
| 48 | |
| 49 | /* ::::: primary toolbar buttons ::::: */ |
| 50 | |
| 51 | #back-button { |
| 52 | list-style-image: url("chrome://navigator/skin/icons/back.gif"); |
| 53 | } |
| 54 | |
| 55 | #back-button:hover, |
| 56 | #back-button:hover:active, |
| 57 | #back-button[open="true"] { |
| 58 | list-style-image: url("chrome://navigator/skin/icons/back-hover.gif"); |
| 59 | } |
| 60 | |
| 61 | #back-button[disabled="true"] { |
| 62 | list-style-image: url("chrome://navigator/skin/icons/back-disabled.gif") !important; |
| 63 | } |
| 64 | |
| 65 | #forward-button { |
| 66 | list-style-image: url("chrome://navigator/skin/icons/forward.gif"); |
| 67 | } |
| 68 | |
| 69 | #forward-button:hover, |
| 70 | #forward-button:hover:active, |
| 71 | #forward-button[open="true"] { |
| 72 | list-style-image: url("chrome://navigator/skin/icons/forward-hover.gif"); |
| 73 | } |
| 74 | |
| 75 | #forward-button[disabled="true"] { |
| 76 | list-style-image: url("chrome://navigator/skin/icons/forward-disabled.gif") !important; |
| 77 | } |
| 78 | |
| 79 | #reload-button { |
| 80 | list-style-image: url("chrome://navigator/skin/icons/reload.gif"); |
| 81 | } |
| 82 | |
| 83 | #reload-button:hover, |
| 84 | #reload-button:hover:active { |
| 85 | list-style-image: url("chrome://navigator/skin/icons/reload-hover.gif"); |
| 86 | } |
| 87 | |
| 88 | #reload-button[disabled="true"] { |
| 89 | list-style-image: url("chrome://navigator/skin/icons/reload-disabled.gif") !important; |
| 90 | } |
| 91 | |
| 92 | #stop-button { |
| 93 | list-style-image: url("chrome://global/skin/icons/stop.gif"); |
| 94 | } |
| 95 | |
| 96 | #stop-button:hover, |
| 97 | #stop-button:hover:active { |
| 98 | list-style-image: url("chrome://global/skin/icons/stop-hover.gif"); |
| 99 | } |
| 100 | |
| 101 | #stop-button[disabled="true"] { |
| 102 | list-style-image: url("chrome://global/skin/icons/stop-disabled.gif") !important; |
| 103 | } |
| 104 | |
| 105 | #print-button { |
| 106 | list-style-image: url("chrome://global/skin/icons/print.gif"); |
| 107 | } |
| 108 | |
| 109 | #print-button:hover, |
| 110 | #print-button:hover:active, |
| 111 | #print-button[open="true"] { |
| 112 | list-style-image: url("chrome://global/skin/icons/print-hover.gif"); |
| 113 | } |
| 114 | |
| 115 | #print-button[disabled="true"] { |
| 116 | list-style-image: url("chrome://global/skin/icons/print-disabled.gif") !important; |
| 117 | } |
| 118 | |
| 119 | #clear-button { |
| 120 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); |
| 121 | } |
| 122 | |
| 123 | #clear-button:hover { |
| 124 | list-style-image: url("chrome://global/skin/icons/close-button-hover.gif"); |
| 125 | } |
| 126 | |
| 127 | /* Hides text below the above buttons */ |
| 128 | /* |
| 129 | .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text, |
| 130 | .toolbarbutton-1 > .toolbarbutton-text { |
| 131 | display: none; |
| 132 | } |
| 133 | */ |
| 134 | |
| 135 | #fullscreen-exit-button { |
| 136 | list-style-image: none; |
| 137 | } |
| 138 | |
| 139 | #fullscreen-exit-button > .toolbarbutton-text { |
| 140 | /* display: normal; */ |
| 141 | } |
| 142 | |
| 143 | /* ::::: small primary toolbar buttons ::::: */ |
| 144 | |
| 145 | .toolbarbutton-text[toolbarmode="small"] { |
| 146 | display: none; |
| 147 | } |
| 148 | |
| 149 | .toolbarbutton-icon[toolbarmode="small"] { |
| 150 | display: inline; |
| 151 | } |
| 152 | |
| 153 | #nav-bar[buttonstyle="text"] > #nav-bar-inner, |
| 154 | #nav-bar[buttonstyle="pictures"] > #nav-bar-inner, |
| 155 | #nav-bar[toolbarmode="small"] > #nav-bar-inner { |
| 156 | margin: 2px 0px 2px 6px; |
| 157 | } |
| 158 | |
| 159 | toolbar[toolbarmode="small"] > toolbargrippy { |
| 160 | /* display: none; */ |
| 161 | } |
| 162 | |
| 163 | /* ::::: fullscreen window controls ::::: */ |
| 164 | |
| 165 | #window-controls { |
| 166 | -moz-box-align: center; |
| 167 | padding: 0 3px 0 1px; |
| 168 | border-left: 3px solid #000000; |
| 169 | } |
| 170 | |
| 171 | #window-controls > toolbarbutton { |
| 172 | padding: 2px 0px 2px 2px; |
| 173 | } |
| 174 | |
| 175 | #minimize-button { |
| 176 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); |
| 177 | } |
| 178 | |
| 179 | #minimize-button:hover { |
| 180 | list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif"); |
| 181 | } |
| 182 | |
| 183 | #restore-button { |
| 184 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); |
| 185 | } |
| 186 | |
| 187 | #restore-button:hover { |
| 188 | list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif"); |
| 189 | } |
| 190 | |
| 191 | #close-button { |
| 192 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); |
| 193 | } |
| 194 | |
| 195 | #close-button:hover { |
| 196 | list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif"); |
| 197 | } |
| 198 | |
| 199 | /* ::::: nav-bar-inner ::::: */ |
| 200 | |
| 201 | #nav-bar-inner { |
| 202 | padding-left: 0px; |
| 203 | min-width: 0px; |
| 204 | margin: 6px 4px 7px 4px; |
| 205 | } |
| 206 | |
| 207 | #urlbar { |
| 208 | -moz-border-top-colors: transparent #9C9CFF; |
| 209 | -moz-border-right-colors: transparent #9C9CFF; |
| 210 | -moz-border-bottom-colors: transparent #9C9CFF; |
| 211 | -moz-border-left-colors: transparent #9C9CFF; |
| 212 | background-color: #000000; |
| 213 | margin: 0px 7px 0px 0px; |
| 214 | } |
| 215 | |
| 216 | #urlbar[level="high"] > .autocomplete-textbox-container, |
| 217 | #urlbar[level="low"] > .autocomplete-textbox-container { |
| 218 | background-color: #FFCF00; |
| 219 | color: #000000; |
| 220 | } |
| 221 | |
| 222 | /* ::::: page proxy icon ::::: */ |
| 223 | |
| 224 | #page-proxy-deck, |
| 225 | #page-proxy-favicon, |
| 226 | #page-proxy-button { |
| 227 | width: 16px; |
| 228 | height: 16px; |
| 229 | } |
| 230 | |
| 231 | #page-proxy-deck { |
| 232 | cursor: -moz-grab; |
| 233 | margin: 1px 1px 1px 2px; |
| 234 | } |
| 235 | |
| 236 | #page-proxy-button { |
| 237 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
| 238 | padding-top: 2px; |
| 239 | padding-bottom: 2px; |
| 240 | } |
| 241 | |
| 242 | #page-proxy-favicon { |
| 243 | list-style-image: none; |
| 244 | } |
| 245 | |
| 246 | /* ::::: autocomplete ::::: */ |
| 247 | |
| 248 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
| 249 | padding-left: 13px; |
| 250 | } |
| 251 | |
| 252 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
| 253 | color: #E7ADE7; |
| 254 | /* font-style: italic; */ |
| 255 | } |
| 256 | |
| 257 | .autocomplete-search-box { |
| 258 | border-top: 1px solid #FF9F00; |
| 259 | background-color: #9C9CFF; |
| 260 | color: #000000; |
| 261 | } |
| 262 | |
| 263 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
| 264 | border-top: 1px solid #9C9CFF; |
| 265 | } |
| 266 | |
| 267 | .autocomplete-search-engine { |
| 268 | padding: 2px; |
| 269 | } |
| 270 | |
| 271 | .autocomplete-search-engine[menuactive="true"] { |
| 272 | background-color: #008484; |
| 273 | color: #FFCF00; |
| 274 | } |
| 275 | |
| 276 | .autocomplete-search-engine-img { |
| 277 | margin-right: 4px; |
| 278 | } |
| 279 | |
| 280 | /* ::::: go and searchbuttons ::::: */ |
| 281 | |
| 282 | #search-button, |
| 283 | #go-button { |
| 284 | margin: 1px 3px 1px 0px; |
| 285 | /* min-height: 25px; */ |
| 286 | font-weight: bold; |
| 287 | background-color: #000000; |
| 288 | } |
| 289 | |
| 290 | #search-button:hover, |
| 291 | #go-button:hover { |
| 292 | background-color: #FFCF00; |
| 293 | } |
| 294 | |
| 295 | #search-button { |
| 296 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ |
| 297 | font-weight: bold; |
| 298 | } |
| 299 | |
| 300 | /* ::::: security button ::::: */ |
| 301 | |
| 302 | #security-button { |
| 303 | list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); |
| 304 | margin-left: 2px; |
| 305 | } |
| 306 | |
| 307 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
| 308 | #security-button[level="high"], |
| 309 | #security-button[level="low"] { |
| 310 | list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); |
| 311 | } |
| 312 | |
| 313 | #security-button[level="broken"] { |
| 314 | list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); |
| 315 | } |
| 316 | |
| 317 | #privacy-button { |
| 318 | list-style-image: url("chrome://communicator/skin/permissions/taskbar-cookie.gif"); |
| 319 | } |
| 320 | |
| 321 | #popupIcon { |
| 322 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); |
| 323 | } |
| 324 | |
| 325 | #popupImage { |
| 326 | list-style-image: url("chrome://navigator/skin/icons/about-popups.gif"); |
| 327 | margin: 6px 0px; |
| 328 | } |
| 329 | |
| 330 | /* ::::: personal toolbar ::::: */ |
| 331 | |
| 332 | #bookmarks-button { |
| 333 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); |
| 334 | } |
| 335 | |
| 336 | #bookmarks-button[open="true"] { |
| 337 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); |
| 338 | } |
| 339 | |
| 340 | #home-button { |
| 341 | list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); |
| 342 | } |
| 343 | |
| 344 | toolbarbutton.chevron { |
| 345 | list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important; |
| 346 | margin-right: 2px; |
| 347 | } |
| 348 | |
| 349 | toolbarbutton.chevron:hover, |
| 350 | toolbarbutton.chevron[open="true"] { |
| 351 | list-style-image: url("chrome://global/skin/toolbar/chevron-hover.gif") !important; |
| 352 | } |
| 353 | |
| 354 | toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { |
| 355 | display: none; |
| 356 | } |