gecko-dev/mobile/chrome/skin/browser.css
Gavin Sharp 82de0d7252 Bug 462771: Fennec theme update (avoid use of transparent PNGs in chrome, fix button alignment and active styling, other various minor fixes), r=mfinkle
--HG--
rename : mobile/chrome/skin/images/titlebar.png => mobile/chrome/skin/images/toolbar.png
rename : mobile/chrome/skin/images/toolbar-background.png => mobile/chrome/skin/images/toolbar_background.png
2008-11-12 14:22:44 -05:00

703 lines
17 KiB
CSS

/* ***** 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 Mozilla Mobile Browser.
*
* The Initial Developer of the Original Code is
* Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Mark Finkle <mfinkle@mozilla.com>
*
* 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 ***** */
/* global skin ------------------------------------------------------------- */
@import url(chrome://global/skin/);
/* hildon stuff ------------------------------------------------------------ */
popup,
panel,
menupopup {
padding: 16px !important;
}
menu,
menuitem {
padding: 0px !important;
margin: 0px !important;
font-family: "Nokia Sans", sans-serif !important;
font-size: 16.75pt !important;
}
label,
description,
textbox {
font-family: "Nokia Sans", sans-serif !important;
font-size: 16.75pt !important;
}
richlistitem {
font-family: "Nokia Sans", sans-serif !important;
font-size: 16.75pt !important;
}
/* main toolbar (URL bar) -------------------------------------------------- */
#toolbar-main {
-moz-appearance: none;
-moz-box-align: center;
background: url("chrome://browser/skin/images/toolbar_background.png") repeat-x;
padding: 0px 10px;
border: none;
}
toolbarbutton {
-moz-appearance: none !important;
-moz-box-orient: vertical;
min-width: 0px;
/* override default toolbarbutton padding/margin */
margin: 0;
padding: 5px;
}
toolbarbutton:not(.searchengine) .toolbarbutton-text {
display: none !important;
}
toolbarbutton:hover,
toolbarbutton:hover:active,
toolbarbutton[open="true"] {
border-color: transparent;
}
/* main toolbar buttons */
toolbarbutton.urlbar-button {
list-style-image: url("chrome://browser/skin/images/toolbar.png");
/* -1px to align backgrounds with endcap */
padding: 0px;
margin-top: -1px;
/* space out the buttons a little bit horizontally */
-moz-padding-start: 10px !important;
}
#tool-bookmarks {
-moz-image-region: rect(0px 48px 48px 0px);
}
#tool-bookmarks:hover:active {
-moz-image-region: rect(48px 48px 96px 0px);
}
/* URL bar cap buttons */
toolbarbutton.urlbar-cap-button {
list-style-image: url("chrome://browser/skin/images/toolbar.png");
/* position the button near the right edge of the endcap */
padding: 0;
padding-top: 5px;
-moz-padding-start: 24px;
}
#tool-go {
-moz-image-region: rect(0px 72px 24px 48px);
}
#urlbar-icons:hover:active > #tool-go {
-moz-image-region: rect(24px 72px 48px 48px);
}
#tool-reload {
-moz-image-region: rect(0px 96px 24px 72px);
}
#urlbar-icons:hover:active > #tool-reload {
-moz-image-region: rect(24px 96px 48px 72px);
}
#tool-stop {
-moz-image-region: rect(0px 120px 24px 96px);
}
#urlbar-icons:hover:active > #tool-stop {
-moz-image-region: rect(24px 120px 48px 96px);
}
#toolbar-main[mode="loading"] > #urlbar-container > #urlbar-icons > #tool-go,
#toolbar-main[mode="loading"] > #urlbar-container > #urlbar-icons > #tool-reload {
visibility: collapse;
}
#toolbar-main[mode="view"] > #urlbar-container > #urlbar-icons > #tool-go,
#toolbar-main[mode="view"] > #urlbar-container > #urlbar-icons > #tool-stop {
visibility: collapse;
}
#toolbar-main[mode="edit"] > #urlbar-container > #urlbar-icons > #tool-reload,
#toolbar-main[mode="edit"] > #urlbar-container > #urlbar-icons > #tool-stop {
visibility: collapse;
}
/* URL bar ----------------------------------------------------------------- */
#urlbar-container {
color: #000;
-moz-box-align: center;
min-height: 60px;
}
#identity-box {
min-height: 49px;
min-width: 65px;
background: url("images/addressbar_endcap_l_off.png") top right no-repeat;
}
#identity-box:hover:active {
background: url("images/addressbar_endcap_l_on.png") top right no-repeat;
}
/* favicon images are 16x16 */
#urlbar-image-deck {
max-width: 24px;
max-height: 24px;
min-width: 24px;
min-height: 24px;
margin: 12px 2px 2px 12px;
}
#urlbar-throbber[loading] {
list-style-image: url("chrome://browser/skin/images/throbber.png");
}
#urlbar-editarea {
min-height: 49px;
-moz-box-align: center;
background: url("images/addressbar_middle.png") repeat-x;
}
#urlbar-caption {
margin: 2px 8px 2px 8px;
}
#urlbar-edit {
-moz-appearance: none !important;
padding: 0px !important;
border: none !important;
background-color: transparent;
}
/* urlbar toolbuttons images are 36x36 */
#urlbar-icons {
min-height: 49px;
min-width: 65px;
-moz-box-align: start;
padding-top: 6px;
background: url("images/addressbar_endcap_r_off.png") no-repeat;
}
#urlbar-icons:hover:active {
background: url("images/addressbar_endcap_r_on.png") no-repeat;
}
/* right toolbar (browser controls) ---------------------------------------- */
#browser-controls {
background: url("images/right_sidebar_middle.png") repeat-y;
/* first 10 pixels in right_sidebar_middle are a gradient */
/* end padding must match #toolbar-main */
padding: 0 10px;
/* ...and right-align so that the buttons line up with
the bookmark button in the main toolbar */
-moz-box-align: end;
}
toolbarbutton.browser-control-button {
list-style-image: url("chrome://browser/skin/images/right_buttons.png");
}
toolbarbutton.browser-control-button,
toolbarbutton.panel-button {
/* space out the buttons a bit vertically */
padding: 0;
padding-top: 8px;
}
#tool-star {
-moz-image-region: rect(0px 48px 48px 0px);
}
#tool-star:hover:active {
-moz-image-region: rect(0px 96px 48px 48px);
}
#tool-star[starred="true"] {
-moz-image-region: rect(0px 192px 48px 144px);
}
#tool-back {
-moz-image-region: rect(48px 64px 112px 0px);
/* this button is 16px wider than the others, so offset by 8px */
-moz-margin-end: -8px;
}
#tool-back:hover:active {
-moz-image-region: rect(48px 128px 112px 64px);
}
#tool-back[disabled="true"] {
-moz-image-region: rect(48px 192px 112px 128px) !important;
}
#tool-forward {
-moz-image-region: rect(112px 48px 160px 0px);
/* cuddle up underneath the back button */
padding-top: 0px;
}
#tool-forward:hover:active {
-moz-image-region: rect(112px 96px 160px 48px);
}
#tool-forward[disabled="true"] {
-moz-image-region: rect(112px 144px 160px 96px) !important;
}
#tool-actions {
-moz-image-region: rect(160px 48px 208px 0px);
}
#tool-actions:hover:active {
-moz-image-region: rect(160px 96px 208px 48px);
}
#tool-panel {
-moz-image-region: rect(208px 48px 256px 0px);
}
#tool-panel:hover:active, #tool-panel[checked] {
-moz-image-region: rect(208px 96px 256px 48px);
/* override checked style */
background: none !important;
border-color: transparent !important;
}
/* "extras" panel UI ----------------------------------------------------- */
#panel-controls {
/* match #browser-controls end padding */
padding: 0px 10px;
}
#panel-container {
background: url("images/panel_background.png") repeat-x;
}
toolbarbutton.panel-button {
list-style-image: url("chrome://browser/skin/images/panel_buttons.png");
/* override checked style */
background: none !important;
border-color: transparent !important;
}
#tool-addons {
-moz-image-region: rect(48px 48px 96px 0px);
}
#tool-addons:hover:active, #tool-addons[checked] {
-moz-image-region: rect(48px 96px 96px 48px);
}
#tool-downloads {
-moz-image-region: rect(96px 48px 144px 0px);
}
#tool-downloads:hover:active, #tool-downloads[checked] {
-moz-image-region: rect(96px 96px 144px 48px);
}
#tool-preferences {
-moz-image-region: rect(0px 48px 48px 0px);
}
#tool-preferences:hover:active, #tool-preferences[checked] {
-moz-image-region: rect(0px 96px 48px 48px);
}
#tool-shortcuts {
-moz-image-region: rect(0px 48px 48px 0px);
}
#tool-shortcuts:hover:active, #tool-shortcuts[checked] {
-moz-image-region: rect(0px 96px 48px 48px);
}
/* URL List and autocomplete navigation popup ------------------------------ */
#urllist-container {
background-color: rgb(123,125,123);
padding: 8px;
}
#urllist-close {
-moz-appearance: none;
border: none;
margin: 0;
padding: 0;
list-style-image: url("chrome://browser/skin/images/close-small.png");
}
.urllist-item {
-moz-appearance: none !important;
margin: 8px;
}
.urllist-image {
width: 24px;
height: 24px;
}
#popup_autocomplete {
background: url(images/navigation_background.png) repeat-x;
-moz-appearance: none;
padding-top: 8px !important;
}
.tool-search {
list-style-image: url("chrome://browser/skin/images/navigation_magnifier.png");
}
.searchengine {
-moz-box-orient: horizontal;
color: white;
}
.searchengine > .toolbarbutton-text {
font-size: 12pt !important;
}
/* old rules */
#urllist-items {
-moz-appearance: none !important;
background-color: rgb(207,207,207);
border: 2px solid #fff !important;
-moz-border-radius: 10px;
}
/* XXX new rules that don't work
#urllist-items {
-moz-appearance: none;
}
#urllist-items,
*/
#autocomplete_navbuttons {
-moz-border-image: url(images/navigation_search_caps.png) 0 23 0 23;
border-width: 0 23px;
margin-top: 12px;
min-height: 50px;
}
#PopupAutoCompleteRichResult {
direction: ltr !important;
}
#popup_autocomplete scrollbox {
background: rgb(46,45,45);
}
.autocomplete-richlistbox {
-moz-appearance: none !important;
-moz-border-image: url(images/navigation_url_caps.png) 25 24 25 24 stretch stretch;
border-width: 26px 25px;
}
.autocomplete-richlistitem {
border-bottom: 0; /* override toolkit style */
padding: 16px;
padding-top: 0px;
padding-left: 0px;
color: white;
}
.ac-result-type-bookmark {
list-style-image: url("chrome://browser/skin/images/page-starred.png");
width: 16px;
height: 16px;
}
.ac-result-type-tag {
list-style-image: url("chrome://browser/skin/images/tag.png");
width: 16px;
height: 16px;
}
.ac-comment {
font-size: 16pt !important;
}
.ac-extra > .ac-comment {
font-size: inherit !important;
}
.ac-comment[selected="true"] {
color: inherit !important;
}
/* Hide URL box */
.ac-url-box {
display: none;
}
/* Left sidebar (tabs) ---------------------------------------------------- */
#tab-list-container {
background: url("images/left_sidebar_middle.png") rgb(87,87,87) top right repeat-y;
min-width: 132px;
}
#tab-list {
-moz-appearance: none;
margin: 0;
padding: 4px;
-moz-padding-end: 12px;
background-color: transparent;
}
richlistitem[type="documenttab"] {
-moz-appearance: none;
border: 1px solid transparent;
-moz-border-radius: 5px;
background: none;
padding: 4px;
}
richlistitem[type="documenttab"][selected="true"] {
border: 1px solid white !important;
}
.documenttab-close {
width: 24px;
height: 24px;
list-style-image: url(chrome://browser/skin/images/tab_close.png);
}
vbox:first-child richlistitem[type="documenttab"]:only-child .documenttab-close {
display: none;
}
#newtab-button {
list-style-image: url("images/left_buttons.png");
-moz-image-region: rect(0px 48px 48px 0px);
}
#newtab-button:hover:active {
list-style-image: url("images/left_buttons.png");
-moz-image-region: rect(0px 96px 48px 48px);
}
#retrievetab-button {
list-style-image: url("images/left_buttons.png");
-moz-image-region: rect(48px 48px 96px 0px);
}
#retrievetab-button:hover:active {
list-style-image: url("images/left_buttons.png");
-moz-image-region: rect(48px 96px 96px 48px);
}
/* findbar --------------------------------------------------------------- */
findbar {
background: rgba(128, 128, 128, 0.75);
}
#findpanel {
padding: 0 !important;
-moz-appearance: none;
background: transparent;
}
/* bookmark editor ------------------------------------------------------- */
#bookmark-container {
background-color: rgb(123,125,123);
padding: 8px;
}
#bookmark-form {
background-color: rgb(207,207,207);
border: 2px solid #fff !important;
-moz-border-radius: 10px;
padding: 8px;
}
#bookmark-grid row {
-moz-box-align: center;
}
#bookmark-buttons {
margin-top: 8px;
}
#bookmark-close {
-moz-appearance: none;
border: none;
background-color: transparent;
margin: 0;
padding: 0;
list-style-image: url("chrome://browser/skin/images/close-small.png");
}
/* Identity popup -------------------------------------------------------- */
/* Popup Icons */
#identity-popup-icon {
height: 64px;
width: 64px;
padding: 0;
list-style-image: url("chrome://browser/skin/images/identity.png");
-moz-image-region: rect(0px, 64px, 64px, 0px);
}
#identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
-moz-image-region: rect(64px, 64px, 128px, 0px);
}
#identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
-moz-image-region: rect(128px, 64px, 192px, 0px);
}
/* Popup Body Text */
#identity-popup-content-box.unknownIdentity > #identity-popup-connectedToLabel ,
#identity-popup-content-box.unknownIdentity > #identity-popup-runByLabel ,
#identity-popup-content-box.unknownIdentity > #identity-popup-content-host ,
#identity-popup-content-box.unknownIdentity > #identity-popup-content-owner ,
#identity-popup-content-box.verifiedIdentity > #identity-popup-connectedToLabel2 ,
#identity-popup-content-box.verifiedDomain > #identity-popup-connectedToLabel2 {
display: none;
}
#identity-popup-content-box > description,
#identity-popup-encryption-label {
white-space: pre-wrap;
-moz-padding-start: 15px;
margin: 2px 0 4px;
}
#identity-popup-content-box > label {
white-space: pre-wrap;
-moz-padding-start: 15px;
margin: 0;
}
#identity-popup-content-host ,
#identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
font-size: 1.2em;
}
#identity-popup-content-host {
margin-top: 3px;
margin-bottom: 5px;
font-weight: bold;
max-width: 500px;
}
#identity-popup-content-owner {
margin-top: 4px;
margin-bottom: 0 !important;
font-weight: bold;
max-width: 500px;
}
.verifiedDomain > #identity-popup-content-owner {
font-weight: normal;
}
#identity-popup-content-verifier {
margin: 4px 0 2px;
}
#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
margin-top: 10px;
margin-left: -24px;
}
#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
#identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
list-style-image: url("chrome://browser/skin/images/secure24.png");
}
#identity-popup-more-info-button {
margin-top: 6px;
-moz-margin-end: 1px;
}
/* Popup Bounding Box */
#identity-popup {
-moz-appearance: none;
background-color: rgb(90,89,90);
border: 1px solid rgb(90,89,90);
-moz-border-radius: 0px 0px 8px 8px;
padding: 10px 8px 6px 8px;
margin-top: 3px;
-moz-margin-start: 11px;
color: #ffffff;
min-width: 280px;
}
/* Preferences window ---------------------------------------------------- */
#prefs-container {
background-color: rgb(123,125,123);
}
richpref {
background-color: white;
}
.prefsection {
font-size: 1.5em ! important;
color: white;
background-color: grey;
padding: .2em 0 .2em 0;
}
.prefbox {
padding: .3em .3em .3em .5em;
border: thin solid lightgrey;
}
.preftitle {
font-size: 1.25em ! important;
}
.prefdesc {
font-size: 1em ! important;
color: grey;
background-color: white;
}
/* BUG: This rule doesn't actually work; I don't know why. */
richpref > button {
font-size: 1em ! important;
}
/* Shortcut editor ------------------------------------------------------- */
#shortcuts {
border: 0;
padding: .2em;
}