X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=EarlyBlue%2Fnavigator%2Fnavigator.css;h=5e236bc334145a22b8e12f39b52236a440d43981;hp=6c9a13ff3e472657004f6f6e31eedc24b44eb7f0;hb=cf89ee7b42ffda5d1e1605a3382c1749dccc37a4;hpb=6082be9443900156de6457a2839c8a66fdecc420 diff --git a/EarlyBlue/navigator/navigator.css b/EarlyBlue/navigator/navigator.css index 6c9a13ff..5e236bc3 100644 --- a/EarlyBlue/navigator/navigator.css +++ b/EarlyBlue/navigator/navigator.css @@ -1,39 +1,6 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is "Classic" theme of mozilla.org code. - * - * The Initial Developer of the Original Code is - * the Mozilla Organization. - * Portions created by the Initial Developer are Copyright (C) 1998-2001 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Robert Kaiser - * - * Alternatively, the contents of this file may be used under the terms of - * either the GNU General Public License Version 2 or later (the "GPL"), or - * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ +/* 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/. */ /** Contains style definitions for the navigator application **/ @@ -52,7 +19,7 @@ } #back-button[disabled="true"] { - -moz-image-region: rect(42px 50px 63px 25px) !important; + -moz-image-region: rect(42px 50px 63px 25px); } #forward-button { @@ -61,15 +28,16 @@ } #forward-button[disabled="true"] { - -moz-image-region: rect(63px 50px 84px 25px) !important; + -moz-image-region: rect(63px 50px 84px 25px); } #reload-button { - list-style-image: url("chrome://navigator/skin/icons/reload.gif"); + list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png"); + -moz-image-region: rect(0px 25px 21px 0px); } - + #reload-button[disabled="true"] { - list-style-image: url("chrome://navigator/skin/icons/reload-disabled.gif") !important; + -moz-image-region: rect(0px 50px 21px 25px); } #stop-button { @@ -78,68 +46,109 @@ } #stop-button[disabled="true"] { - -moz-image-region: rect(21px 50px 42px 25px) !important; + -moz-image-region: rect(21px 50px 42px 25px); } -#print-button { +#home-button { list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); - -moz-image-region: rect(0px 25px 21px 0px); + -moz-image-region: rect(84px 25px 105px 0px); +} + +#home-button[disabled="true"] { + -moz-image-region: rect(84px 50px 105px 25px); } -#print-button[disabled="true"] { - -moz-image-region: rect(0px 50px 21px 25px) !important; +#sync-button { + list-style-image: url("chrome://communicator/skin/sync/sync-32.png"); +} + +#sync-button[status=active] { + list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png"); } #clear-button { list-style-image: url("chrome://global/skin/icons/close-button.gif"); } -/* Hides text below the above buttons - should now be configurable */ -/* -.toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text, -.toolbarbutton-1 > .toolbarbutton-text { - display: none; +/* ::::: small primary toolbar buttons ::::: */ + +toolbar[iconsize="small"] > #back-button { + list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); + -moz-image-region: rect(32px 16px 48px 0); } -*/ -#fullscreen-exit-button { - list-style-image: none; +toolbar[iconsize="small"] > #back-button[disabled="true"] { + -moz-image-region: rect(32px 32px 48px 16px) !important; } -#fullscreen-exit-button > .toolbarbutton-text { -/* display: normal; */ +toolbar[iconsize="small"] > #forward-button { + list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); + -moz-image-region: rect(48px 16px 64px 0); } -/* ::::: small primary toolbar buttons ::::: */ +toolbar[iconsize="small"] > #forward-button[disabled="true"] { + -moz-image-region: rect(48px 32px 64px 16px) !important; +} -.toolbarbutton-text[toolbarmode="small"] { - display: none; +toolbar[iconsize="small"] > #reload-button { + list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png"); + -moz-image-region: rect(0 16px 16px 0); } -.toolbarbutton-icon[toolbarmode="small"] { - display: inline; +toolbar[iconsize="small"] > #reload-button[disabled="true"] { + -moz-image-region: rect(0 32px 16px 16px) !important; } -#nav-bar[mode="text"] > #nav-bar-inner, -#nav-bar[mode="icons"] > #nav-bar-inner, -#nav-bar[toolbarmode="small"] > #nav-bar-inner { - margin: 2px 0px 2px 4px; +toolbar[iconsize="small"] > #stop-button { + list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); + -moz-image-region: rect(16px 16px 32px 0); } -toolbar[toolbarmode="small"] > toolbargrippy { - display: none; +toolbar[iconsize="small"] > #stop-button[disabled="true"] { + -moz-image-region: rect(16px 32px 32px 16px) !important; +} + +toolbar[iconsize="small"] > #home-button { + list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); + -moz-image-region: rect(64px 16px 80px 0); +} + +toolbar[iconsize="small"] > #home-button[disabled="true"] { + -moz-image-region: rect(64px 32px 80px 16px) !important; +} + +toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button, +toolbar[iconsize="small"] > #sync-button { + list-style-image: url("chrome://communicator/skin/sync/sync-16.png"); +} + +toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active], +toolbar[iconsize="small"] > #sync-button[status=active] { + list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png"); +} + +#FindToolbar:-moz-lwtheme { +/* -moz-border-top-colors: transparent; + -moz-border-bottom-colors: transparent; */ } /* ::::: fullscreen window controls ::::: */ #window-controls { -moz-box-align: center; - padding: 0 2px 0 4px; + padding: 0 2px; border-left: 1px solid #9999CC; + -moz-margin-start: 2px; } #window-controls > toolbarbutton { - padding: 2px 0px 2px 2px; + padding: 3px; + -moz-padding-start: 2px; + -moz-padding-end: 1px; +} + +toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon { + display: -moz-box; } #minimize-button { @@ -156,26 +165,122 @@ toolbar[toolbarmode="small"] > toolbargrippy { /* ::::: nav-bar-inner ::::: */ -#nav-bar-inner { - padding-left: 0px; +.nav-bar-class { + -moz-padding-start: 1px; + -moz-padding-end: 1px; min-width: 0px; - margin: 7px 4px 8px 4px; + -moz-box-align: center; } #urlbar { - border: 1px solid; - -moz-border-top-colors: #71737A; - -moz-border-right-colors: #EFF0F4; - -moz-border-bottom-colors: #EFF0F4; - -moz-border-left-colors: #71737A; - margin: 0px 7px 0px 0px; + margin: 0; + -moz-margin-start: 3px; } -#urlbar[level="high"] > .autocomplete-textbox-container, -#urlbar[level="low"] > .autocomplete-textbox-container { +.urlbar-security-level { + padding: 2px; +} + +.urlbar-security-level[level="high"] { background-color: #FFFFCC; } +#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar, +#wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons { + display: none; +} + +/* ::::: notification popups ::::: */ + +.popup-notification-icon { + width: 64px; + height: 64px; + -moz-margin-end: 10px; +} + +.popup-notification-icon[popupid="geolocation"] { + list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png"); +} + +.popup-notification-icon[popupid="addon-install-disabled"], +.popup-notification-icon[popupid="addon-install-blocked"], +.popup-notification-icon[popupid="addon-install-started"], +.popup-notification-icon[popupid="addon-install-cancelled"], +.popup-notification-icon[popupid="addon-install-failed"], +.popup-notification-icon[popupid="addon-install-complete"], +.popup-notification-icon[popupid="lwtheme-install-request"], +.popup-notification-icon[popupid="lwtheme-install-notification"] { + list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png"); + width: 32px; + height: 32px; +} + +.popup-notification-icon[popupid="indexedDB-permissions-prompt"], +.popup-notification-icon[popupid="indexedDB-quota-prompt"] { + list-style-image: url("chrome://global/skin/icons/question-64.png"); +} + +.popup-notification-icon[popupid="password-change"], +.popup-notification-icon[popupid="password-save"] { + list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png"); +} + +.popup-notification-icon[popupid="click-to-play-plugins"] { + list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric.png"); + width: 32px; + height: 32px; +} + +.addon-progress-description { + width: 350px; + max-width: 350px; +} + +/* Notification icon box */ +#notification-popup-box { + -moz-margin-end: 3px; +} + +.notification-anchor-icon:-moz-focusring { + outline: 1px dotted; +} + +#default-notification-icon { + list-style-image: url("chrome://global/skin/icons/information-16.png"); + width: 16px; + height: 16px; +} + +#geo-notification-icon { + list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png"); + width: 16px; + height: 16px; +} + +#addons-notification-icon { + list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png"); + width: 16px; + height: 16px; +} + +#indexedDB-notification-icon { + list-style-image: url("chrome://global/skin/icons/question-16.png"); + width: 16px; + height: 16px; +} + +#password-notification-icon { + list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png"); + width: 16px; + height: 16px; +} + +#plugins-notification-icon { + list-style-image: url("chrome://mozapps/skin/plugins/pluginGeneric-16.png"); + width: 16px; + height: 16px; +} + /* ::::: page proxy icon ::::: */ #page-proxy-deck, @@ -187,13 +292,11 @@ toolbar[toolbarmode="small"] > toolbargrippy { #page-proxy-deck { cursor: -moz-grab; - margin: 1px 1px 1px 2px; + margin: 0; } #page-proxy-button { list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); - padding-top: 2px; - padding-bottom: 2px; } #page-proxy-favicon { @@ -203,7 +306,7 @@ toolbar[toolbarmode="small"] > toolbargrippy { /* ::::: autocomplete ::::: */ .autocomplete-treebody::-moz-tree-cell-text(value) { - padding-left: 13px; + -moz-padding-start: 13px; } .autocomplete-treebody::-moz-tree-cell-text(comment) { @@ -231,45 +334,118 @@ toolbar[toolbarmode="small"] > toolbargrippy { } .autocomplete-search-engine-img { - margin-right: 4px; + -moz-margin-end: 4px; +} + +.autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) { + color: #808080; } /* ::::: go and searchbuttons ::::: */ #search-button, #go-button { - margin: 0px 3px 0px 0px; -/* min-height: 25px; */ - font-weight: bold; + margin: 0; + padding: 1px 0; + -moz-margin-start: 2px; background-color: #9999CC; } +/* care that those buttons base on the same min height of 16px that the urlbar + autocomplete box gets through site icon and urlbar icons at the right */ +#search-button > .button-box, +#go-button > .button-box { + min-height: 16px; +} + #search-button { /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ font-weight: bold; } +#search-button > .button-box > .button-icon { + display: -moz-box; +} + +/* +toolbar[mode="text"] #search-button > .button-box > .button-icon, +toolbar[mode="icons"] #search-button > .button-box > .button-text { + display: none; +} +*/ + +/* ::::: search bar ::::: */ + +.autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), +.autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) { + color: #808080; + font-size: smaller; +} + +.autocomplete-treebody::-moz-tree-cell(suggesthint) { + border-top: 1px solid #808080; +} + /* ::::: security button ::::: */ #security-button { - list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); - margin-left: 2px; + -moz-margin-start: 2px; +} + +#security-button { + list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif"); } /* |high| and |low| styles could be different, to better reflect the secure level... */ -#security-button[level="high"], -#security-button[level="low"] { - list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); +#security-button[level="high"] > .statusbarpanel-contentbox { + list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif"); + background-color: #FFFFCC; +} + +#security-button[level="broken"] > .statusbarpanel-contentbox { + list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif"); + background-color: #FFCCCC; +} + +#security-button[label] > .statusbarpanel-contentbox { + background-color: #33FF33; +} + +#security-button > .statusbarpanel-contentbox > .statusbarpanel-text { + margin: 0px; + color: #000000; +} + +/* make same background-color translucent on lwthemes */ +#security-button[level="high"] > .statusbarpanel-contentbox:-moz-lwtheme { + background-color: rgba(255, 255, 204, .8); } -#security-button[level="broken"] { - list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); +#security-button[level="broken"] > .statusbarpanel-contentbox:-moz-lwtheme { + background-color: rgba(255, 204, 204, .8); +} + +#security-button[label] > .statusbarpanel-contentbox:-moz-lwtheme { + background-color: rgba(51, 255, 51, .8); +} + +#ev-button { + list-style-image: url("chrome://communicator/skin/icons/identity.png"); } #popupIcon { list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); } +#invalid-form-popup { + border : 1px outset #FFFFCC; + padding: 2px 3px 0px 3px; + max-width: 40em; + background-color : #FFFFCC; + color: #000000; + font-weight: bold; +} + /* ::::: personal toolbar ::::: */ #bookmarks-button { @@ -280,38 +456,110 @@ toolbar[toolbarmode="small"] > toolbargrippy { list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); } -#home-button { - list-style-image: url("chrome://communicator/skin/bookmarks/home.gif"); +#toolbarbutton.chevron { + list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; } -#bookmarks-chevron { - list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; +#toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { + display: none; +} + +toolbarbutton.chevron > .toolbarbutton-text { + display: none; /* hide chevron label which has a width even if blank */ +} + +toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { + display: -moz-box; /* display chevron icon in text mode */ +} + +/* Prevent [mode="icons"|"text"] from hiding the label and icon */ +#bookmarks-ptf .bookmark-item > .toolbarbutton-text, +#bookmarks-ptf .bookmark-item > .toolbarbutton-icon { + display: -moz-box !important; +} + +#PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon, +#PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon { + /* width: 16px; + height: 16px; */ } -#bookmarks-chevron > .toolbarbutton-menu-dropmarker { +#PersonalToolbar > #home-button { + cursor: pointer; +} + +#PersonalToolbar > #home-button[disabled="true"] { + cursor: default !important; +} + +/* + In customize mode we hide the normal bookmark items and show a placeholder + for the drag/drop UI. +*/ +.bookmarks-toolbar-customize { + list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png"); display: none; + max-width: 15em !important; +} + +#wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box { + width: 16px; + height: 16px; + background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat; +} + +/* ::::: star button ::::: */ + +#star-button { + list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png"); + -moz-image-region: rect(16px 16px 32px 0px); +} + +#star-button:hover { + -moz-image-region: rect(16px 32px 32px 16px); +} + +#star-button:hover:active { + -moz-image-region: rect(16px 48px 32px 32px); +} + +#star-button[starred="true"] { + -moz-image-region: rect(0px 16px 16px 0px); +} + +#star-button[starred="true"]:hover { + -moz-image-region: rect(0px 32px 16px 16px); +} + +#star-button[starred="true"]:hover:active { + -moz-image-region: rect(0px 48px 16px 32px); +} + +#editBookmarkPanelStarIcon { + list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png"); + -moz-image-region: rect(0px 16px 16px 0px); } /* ::::: feeds ::::: */ -#feedsMenu { - list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important; +.feedsMenu { + list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); -moz-image-region: rect(0px 16px 16px 0px); } -#feedsMenu[disabled="true"] { +.feedsMenu[disabled="true"] { -moz-image-region: rect(32px 16px 48px 0px); } -#feedsButton { +.feedsButton { list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); -moz-image-region: rect(0px 32px 16px 16px); } -#feedsButton:hover { +.feedsButton:hover { -moz-image-region: rect(16px 32px 32px 16px); } -#feedsButton:hover:active { +.feedsButton:hover:active { -moz-image-region: rect(48px 32px 64px 16px); }