*** empty log message ***
|
@ -1,34 +0,0 @@
|
|||
browser.jar:
|
||||
content/browser/contents.rdf (content/contents.rdf)
|
||||
content/browser/pageInfo.js (content/pageInfo.js)
|
||||
content/browser/pageInfo.xul (content/pageInfo.xul)
|
||||
content/browser/browser.xul (content/browser.xul)
|
||||
content/browser/sessionHistoryUI.js (content/sessionHistoryUI.js)
|
||||
content/browser/browser.js (content/browser.js)
|
||||
content/browser/navigatorDD.js (content/navigatorDD.js)
|
||||
content/browser/nsBrowserStatusHandler.js (content/nsBrowserStatusHandler.js)
|
||||
content/browser/nsBrowserContentListener.js (content/nsBrowserContentListener.js)
|
||||
content/browser/urlbarBindings.xml (content/urlbarBindings.xml)
|
||||
content/browser/metadata.xul (content/metadata.xul)
|
||||
content/browser/metadata.js (content/metadata.js)
|
||||
content/browser/personalToolbar.js (content/personalToolbar.js)
|
||||
content/browser/turboDialog.xul (content/turboDialog.xul)
|
||||
content/browser/viewsource.js (content/viewsource.js)
|
||||
content/browser/viewSource.xul (content/viewSource.xul)
|
||||
content/browser/utilityOverlay.js (content/utilityOverlay.js)
|
||||
content/browser/findUtils.js (content/findUtils.js)
|
||||
classic.jar:
|
||||
skin/classic/browser/browser.css (skin/browser.css)
|
||||
skin/classic/browser/buttons.gif (skin/buttons.gif)
|
||||
skin/classic/browser/contents.rdf (skin/contents.rdf)
|
||||
en-US.jar:
|
||||
locale/en-US/browser/contents.rdf (locale/contents.rdf)
|
||||
locale/en-US/browser/viewSource.dtd (locale/viewSource.dtd)
|
||||
locale/en-US/browser/pageInfo.dtd (locale/pageInfo.dtd)
|
||||
locale/en-US/browser/pageInfo.properties (locale/pageInfo.properties)
|
||||
locale/en-US/browser/navigator.dtd (locale/navigator.dtd)
|
||||
locale/en-US/browser/navigator.properties (locale/navigator.properties)
|
||||
locale/en-US/browser/metadata.dtd (locale/metadata.dtd)
|
||||
locale/en-US/browser/metadata.properties (locale/metadata.properties)
|
||||
locale/en-US/browser/turboDialog.dtd (locale/turboDialog.dtd)
|
||||
locale/en-US/browser/turboMenu.properties (locale/turboMenu.properties)
|
|
@ -361,41 +361,3 @@
|
|||
list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
|
||||
}
|
||||
|
||||
#boxSidebar {
|
||||
width: 162px;
|
||||
min-height: 10px;
|
||||
min-width: 30px;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
sidebarheader[type="box"] {
|
||||
-moz-binding: url(chrome://communicator/content/sidebar/sidebarBindings.xml#sidebar-header-box);
|
||||
}
|
||||
|
||||
/* ::::: sidebar header ::::: */
|
||||
|
||||
.sidebarheader-main {
|
||||
border: 1px outset InactiveCaption;
|
||||
background-color: InactiveCaption;
|
||||
color: InactiveCaptionText;
|
||||
padding: 1px 2px 1px 6px;
|
||||
}
|
||||
|
||||
.sidebar-header-text {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* ..... close button ..... */
|
||||
|
||||
#btnSidebarClose {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton-image");
|
||||
padding: 1px 3px 1px 4px;
|
||||
list-style-image: url("chrome://global/skin/icons/close-button.gif");
|
||||
}
|
||||
|
||||
#boxSidebar {
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
background-color: AppWorkspace;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
# ***** 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 the Mozilla Browser code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Brian Ryner <bryner@netscape.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 *****
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = skin
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -0,0 +1,856 @@
|
|||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code,
|
||||
* released March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* William A. ("PowerGUI") Law <law@netscape.com>
|
||||
* Blake Ross <blakeross@telocity.com>
|
||||
* Gervase Markham <gerv@gerv.net>
|
||||
*/
|
||||
|
||||
/*------------------------------ nsContextMenu ---------------------------------
|
||||
| This JavaScript "class" is used to implement the browser's content-area |
|
||||
| context menu. |
|
||||
| |
|
||||
| For usage, see references to this class in navigator.xul. |
|
||||
| |
|
||||
| Currently, this code is relatively useless for any other purpose. In the |
|
||||
| longer term, this code will be restructured to make it more reusable. |
|
||||
------------------------------------------------------------------------------*/
|
||||
function nsContextMenu( xulMenu ) {
|
||||
this.target = null;
|
||||
this.menu = null;
|
||||
this.onTextInput = false;
|
||||
this.onImage = false;
|
||||
this.onLink = false;
|
||||
this.onMailtoLink = false;
|
||||
this.onSaveableLink = false;
|
||||
this.onMetaDataItem = false;
|
||||
this.onMathML = false;
|
||||
this.link = false;
|
||||
this.inFrame = false;
|
||||
this.hasBGImage = false;
|
||||
this.isTextSelected = false;
|
||||
this.inDirList = false;
|
||||
this.shouldDisplay = true;
|
||||
|
||||
// Initialize new menu.
|
||||
this.initMenu( xulMenu );
|
||||
}
|
||||
|
||||
// Prototype for nsContextMenu "class."
|
||||
nsContextMenu.prototype = {
|
||||
// onDestroy is a no-op at this point.
|
||||
onDestroy : function () {
|
||||
},
|
||||
// Initialize context menu.
|
||||
initMenu : function ( popup ) {
|
||||
// Save menu.
|
||||
this.menu = popup;
|
||||
|
||||
// Get contextual info.
|
||||
this.setTarget( document.popupNode );
|
||||
|
||||
this.isTextSelected = this.isTextSelection();
|
||||
|
||||
// Initialize (disable/remove) menu items.
|
||||
this.initItems();
|
||||
},
|
||||
initItems : function () {
|
||||
this.initOpenItems();
|
||||
this.initNavigationItems();
|
||||
this.initViewItems();
|
||||
this.initMiscItems();
|
||||
this.initSaveItems();
|
||||
this.initClipboardItems();
|
||||
this.initMetadataItems();
|
||||
},
|
||||
initOpenItems : function () {
|
||||
this.showItem( "context-openlink", this.onSaveableLink || ( this.inDirList && this.onLink ) );
|
||||
this.showItem( "context-openlinkintab", this.onSaveableLink || ( this.inDirList && this.onLink ) );
|
||||
|
||||
this.showItem( "context-sep-open", this.onSaveableLink || ( this.inDirList && this.onLink ) );
|
||||
},
|
||||
initNavigationItems : function () {
|
||||
// Back determined by canGoBack broadcaster.
|
||||
this.setItemAttrFromNode( "context-back", "disabled", "canGoBack" );
|
||||
|
||||
// Forward determined by canGoForward broadcaster.
|
||||
this.setItemAttrFromNode( "context-forward", "disabled", "canGoForward" );
|
||||
|
||||
this.showItem( "context-back", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
|
||||
this.showItem( "context-forward", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
|
||||
|
||||
this.showItem( "context-reload", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
|
||||
|
||||
this.showItem( "context-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
|
||||
this.showItem( "context-sep-stop", !( this.isTextSelected || this.onLink || this.onImage || this.onTextInput ) );
|
||||
|
||||
// XXX: Stop is determined in navigator.js; the canStop broadcaster is broken
|
||||
//this.setItemAttrFromNode( "context-stop", "disabled", "canStop" );
|
||||
},
|
||||
initSaveItems : function () {
|
||||
this.showItem( "context-savepage", !( this.inDirList || this.isTextSelected || this.onTextInput ) && !( this.onLink && this.onImage ) );
|
||||
|
||||
// Save link depends on whether we're in a link.
|
||||
this.showItem( "context-savelink", this.onSaveableLink );
|
||||
|
||||
// Save image depends on whether there is one.
|
||||
this.showItem( "context-saveimage", this.onImage );
|
||||
|
||||
this.showItem( "context-sendimage", this.onImage );
|
||||
},
|
||||
initViewItems : function () {
|
||||
// View source is always OK, unless in directory listing.
|
||||
this.showItem( "context-viewpartialsource-selection", this.isTextSelected );
|
||||
this.showItem( "context-viewpartialsource-mathml", this.onMathML && !this.isTextSelected );
|
||||
this.showItem( "context-viewsource", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
|
||||
this.showItem( "context-viewinfo", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
|
||||
|
||||
this.showItem( "context-sep-properties", !( this.inDirList || this.isTextSelected || this.onTextInput ) );
|
||||
// Set As Wallpaper depends on whether an image was clicked on, and only works on Windows.
|
||||
var isWin = navigator.appVersion.indexOf("Windows") != -1;
|
||||
this.showItem( "context-setWallpaper", isWin && this.onImage );
|
||||
|
||||
this.showItem( "context-sep-image", this.onImage );
|
||||
|
||||
if( isWin && this.onImage )
|
||||
// Disable the Set As Wallpaper menu item if we're still trying to load the image
|
||||
this.setItemAttr( "context-setWallpaper", "disabled", (("complete" in this.target) && !this.target.complete) ? "true" : null );
|
||||
|
||||
// View Image depends on whether an image was clicked on.
|
||||
this.showItem( "context-viewimage", this.onImage );
|
||||
|
||||
// View background image depends on whether there is one.
|
||||
this.showItem( "context-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
|
||||
this.showItem( "context-sep-viewbgimage", !( this.inDirList || this.onImage || this.isTextSelected || this.onLink || this.onTextInput ) );
|
||||
this.setItemAttr( "context-viewbgimage", "disabled", this.hasBGImage ? null : "true");
|
||||
},
|
||||
initMiscItems : function () {
|
||||
// Use "Bookmark This Link" if on a link.
|
||||
this.showItem( "context-bookmarkpage", !( this.isTextSelected || this.onTextInput ) );
|
||||
this.showItem( "context-bookmarklink", this.onLink && !this.onMailtoLink );
|
||||
this.showItem( "context-searchselect", this.isTextSelected );
|
||||
this.showItem( "frame", this.inFrame );
|
||||
this.showItem( "frame-sep", this.inFrame );
|
||||
},
|
||||
initClipboardItems : function () {
|
||||
|
||||
// Copy depends on whether there is selected text.
|
||||
// Enabling this context menu item is now done through the global
|
||||
// command updating system
|
||||
// this.setItemAttr( "context-copy", "disabled", !this.isTextSelected() );
|
||||
|
||||
goUpdateGlobalEditMenuItems();
|
||||
|
||||
this.showItem( "context-undo", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-sep-undo", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-cut", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-copy", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-paste", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-delete", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-sep-paste", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-selectall", this.isTextSelected || this.onTextInput );
|
||||
this.showItem( "context-sep-selectall", this.isTextSelected );
|
||||
|
||||
// XXX dr
|
||||
// ------
|
||||
// nsDocumentViewer.cpp has code to determine whether we're
|
||||
// on a link or an image. we really ought to be using that...
|
||||
|
||||
// Copy email link depends on whether we're on an email link.
|
||||
this.showItem( "context-copyemail", this.onMailtoLink );
|
||||
|
||||
// Copy link location depends on whether we're on a link.
|
||||
this.showItem( "context-copylink", this.onLink );
|
||||
this.showItem( "context-sep-copylink", this.onLink );
|
||||
|
||||
// Copy image location depends on whether we're on an image.
|
||||
this.showItem( "context-copyimage", this.onImage );
|
||||
this.showItem( "context-sep-copyimage", this.onImage );
|
||||
},
|
||||
initMetadataItems : function () {
|
||||
// Show if user clicked on something which has metadata.
|
||||
this.showItem( "context-metadata", this.onMetaDataItem );
|
||||
},
|
||||
// Set various context menu attributes based on the state of the world.
|
||||
setTarget : function ( node ) {
|
||||
const xulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
if ( node.namespaceURI == xulNS ) {
|
||||
this.shouldDisplay = false;
|
||||
return;
|
||||
}
|
||||
// Initialize contextual info.
|
||||
this.onImage = false;
|
||||
this.onMetaDataItem = false;
|
||||
this.onTextInput = false;
|
||||
this.imageURL = "";
|
||||
this.onLink = false;
|
||||
this.onMathML = false;
|
||||
this.inFrame = false;
|
||||
this.hasBGImage = false;
|
||||
this.bgImageURL = "";
|
||||
|
||||
// Remember the node that was clicked.
|
||||
this.target = node;
|
||||
|
||||
// See if the user clicked on an image.
|
||||
if ( this.target.nodeType == Node.ELEMENT_NODE ) {
|
||||
if ( this.target.localName.toUpperCase() == "IMG" ) {
|
||||
this.onImage = true;
|
||||
this.imageURL = this.target.src;
|
||||
// Look for image map.
|
||||
var mapName = this.target.getAttribute( "usemap" );
|
||||
if ( mapName ) {
|
||||
// Find map.
|
||||
var map = this.target.ownerDocument.getElementById( mapName.substr(1) );
|
||||
if ( map ) {
|
||||
// Search child <area>s for a match.
|
||||
var areas = map.childNodes;
|
||||
//XXX Client side image maps are too hard for now!
|
||||
areas.length = 0;
|
||||
for ( var i = 0; i < areas.length && !this.onLink; i++ ) {
|
||||
var area = areas[i];
|
||||
if ( area.nodeType == Node.ELEMENT_NODE
|
||||
&&
|
||||
area.localName.toUpperCase() == "AREA" ) {
|
||||
// Get type (rect/circle/polygon/default).
|
||||
var type = area.getAttribute( "type" );
|
||||
var coords = this.parseCoords( area );
|
||||
switch ( type.toUpperCase() ) {
|
||||
case "RECT":
|
||||
case "RECTANGLE":
|
||||
break;
|
||||
case "CIRC":
|
||||
case "CIRCLE":
|
||||
break;
|
||||
case "POLY":
|
||||
case "POLYGON":
|
||||
break;
|
||||
case "DEFAULT":
|
||||
// Default matches entire image.
|
||||
this.onLink = true;
|
||||
this.link = area;
|
||||
this.onSaveableLink = this.isLinkSaveable( this.link );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ( this.target.localName.toUpperCase() == "OBJECT"
|
||||
&&
|
||||
// See if object tag is for an image.
|
||||
this.objectIsImage( this.target ) ) {
|
||||
// This is an image.
|
||||
this.onImage = true;
|
||||
// URL must be constructed.
|
||||
this.imageURL = this.objectImageURL( this.target );
|
||||
} else if ( this.target.localName.toUpperCase() == "INPUT") {
|
||||
type = this.target.getAttribute("type");
|
||||
if(type && type.toUpperCase() == "IMAGE") {
|
||||
this.onImage = true;
|
||||
// Convert src attribute to absolute URL.
|
||||
this.imageURL = this.makeURLAbsolute( this.target.baseURI,
|
||||
this.target.src );
|
||||
} else /* if (this.target.getAttribute( "type" ).toUpperCase() == "TEXT") */ {
|
||||
this.onTextInput = this.isTargetATextBox(this.target);
|
||||
}
|
||||
} else if ( this.target.localName.toUpperCase() == "TEXTAREA" ) {
|
||||
this.onTextInput = true;
|
||||
} else if ( this.target.localName.toUpperCase() == "HTML" ) {
|
||||
// pages with multiple <body>s are lame. we'll teach them a lesson.
|
||||
var bodyElt = this.target.ownerDocument.getElementsByTagName("body")[0];
|
||||
if ( bodyElt ) {
|
||||
var computedURL = this.getComputedURL( bodyElt, "background-image" );
|
||||
if ( computedURL ) {
|
||||
this.hasBGImage = true;
|
||||
this.bgImageURL = this.makeURLAbsolute( bodyElt.baseURI,
|
||||
computedURL );
|
||||
}
|
||||
}
|
||||
} else if ( "HTTPIndex" in _content &&
|
||||
_content.HTTPIndex instanceof Components.interfaces.nsIHTTPIndex ) {
|
||||
this.inDirList = true;
|
||||
// Bubble outward till we get to an element with URL attribute
|
||||
// (which should be the href).
|
||||
var root = this.target;
|
||||
while ( root && !this.link ) {
|
||||
if ( root.tagName == "tree" ) {
|
||||
// Hit root of tree; must have clicked in empty space;
|
||||
// thus, no link.
|
||||
break;
|
||||
}
|
||||
if ( root.getAttribute( "URL" ) ) {
|
||||
// Build pseudo link object so link-related functions work.
|
||||
this.onLink = true;
|
||||
this.link = { href : root.getAttribute("URL"),
|
||||
getAttribute: function (attr) {
|
||||
if (attr == "title") {
|
||||
return root.firstChild.firstChild.getAttribute("label");
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
};
|
||||
// If element is a directory, then you can't save it.
|
||||
if ( root.getAttribute( "container" ) == "true" ) {
|
||||
this.onSaveableLink = false;
|
||||
} else {
|
||||
this.onSaveableLink = true;
|
||||
}
|
||||
} else {
|
||||
root = root.parentNode;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// We have meta data on images.
|
||||
this.onMetaDataItem = this.onImage;
|
||||
|
||||
// See if the user clicked on MathML
|
||||
const NS_MathML = "http://www.w3.org/1998/Math/MathML";
|
||||
if ((this.target.nodeType == Node.TEXT_NODE &&
|
||||
this.target.parentNode.namespaceURI == NS_MathML)
|
||||
|| (this.target.namespaceURI == NS_MathML))
|
||||
this.onMathML = true;
|
||||
|
||||
// See if the user clicked in a frame.
|
||||
if ( this.target.ownerDocument != window._content.document ) {
|
||||
this.inFrame = true;
|
||||
}
|
||||
|
||||
// Bubble out, looking for items of interest
|
||||
var elem = this.target;
|
||||
while ( elem ) {
|
||||
if ( elem.nodeType == Node.ELEMENT_NODE ) {
|
||||
var localname = elem.localName.toUpperCase();
|
||||
|
||||
// Link?
|
||||
if ( !this.onLink &&
|
||||
( (localname === "A" && elem.href) ||
|
||||
localname === "AREA" ||
|
||||
localname === "LINK" ||
|
||||
elem.getAttributeNS( "http://www.w3.org/1999/xlink", "type") == "simple" ) ) {
|
||||
// Clicked on a link.
|
||||
this.onLink = true;
|
||||
this.onMetaDataItem = true;
|
||||
// Remember corresponding element.
|
||||
this.link = elem;
|
||||
this.onMailtoLink = this.isLinkType( "mailto:", this.link );
|
||||
// Remember if it is saveable.
|
||||
this.onSaveableLink = this.isLinkSaveable( this.link );
|
||||
}
|
||||
|
||||
// Text input?
|
||||
if ( !this.onTextInput ) {
|
||||
// Clicked on a link.
|
||||
this.onTextInput = this.isTargetATextBox(elem);
|
||||
}
|
||||
|
||||
// Metadata item?
|
||||
if ( !this.onMetaDataItem ) {
|
||||
// We currently display metadata on anything which fits
|
||||
// the below test.
|
||||
if ( ( localname === "BLOCKQUOTE" && 'cite' in elem && elem.cite) ||
|
||||
( localname === "Q" && 'cite' in elem && elem.cite) ||
|
||||
( localname === "TABLE" && 'summary' in elem && elem.summary) ||
|
||||
( ( localname === "INS" || localname === "DEL" ) &&
|
||||
( ( 'cite' in elem && elem.cite ) ||
|
||||
( 'dateTime' in elem && elem.dateTime ) ) ) ||
|
||||
( 'title' in elem && elem.title ) ||
|
||||
( 'lang' in elem && elem.lang ) ) {
|
||||
dump("On metadata item.\n");
|
||||
this.onMetaDataItem = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Background image? Don't bother if we've already found a
|
||||
// background image further down the hierarchy. Otherwise,
|
||||
// we look for the computed background-image style.
|
||||
if ( !this.hasBGImage ) {
|
||||
var bgImgUrl = this.getComputedURL( elem, "background-image" );
|
||||
if ( bgImgUrl ) {
|
||||
this.hasBGImage = true;
|
||||
this.bgImageURL = this.makeURLAbsolute( elem.baseURI,
|
||||
bgImgUrl );
|
||||
}
|
||||
}
|
||||
}
|
||||
elem = elem.parentNode;
|
||||
}
|
||||
},
|
||||
// Returns the computed style attribute for the given element.
|
||||
getComputedStyle: function( elem, prop ) {
|
||||
return elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyValue( prop );
|
||||
},
|
||||
// Returns a "url"-type computed style attribute value, with the url() stripped.
|
||||
getComputedURL: function( elem, prop ) {
|
||||
var url = elem.ownerDocument.defaultView.getComputedStyle( elem, '' ).getPropertyCSSValue( prop );
|
||||
return ( url.primitiveType == CSSPrimitiveValue.CSS_URI ) ? url.getStringValue() : null;
|
||||
},
|
||||
// Returns true iff clicked on link is saveable.
|
||||
isLinkSaveable : function ( link ) {
|
||||
// We don't do the Right Thing for news/snews yet, so turn them off
|
||||
// until we do.
|
||||
return !(this.isLinkType( "mailto:" , link ) ||
|
||||
this.isLinkType( "javascript:" , link ) ||
|
||||
this.isLinkType( "news:", link ) ||
|
||||
this.isLinkType( "snews:", link ) );
|
||||
},
|
||||
// Returns true iff clicked on link is of type given.
|
||||
isLinkType : function ( linktype, link ) {
|
||||
try {
|
||||
// Test for missing protocol property.
|
||||
if ( !link.protocol ) {
|
||||
// We must resort to testing the URL string :-(.
|
||||
var protocol;
|
||||
if ( link.href ) {
|
||||
protocol = link.href.substr( 0, linktype.length );
|
||||
} else {
|
||||
protocol = link.getAttributeNS("http://www.w3.org/1999/xlink","href");
|
||||
if ( protocol ) {
|
||||
protocol = protocol.substr( 0, linktype.length );
|
||||
}
|
||||
}
|
||||
return protocol.toLowerCase() === linktype;
|
||||
} else {
|
||||
// Presume all but javascript: urls are saveable.
|
||||
return link.protocol.toLowerCase() === linktype;
|
||||
}
|
||||
} catch (e) {
|
||||
// something was wrong with the link,
|
||||
// so we won't be able to save it anyway
|
||||
return false;
|
||||
}
|
||||
},
|
||||
// Open linked-to URL in a new window.
|
||||
openLink : function () {
|
||||
// Determine linked-to URL.
|
||||
openNewWindowWith( this.linkURL() );
|
||||
},
|
||||
// Open linked-to URL in a new tab.
|
||||
openLinkInTab : function () {
|
||||
// Determine linked-to URL.
|
||||
openNewTabWith( this.linkURL() );
|
||||
},
|
||||
// Open frame in a new tab.
|
||||
openFrameInTab : function () {
|
||||
// Determine linked-to URL.
|
||||
openNewTabWith( this.target.ownerDocument.location.href );
|
||||
},
|
||||
// Reload clicked-in frame.
|
||||
reloadFrame : function () {
|
||||
this.target.ownerDocument.location.reload();
|
||||
},
|
||||
// Open clicked-in frame in its own window.
|
||||
openFrame : function () {
|
||||
openNewWindowWith( this.target.ownerDocument.location.href );
|
||||
},
|
||||
// Open clicked-in frame in the same window
|
||||
showOnlyThisFrame : function () {
|
||||
window.loadURI(this.target.ownerDocument.location.href);
|
||||
},
|
||||
// View Partial Source
|
||||
viewPartialSource : function ( context ) {
|
||||
var focusedWindow = document.commandDispatcher.focusedWindow;
|
||||
if (focusedWindow == window)
|
||||
focusedWindow = _content;
|
||||
var docCharset = null;
|
||||
if (focusedWindow)
|
||||
docCharset = "charset=" + focusedWindow.document.characterSet;
|
||||
|
||||
// "View Selection Source" and others such as "View MathML Source"
|
||||
// are mutually exclusive, with the precedence given to the selection
|
||||
// when there is one
|
||||
var reference = null;
|
||||
if (context == "selection")
|
||||
reference = focusedWindow.__proto__.getSelection.call(focusedWindow);
|
||||
else if (context == "mathml")
|
||||
reference = this.target;
|
||||
else
|
||||
throw "not reached";
|
||||
|
||||
var docUrl = null; // unused (and play nice for fragments generated via XSLT too)
|
||||
window.openDialog("chrome://navigator/content/viewPartialSource.xul",
|
||||
"_blank", "scrollbars,resizable,chrome,dialog=no",
|
||||
docUrl, docCharset, reference, context);
|
||||
},
|
||||
// Open new "view source" window with the frame's URL.
|
||||
viewFrameSource : function () {
|
||||
BrowserViewSourceOfDocument(this.target.ownerDocument);
|
||||
},
|
||||
viewInfo : function () {
|
||||
BrowserPageInfo();
|
||||
},
|
||||
viewFrameInfo : function () {
|
||||
BrowserPageInfo(this.target.ownerDocument);
|
||||
},
|
||||
// Change current window to the URL of the image.
|
||||
viewImage : function () {
|
||||
openTopWin( this.imageURL );
|
||||
},
|
||||
// Change current window to the URL of the background image.
|
||||
viewBGImage : function () {
|
||||
openTopWin( this.bgImageURL );
|
||||
},
|
||||
setWallpaper: function() {
|
||||
var winhooks = Components.classes[ "@mozilla.org/winhooks;1" ].
|
||||
getService(Components.interfaces.nsIWindowsHooks);
|
||||
|
||||
winhooks.setImageAsWallpaper(this.target, false);
|
||||
},
|
||||
// Save URL of clicked-on frame.
|
||||
saveFrame : function () {
|
||||
saveDocument( this.target.ownerDocument );
|
||||
},
|
||||
// Save URL of clicked-on link.
|
||||
saveLink : function () {
|
||||
saveURL( this.linkURL(), this.linkText(), null, true );
|
||||
},
|
||||
// Save URL of clicked-on image.
|
||||
saveImage : function () {
|
||||
saveURL( this.imageURL, null, "SaveImageTitle", false );
|
||||
},
|
||||
// Generate email address and put it on clipboard.
|
||||
copyEmail : function () {
|
||||
// Copy the comma-separated list of email addresses only.
|
||||
// There are other ways of embedding email addresses in a mailto:
|
||||
// link, but such complex parsing is beyond us.
|
||||
var url = this.linkURL();
|
||||
var qmark = url.indexOf( "?" );
|
||||
var addresses;
|
||||
|
||||
if ( qmark > 7 ) { // 7 == length of "mailto:"
|
||||
addresses = url.substring( 7, qmark );
|
||||
} else {
|
||||
addresses = url.substr( 7 );
|
||||
}
|
||||
|
||||
var clipboard = this.getService( "@mozilla.org/widget/clipboardhelper;1",
|
||||
Components.interfaces.nsIClipboardHelper );
|
||||
clipboard.copyString(addresses);
|
||||
},
|
||||
addBookmark : function() {
|
||||
var docshell = document.getElementById( "content" ).webNavigation;
|
||||
BookmarksUtils.addBookmark( docshell.currentURI.spec,
|
||||
docshell.document.title,
|
||||
docshell.document.charset,
|
||||
false );
|
||||
},
|
||||
addBookmarkForFrame : function() {
|
||||
var doc = this.target.ownerDocument;
|
||||
var uri = doc.location.href;
|
||||
var title = doc.title;
|
||||
if ( !title )
|
||||
title = uri;
|
||||
BookmarksUtils.addBookmark( uri,
|
||||
title,
|
||||
doc.charset,
|
||||
false );
|
||||
},
|
||||
// Open Metadata window for node
|
||||
showMetadata : function () {
|
||||
window.openDialog( "chrome://navigator/content/metadata.xul",
|
||||
"_blank",
|
||||
"scrollbars,resizable,chrome,dialog=no",
|
||||
this.target);
|
||||
},
|
||||
|
||||
///////////////
|
||||
// Utilities //
|
||||
///////////////
|
||||
|
||||
// Create instance of component given contractId and iid (as string).
|
||||
createInstance : function ( contractId, iidName ) {
|
||||
var iid = Components.interfaces[ iidName ];
|
||||
return Components.classes[ contractId ].createInstance( iid );
|
||||
},
|
||||
// Get service given contractId and iid (as string).
|
||||
getService : function ( contractId, iidName ) {
|
||||
var iid = Components.interfaces[ iidName ];
|
||||
return Components.classes[ contractId ].getService( iid );
|
||||
},
|
||||
// Show/hide one item (specified via name or the item element itself).
|
||||
showItem : function ( itemOrId, show ) {
|
||||
var item = itemOrId.constructor == String ? document.getElementById(itemOrId) : itemOrId;
|
||||
if (item)
|
||||
item.hidden = !show;
|
||||
},
|
||||
// Set given attribute of specified context-menu item. If the
|
||||
// value is null, then it removes the attribute (which works
|
||||
// nicely for the disabled attribute).
|
||||
setItemAttr : function ( id, attr, val ) {
|
||||
var elem = document.getElementById( id );
|
||||
if ( elem ) {
|
||||
if ( val == null ) {
|
||||
// null indicates attr should be removed.
|
||||
elem.removeAttribute( attr );
|
||||
} else {
|
||||
// Set attr=val.
|
||||
elem.setAttribute( attr, val );
|
||||
}
|
||||
}
|
||||
},
|
||||
// Set context menu attribute according to like attribute of another node
|
||||
// (such as a broadcaster).
|
||||
setItemAttrFromNode : function ( item_id, attr, other_id ) {
|
||||
var elem = document.getElementById( other_id );
|
||||
if ( elem && elem.getAttribute( attr ) == "true" ) {
|
||||
this.setItemAttr( item_id, attr, "true" );
|
||||
} else {
|
||||
this.setItemAttr( item_id, attr, null );
|
||||
}
|
||||
},
|
||||
// Temporary workaround for DOM api not yet implemented by XUL nodes.
|
||||
cloneNode : function ( item ) {
|
||||
// Create another element like the one we're cloning.
|
||||
var node = document.createElement( item.tagName );
|
||||
|
||||
// Copy attributes from argument item to the new one.
|
||||
var attrs = item.attributes;
|
||||
for ( var i = 0; i < attrs.length; i++ ) {
|
||||
var attr = attrs.item( i );
|
||||
node.setAttribute( attr.nodeName, attr.nodeValue );
|
||||
}
|
||||
|
||||
// Voila!
|
||||
return node;
|
||||
},
|
||||
// Generate fully-qualified URL for clicked-on link.
|
||||
linkURL : function () {
|
||||
if (this.link.href) {
|
||||
return this.link.href;
|
||||
}
|
||||
var href = this.link.getAttributeNS("http://www.w3.org/1999/xlink","href");
|
||||
if (!href || !href.match(/\S/)) {
|
||||
throw "Empty href"; // Without this we try to save as the current doc, for example, HTML case also throws if empty
|
||||
}
|
||||
href = this.makeURLAbsolute(this.link.baseURI,href);
|
||||
return href;
|
||||
},
|
||||
// Get text of link.
|
||||
linkText : function () {
|
||||
var text = gatherTextUnder( this.link );
|
||||
if (!text || !text.match(/\S/)) {
|
||||
text = this.link.getAttribute("title");
|
||||
if (!text || !text.match(/\S/)) {
|
||||
text = this.link.getAttribute("alt");
|
||||
if (!text || !text.match(/\S/)) {
|
||||
if (this.link.href) {
|
||||
text = this.link.href;
|
||||
} else {
|
||||
text = getAttributeNS("http://www.w3.org/1999/xlink", "href");
|
||||
if (text && text.match(/\S/)) {
|
||||
text = this.makeURLAbsolute(this.link.baseURI, text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return text;
|
||||
},
|
||||
|
||||
//Get selected object and convert it to a string to get
|
||||
//selected text. Only use the first 15 chars.
|
||||
isTextSelection : function() {
|
||||
var result = false;
|
||||
var selection = this.searchSelected();
|
||||
|
||||
var bundle = srGetStrBundle("chrome://communicator/locale/contentAreaCommands.properties");
|
||||
|
||||
var searchSelectText;
|
||||
if (selection != "") {
|
||||
searchSelectText = selection.toString();
|
||||
if (searchSelectText.length > 15)
|
||||
searchSelectText = searchSelectText.substr(0,15) + "...";
|
||||
result = true;
|
||||
|
||||
// format "Search for <selection>" string to show in menu
|
||||
searchSelectText = bundle.formatStringFromName("searchText",
|
||||
[searchSelectText], 1);
|
||||
this.setItemAttr("context-searchselect", "label", searchSelectText);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
||||
searchSelected : function() {
|
||||
var focusedWindow = document.commandDispatcher.focusedWindow;
|
||||
var searchStr = focusedWindow.__proto__.getSelection.call(focusedWindow);
|
||||
searchStr = searchStr.toString();
|
||||
searchStr = searchStr.replace( /^\s+/, "" );
|
||||
searchStr = searchStr.replace(/(\n|\r|\t)+/g, " ");
|
||||
searchStr = searchStr.replace(/\s+$/,"");
|
||||
return searchStr;
|
||||
},
|
||||
|
||||
// Determine if target <object> is an image.
|
||||
objectIsImage : function ( objElem ) {
|
||||
var result = false;
|
||||
// Get type and data attributes.
|
||||
var type = objElem.getAttribute( "type" );
|
||||
var data = objElem.getAttribute( "data" );
|
||||
// Presume any mime type of the form "image/..." is an image.
|
||||
// There must be a data= attribute with an URL, also.
|
||||
if ( type.substring( 0, 6 ) == "image/" && data && data != "" ) {
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
},
|
||||
// Extract image URL from <object> tag.
|
||||
objectImageURL : function ( objElem ) {
|
||||
// Extract url from data= attribute.
|
||||
var data = objElem.getAttribute( "data" );
|
||||
// Make it absolute.
|
||||
return this.makeURLAbsolute( objElem.baseURI, data );
|
||||
},
|
||||
// Convert relative URL to absolute, using document's <base>.
|
||||
makeURLAbsolute : function ( base, url ) {
|
||||
// Construct nsIURL.
|
||||
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService);
|
||||
var baseURI = ioService.newURI(base, null, null);
|
||||
|
||||
return ioService.newURI(baseURI.resolve(url), null, null).spec;
|
||||
},
|
||||
// Parse coords= attribute and return array.
|
||||
parseCoords : function ( area ) {
|
||||
return [];
|
||||
},
|
||||
toString : function () {
|
||||
return "contextMenu.target = " + this.target + "\n" +
|
||||
"contextMenu.onImage = " + this.onImage + "\n" +
|
||||
"contextMenu.onLink = " + this.onLink + "\n" +
|
||||
"contextMenu.link = " + this.link + "\n" +
|
||||
"contextMenu.inFrame = " + this.inFrame + "\n" +
|
||||
"contextMenu.hasBGImage = " + this.hasBGImage + "\n";
|
||||
},
|
||||
isTargetATextBox : function ( node )
|
||||
{
|
||||
if (node.nodeType != Node.ELEMENT_NODE)
|
||||
return false;
|
||||
|
||||
if (node.localName.toUpperCase() == "INPUT") {
|
||||
var attrib = "";
|
||||
var type = node.getAttribute("type");
|
||||
|
||||
if (type)
|
||||
attrib = type.toUpperCase();
|
||||
|
||||
return( (attrib != "IMAGE") &&
|
||||
(attrib != "CHECKBOX") &&
|
||||
(attrib != "RADIO") &&
|
||||
(attrib != "SUBMIT") &&
|
||||
(attrib != "RESET") &&
|
||||
(attrib != "FILE") &&
|
||||
(attrib != "HIDDEN") &&
|
||||
(attrib != "RESET") &&
|
||||
(attrib != "BUTTON") );
|
||||
} else {
|
||||
return(node.localName.toUpperCase() == "TEXTAREA");
|
||||
}
|
||||
},
|
||||
|
||||
// Determines whether or not the separator with the specified ID should be
|
||||
// shown or not by determining if there are any non-hidden items between it
|
||||
// and the previous separator.
|
||||
shouldShowSeparator : function ( aSeparatorID )
|
||||
{
|
||||
var separator = document.getElementById(aSeparatorID);
|
||||
if (separator) {
|
||||
var sibling = separator.previousSibling;
|
||||
while (sibling && sibling.localName != "menuseparator") {
|
||||
if (sibling.getAttribute("hidden") != "true")
|
||||
return true;
|
||||
sibling = sibling.previousSibling;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/*************************************************************************
|
||||
*
|
||||
* nsDefaultEngine : nsIObserver
|
||||
*
|
||||
*************************************************************************/
|
||||
function nsDefaultEngine()
|
||||
{
|
||||
try
|
||||
{
|
||||
var pb = Components.classes["@mozilla.org/preferences-service;1"].
|
||||
getService(Components.interfaces.nsIPrefBranch);
|
||||
var pbi = pb.QueryInterface(
|
||||
Components.interfaces.nsIPrefBranchInternal);
|
||||
pbi.addObserver(this.domain, this, false);
|
||||
|
||||
// reuse code by explicitly invoking initial |observe| call
|
||||
// to initialize the |icon| and |name| member variables
|
||||
this.observe(pb, "", this.domain);
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
nsDefaultEngine.prototype =
|
||||
{
|
||||
name: "",
|
||||
icon: "",
|
||||
domain: "browser.search.defaultengine",
|
||||
|
||||
// nsIObserver implementation
|
||||
observe: function(aPrefBranch, aTopic, aPrefName)
|
||||
{
|
||||
try
|
||||
{
|
||||
var rdf = Components.
|
||||
classes["@mozilla.org/rdf/rdf-service;1"].
|
||||
getService(Components.interfaces.nsIRDFService);
|
||||
var ds = rdf.GetDataSource("rdf:internetsearch");
|
||||
var defaultEngine = aPrefBranch.getCharPref(aPrefName);
|
||||
var res = rdf.GetResource(defaultEngine);
|
||||
|
||||
// get engine ``pretty'' name
|
||||
const kNC_Name = rdf.GetResource(
|
||||
"http://home.netscape.com/NC-rdf#Name");
|
||||
var engineName = ds.GetTarget(res, kNC_Name, true);
|
||||
if (engineName)
|
||||
{
|
||||
this.name = engineName.QueryInterface(
|
||||
Components.interfaces.nsIRDFLiteral).Value;
|
||||
}
|
||||
|
||||
// get URL to engine vendor icon
|
||||
const kNC_Icon = rdf.GetResource(
|
||||
"http://home.netscape.com/NC-rdf#Icon");
|
||||
var iconURL = ds.GetTarget(res, kNC_Icon, true);
|
||||
if (iconURL)
|
||||
{
|
||||
this.icon = iconURL.QueryInterface(
|
||||
Components.interfaces.nsIRDFLiteral).Value;
|
||||
}
|
||||
}
|
||||
catch (ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,297 @@
|
|||
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
|
||||
* 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 this file as it was released upon
|
||||
* January 6, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Peter Annema.
|
||||
* Portions created by Peter Annema are Copyright (C) 2000
|
||||
* Peter Annema. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Peter Annema <disttsc@bart.nl> (Original Author)
|
||||
* Jonas Sicking <sicking@bigfoot.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the
|
||||
* terms of the GNU General Public License Version 2 or later (the
|
||||
* "GPL"), in which case the provisions of the GPL are applicable
|
||||
* instead of those above. If you wish to allow use of your
|
||||
* version of this file only under the terms of the GPL and not to
|
||||
* allow others to use your version of this file under the MPL,
|
||||
* indicate your decision by deleting the provisions above and
|
||||
* replace them with the notice and other provisions required by
|
||||
* the GPL. If you do not delete the provisions above, a recipient
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*/
|
||||
|
||||
/** Document Zoom Management Code
|
||||
*
|
||||
* To use this, you'll need to have a <menu id="menu_textZoom"/>
|
||||
* and a getMarkupDocumentViewer() function which returns a
|
||||
* nsIMarkupDocumentViewer.
|
||||
*
|
||||
**/
|
||||
|
||||
function ZoomManager() {
|
||||
this.bundle = document.getElementById("bundle_viewZoom");
|
||||
|
||||
// factorAnchor starts on factorOther
|
||||
this.factorOther = parseInt(this.bundle.getString("valueOther"));
|
||||
this.factorAnchor = this.factorOther;
|
||||
}
|
||||
|
||||
ZoomManager.prototype = {
|
||||
instance : null,
|
||||
|
||||
getInstance : function() {
|
||||
if (!ZoomManager.prototype.instance)
|
||||
ZoomManager.prototype.instance = new ZoomManager();
|
||||
|
||||
return ZoomManager.prototype.instance;
|
||||
},
|
||||
|
||||
MIN : 1,
|
||||
MAX : 2000,
|
||||
|
||||
bundle : null,
|
||||
|
||||
zoomFactorsString : "", // cache
|
||||
zoomFactors : null,
|
||||
|
||||
factorOther : 300,
|
||||
factorAnchor : 300,
|
||||
steps : 0,
|
||||
|
||||
get textZoom() {
|
||||
var currentZoom;
|
||||
try {
|
||||
currentZoom = Math.round(getMarkupDocumentViewer().textZoom * 100);
|
||||
if (this.indexOf(currentZoom) == -1) {
|
||||
if (currentZoom != this.factorOther) {
|
||||
this.factorOther = currentZoom;
|
||||
this.factorAnchor = this.factorOther;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
currentZoom = 100;
|
||||
}
|
||||
return currentZoom;
|
||||
},
|
||||
|
||||
set textZoom(aZoom) {
|
||||
if (aZoom < this.MIN || aZoom > this.MAX)
|
||||
throw Components.results.NS_ERROR_INVALID_ARG;
|
||||
|
||||
getMarkupDocumentViewer().textZoom = aZoom / 100;
|
||||
},
|
||||
|
||||
enlarge : function() {
|
||||
this.jump(1);
|
||||
},
|
||||
|
||||
reduce : function() {
|
||||
this.jump(-1);
|
||||
},
|
||||
|
||||
reset : function() {
|
||||
this.textZoom = 100;
|
||||
},
|
||||
|
||||
getZoomFactors : function() {
|
||||
this.ensureZoomFactors();
|
||||
|
||||
return this.zoomFactors;
|
||||
},
|
||||
|
||||
indexOf : function(aZoom) {
|
||||
this.ensureZoomFactors();
|
||||
|
||||
var index = -1;
|
||||
if (this.isZoomInRange(aZoom)) {
|
||||
index = this.zoomFactors.length - 1;
|
||||
while (index >= 0 && this.zoomFactors[index] != aZoom)
|
||||
--index;
|
||||
}
|
||||
|
||||
return index;
|
||||
},
|
||||
|
||||
/***** internal helper functions below here *****/
|
||||
|
||||
ensureZoomFactors : function() {
|
||||
var zoomFactorsString = this.bundle.getString("values");
|
||||
if (this.zoomFactorsString != zoomFactorsString) {
|
||||
this.zoomFactorsString = zoomFactorsString;
|
||||
this.zoomFactors = zoomFactorsString.split(",");
|
||||
for (var i = 0; i<this.zoomFactors.length; ++i)
|
||||
this.zoomFactors[i] = parseInt(this.zoomFactors[i]);
|
||||
}
|
||||
},
|
||||
|
||||
isLevelInRange : function(aLevel) {
|
||||
return (aLevel >= 0 && aLevel < this.zoomFactors.length);
|
||||
},
|
||||
|
||||
isZoomInRange : function(aZoom) {
|
||||
return (aZoom >= this.zoomFactors[0] && aZoom <= this.zoomFactors[this.zoomFactors.length - 1]);
|
||||
},
|
||||
|
||||
jump : function(aDirection) {
|
||||
if (aDirection != -1 && aDirection != 1)
|
||||
throw Components.results.NS_ERROR_INVALID_ARG;
|
||||
|
||||
this.ensureZoomFactors();
|
||||
|
||||
var currentZoom = this.textZoom;
|
||||
var insertIndex = -1;
|
||||
var stepFactor = parseFloat(this.bundle.getString("stepFactor"));
|
||||
|
||||
// temporarily add factorOther to list
|
||||
if (this.isZoomInRange(this.factorOther)) {
|
||||
insertIndex = 0;
|
||||
while (this.zoomFactors[insertIndex] < this.factorOther)
|
||||
++insertIndex;
|
||||
|
||||
if (this.zoomFactors[insertIndex] != this.factorOther)
|
||||
this.zoomFactors.splice(insertIndex, 0, this.factorOther);
|
||||
}
|
||||
|
||||
var factor;
|
||||
var done = false;
|
||||
|
||||
if (this.isZoomInRange(currentZoom)) {
|
||||
var index = this.indexOf(currentZoom);
|
||||
if (aDirection == -1 && index == 0 ||
|
||||
aDirection == 1 && index == this.zoomFactors.length - 1) {
|
||||
this.steps = 0;
|
||||
this.factorAnchor = this.zoomFactors[index];
|
||||
} else {
|
||||
factor = this.zoomFactors[index + aDirection];
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!done) {
|
||||
this.steps += aDirection;
|
||||
factor = this.factorAnchor * Math.pow(stepFactor, this.steps);
|
||||
if (factor < this.MIN || factor > this.MAX) {
|
||||
this.steps -= aDirection;
|
||||
factor = this.factorAnchor * Math.pow(stepFactor, this.steps);
|
||||
}
|
||||
factor = Math.round(factor);
|
||||
if (this.isZoomInRange(factor))
|
||||
factor = this.snap(factor);
|
||||
else
|
||||
this.factorOther = factor;
|
||||
}
|
||||
|
||||
if (insertIndex != -1)
|
||||
this.zoomFactors.splice(insertIndex, 1);
|
||||
|
||||
this.textZoom = factor;
|
||||
},
|
||||
|
||||
snap : function(aZoom) {
|
||||
if (this.isZoomInRange(aZoom)) {
|
||||
var level = 0;
|
||||
while (this.zoomFactors[level + 1] < aZoom)
|
||||
++level;
|
||||
|
||||
// if aZoom closer to [level + 1] than [level], snap to [level + 1]
|
||||
if ((this.zoomFactors[level + 1] - aZoom) < (aZoom - this.zoomFactors[level]))
|
||||
++level;
|
||||
|
||||
aZoom = this.zoomFactors[level];
|
||||
}
|
||||
|
||||
return aZoom;
|
||||
}
|
||||
}
|
||||
|
||||
/***** init and helper functions for viewZoomOverlay.xul *****/
|
||||
window.addEventListener("load", registerZoomManager, false);
|
||||
|
||||
function registerZoomManager()
|
||||
{
|
||||
var textZoomMenu = document.getElementById("menu_textZoom");
|
||||
var zoom = ZoomManager.prototype.getInstance();
|
||||
|
||||
var parentMenu = textZoomMenu.parentNode;
|
||||
parentMenu.addEventListener("popupshowing", updateViewMenu, false);
|
||||
|
||||
var insertBefore = document.getElementById("menu_textZoomInsertBefore");
|
||||
var popup = insertBefore.parentNode;
|
||||
var accessKeys = zoom.bundle.getString("accessKeys").split(",");
|
||||
var zoomFactors = zoom.getZoomFactors();
|
||||
for (var i = 0; i < zoomFactors.length; ++i) {
|
||||
var menuItem = document.createElement("menuitem");
|
||||
menuItem.setAttribute("type", "radio");
|
||||
menuItem.setAttribute("name", "textZoom");
|
||||
|
||||
var label;
|
||||
if (zoomFactors[i] == 100)
|
||||
label = zoom.bundle.getString("labelOriginal");
|
||||
else
|
||||
label = zoom.bundle.getString("label");
|
||||
|
||||
menuItem.setAttribute("label", label.replace(/%zoom%/, zoomFactors[i]));
|
||||
menuItem.setAttribute("accesskey", accessKeys[i]);
|
||||
menuItem.setAttribute("oncommand", "ZoomManager.prototype.getInstance().textZoom = this.value;");
|
||||
menuItem.setAttribute("value", zoomFactors[i]);
|
||||
popup.insertBefore(menuItem, insertBefore);
|
||||
}
|
||||
}
|
||||
|
||||
function updateViewMenu()
|
||||
{
|
||||
var zoom = ZoomManager.prototype.getInstance();
|
||||
|
||||
var textZoomMenu = document.getElementById("menu_textZoom");
|
||||
var menuLabel = zoom.bundle.getString("menuLabel").replace(/%zoom%/, zoom.textZoom);
|
||||
textZoomMenu.setAttribute("label", menuLabel);
|
||||
}
|
||||
|
||||
function updateTextZoomMenu()
|
||||
{
|
||||
var zoom = ZoomManager.prototype.getInstance();
|
||||
|
||||
var currentZoom = zoom.textZoom;
|
||||
|
||||
var textZoomOther = document.getElementById("menu_textZoomOther");
|
||||
var label = zoom.bundle.getString("labelOther");
|
||||
textZoomOther.setAttribute("label", label.replace(/%zoom%/, zoom.factorOther));
|
||||
textZoomOther.setAttribute("value", zoom.factorOther);
|
||||
|
||||
var popup = document.getElementById("menu_textZoomPopup");
|
||||
var item = popup.firstChild;
|
||||
while (item) {
|
||||
if (item.getAttribute("name") == "textZoom") {
|
||||
if (item.getAttribute("value") == currentZoom)
|
||||
item.setAttribute("checked","true");
|
||||
else
|
||||
item.removeAttribute("checked");
|
||||
}
|
||||
item = item.nextSibling;
|
||||
}
|
||||
}
|
||||
|
||||
function setTextZoomOther()
|
||||
{
|
||||
var zoom = ZoomManager.prototype.getInstance();
|
||||
|
||||
// open dialog and ask for new value
|
||||
var o = {value: zoom.factorOther, zoomMin: zoom.MIN, zoomMax: zoom.MAX};
|
||||
window.openDialog("chrome://communicator/content/askViewZoom.xul", "AskViewZoom", "chrome,modal,titlebar", o);
|
||||
if (o.zoomOK)
|
||||
zoom.textZoom = o.value;
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
- 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 this file as it was released on
|
||||
- January 6, 2001.
|
||||
-
|
||||
- The Initial Developer of the Original Code is Peter Annema.
|
||||
- Portions created by Peter Annema are Copyright (C) 2000
|
||||
- Peter Annema. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Peter Annema <disttsc@bart.nl> (Original Author)
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the
|
||||
- terms of the GNU General Public License Version 2 or later (the
|
||||
- "GPL"), in which case the provisions of the GPL are applicable
|
||||
- instead of those above. If you wish to allow use of your
|
||||
- version of this file only under the terms of the GPL and not to
|
||||
- allow others to use your version of this file under the MPL,
|
||||
- indicate your decision by deleting the provisions above and
|
||||
- replace them with the notice and other provisions required by
|
||||
- the GPL. If you do not delete the provisions above, a recipient
|
||||
- may use your version of this file under either the MPL or the
|
||||
- GPL.
|
||||
-->
|
||||
|
||||
<!DOCTYPE window SYSTEM "chrome://communicator/locale/viewZoomOverlay.dtd">
|
||||
|
||||
<overlay id="viewZoomOverlay"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://communicator/content/viewZoomOverlay.js"/>
|
||||
|
||||
<stringbundle id="bundle_viewZoom" src="chrome://communicator/locale/viewZoomOverlay.properties"/>
|
||||
|
||||
<keyset id="viewZoomKeys">
|
||||
<key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
|
||||
<key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key key="&textZoomEnlargeCmd.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel,shift"/>
|
||||
<key key="&textZoomEnlargeCmd.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
|
||||
<key key="&textZoomResetCmd.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
|
||||
</keyset>
|
||||
|
||||
<commandset id="viewZoomCommands">
|
||||
<command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
|
||||
<command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
|
||||
<command id="cmd_textZoomReset" oncommand="ZoomManager.prototype.getInstance().reset();"/>
|
||||
</commandset>
|
||||
|
||||
<menu id="menu_textZoom" accesskey="&textZoomMenu.accesskey;">
|
||||
<menupopup id="menu_textZoomPopup" onpopupshowing="updateTextZoomMenu();">
|
||||
<menuitem key="key_textZoomReduce" label="&textZoomReduceCmd.label;" accesskey="&textZoomReduceCmd.accesskey;" command="cmd_textZoomReduce"/>
|
||||
<menuitem key="key_textZoomEnlarge" label="&textZoomEnlargeCmd.label;" accesskey="&textZoomEnlargeCmd.accesskey;" command="cmd_textZoomEnlarge"/>
|
||||
<menuseparator/>
|
||||
<menuseparator id="menu_textZoomInsertBefore"/>
|
||||
<menuitem id="menu_textZoomOther" type="radio" name="textZoom" accesskey="&textZoomOtherCmd.accesskey;" oncommand="setTextZoomOther();"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
|
||||
</overlay>
|
|
@ -0,0 +1,788 @@
|
|||
/** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
|
||||
a particular application should be in that application's style sheet.
|
||||
For example style definitions for navigator can be found in navigator.css
|
||||
|
||||
THIS FILE IS LOCKED DOWN. YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
|
||||
CHANGES REVIEWED BY hyatt@netscape.com.
|
||||
**/
|
||||
|
||||
@import url("chrome://global/content/platformXUL.css");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
|
||||
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
|
||||
@namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */
|
||||
|
||||
* {
|
||||
-moz-user-focus: ignore;
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
/* hide the content and destroy the frame */
|
||||
*[hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* hide the content, but don't destroy the frames */
|
||||
*[collapsed="true"],
|
||||
*[moz-collapsed="true"] {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
|
||||
/* ::::::::::
|
||||
:: Rules for 'hiding' portions of the chrome for special
|
||||
:: kinds of windows (not JUST browser windows) with toolbars
|
||||
::::: */
|
||||
|
||||
window[chromehidden~="menubar"] .chromeclass-menubar,
|
||||
window[chromehidden~="directories"] .chromeclass-directories,
|
||||
window[chromehidden~="status"] .chromeclass-status,
|
||||
window[chromehidden~="extrachrome"] .chromeclass-extrachrome,
|
||||
window[chromehidden~="location"] .chromeclass-location,
|
||||
window[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/****** elements that have no visual representation ******/
|
||||
|
||||
data,
|
||||
xbl|children,
|
||||
commands, commandset, command,
|
||||
broadcasterset, broadcaster, observes,
|
||||
keyset, key,
|
||||
template, rule, conditions, action,
|
||||
bindings, binding, content, member, triple,
|
||||
treechildren, treeitem, treeseparator, treerow, treecell {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/********** focus rules **********/
|
||||
|
||||
button,
|
||||
checkbox,
|
||||
colorpicker[type="button"],
|
||||
menulist,
|
||||
radiogroup,
|
||||
tree,
|
||||
browser,
|
||||
editor,
|
||||
iframe {
|
||||
-moz-user-focus: normal;
|
||||
}
|
||||
|
||||
menulist[editable] {
|
||||
-moz-user-focus: ignore;
|
||||
}
|
||||
|
||||
treecol,
|
||||
treerows,
|
||||
radio {
|
||||
-moz-user-focus: none;
|
||||
}
|
||||
|
||||
/******** window & page ******/
|
||||
|
||||
window,
|
||||
page {
|
||||
overflow: hidden;
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/******** box *******/
|
||||
|
||||
vbox {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/********** button **********/
|
||||
|
||||
button {
|
||||
-moz-binding: url("chrome://global/content/bindings/button.xml#button");
|
||||
}
|
||||
|
||||
button[type="menu"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/button.xml#menu");
|
||||
}
|
||||
|
||||
button[type="menu-button"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/button.xml#menu-button");
|
||||
}
|
||||
|
||||
/********** toolbarbutton **********/
|
||||
|
||||
toolbarbutton {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton");
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu");
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-button");
|
||||
}
|
||||
|
||||
dropmarker[type="menu-button"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#dropmarker");
|
||||
}
|
||||
|
||||
/******** browser, editor, iframe ********/
|
||||
|
||||
browser,
|
||||
editor,
|
||||
iframe {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
browser {
|
||||
-moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
|
||||
}
|
||||
|
||||
tabbrowser {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbrowser.xml#tabbrowser");
|
||||
}
|
||||
|
||||
editor {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#editor");
|
||||
}
|
||||
|
||||
iframe {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#iframe");
|
||||
}
|
||||
|
||||
/********** image **********/
|
||||
|
||||
image {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#image");
|
||||
}
|
||||
|
||||
/********** checkbox **********/
|
||||
|
||||
checkbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
|
||||
}
|
||||
|
||||
/********** radio **********/
|
||||
|
||||
radiogroup {
|
||||
-moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
|
||||
-moz-box-orient: vertical;
|
||||
-moz-box-align: start;
|
||||
}
|
||||
|
||||
radio {
|
||||
-moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
|
||||
}
|
||||
|
||||
/******** groupbox *********/
|
||||
|
||||
groupbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/groupbox.xml#groupbox");
|
||||
display: -moz-groupbox;
|
||||
}
|
||||
|
||||
caption {
|
||||
-moz-binding: url("chrome://global/content/bindings/groupbox.xml#caption");
|
||||
}
|
||||
|
||||
.groupbox-body {
|
||||
-moz-box-pack: inherit;
|
||||
-moz-box-align: inherit;
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/******* toolbar *******/
|
||||
|
||||
toolbox {
|
||||
-moz-binding: url("chrome://global/content/widgets/toolbar.xml#toolbox");
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
toolbar {
|
||||
-moz-binding: url("chrome://global/content/widgets/toolbar.xml#toolbar");
|
||||
}
|
||||
|
||||
toolbarseparator {
|
||||
-moz-binding: url("chrome://global/content/widgets/toolbar.xml#toolbarseparator");
|
||||
}
|
||||
|
||||
/********* menubar ***********/
|
||||
|
||||
menubar {
|
||||
-moz-binding: url("chrome://global/content/widgets/toolbar.xml#menubar");
|
||||
}
|
||||
|
||||
/********* menu ***********/
|
||||
|
||||
menubar > menu {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar");
|
||||
}
|
||||
|
||||
menubar > menu.menu-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic");
|
||||
}
|
||||
|
||||
menu {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menu");
|
||||
}
|
||||
|
||||
menu.menu-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
|
||||
}
|
||||
|
||||
/********* menuitem ***********/
|
||||
|
||||
menuitem {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
|
||||
}
|
||||
|
||||
menuitem.menuitem-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
menuitem[type="checkbox"],
|
||||
menuitem[type="radio"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
menuitem.menuitem-non-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item");
|
||||
}
|
||||
|
||||
/********* menuseparator ***********/
|
||||
|
||||
menuseparator {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator");
|
||||
}
|
||||
|
||||
/********* popup & menupopup ***********/
|
||||
|
||||
/* <popup> is deprecated. Only <menupopup> and <tooltip> are still valid. */
|
||||
|
||||
popup,
|
||||
menupopup {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
|
||||
-moz-box-orient: vertical;
|
||||
display: none;
|
||||
}
|
||||
|
||||
popup,
|
||||
menupopup,
|
||||
tooltip {
|
||||
z-index: 2147483647;
|
||||
}
|
||||
|
||||
menupopup[menugenerated="true"],
|
||||
popup[menugenerated="true"],
|
||||
tooltip[menugenerated="true"] {
|
||||
display: -moz-popup;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#tooltip");
|
||||
display: -moz-popup;
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
/********** floating popups **********/
|
||||
|
||||
/*
|
||||
titlebar {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#titlebar");
|
||||
}
|
||||
|
||||
resizer[resizerdirection="right"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#ew-resizer");
|
||||
}
|
||||
|
||||
resizer[resizerdirection="bottom"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#ns-resizer");
|
||||
}
|
||||
|
||||
resizer[resizerdirection="bottomright"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#diag-resizer");
|
||||
}
|
||||
|
||||
floatingwindow {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
|
||||
-moz-box-orient: vertical;
|
||||
display: none;
|
||||
z-index: 2147483647;
|
||||
}
|
||||
|
||||
floatingwindow[docked="left"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
|
||||
}
|
||||
|
||||
button.popupClose {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
|
||||
}
|
||||
*/
|
||||
/******** grid **********/
|
||||
|
||||
grid {
|
||||
display: -moz-grid;
|
||||
}
|
||||
|
||||
rows,
|
||||
columns {
|
||||
display: -moz-grid-group;
|
||||
}
|
||||
|
||||
row,
|
||||
column {
|
||||
display: -moz-grid-line;
|
||||
}
|
||||
|
||||
rows {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
column {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/******** listbox **********/
|
||||
|
||||
listbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listbox");
|
||||
}
|
||||
|
||||
listcols, listcol {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listbox-base");
|
||||
}
|
||||
|
||||
listhead {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listhead");
|
||||
}
|
||||
|
||||
listrows {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listrows");
|
||||
}
|
||||
|
||||
listitem {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem");
|
||||
}
|
||||
|
||||
listitem[type="checkbox"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox");
|
||||
}
|
||||
|
||||
listheader {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listheader");
|
||||
}
|
||||
|
||||
listcell {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell");
|
||||
}
|
||||
|
||||
listcell[type="checkbox"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox");
|
||||
}
|
||||
|
||||
.listitem-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-iconic");
|
||||
}
|
||||
|
||||
listitem[type="checkbox"].listitem-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox-iconic");
|
||||
}
|
||||
|
||||
.listcell-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-iconic");
|
||||
}
|
||||
|
||||
listcell[type="checkbox"].listcell-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox-iconic");
|
||||
}
|
||||
|
||||
listbox {
|
||||
display: -moz-grid;
|
||||
}
|
||||
|
||||
listbox[rows] {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
listcols, listhead, listrows, listboxbody {
|
||||
display: -moz-grid-group;
|
||||
}
|
||||
|
||||
listcol, listitem, listheaditem {
|
||||
display: -moz-grid-line;
|
||||
}
|
||||
|
||||
listbox {
|
||||
-moz-user-focus: normal;
|
||||
-moz-box-orient: vertical;
|
||||
min-width: 0px;
|
||||
min-height: 0px;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
listhead, listrows, listboxbody {
|
||||
-moz-user-focus: none;
|
||||
}
|
||||
|
||||
listhead {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
listrows {
|
||||
-moz-box-orient: vertical;
|
||||
-moz-box-flex: 1;
|
||||
}
|
||||
|
||||
listboxbody {
|
||||
-moz-box-orient: vertical;
|
||||
-moz-box-flex: 1;
|
||||
overflow: auto;
|
||||
min-height: 0px;
|
||||
}
|
||||
|
||||
listcol {
|
||||
-moz-box-orient: vertical;
|
||||
min-width: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
listcell {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
/******** tree ******/
|
||||
|
||||
tree {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#tree");
|
||||
}
|
||||
|
||||
treecols {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecols");
|
||||
}
|
||||
|
||||
treecol {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol");
|
||||
}
|
||||
|
||||
treecol.treecol-image {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image");
|
||||
}
|
||||
|
||||
tree > treechildren {
|
||||
display: -moz-box;
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treebody");
|
||||
-moz-user-focus: none;
|
||||
-moz-user-select: none;
|
||||
-moz-box-flex: 1;
|
||||
}
|
||||
|
||||
treerows {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#treerows");
|
||||
}
|
||||
|
||||
treecolpicker {
|
||||
-moz-binding: url("chrome://global/content/bindings/tree.xml#columnpicker");
|
||||
}
|
||||
|
||||
tree {
|
||||
-moz-box-orient: vertical;
|
||||
-moz-user-select: none;
|
||||
min-width: 0px;
|
||||
min-height: 0px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
tree[hidecolumnpicker="true"] > treecols > treecolpicker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
treecol {
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
treecol[hidden="true"] {
|
||||
visibility: collapse;
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
/********** deck & stack *********/
|
||||
|
||||
deck {
|
||||
display: -moz-deck;
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#deck");
|
||||
}
|
||||
|
||||
stack, bulletinboard {
|
||||
display: -moz-stack;
|
||||
}
|
||||
|
||||
:-moz-deck-hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/********** tabbox *********/
|
||||
|
||||
tabbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox");
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
tabs {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
|
||||
-moz-box-orient: horizontal;
|
||||
}
|
||||
|
||||
tabs[closebutton="true"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs-closebutton");
|
||||
}
|
||||
|
||||
tab {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
}
|
||||
|
||||
tabpanels {
|
||||
-moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
|
||||
display: -moz-deck;
|
||||
}
|
||||
|
||||
/********** progressmeter **********/
|
||||
|
||||
progressmeter {
|
||||
-moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
|
||||
}
|
||||
|
||||
/********** basic rule for anonymous content that needs to pass box properties through
|
||||
********** to an insertion point parent that holds the real kids **************/
|
||||
|
||||
.box-inherit {
|
||||
-moz-box-orient: inherit;
|
||||
-moz-box-pack: inherit;
|
||||
-moz-box-align: inherit;
|
||||
-moz-box-direction: inherit;
|
||||
}
|
||||
|
||||
/********** label **********/
|
||||
|
||||
spacer {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
description {
|
||||
-moz-binding: url("chrome://global/content/bindings/text.xml#text-base");
|
||||
}
|
||||
|
||||
label {
|
||||
-moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
|
||||
}
|
||||
|
||||
label.text-link {
|
||||
-moz-binding: url("chrome://global/content/bindings/text.xml#text-link");
|
||||
-moz-user-focus: normal;
|
||||
}
|
||||
|
||||
label[control] {
|
||||
-moz-binding: url("chrome://global/content/bindings/text.xml#label-control");
|
||||
}
|
||||
|
||||
/********** textbox **********/
|
||||
|
||||
textbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox");
|
||||
-moz-user-select: text;
|
||||
}
|
||||
|
||||
textbox[multiline="true"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea");
|
||||
}
|
||||
|
||||
.textbox-input-box {
|
||||
-moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box");
|
||||
}
|
||||
|
||||
/********** autocomplete textbox **********/
|
||||
|
||||
textbox[type="autocomplete"] {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete");
|
||||
}
|
||||
|
||||
.autocomplete-result-popup {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-result-popup");
|
||||
}
|
||||
|
||||
.autocomplete-history-popup {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup");
|
||||
}
|
||||
|
||||
.autocomplete-tree {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-tree");
|
||||
}
|
||||
|
||||
.autocomplete-treebody {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treebody");
|
||||
}
|
||||
|
||||
.autocomplete-treerows {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treerows");
|
||||
}
|
||||
|
||||
.autocomplete-history-dropmarker {
|
||||
-moz-binding: url("chrome://global/content/autocomplete.xml#history-dropmarker");
|
||||
}
|
||||
|
||||
/********** colorpicker **********/
|
||||
|
||||
colorpicker {
|
||||
-moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker");
|
||||
}
|
||||
|
||||
colorpicker[type="button"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button");
|
||||
}
|
||||
|
||||
.colorpickertile {
|
||||
-moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpickertile");
|
||||
}
|
||||
|
||||
/********** menulist **********/
|
||||
|
||||
menulist {
|
||||
-moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist");
|
||||
}
|
||||
|
||||
menulist[editable] {
|
||||
-moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable");
|
||||
}
|
||||
|
||||
menulist > menupopup > menuitem {
|
||||
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-noaccel");
|
||||
}
|
||||
|
||||
dropmarker[type="menu"] {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#dropmarker");
|
||||
}
|
||||
|
||||
/********** splitter **********/
|
||||
|
||||
splitter {
|
||||
-moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter");
|
||||
}
|
||||
|
||||
grippy {
|
||||
-moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy");
|
||||
}
|
||||
|
||||
.tree-splitter {
|
||||
width: 0px;
|
||||
max-width: 0px;
|
||||
}
|
||||
|
||||
/********** scrollbar **********/
|
||||
|
||||
/* Scrollbars are never flipped even if BiDI kicks in. */
|
||||
scrollbar {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
thumb
|
||||
{
|
||||
-moz-binding: url(chrome://global/content/bindings/scrollbar.xml#thumb);
|
||||
}
|
||||
|
||||
scrollbar, scrollbarbutton, slider, thumb {
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
scrollbar[value="hidden"] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/******** scrollbox ********/
|
||||
|
||||
scrollbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox");
|
||||
}
|
||||
|
||||
arrowscrollbox {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
|
||||
}
|
||||
|
||||
autorepeatbutton {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton");
|
||||
}
|
||||
|
||||
/********** statusbar **********/
|
||||
|
||||
statusbar
|
||||
{
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#statusbar");
|
||||
}
|
||||
|
||||
statusbarpanel {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel");
|
||||
}
|
||||
|
||||
.statusbarpanel-iconic {
|
||||
-moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic");
|
||||
}
|
||||
|
||||
/********** spinbuttons ***********/
|
||||
|
||||
spinbuttons {
|
||||
-moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons");
|
||||
}
|
||||
|
||||
/********** stringbundle **********/
|
||||
|
||||
stringbundleset {
|
||||
-moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset");
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
stringbundle {
|
||||
-moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle");
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
/********** dialog **********/
|
||||
|
||||
dialog {
|
||||
-moz-binding: url("chrome://global/content/bindings/dialog.xml#dialog");
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
dialogheader {
|
||||
-moz-binding: url("chrome://global/content/bindings/dialog.xml#dialogheader");
|
||||
}
|
||||
|
||||
/********* page ************/
|
||||
|
||||
page {
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
/********** wizard **********/
|
||||
|
||||
wizard {
|
||||
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
|
||||
-moz-box-orient: vertical;
|
||||
}
|
||||
|
||||
wizardpage {
|
||||
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
|
||||
-moz-box-orient: vertical;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.wizard-header {
|
||||
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header");
|
||||
}
|
||||
|
||||
.wizard-buttons {
|
||||
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
toolkit.jar:
|
||||
+ content/global/viewZoomOverlay.xul (content/viewZoomOverlay.xul)
|
||||
+ content/global/viewZoomOverlay.js (content/viewZoomOverlay.js)
|
||||
+ content/global/xul.css (content/xul.css)
|
||||
+ content/global/nsContextMenu.js (content/nsContextMenu.js)
|
||||
+ content/global/widgets/toolbar.xml (content/widgets/toolbar.xml)
|
||||
content/global/nsBrowserStatusHandler.js (content/nsBrowserStatusHandler.js)
|
||||
content/global/nsBrowserContentListener.js (content/nsBrowserContentListener.js)
|
|
@ -0,0 +1,44 @@
|
|||
# ***** 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.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Brian Ryner <bryner@netscape.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 *****
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
include $(topsrcdir)/config/rules.mk
|
|
@ -0,0 +1,120 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
* Brian Ryner <bryner@netscape.com>
|
||||
*/
|
||||
|
||||
/* ===== autocomplete.css =================================================
|
||||
== Styles used by the autocomplete widget.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
textbox {
|
||||
cursor: default;
|
||||
padding: 0;
|
||||
-moz-appearance: none;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.autocomplete-textbox-container {
|
||||
-moz-appearance: menulist-textfield;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
.textbox-input-box {
|
||||
margin: 0 3px;
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
/* ::::: history button ::::: */
|
||||
|
||||
.autocomplete-history-dropmarker {
|
||||
-moz-appearance: menulist-button;
|
||||
min-width: 17px;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
padding: 1px;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.autocomplete-history-dropmarker[open="true"] {
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-right-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDFace;
|
||||
padding: 2px 0 0 2px;
|
||||
}
|
||||
|
||||
/* ::::: autocomplete popups ::::: */
|
||||
|
||||
.autocomplete-result-popup,
|
||||
.autocomplete-history-popup {
|
||||
border-width: 1px;
|
||||
-moz-border-top-colors: ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow;
|
||||
padding: 0;
|
||||
background-color: -moz-Field !important;
|
||||
}
|
||||
|
||||
.autocomplete-history-popup {
|
||||
max-height: 180px;
|
||||
}
|
||||
|
||||
/* ::::: tree ::::: */
|
||||
|
||||
.autocomplete-tree {
|
||||
border: none;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.autocomplete-treecol {
|
||||
margin: 0 !important;
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-cell-text {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-row(menuactive) {
|
||||
background-color: Highlight;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-cell-text(menuactive) {
|
||||
color: HighlightText !important;
|
||||
}
|
|
@ -0,0 +1,136 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
* Brian Ryner <bryner@netscape.com>
|
||||
*/
|
||||
|
||||
/* ===== button.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* :::::::::: button :::::::::: */
|
||||
|
||||
button {
|
||||
-moz-appearance: button;
|
||||
margin: 1px 5px 2px 5px;
|
||||
min-width: 6.3em;
|
||||
border: 3px solid;
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
background-color: ThreeDFace;
|
||||
color: ButtonText;
|
||||
}
|
||||
|
||||
.button-box {
|
||||
padding: 1px 4px 2px 3px;
|
||||
}
|
||||
|
||||
.button-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* .......... focused state .......... */
|
||||
|
||||
button:focus {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
}
|
||||
|
||||
/* .......... default state .......... */
|
||||
|
||||
button[default="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
|
||||
}
|
||||
|
||||
/* .......... active/open/checked state .......... */
|
||||
|
||||
button:hover:active,
|
||||
button[open="true"],
|
||||
button[checked="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
}
|
||||
|
||||
button:hover:active > .button-box,
|
||||
button[open="true"] > .button-box,
|
||||
button[checked="true"] > .button-box {
|
||||
padding: 2px 3px 1px 4px;
|
||||
}
|
||||
|
||||
/* .......... disabled state .......... */
|
||||
|
||||
button[disabled="true"] {
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
button[disabled="true"] > .button-box {
|
||||
padding: 1px 4px 2px 3px !important;
|
||||
}
|
||||
|
||||
/* ::::: menu/menu-button buttons ::::: */
|
||||
|
||||
button[type="menu-button"] {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.button-menu-dropmarker,
|
||||
.button-menubutton-dropmarker {
|
||||
margin: 1px;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
min-width:11px;
|
||||
min-height:11px;
|
||||
}
|
||||
|
||||
.button-menu-dropmarker[disabled="true"],
|
||||
.button-menubutton-dropmarker[disabled="true"] {
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
.button-menubutton-dropmarker[open="true"] {
|
||||
margin: 2px 0px 0px 2px;
|
||||
}
|
||||
|
||||
/* ::::: plain buttons ::::: */
|
||||
|
||||
button.plain {
|
||||
border: 0px !important;
|
||||
margin: 0px !important;
|
||||
padding: 0px !important;
|
||||
}
|
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@netscape.com>
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== checkbox.css ===================================================
|
||||
== Styles used by the XUL checkbox element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: checkbox ::::: */
|
||||
|
||||
checkbox {
|
||||
-moz-appearance: checkbox-container;
|
||||
-moz-box-align: center;
|
||||
margin: 2px 4px;
|
||||
padding: 0px 2px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.checkbox-label-box {
|
||||
margin-left: 2px;
|
||||
padding: 0px 1px;
|
||||
}
|
||||
|
||||
.checkbox-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ..... focused state ..... */
|
||||
|
||||
checkbox:focus {
|
||||
border: 1px solid ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
checkbox[disabled="true"] > .checkbox-check {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
checkbox[disabled="true"] {
|
||||
color: GrayText !important;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
.checkbox-check {
|
||||
-moz-appearance: checkbox;
|
||||
-moz-box-align: center;
|
||||
border: 2px solid;
|
||||
margin: 5px 0px 4px 0px;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
min-width: 13px;
|
||||
min-height: 13px;
|
||||
background: -moz-Field no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
checkbox:hover:active > .checkbox-check {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
checkbox[checked="true"] > .checkbox-check {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
|
||||
}
|
||||
|
||||
checkbox[checked="true"][disabled="true"] > .checkbox-check {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
classic.jar:
|
||||
+ skin/classic/global/autocomplete.css
|
||||
+ skin/classic/global/checkbox.css
|
||||
+ skin/classic/global/radio.css
|
||||
+ skin/classic/global/button.css
|
||||
+ skin/classic/global/toolbarbutton.css
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@netscape.com>
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== radio.css ===================================================
|
||||
== Styles used by the XUL radio element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: radio ::::: */
|
||||
|
||||
radio {
|
||||
-moz-appearance: radio-container;
|
||||
-moz-box-align: center;
|
||||
margin: 2px 4px;
|
||||
padding: 0px 2px 0px 1px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.radio-label-box {
|
||||
margin-left: 2px;
|
||||
padding: 0px 0px 1px 1px;
|
||||
}
|
||||
|
||||
.radio-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.radio-label {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ..... focused state ..... */
|
||||
|
||||
radio[focused="true"] {
|
||||
border: 1px solid ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
radio[disabled="true"] > .radio-check-box1 {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
radio[disabled="true"] {
|
||||
color: GrayText !important;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
.radio-check-box1 {
|
||||
-moz-appearance: radio;
|
||||
margin: 3px 0px 4px 0px;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
-moz-border-radius: 50%;
|
||||
min-width: 12px;
|
||||
min-height: 12px;
|
||||
background-color: -moz-Field;
|
||||
}
|
||||
|
||||
.radio-check-box2 {
|
||||
border-top: 1px solid ThreeDDarkShadow;
|
||||
border-right: 1px solid ThreeDLightShadow;
|
||||
border-bottom: 1px solid ThreeDLightShadow;
|
||||
border-left: 1px solid ThreeDDarkShadow;
|
||||
-moz-border-radius: 50%;
|
||||
padding: 2px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
radio:hover:active > .radio-check-box1 {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ..... selected state ..... */
|
||||
|
||||
radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
|
||||
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
|
||||
}
|
||||
|
||||
radio[selected="true"][disabled="true"] > .radio-check-box1 {
|
||||
list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important
|
||||
}
|
|
@ -0,0 +1,187 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
* Brian Ryner <bryner@netscape.com>
|
||||
*/
|
||||
|
||||
/* ===== toolbarbutton.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: toolbarbutton ::::: */
|
||||
|
||||
toolbarbutton {
|
||||
-moz-appearance: toolbarbutton;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
padding: 2px;
|
||||
background-color: transparent;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
.toolbarbutton-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.toolbarbutton-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
toolbarbutton:hover,
|
||||
toolbarbutton[buttonover="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
}
|
||||
|
||||
toolbarbutton:hover:active,
|
||||
toolbarbutton[open="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
padding: 3px 1px 1px 3px;
|
||||
}
|
||||
|
||||
toolbarbutton[disabled="true"],
|
||||
toolbarbutton[disabled="true"]:hover,
|
||||
toolbarbutton[disabled="true"]:hover:active
|
||||
toolbarbutton[disabled="true"][open="true"] {
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
padding: 2px;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
toolbarbutton[checked="true"] {
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDShadow !important;
|
||||
-moz-border-right-colors: ThreeDLightShadow ThreeDHighlight !important;
|
||||
-moz-border-bottom-colors: ThreeDLightShadow ThreeDHighlight !important;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDShadow !important;
|
||||
padding: 2px !important;
|
||||
background-color: ThreeDHighlight !important;
|
||||
color: ButtonText !important;
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu ::::: */
|
||||
|
||||
.toolbarbutton-menu-dropmarker {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.toolbarbutton-menu-dropmarker[disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu-button ::::: */
|
||||
|
||||
toolbarbutton[type="menu-button"] {
|
||||
-moz-box-align: stretch;
|
||||
-moz-appearance: dualbutton;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"],
|
||||
toolbarbutton[type="menu-button"]:hover,
|
||||
toolbarbutton[type="menu-button"]:hover:active,
|
||||
toolbarbutton[type="menu-button"][open="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover,
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
|
||||
border: 1px solid;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button,
|
||||
.toolbarbutton-menubutton-dropmarker {
|
||||
border: 1px solid;
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button[disabled="true"],
|
||||
.toolbarbutton-menubutton-dropmarker[disabled="true"] {
|
||||
-moz-border-top-colors: transparent !important;
|
||||
-moz-border-right-colors: transparent !important;
|
||||
-moz-border-bottom-colors: transparent !important;
|
||||
-moz-border-left-colors: transparent !important;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button {
|
||||
-moz-border-top-colors: ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
|
||||
-moz-border-top-colors: ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight;
|
||||
-moz-border-bottom-colors: ThreeDHighlight;
|
||||
-moz-border-left-colors: ThreeDShadow;
|
||||
}
|
||||
|
||||
/* .......... dropmarker .......... */
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker {
|
||||
-moz-box-align: center;
|
||||
padding: 0 0 1px 0;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
-moz-appearance: dualbutton-dropdown;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker[disabled="true"] {
|
||||
border: 1px solid transparent !important;
|
||||
padding: 0 0 1px 0 !important;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif") !important;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker {
|
||||
padding: 1px 0 0 0;
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== autocomplete.css =================================================
|
||||
== Styles used by the autocomplete widget.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
textbox {
|
||||
cursor: default;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.textbox-input-box {
|
||||
margin: 0 3px;
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
/* ::::: history button ::::: */
|
||||
|
||||
.autocomplete-history-dropmarker {
|
||||
-moz-appearance: menulist-button;
|
||||
min-width: 17px;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
padding: 1px;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.autocomplete-history-dropmarker[open="true"] {
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-right-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDFace;
|
||||
padding: 2px 0 0 2px;
|
||||
}
|
||||
|
||||
/* ::::: autocomplete popups ::::: */
|
||||
|
||||
.autocomplete-result-popup,
|
||||
.autocomplete-history-popup {
|
||||
border-width: 1px;
|
||||
-moz-border-top-colors: ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow;
|
||||
padding: 0;
|
||||
background-color: -moz-Field !important;
|
||||
}
|
||||
|
||||
.autocomplete-history-popup {
|
||||
max-height: 180px;
|
||||
}
|
||||
|
||||
/* ::::: tree ::::: */
|
||||
|
||||
.autocomplete-tree {
|
||||
border: none;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.autocomplete-treecol {
|
||||
margin: 0 !important;
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-cell-text {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-row(menuactive) {
|
||||
background-color: Highlight;
|
||||
}
|
||||
|
||||
.autocomplete-treebody:-moz-tree-cell-text(menuactive) {
|
||||
color: HighlightText !important;
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.tabbrowser-strip {
|
||||
padding-bottom: 3px;
|
||||
border-bottom: 2px solid;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
tabpanels {
|
||||
-moz-appearance: none;
|
||||
}
|
||||
|
||||
.tabbrowser-tabs {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.tabs-left,
|
||||
.tabs-right {
|
||||
width: 3px;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
margin-top: 1px;
|
||||
margin-right: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
|
||||
}
|
||||
|
||||
tab[busy] > .tab-icon {
|
||||
list-style-image: url("chrome://communicator/skin/icons/loading.gif");
|
||||
}
|
||||
|
||||
/* ::::: close button ::::: */
|
||||
|
||||
.tabs-closebutton {
|
||||
margin: 3px;
|
||||
list-style-image: url("chrome://global/skin/icons/close-button.gif");
|
||||
}
|
||||
|
||||
.tabs-closebutton > .toolbarbutton-icon {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tabs-newbutton {
|
||||
margin: 0px;
|
||||
list-style-image: url("chrome://global/skin/icons/tab-new.gif");
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== button.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* :::::::::: button :::::::::: */
|
||||
|
||||
button {
|
||||
-moz-appearance: button;
|
||||
margin: 1px 5px 2px 5px;
|
||||
min-width: 6.3em;
|
||||
border: 3px solid;
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
background-color: ThreeDFace;
|
||||
color: ButtonText;
|
||||
}
|
||||
|
||||
.button-box {
|
||||
border: 1px solid transparent;
|
||||
padding: 1px 4px 2px 3px;
|
||||
}
|
||||
|
||||
.button-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* .......... focused state .......... */
|
||||
|
||||
button:focus {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
}
|
||||
|
||||
button:focus > .button-box {
|
||||
border: 1px dotted ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* .......... default state .......... */
|
||||
|
||||
button[default="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow;
|
||||
}
|
||||
|
||||
/* .......... active/open/checked state .......... */
|
||||
|
||||
button:hover:active,
|
||||
button[open="true"],
|
||||
button[checked="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
}
|
||||
|
||||
button:hover:active > .button-box,
|
||||
button[open="true"] > .button-box,
|
||||
button[checked="true"] > .button-box {
|
||||
padding: 2px 3px 1px 4px;
|
||||
}
|
||||
|
||||
/* .......... disabled state .......... */
|
||||
|
||||
button[disabled="true"] {
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
button[disabled="true"] > .button-box {
|
||||
padding: 1px 4px 2px 3px !important;
|
||||
}
|
||||
|
||||
/* ::::: menu/menu-button buttons ::::: */
|
||||
|
||||
button[type="menu-button"] {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.button-menu-dropmarker,
|
||||
.button-menubutton-dropmarker {
|
||||
margin: 1px;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
min-width:11px;
|
||||
min-height:11px;
|
||||
}
|
||||
|
||||
.button-menu-dropmarker[disabled="true"],
|
||||
.button-menubutton-dropmarker[disabled="true"] {
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
.button-menubutton-dropmarker[open="true"] {
|
||||
margin: 2px 0px 0px 2px;
|
||||
}
|
||||
|
||||
/* ::::: plain buttons ::::: */
|
||||
|
||||
button.plain {
|
||||
border: 0px !important;
|
||||
margin: 0px !important;
|
||||
padding: 0px !important;
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== checkbox.css ===================================================
|
||||
== Styles used by the XUL checkbox element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: checkbox ::::: */
|
||||
|
||||
checkbox {
|
||||
-moz-appearance: checkbox-container;
|
||||
-moz-box-align: center;
|
||||
margin: 2px 4px;
|
||||
padding: 1px 2px 1px 4px;
|
||||
}
|
||||
|
||||
.checkbox-label-box {
|
||||
margin-left: 2px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0px 1px;
|
||||
}
|
||||
|
||||
.checkbox-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ..... focused state ..... */
|
||||
|
||||
checkbox:focus > .checkbox-label-box {
|
||||
border: 1px dotted ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
checkbox[disabled="true"] > .checkbox-check {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
checkbox[disabled="true"] {
|
||||
color: GrayText !important;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
.checkbox-check {
|
||||
-moz-appearance: checkbox;
|
||||
-moz-box-align: center;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
min-width: 13px;
|
||||
min-height: 13px;
|
||||
background: -moz-Field no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
checkbox:hover:active > .checkbox-check {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
checkbox[checked="true"] > .checkbox-check {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
|
||||
}
|
||||
|
||||
checkbox[checked="true"][disabled="true"] > .checkbox-check {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
|
||||
}
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== console.css ====================================================
|
||||
== Styles used by the JavaScript Console window.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
.console-box {
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
/* ::::: console rows ::::: */
|
||||
|
||||
.console-row {
|
||||
border-bottom: 2px solid -moz-FieldText;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.console-row-icon {
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
padding: 5px;
|
||||
background-color: -moz-Dialog;
|
||||
-moz-box-align: start !important;
|
||||
}
|
||||
|
||||
.console-icon {
|
||||
list-style-image: inherit;
|
||||
}
|
||||
|
||||
/* ..... error rows ..... */
|
||||
|
||||
.console-row-code {
|
||||
padding: 3px 0px 3px 3px;
|
||||
color: #0000BB;
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
.console-dots,
|
||||
.console-caret {
|
||||
height: 9px;
|
||||
}
|
||||
|
||||
.console-dots {
|
||||
background: url("chrome://global/skin/console/error-dash.gif") repeat-x top;
|
||||
}
|
||||
|
||||
.console-caret {
|
||||
width: 7px;
|
||||
background: url("chrome://global/skin/console/error-caret.gif") no-repeat top;
|
||||
}
|
||||
|
||||
/* ..... message rows ..... */
|
||||
|
||||
.console-row[type="message"] {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/* ..... selected state ..... */
|
||||
|
||||
.console-row[selected="true"] {
|
||||
background-color: #B7DBEB !important;
|
||||
}
|
||||
|
||||
.console-row-code[selected="true"],
|
||||
.console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link {
|
||||
color: inherit !important;
|
||||
}
|
||||
|
||||
/* ::::: icons ::::: */
|
||||
|
||||
.console-row[type="error"],
|
||||
.console-row[type="exception"] {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-error.gif");
|
||||
}
|
||||
|
||||
.console-row[type="warning"] {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
|
||||
}
|
||||
|
||||
.console-row[type="message"] {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-message.gif");
|
||||
}
|
||||
|
||||
/* ::::: toolbars ::::: */
|
||||
|
||||
#TextfieldEval {
|
||||
margin: 2px !important;
|
||||
}
|
||||
|
||||
#ButtonEval {
|
||||
margin: 2px 2px 2px 0px !important;
|
||||
}
|
||||
|
||||
toolbarseparator {
|
||||
min-height: 1em;
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- List all the skins being supplied by this theme -->
|
||||
<RDF:Seq about="urn:mozilla:skin:root">
|
||||
<RDF:li resource="urn:mozilla:skin:classic/1.0" />
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- classic Information -->
|
||||
<RDF:Description about="urn:mozilla:skin:classic/1.0"
|
||||
chrome:displayName="Classic"
|
||||
chrome:accessKey="C"
|
||||
chrome:author="mozilla.org"
|
||||
chrome:description="This theme simulates the familiar appearance of previous Netscape versions for the Windows operating system."
|
||||
chrome:name="classic/1.0"
|
||||
chrome:image="preview.gif">
|
||||
<chrome:packages>
|
||||
<RDF:Seq about="urn:mozilla:skin:classic/1.0:packages">
|
||||
<RDF:li resource="urn:mozilla:skin:classic/1.0:global"/>
|
||||
</RDF:Seq>
|
||||
</chrome:packages>
|
||||
</RDF:Description>
|
||||
|
||||
<!-- Version Information. State that we work only with major version 1 of this
|
||||
package. -->
|
||||
<RDF:Description about="urn:mozilla:skin:classic/1.0:global"
|
||||
chrome:skinVersion="1.0"/>
|
||||
</RDF:RDF>
|
|
@ -0,0 +1,98 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Original Author: Joe Hewitt (hewitt@netscape.com)
|
||||
* Contributor(s):
|
||||
*
|
||||
*
|
||||
* 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 NPL, 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 NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== dialog.css =====================================================
|
||||
== Styles used by the XUL dialog element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: dialog ::::: */
|
||||
|
||||
dialog {
|
||||
padding: 8px 10px 10px 8px;
|
||||
}
|
||||
|
||||
/* ::::: dialog buttons ::::: */
|
||||
|
||||
.dialog-button {
|
||||
font: menu;
|
||||
}
|
||||
|
||||
/* ::::: dialog header ::::: */
|
||||
|
||||
dialogheader {
|
||||
margin: 0px 5px 5px 5px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDDarkShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDDarkShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
padding: 5px 8px;
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
.dialogheader-title {
|
||||
margin: 0px !important;
|
||||
font-size: larger;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* ::::: large dialog header ::::: */
|
||||
|
||||
.header-large {
|
||||
-moz-box-orient: vertical;
|
||||
margin: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDShadow;
|
||||
padding: 12px 5px 12px 25px;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
.header-large > .dialogheader-title {
|
||||
font: inherit;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.header-large > .dialogheader-description {
|
||||
margin-left: 12px !important;
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
* Brian Ryner (bryner@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== filepicker.css =================================================
|
||||
== Styles used by the File Picker dialog.
|
||||
======================================================================= */
|
||||
|
||||
@import url("chrome://global/skin/");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: column widths ::::: */
|
||||
|
||||
#FilenameColumn,
|
||||
#ContentLengthColumn,
|
||||
#LastModifiedDateColumn {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
/* ::::: file/directory items ::::: */
|
||||
|
||||
treechildren:-moz-tree-image(FilenameColumn, directory) {
|
||||
list-style-image: url("chrome://global/skin/filepicker/dir-closed.gif");
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-image(FilenameColumn, file) {
|
||||
list-style-image: url("chrome://global/skin/filepicker/blank.gif");
|
||||
}
|
||||
|
||||
/* ::::: focus rules ::::: */
|
||||
|
||||
#directoryTree > treerows > .tree-bodybox {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
#directoryTree:focus > treerows > .tree-bodybox {
|
||||
border-color: #000000;
|
||||
}
|
||||
|
||||
/* ::::: button items ::::: */
|
||||
|
||||
.up-button {
|
||||
list-style-image: url("chrome://global/skin/filepicker/folder-up.gif");
|
||||
max-width: 36px;
|
||||
}
|
||||
|
||||
.home-button {
|
||||
list-style-image: url("chrome://global/skin/filepicker/folder-home.gif");
|
||||
max-width: 36px;
|
||||
}
|
||||
|
||||
.new-dir-button {
|
||||
list-style-image: url("chrome://global/skin/filepicker/folder-new.gif");
|
||||
max-width: 36px;
|
||||
}
|
|
@ -0,0 +1,230 @@
|
|||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* inset areas */
|
||||
|
||||
.inset
|
||||
{
|
||||
border-left : 1px solid ThreeDShadow;
|
||||
border-top : 1px solid ThreeDShadow;
|
||||
border-right : 1px solid ThreeDHighlight;
|
||||
border-bottom : 1px solid ThreeDHighlight;
|
||||
margin : 0px 5px 5px 5px;
|
||||
}
|
||||
|
||||
.box-inset {
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
/* formatting */
|
||||
.groove-top
|
||||
{
|
||||
border-top : 2px groove ThreeDFace;
|
||||
}
|
||||
|
||||
.groove-right
|
||||
{
|
||||
border-right : 2px groove ThreeDFace;
|
||||
}
|
||||
|
||||
.groove-left
|
||||
{
|
||||
border-left : 2px groove ThreeDFace;
|
||||
}
|
||||
|
||||
.groove-bottom
|
||||
{
|
||||
border-bottom : 2px groove ThreeDFace;
|
||||
}
|
||||
|
||||
.outset
|
||||
{
|
||||
border-left : 1px solid ThreeDHighlight;
|
||||
border-top : 1px solid ThreeDHighlight;
|
||||
border-right : 1px solid ThreeDShadow;
|
||||
border-bottom : 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
.outset-top-bottom
|
||||
{
|
||||
border-top : 1px solid ThreeDHighlight;
|
||||
border-bottom : 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** separator rules **/
|
||||
/* standard separators */
|
||||
separator, separator[orient="horizontal"]
|
||||
{
|
||||
height: 1.5em;
|
||||
}
|
||||
|
||||
separator[orient="vertical"]
|
||||
{
|
||||
width: 1.5em;
|
||||
}
|
||||
|
||||
/* thinner separators (50% size) */
|
||||
separator.thin, separator.thin[orient="horizontal"]
|
||||
{
|
||||
height: 0.5em;
|
||||
}
|
||||
|
||||
separator.thin[orient="vertical"]
|
||||
{
|
||||
width: 0.5em;
|
||||
}
|
||||
|
||||
/* groove separators (50% size) */
|
||||
separator.groove,
|
||||
separator.groove[orient="horizontal"]
|
||||
{
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
height: 0px;
|
||||
margin-top: 0.4em;
|
||||
margin-bottom: 0.4em;
|
||||
}
|
||||
|
||||
separator.groove[orient="vertical"]
|
||||
{
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
margin-left: 0.4em;
|
||||
margin-right: 0.4em;
|
||||
}
|
||||
|
||||
/* groove separators (0 padding, for dividing effects) */
|
||||
separator.groove-thin
|
||||
{
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
separator[orient="vertical"].groove-thin
|
||||
{
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
}
|
||||
|
||||
/** text formatting rules **/
|
||||
/* label (with margins) */
|
||||
|
||||
/** Reduced Margin for some UI **/
|
||||
.small-margin
|
||||
{
|
||||
margin : 1px 2px 1px 2px;
|
||||
}
|
||||
|
||||
.plain
|
||||
{
|
||||
margin: 0px !important;
|
||||
border: none;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
label[disabled="true"]
|
||||
{
|
||||
color : GrayText;
|
||||
}
|
||||
|
||||
description, label
|
||||
{
|
||||
cursor : default;
|
||||
}
|
||||
|
||||
description
|
||||
{
|
||||
margin : 1px 5px 4px 5px;
|
||||
}
|
||||
|
||||
label
|
||||
{
|
||||
margin : 1px 5px 2px 6px;
|
||||
}
|
||||
|
||||
.header
|
||||
{
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
.larger-text
|
||||
{
|
||||
font-size : larger;
|
||||
}
|
||||
|
||||
.smaller-text
|
||||
{
|
||||
font-size : smaller;
|
||||
}
|
||||
|
||||
.monospace
|
||||
{
|
||||
font-family : monospace;
|
||||
}
|
||||
|
||||
.indent
|
||||
{
|
||||
margin-left : 23px;
|
||||
}
|
||||
|
||||
.box-padded
|
||||
{
|
||||
padding : 5px;
|
||||
}
|
||||
|
||||
.spaced
|
||||
{
|
||||
margin : 3px 5px 4px 5px;
|
||||
}
|
||||
|
||||
.wizard-box
|
||||
{
|
||||
padding : 20px 44px 10px 44px;
|
||||
}
|
||||
|
||||
/* Double Border Boxes */
|
||||
|
||||
/* top only */
|
||||
.double-box-top
|
||||
{
|
||||
-moz-binding : url("chrome://global/skin/classicBindings.xml#double-box");
|
||||
border-top : 1px solid ThreeDShadow;
|
||||
background-color : #FFFFFF;
|
||||
margin : 0px;
|
||||
}
|
||||
|
||||
.double-box-top > .db-internal-box
|
||||
{
|
||||
border-top : 1px solid ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* all round */
|
||||
.double-box
|
||||
{
|
||||
-moz-binding : url("chrome://global/skin/classicBindings.xml#double-box");
|
||||
border-left : 1px solid ThreeDShadow;
|
||||
border-top : 1px solid ThreeDShadow;
|
||||
border-bottom : 1px solid ThreeDHighlight;
|
||||
border-right : 1px solid ThreeDHighlight;
|
||||
background-color : #FFFFFF;
|
||||
margin : 0px;
|
||||
}
|
||||
|
||||
.double-box > .db-internal-box
|
||||
{
|
||||
border : 1px solid ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
.caption-text
|
||||
{
|
||||
margin: 0px 2px 0px 1px !important;
|
||||
}
|
|
@ -0,0 +1,144 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== global.css =====================================================
|
||||
== Styles that apply everywhere.
|
||||
======================================================================= */
|
||||
|
||||
/* all localizable skin settings shall live here */
|
||||
@import url("chrome://global/locale/intl.css");
|
||||
|
||||
@import url("chrome://global/skin/formatting.css");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: XBL bindings ::::: */
|
||||
|
||||
radio {
|
||||
-moz-binding: url("chrome://global/skin/globalBindings.xml#radio");
|
||||
}
|
||||
|
||||
menulist > menupopup,
|
||||
.menulist-menupopup {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
|
||||
}
|
||||
|
||||
.menulist-compact {
|
||||
-moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact");
|
||||
}
|
||||
|
||||
/* ::::: root elements ::::: */
|
||||
|
||||
window,
|
||||
page,
|
||||
dialog,
|
||||
wizard {
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
font: message-box;
|
||||
}
|
||||
|
||||
/* deprecated */
|
||||
window.dialog {
|
||||
padding: 8px 10px 10px 8px;
|
||||
}
|
||||
|
||||
[wait-cursor] {
|
||||
cursor: wait !important;
|
||||
}
|
||||
|
||||
/* ::::: alert icons :::::*/
|
||||
|
||||
.message-icon,
|
||||
.alert-icon,
|
||||
.error-icon,
|
||||
.question-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.message-icon {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-message.gif");
|
||||
}
|
||||
|
||||
.alert-icon {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
|
||||
}
|
||||
|
||||
.error-icon {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-error.gif");
|
||||
}
|
||||
|
||||
.question-icon {
|
||||
list-style-image: url("chrome://global/skin/icons/alert-question.gif");
|
||||
}
|
||||
|
||||
/* ::::: iframe ::::: */
|
||||
|
||||
iframe {
|
||||
border: none;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
min-width: 10px;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
/* ::::: statusbar ::::: */
|
||||
|
||||
statusbar {
|
||||
-moz-appearance: statusbar;
|
||||
border-top: 1px solid ThreeDLightShadow;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
statusbarpanel {
|
||||
-moz-appearance: statusbarpanel;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border-left: 1px solid ThreeDHighlight;
|
||||
border-top: 1px solid ThreeDHighlight;
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDShadow;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.statusbar-resizerpanel {
|
||||
-moz-box-align: end;
|
||||
-moz-box-pack: end;
|
||||
-moz-appearance: resizerpanel;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.statusbarpanel-iconic {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/* ::::: miscellaneous ::::: */
|
||||
|
||||
.toolbar-focustarget {
|
||||
-moz-user-focus: ignore !important;
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="globalBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl">
|
||||
|
||||
<binding id="radio"
|
||||
extends="chrome://global/content/bindings/radio.xml#radio">
|
||||
<content>
|
||||
<xul:hbox class="radio-check-box1" xbl:inherits="selected,checked,disabled">
|
||||
<xul:hbox class="radio-check-box2" flex="1">
|
||||
<xul:image class="radio-check" xbl:inherits="selected,checked,disabled"/>
|
||||
</xul:hbox>
|
||||
</xul:hbox>
|
||||
<xul:hbox class="radio-label-box" flex="1">
|
||||
<xul:image class="radio-icon" xbl:inherits="src"/>
|
||||
<xul:label class="radio-label" xbl:inherits="xbl:text=label,accesskey,crop" flex="1"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== groupbox.css ==================================================
|
||||
== Styles used by the XUL groupbox and related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: groupbox ::::: */
|
||||
|
||||
groupbox {
|
||||
margin: 5px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDHighlight;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.groupbox-body {
|
||||
padding: inherit;
|
||||
}
|
||||
|
||||
caption {
|
||||
margin: 0px 6px 2px 6px;
|
||||
padding: 0px 3px;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
classic.jar:
|
||||
+ skin/classic/global/autocomplete.css
|
||||
+ skin/classic/global/browser.css
|
||||
+ skin/classic/global/checkbox.css
|
||||
+ skin/classic/global/colorpicker.css
|
||||
+ skin/classic/global/console.css
|
||||
+ skin/classic/global/contents.rdf
|
||||
+ skin/classic/global/dialog.css
|
||||
+ skin/classic/global/filepicker.css
|
||||
+ skin/classic/global/formatting.css
|
||||
+ skin/classic/global/global.css
|
||||
+ skin/classic/global/groupbox.css
|
||||
+ skin/classic/global/linkTree.css
|
||||
+ skin/classic/global/listbox.css
|
||||
+ skin/classic/global/menulist.css
|
||||
+ skin/classic/global/popup.css
|
||||
+ skin/classic/global/progressmeter.css
|
||||
+ skin/classic/global/radio.css
|
||||
+ skin/classic/global/scrollbars.css
|
||||
+ skin/classic/global/scrollbox.css
|
||||
+ skin/classic/global/spinbuttons.css
|
||||
+ skin/classic/global/splitter.css
|
||||
+ skin/classic/global/tabbox.css
|
||||
+ skin/classic/global/textbox.css
|
||||
+ skin/classic/global/toolbarbutton.css
|
||||
+ skin/classic/global/tree.css
|
||||
+ skin/classic/global/wizard.css
|
||||
+ skin/classic/global/wizardOverlay.css
|
||||
+ skin/classic/global/button.css
|
||||
+ skin/classic/global/menu.css
|
||||
+ skin/classic/global/toolbar.css
|
||||
+ skin/classic/global/globalBindings.xml
|
||||
+ skin/classic/global/preview.gif
|
||||
+ skin/classic/global/icons/alert-exclam.gif (icons/alert-exclam.gif)
|
||||
+ skin/classic/global/icons/alert-error.gif (icons/alert-error.gif)
|
||||
+ skin/classic/global/icons/alert-message.gif (icons/alert-message.gif)
|
||||
+ skin/classic/global/icons/alert-question.gif (icons/alert-question.gif)
|
||||
+ skin/classic/global/checkbox/cbox-check.gif (checkbox/cbox-check.gif)
|
||||
+ skin/classic/global/checkbox/cbox-check-dis.gif (checkbox/cbox-check-dis.gif)
|
||||
+ skin/classic/global/radio/radio-check-dis.gif (radio/radio-check-dis.gif)
|
||||
+ skin/classic/global/radio/radio-check.gif (radio/radio-check.gif)
|
||||
+ skin/classic/global/menu/menu-check-hover.gif (menu/menu-check-hover.gif)
|
||||
+ skin/classic/global/menu/menu-arrow-disabled.gif (menu/menu-arrow-disabled.gif)
|
||||
+ skin/classic/global/menu/menu-arrow-hover.gif (menu/menu-arrow-hover.gif)
|
||||
+ skin/classic/global/menu/menu-check.gif (menu/menu-check.gif)
|
||||
+ skin/classic/global/menu/menu-check-disabled.gif (menu/menu-check-disabled.gif)
|
||||
+ skin/classic/global/menu/menu-arrow.gif (menu/menu-arrow.gif)
|
||||
+ skin/classic/global/menu/menu-radio.gif (menu/menu-radio.gif)
|
||||
+ skin/classic/global/menu/menu-radio-disabled.gif (menu/menu-radio-disabled.gif)
|
||||
+ skin/classic/global/menu/menu-radio-hover.gif (menu/menu-radio-hover.gif)
|
||||
+ skin/classic/global/scrollbar/slider.gif (scrollbar/slider.gif)
|
||||
+ skin/classic/global/tree/twisty-open.gif (tree/twisty-open.gif)
|
||||
+ skin/classic/global/tree/twisty-clsd.gif (tree/twisty-clsd.gif)
|
||||
+ skin/classic/global/progressmeter/progressmeter-busy.gif (progressmeter/progressmeter-busy.gif)
|
|
@ -0,0 +1,150 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== listbox.css =======================================================
|
||||
== Styles used by XUL listbox-related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: listbox ::::: */
|
||||
|
||||
listbox {
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
/* ::::: listitem ::::: */
|
||||
|
||||
listitem {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
listbox:focus > listitem[selected="true"][current="true"] {
|
||||
border: 1px dotted #F5DB95;
|
||||
}
|
||||
|
||||
listitem[selected="true"] {
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
listbox:focus > listitem[selected="true"] {
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
/* ::::: listheader ::::: */
|
||||
|
||||
listheader {
|
||||
-moz-box-align: center;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
listheader[sortable="true"]:hover:active {
|
||||
border-top: 2px solid;
|
||||
border-right: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
border-left: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
padding: 1px 4px 0 5px;
|
||||
}
|
||||
|
||||
.listheader-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.listheader-label {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
/* ..... sort direction icon ..... */
|
||||
|
||||
.listheader-sortdirection {
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
.listheader-sortdirection[sortDirection="ascending"] {
|
||||
list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
|
||||
}
|
||||
|
||||
.listheader-sortdirection[sortDirection="descending"] {
|
||||
list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
|
||||
}
|
||||
|
||||
/* ::::: listcell ::::: */
|
||||
|
||||
.listcell-label {
|
||||
margin: 0px !important;
|
||||
padding: 0px 0px 1px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.listcell-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.listcell-label[disabled="true"] {
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ::::: listcell checkbox ::::: */
|
||||
|
||||
.listcell-check {
|
||||
-moz-appearance: checkbox;
|
||||
-moz-box-align: center;
|
||||
margin: 0px 2px;
|
||||
border: 1px solid -moz-DialogText;
|
||||
min-width: 13px;
|
||||
min-height: 13px;
|
||||
background: -moz-Field no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
.listcell-check[checked="true"] {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
|
||||
}
|
||||
|
||||
.listcell-check[disabled="true"] {
|
||||
border-color: GrayText;
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-dis.gif");
|
||||
}
|
||||
|
||||
.listcell-check[disabled="true"][checked="true"] {
|
||||
background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif");
|
||||
}
|
|
@ -0,0 +1,225 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== menu.css =======================================================
|
||||
== Styles used by XUL menu-related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: menu/menuitem ::::: */
|
||||
|
||||
menu,
|
||||
menuitem {
|
||||
-moz-box-align: center;
|
||||
color: MenuText;
|
||||
font: menu;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
menuitem[default="true"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
menu[disabled="true"], menuitem[disabled="true"],
|
||||
menu[_moz-menuactive="true"][disabled="true"],
|
||||
menuitem[_moz-menuactive="true"][disabled="true"] {
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ..... internal content .... */
|
||||
|
||||
.menu-text,
|
||||
.menu-iconic-left,
|
||||
.menu-iconic-text {
|
||||
margin: 0px 2px 0px 0px !important;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menu-text {
|
||||
margin-left: 18px !important;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.menu-accel,
|
||||
.menu-iconic-accel {
|
||||
margin: 0px 2px 0px 7px !important;
|
||||
padding-right: 14px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menu-iconic-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
list-style-image: inherit;
|
||||
}
|
||||
|
||||
/* ..... menu arrow box ..... */
|
||||
|
||||
.menu-right {
|
||||
margin: 0px 0px 0px 6px;
|
||||
width: 8px;
|
||||
list-style-image: url("chrome://global/skin/menu/menu-arrow.gif");
|
||||
}
|
||||
|
||||
.menu-right[_moz-menuactive="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-arrow-hover.gif");
|
||||
}
|
||||
|
||||
.menu-right[disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-arrow-disabled.gif") !important;
|
||||
}
|
||||
|
||||
/* ::::: menu/menuitems in menubar ::::: */
|
||||
|
||||
menubar > menu {
|
||||
border: 1px solid transparent;
|
||||
padding: 2px 5px 2px 7px;
|
||||
margin: 1px 0px 1px 0px;
|
||||
}
|
||||
|
||||
menubar > menu[_moz-menuactive="true"] {
|
||||
border-top: 1px solid ThreeDHighlight;
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDShadow;
|
||||
border-left: 1px solid ThreeDHighlight;
|
||||
}
|
||||
|
||||
menubar > menu[_moz-menuactive="true"][open="true"] {
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
/* ..... internal content .... */
|
||||
|
||||
.menubar-left {
|
||||
margin: 0px 2px 0px 0px;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menubar-text {
|
||||
margin: 0px 2px 0px 0px !important;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* ::::: menu/menuitems in popups ::::: */
|
||||
|
||||
menupopup > menu,
|
||||
popup > menu,
|
||||
menupopup > menuitem,
|
||||
popup > menuitem {
|
||||
padding: 2px;
|
||||
max-width: 42em;
|
||||
}
|
||||
|
||||
menupopup > menu[_moz-menuactive="true"],
|
||||
menupopup > menuitem[_moz-menuactive="true"],
|
||||
popup > menu[_moz-menuactive="true"],
|
||||
popup > menuitem[_moz-menuactive="true"] {
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
/* ::::: menu/menuitems in menulist popups ::::: */
|
||||
|
||||
.menulist-menupopup > menuitem,
|
||||
menulist > menupopup > menuitem,
|
||||
.menulist-menupopup > menu,
|
||||
menulist > menupopup > menu {
|
||||
border: 1px solid transparent;
|
||||
padding: 1px 30px 1px 5px;
|
||||
max-width: none;
|
||||
font: message-box;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
.menulist-menupopup > menuitem > .menu-iconic-left,
|
||||
menulist > menupopup > menuitem > .menu-iconic-left,
|
||||
.menulist-menupopup > menu > .menu-iconic-left,
|
||||
menulist > menupopup > menu > .menu-iconic-left {
|
||||
display: none;
|
||||
}
|
||||
|
||||
menulist > menupopup > menuitem[_moz-menuactive="true"] {
|
||||
border: 1px dotted #F5DB95;
|
||||
}
|
||||
|
||||
/* ::::: checkbox menuitem ::::: */
|
||||
|
||||
menuitem[checked="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-check.gif");
|
||||
}
|
||||
|
||||
menuitem[checked="true"][disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-check-disabled.gif");
|
||||
}
|
||||
|
||||
menuitem[checked="true"][_moz-menuactive="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-check-hover.gif");
|
||||
}
|
||||
|
||||
/* ::::: radio menuitem ::::: */
|
||||
|
||||
menuitem[checked="true"][type="radio"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-radio.gif");
|
||||
}
|
||||
|
||||
menuitem[checked="true"][type="radio"][disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-radio-disabled.gif");
|
||||
}
|
||||
|
||||
menuitem[checked="true"][type="radio"][_moz-menuactive="true"] {
|
||||
list-style-image: url("chrome://global/skin/menu/menu-radio-hover.gif");
|
||||
}
|
||||
|
||||
/* ::::: menuseparator ::::: */
|
||||
|
||||
menuseparator {
|
||||
margin: 2px 3px;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
}
|
||||
|
||||
menulist > menupopup > menuseparator,
|
||||
.menulist-menupopup > menuseparator {
|
||||
margin: 2px 0;
|
||||
border-top: 1px solid #000000;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* ::::: autocomplete ::::: */
|
||||
|
||||
.autocomplete-history-popup > menuitem {
|
||||
max-width: none !important;
|
||||
font: message-box;
|
||||
}
|
||||
|
||||
/* ::::: tree column picker ::::: */
|
||||
|
||||
.treecell-popupcell-menu {
|
||||
margin-left: -2px;
|
||||
list-style-image: url("chrome://global/skin/columnselect.gif");
|
||||
}
|
После Ширина: | Высота: | Размер: 49 B |
После Ширина: | Высота: | Размер: 111 B |
После Ширина: | Высота: | Размер: 66 B |
После Ширина: | Высота: | Размер: 111 B |
После Ширина: | Высота: | Размер: 68 B |
После Ширина: | Высота: | Размер: 68 B |
После Ширина: | Высота: | Размер: 68 B |
|
@ -0,0 +1,157 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== menulist.css ===================================================
|
||||
== Styles used by the XUL menulist element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||
|
||||
/* :::::::::: menulist :::::::::: */
|
||||
|
||||
menulist {
|
||||
-moz-appearance: menulist;
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
.menulist-label-box {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.menulist-label-box,
|
||||
menulist[open="true"]:focus > .menulist-label-box {
|
||||
border: 1px solid transparent;
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.menulist-label {
|
||||
margin: 1px 3px !important;
|
||||
}
|
||||
|
||||
/* ..... dropmarker ..... */
|
||||
|
||||
.menulist-dropmarker {
|
||||
-moz-appearance: menulist-button;
|
||||
min-width: 17px;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border: 2px solid;
|
||||
background-color: -moz-Dialog;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.menulist-dropmarker,
|
||||
menulist[disabled="true"]:hover:active > .menulist-dropmarker {
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
menulist[disabled="true"] > .menulist-dropmarker {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
menulist:hover:active > .menulist-dropmarker {
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-right-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDFace;
|
||||
padding: 2px 0px 0px 2px;
|
||||
}
|
||||
|
||||
/* ..... focused state ..... */
|
||||
|
||||
menulist:focus > .menulist-label-box {
|
||||
border: 1px dotted #F5DB95;
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
menulist[disabled="true"] {
|
||||
background-color: -moz-Dialog;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ::::: editable menulists ::::: */
|
||||
|
||||
.menulist-editable-box {
|
||||
padding: 3px 0px 3px 2px;
|
||||
}
|
||||
|
||||
html|*.menulist-editable-input {
|
||||
margin: 0px !important;
|
||||
border: none !important;
|
||||
padding: 0px !important;
|
||||
background: inherit;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* ::::: compact menulists ::::: */
|
||||
|
||||
.menulist-compact {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
.menulist-compact > .menulist-label {
|
||||
margin: 0 3px !important;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.menulist-compact > .menulist-dropmarker {
|
||||
margin-left: 2px;
|
||||
border: none;
|
||||
padding: 0 !important;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.menulist-compact[open="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
background-color: ThreeDShadow;
|
||||
color: ThreeDHighlight;
|
||||
}
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== popup.css ===================================================
|
||||
== Styles used by the XUL popup element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: menupopup ::::: */
|
||||
|
||||
menupopup,
|
||||
popup {
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
padding: 1px;
|
||||
min-width: 1px;
|
||||
background-color: Menu;
|
||||
}
|
||||
|
||||
/* ::::: tooltip ::::: */
|
||||
|
||||
tooltip {
|
||||
-moz-appearance: tooltip;
|
||||
margin-top: 21px;
|
||||
border: 1px solid InfoText;
|
||||
padding: 2px 3px;
|
||||
max-width: 40em;
|
||||
background-color: InfoBackground;
|
||||
color: InfoText;
|
||||
font: message-box;
|
||||
}
|
||||
|
||||
.tooltip-label {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
tooltip[titletip="true"] {
|
||||
margin: -2px 0px 0px -3px;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
/* rules for popups associated with menulists */
|
||||
|
||||
menulist > menupopup,
|
||||
.menulist-menupopup {
|
||||
border-width: 1px;
|
||||
-moz-border-top-colors: -moz-FieldText;
|
||||
-moz-border-right-colors: -moz-FieldText;
|
||||
-moz-border-bottom-colors: -moz-FieldText;
|
||||
-moz-border-left-colors: -moz-FieldText;
|
||||
padding: 0px;
|
||||
min-width: 0px;
|
||||
background-color: -moz-Field;
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 1998
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt <hewitt@netscape.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 NPL, 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 NPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== progressmeter.css ==============================================
|
||||
== Styles used by the XUL progressmeter element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: progressmeter ::::: */
|
||||
|
||||
progressmeter {
|
||||
-moz-appearance: progressbar;
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDHighlight -moz-Dialog;
|
||||
-moz-border-bottom-colors: ThreeDHighlight -moz-Dialog;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
background-color: -moz-Dialog;
|
||||
min-width: 128px;
|
||||
min-height: 15px;
|
||||
}
|
||||
|
||||
progressmeter[mode="undetermined"] {
|
||||
background: url("chrome://global/skin/progressmeter/progressmeter-busy.gif") repeat-x 0% 50%;
|
||||
}
|
||||
|
||||
.progress-bar
|
||||
{
|
||||
-moz-appearance: progresschunk;
|
||||
min-width: 0px;
|
||||
background-color: ThreeDShadow;
|
||||
}
|
||||
|
||||
.progress-bar[mode="undetermined"],
|
||||
.progress-remainder[mode="undetermined"] {
|
||||
visibility: collapsed;
|
||||
}
|
||||
|
||||
/* ::::: statusbar progressmeter ::::: */
|
||||
|
||||
.progressmeter-statusbar {
|
||||
margin: 0;
|
||||
border: 0px;
|
||||
-moz-border-top-colors: ThreeDHighlight -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-left-colors: ThreeDHighlight -moz-Dialog;
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
/* ===== radio.css ===================================================
|
||||
== Styles used by the XUL radio element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: radio ::::: */
|
||||
|
||||
radio {
|
||||
-moz-appearance: radio-container;
|
||||
-moz-box-align: center;
|
||||
margin: 2px 4px;
|
||||
padding: 1px 2px 1px 4px;
|
||||
}
|
||||
|
||||
.radio-label-box {
|
||||
margin-left: 2px;
|
||||
border: 1px solid transparent;
|
||||
padding: 0px 0px 1px 1px;
|
||||
}
|
||||
|
||||
.radio-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.radio-label {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* ..... focused state ..... */
|
||||
|
||||
radio[focused="true"] > .radio-label-box {
|
||||
border: 1px dotted ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
radio[disabled="true"] > .radio-check-box1 {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
radio[disabled="true"] {
|
||||
color: GrayText !important;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
.radio-check-box1 {
|
||||
-moz-appearance: radio;
|
||||
margin: 1px 0px;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
-moz-border-radius: 50%;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: -moz-Field;
|
||||
}
|
||||
|
||||
.radio-check-box2 {
|
||||
border-top: 1px solid ThreeDDarkShadow;
|
||||
border-right: 1px solid ThreeDLightShadow;
|
||||
border-bottom: 1px solid ThreeDLightShadow;
|
||||
border-left: 1px solid ThreeDDarkShadow;
|
||||
-moz-border-radius: 50%;
|
||||
padding: 2px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
radio:hover:active > .radio-check-box1 {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ..... selected state ..... */
|
||||
|
||||
radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
|
||||
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
|
||||
}
|
||||
|
||||
radio[selected="true"][disabled="true"] > .radio-check-box1 {
|
||||
list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important
|
||||
}
|
|
@ -0,0 +1,207 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== scrollbars.css =================================================
|
||||
== Styles used by XUL scrollbar-related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
|
||||
|
||||
/* ::::: scrollbar ::::: */
|
||||
|
||||
scrollbar {
|
||||
-moz-appearance: scrollbartrack-horizontal;
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
|
||||
cursor: default;
|
||||
background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
|
||||
}
|
||||
|
||||
scrollbar[orient="vertical"]
|
||||
{
|
||||
-moz-appearance: scrollbartrack-vertical;
|
||||
}
|
||||
|
||||
/* ::::: borders for thumb and buttons ::::: */
|
||||
|
||||
thumb,
|
||||
scrollbarbutton {
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ::::: thumb (horizontal) ::::: */
|
||||
|
||||
thumb {
|
||||
-moz-appearance: scrollbarthumb-vertical;
|
||||
min-height: 8px;
|
||||
}
|
||||
|
||||
thumb[orient="horizontal"] {
|
||||
-moz-appearance: scrollbarthumb-horizontal;
|
||||
min-width: 8px;
|
||||
}
|
||||
|
||||
thumb > gripper {
|
||||
-moz-appearance: scrollbargripper-vertical;
|
||||
}
|
||||
|
||||
thumb[orient="horizontal"] > gripper {
|
||||
-moz-appearance: scrollbargripper-horizontal;
|
||||
}
|
||||
|
||||
/* ::::: scrollbar button ::::: */
|
||||
|
||||
scrollbarbutton {
|
||||
background: -moz-Dialog no-repeat 0px 1px;
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
scrollbarbutton:hover:active {
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
background-position: 1px 2px;
|
||||
}
|
||||
|
||||
/* ..... increment .... */
|
||||
|
||||
scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-right;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
|
||||
}
|
||||
|
||||
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-down;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
|
||||
}
|
||||
|
||||
/* ..... decrement .... */
|
||||
|
||||
scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-left;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
|
||||
}
|
||||
|
||||
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-up;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-up.gif")
|
||||
}
|
||||
|
||||
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
|
||||
/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
|
||||
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
|
||||
@media print {
|
||||
/* ::::: scrollbar ::::: */
|
||||
|
||||
html|div scrollbar {
|
||||
-moz-appearance: scrollbartrack-horizontal;
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
|
||||
cursor: default;
|
||||
background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
|
||||
}
|
||||
|
||||
html|div scrollbar[orient="vertical"]
|
||||
{
|
||||
-moz-appearance: scrollbartrack-vertical;
|
||||
}
|
||||
|
||||
/* ::::: borders for thumb and buttons ::::: */
|
||||
|
||||
html|div thumb,
|
||||
html|div scrollbarbutton {
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ::::: thumb (horizontal) ::::: */
|
||||
|
||||
html|div thumb {
|
||||
-moz-appearance: scrollbarthumb-vertical;
|
||||
min-height: 8px;
|
||||
}
|
||||
|
||||
html|div thumb[orient="horizontal"] {
|
||||
-moz-appearance: scrollbarthumb-horizontal;
|
||||
min-width: 8px;
|
||||
}
|
||||
|
||||
html|div thumb > gripper {
|
||||
-moz-appearance: scrollbargripper-vertical;
|
||||
}
|
||||
|
||||
html|div thumb[orient="horizontal"] > gripper {
|
||||
-moz-appearance: scrollbargripper-horizontal;
|
||||
}
|
||||
|
||||
/* ::::: scrollbar button ::::: */
|
||||
|
||||
html|div scrollbarbutton {
|
||||
background: -moz-Dialog no-repeat 0px 1px;
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
html|div scrollbarbutton:hover:active {
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
background-position: 1px 2px;
|
||||
}
|
||||
|
||||
/* ..... increment .... */
|
||||
|
||||
html|div scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-right;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
|
||||
}
|
||||
|
||||
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-down;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
|
||||
}
|
||||
|
||||
/* ..... decrement .... */
|
||||
|
||||
html|div scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-left;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
|
||||
}
|
||||
|
||||
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-up;
|
||||
background-image: url("chrome://global/skin/arrow/arrow-up.gif")
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/*
|
||||
* Autorepeatbutton
|
||||
*/
|
||||
.autorepeatbutton-up
|
||||
{
|
||||
list-style-image : url("chrome://global/skin/arrow/arrow-up.gif")
|
||||
}
|
||||
|
||||
.autorepeatbutton-down
|
||||
{
|
||||
list-style-image : url("chrome://global/skin/arrow/arrow-dn.gif")
|
||||
}
|
||||
|
||||
autorepeatbutton
|
||||
{
|
||||
-moz-box-align : center;
|
||||
-moz-box-pack : center;
|
||||
margin : 1px 2px 2px 1px;
|
||||
border : 1px solid transparent;
|
||||
padding : 1px;
|
||||
}
|
||||
|
||||
autorepeatbutton:hover
|
||||
{
|
||||
margin : 1px;
|
||||
border : 1px inset ThreeDFace;
|
||||
padding : 2px 1px 1px 2px;
|
||||
}
|
|
@ -0,0 +1,124 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== splitter.css ===================================================
|
||||
== Styles used by the XUL splitter element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: splitter (vertical) ::::: */
|
||||
|
||||
splitter {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
cursor: e-resize;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
min-width: 8px;
|
||||
background-color: ThreeDFace;
|
||||
}
|
||||
|
||||
splitter[state="dragging"] {
|
||||
background-image: url("chrome://global/skin/splitter/drag-bg.gif");
|
||||
}
|
||||
|
||||
/* ::::: splitter (horizontal) ::::: */
|
||||
|
||||
splitter[orient="vertical"] {
|
||||
cursor: n-resize;
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDShadow ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
min-height: 8px;
|
||||
}
|
||||
|
||||
/* ::::: splitter grippy ::::: */
|
||||
|
||||
grippy {
|
||||
cursor: pointer;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDShadow;
|
||||
min-width: 4px;
|
||||
min-height: 115px;
|
||||
background-color: transparent;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
grippy:hover {
|
||||
background-color: #CCCCFF;
|
||||
}
|
||||
|
||||
splitter[orient="vertical"] > grippy {
|
||||
border-top: none;
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
border-bottom: none;
|
||||
border-left: 1px solid ThreeDShadow;;
|
||||
min-width: 115px;
|
||||
min-height: 4px;
|
||||
}
|
||||
|
||||
/* ..... normal state ..... */
|
||||
|
||||
/* vertical grippies */
|
||||
splitter[collapse="before"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
|
||||
}
|
||||
|
||||
splitter[collapse="after"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
|
||||
}
|
||||
|
||||
/* horizontal grippies */
|
||||
splitter[collapse="before"][orient="vertical"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
|
||||
}
|
||||
|
||||
splitter[collapse="after"][orient="vertical"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
|
||||
}
|
||||
|
||||
/* ..... collapsed state ..... */
|
||||
|
||||
/* vertical grippies */
|
||||
splitter[collapse="before"][state="collapsed"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
|
||||
}
|
||||
|
||||
splitter[collapse="after"][state="collapsed"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
|
||||
}
|
||||
|
||||
/* horizontal grippies */
|
||||
splitter[collapse="before"][state="collapsed"][orient="vertical"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
|
||||
}
|
||||
|
||||
splitter[collapse="after"][state="collapsed"][orient="vertical"] > grippy {
|
||||
background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
|
||||
}
|
||||
|
|
@ -0,0 +1,142 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== tabbox.css =================================================
|
||||
== Styles used by XUL tab-related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: tabs ::::: */
|
||||
|
||||
.tabs-left,
|
||||
.tabs-right {
|
||||
border-bottom: 2px solid;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
}
|
||||
|
||||
/* ::::: tabpanels ::::: */
|
||||
|
||||
tabpanels {
|
||||
-moz-appearance: tabpanels;
|
||||
border-right: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-left: 2px solid;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
padding: 8px;
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
/* ::::: tab ::::: */
|
||||
|
||||
tab
|
||||
{
|
||||
-moz-appearance: tab;
|
||||
margin-top: 2px;
|
||||
border-top: 2px solid;
|
||||
border-right: 2px solid;
|
||||
border-left: 2px solid;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
-moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-radius-topleft: 2px;
|
||||
-moz-border-radius-topright: 2px;
|
||||
-moz-border-radius-bottomright: 1px;
|
||||
padding: 1px 4px 2px 4px;
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
.tab-text {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
tab[selected="true"] {
|
||||
margin-top: 0;
|
||||
border-bottom-color: transparent;
|
||||
padding: 1px 6px 4px 6px;
|
||||
}
|
||||
|
||||
tab[beforeselected="true"] {
|
||||
-moz-appearance: tab-left-edge;
|
||||
border-right: none;
|
||||
-moz-border-radius-topright: 0;
|
||||
}
|
||||
|
||||
tab[afterselected="true"] {
|
||||
-moz-appearance: tab-right-edge;
|
||||
border-left: none;
|
||||
-moz-border-radius-topleft: 0;
|
||||
}
|
||||
|
||||
tab[first-tab="true"][selected="true"] {
|
||||
padding-right: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
/* ::::: tab-bottom ::::::::::
|
||||
:: Tabs that are attached to the bottom of a panel, but not necessarily
|
||||
:: a tabpanels.
|
||||
::::: */
|
||||
|
||||
.tab-bottom {
|
||||
margin-top: 0;
|
||||
margin-bottom: 2px;
|
||||
border-top: 1px solid;
|
||||
border-bottom: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDLightShadow;
|
||||
-moz-border-radius-topleft: 0;
|
||||
-moz-border-radius-topright: 0;
|
||||
-moz-border-radius-bottomright: 2px;
|
||||
-moz-border-radius-bottomleft: 2px;
|
||||
padding: 2px 4px 1px 4px;
|
||||
}
|
||||
|
||||
.tab-bottom[selected="true"] {
|
||||
margin-bottom: 0;
|
||||
-moz-border-top-colors: -moz-Dialog;
|
||||
padding: 4px 6px 1px 6px;
|
||||
}
|
||||
|
||||
.tab-bottom[beforeselected="true"] {
|
||||
-moz-border-radius-bottomright: 0;
|
||||
}
|
||||
|
||||
.tab-bottom[afterselected="true"] {
|
||||
-moz-border-radius-bottomleft: 0;
|
||||
}
|
||||
|
||||
/* ::::: tabs-bottom ::::: */
|
||||
|
||||
.tabs-bottom > .tabs-left,
|
||||
.tabs-bottom > .tabs-right {
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== textbox.css ==================================================
|
||||
== Styles used by the XUL textbox element.
|
||||
======================================================================= */
|
||||
|
||||
@import url("chrome://global/content/autocomplete.css");
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||
|
||||
/* ::::: textbox ::::: */
|
||||
|
||||
textbox
|
||||
{
|
||||
-moz-appearance: textfield;
|
||||
cursor: text;
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
padding: 1px 0px 1px 2px;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
html|*.textbox-input,
|
||||
html|*.textbox-textarea {
|
||||
margin: 0px !important;
|
||||
border: none !important;
|
||||
padding: 0px !important;
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* ..... readonly state ..... */
|
||||
|
||||
textbox[readonly="true"] {
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
textbox[disabled="true"] {
|
||||
cursor: default;
|
||||
background-color: -moz-Dialog;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ::::: plain textbox ::::: */
|
||||
|
||||
textbox.plain {
|
||||
-moz-appearance: none !important;
|
||||
padding: 0px !important;
|
||||
margin: 0px !important;
|
||||
border: none !important;
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== toolbar.css ====================================================
|
||||
== Styles used by XUL toolbar-related elements.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: toolbox ::::: */
|
||||
|
||||
toolbox {
|
||||
-moz-appearance: toolbox;
|
||||
background-color: -moz-Dialog;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
}
|
||||
|
||||
/* ::::: toolbar & menubar ::::: */
|
||||
|
||||
toolbar,
|
||||
menubar {
|
||||
min-width: 1px;
|
||||
border-left: 1px solid ThreeDHighlight;
|
||||
border-top: 1px solid ThreeDHighlight;
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
/* ::::: toolbarseparator ::::: */
|
||||
|
||||
toolbarseparator {
|
||||
margin : 2px 0.2em 2px 0.2em;
|
||||
border-right : 1px solid ThreeDHighlight;
|
||||
border-left : 1px solid ThreeDShadow;
|
||||
width : 2px;
|
||||
}
|
||||
|
|
@ -0,0 +1,186 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== toolbarbutton.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: toolbarbutton ::::: */
|
||||
|
||||
toolbarbutton {
|
||||
-moz-appearance: toolbarbutton;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 0;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
padding: 2px;
|
||||
background-color: transparent;
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
.toolbarbutton-icon {
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.toolbarbutton-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
toolbarbutton:hover,
|
||||
toolbarbutton[buttonover="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
color: #0000FF;
|
||||
}
|
||||
|
||||
toolbarbutton:hover:active,
|
||||
toolbarbutton[open="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
padding: 3px 1px 1px 3px;
|
||||
color: #0000FF;
|
||||
}
|
||||
|
||||
toolbarbutton[disabled="true"],
|
||||
toolbarbutton[disabled="true"]:hover,
|
||||
toolbarbutton[disabled="true"]:hover:active
|
||||
toolbarbutton[disabled="true"][open="true"] {
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
padding: 2px;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
toolbarbutton[checked="true"] {
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDShadow !important;
|
||||
-moz-border-right-colors: ThreeDLightShadow ThreeDHighlight !important;
|
||||
-moz-border-bottom-colors: ThreeDLightShadow ThreeDHighlight !important;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDShadow !important;
|
||||
padding: 2px !important;
|
||||
background-color: ThreeDHighlight !important;
|
||||
color: ButtonText !important;
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu ::::: */
|
||||
|
||||
.toolbarbutton-menu-dropmarker {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.toolbarbutton-menu-dropmarker[disabled="true"] {
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
/* ::::: toolbarbutton menu-button ::::: */
|
||||
|
||||
toolbarbutton[type="menu-button"] {
|
||||
-moz-box-align: stretch;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"],
|
||||
toolbarbutton[type="menu-button"]:hover,
|
||||
toolbarbutton[type="menu-button"]:hover:active,
|
||||
toolbarbutton[type="menu-button"][open="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"],
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover,
|
||||
toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
|
||||
border: 1px solid;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button,
|
||||
.toolbarbutton-menubutton-dropmarker {
|
||||
border: 1px solid;
|
||||
-moz-border-top-colors: transparent;
|
||||
-moz-border-right-colors: transparent;
|
||||
-moz-border-bottom-colors: transparent;
|
||||
-moz-border-left-colors: transparent;
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-button[disabled="true"],
|
||||
.toolbarbutton-menubutton-dropmarker[disabled="true"] {
|
||||
-moz-border-top-colors: transparent !important;
|
||||
-moz-border-right-colors: transparent !important;
|
||||
-moz-border-bottom-colors: transparent !important;
|
||||
-moz-border-left-colors: transparent !important;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttonover="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button {
|
||||
-moz-border-top-colors: ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-button,
|
||||
toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
|
||||
-moz-border-top-colors: ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight;
|
||||
-moz-border-bottom-colors: ThreeDHighlight;
|
||||
-moz-border-left-colors: ThreeDShadow;
|
||||
}
|
||||
|
||||
/* .......... dropmarker .......... */
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker {
|
||||
-moz-box-align: center;
|
||||
padding: 0 0 1px 0;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
|
||||
}
|
||||
|
||||
.toolbarbutton-menubutton-dropmarker[disabled="true"] {
|
||||
border: 1px solid transparent !important;
|
||||
padding: 0 0 1px 0 !important;
|
||||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif") !important;
|
||||
}
|
||||
|
||||
toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
|
||||
toolbarbutton[type="menu-button"][buttondown="true"] > .toolbarbutton-menubutton-dropmarker {
|
||||
padding: 1px 0 0 0;
|
||||
}
|
|
@ -0,0 +1,259 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-2001 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*/
|
||||
|
||||
/* ===== tree.css ===================================================
|
||||
== Styles used by the XUL outline element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ::::: tree ::::: */
|
||||
|
||||
tree {
|
||||
margin: 0px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
/* ::::: tree rows ::::: */
|
||||
|
||||
treechildren:-moz-tree-row {
|
||||
border: 1px solid transparent;
|
||||
min-height: 18px;
|
||||
height: 1.3em;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-row(selected) {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-row(selected, focus) {
|
||||
background-color: Highlight;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-row(current, focus) {
|
||||
border: 1px dotted #F5DB95;
|
||||
}
|
||||
|
||||
/* ::::: tree cells ::::: */
|
||||
|
||||
treechildren:-moz-tree-cell {
|
||||
padding: 0px 2px 0px 2px;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-cell-text {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-cell-text(selected) {
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-cell-text(selected, focus) {
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
|
||||
/* ::::: lines connecting cells ::::: */
|
||||
|
||||
treechildren:-moz-tree-line {
|
||||
border: 1px dotted ThreeDShadow;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-line(selected, focus) {
|
||||
border: 1px dotted HighlightText;
|
||||
}
|
||||
|
||||
|
||||
/* ::::: tree separator ::::: */
|
||||
|
||||
treechildren:-moz-tree-separator {
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
}
|
||||
|
||||
|
||||
/* ::::: drop feedback ::::: */
|
||||
|
||||
treechildren:-moz-tree-cell-text(primary, dropOn) {
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-drop-feedback {
|
||||
background-color: Highlight;
|
||||
width: 50px;
|
||||
height: 2px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
/* ::::: tree progress meter ::::: */
|
||||
|
||||
treechildren:-moz-tree-progressmeter {
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDHighlight -moz-Dialog;
|
||||
-moz-border-bottom-colors: ThreeDHighlight -moz-Dialog;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
background-color: -moz-Dialog;
|
||||
color: ThreeDShadow;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-progressmeter(progressUndetermined) {
|
||||
list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-cell-text(progressmeter) {
|
||||
margin: 2px 4px;
|
||||
}
|
||||
|
||||
/* ::::: tree columns ::::: */
|
||||
|
||||
treecol,
|
||||
treecolpicker {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
background-color: -moz-Dialog;
|
||||
color: -moz-DialogText;
|
||||
padding: 0px 4px;
|
||||
}
|
||||
|
||||
.treecol-image {
|
||||
padding: 0px 1px;
|
||||
}
|
||||
|
||||
.treecol-text {
|
||||
margin: 0px !important;
|
||||
}
|
||||
|
||||
treecol[hideheader="true"] {
|
||||
-moz-appearance: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* ..... internal box ..... */
|
||||
|
||||
treecol:hover:active,
|
||||
treecolpicker:hover:active {
|
||||
border-top: 2px solid;
|
||||
border-right: 1px solid;
|
||||
border-bottom: 1px solid;
|
||||
border-left: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow -moz-Dialog;
|
||||
-moz-border-right-colors: ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDShadow -moz-Dialog;
|
||||
padding: 1px 4px 0px 5px;
|
||||
}
|
||||
|
||||
.treecol-image:hover:active {
|
||||
padding: 1px 1px 0px 2px;
|
||||
}
|
||||
|
||||
/* ::::: column drag and drop styles ::::: */
|
||||
|
||||
treecol[dragging="true"] {
|
||||
-moz-border-top-colors: ThreeDDarkShadow transparent !important;
|
||||
-moz-border-right-colors: ThreeDDarkShadow transparent!important;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
|
||||
-moz-border-left-colors: ThreeDDarkShadow transparent !important;
|
||||
background-color: ThreeDShadow !important;
|
||||
color: ThreeDHighlight !important;
|
||||
}
|
||||
|
||||
treecol[insertafter="true"] {
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
treecol[insertbefore="true"] {
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-column(insertbefore) {
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-column(insertafter) {
|
||||
border-right: 1px solid ThreeDShadow;
|
||||
}
|
||||
|
||||
/* ::::: sort direction indicator ::::: */
|
||||
|
||||
.treecol-sortdirection {
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
.treecol-sortdirection[sortDirection="ascending"] {
|
||||
list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
|
||||
}
|
||||
|
||||
.treecol-sortdirection[sortDirection="descending"] {
|
||||
list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
|
||||
}
|
||||
|
||||
/* ::::: column picker ::::: */
|
||||
|
||||
.tree-columnpicker-icon {
|
||||
list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
|
||||
}
|
||||
|
||||
/* ::::: twisty ::::: */
|
||||
|
||||
treechildren:-moz-tree-twisty {
|
||||
padding-right: 4px;
|
||||
padding-top: 1px;
|
||||
width: 9px; /* The image's width is 9 pixels */
|
||||
list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-twisty(open) {
|
||||
width: 9px; /* The image's width is 9 pixels */
|
||||
list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
|
||||
}
|
||||
|
||||
treechildren:-moz-tree-indentation {
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
/* ::::: gridline style ::::: */
|
||||
|
||||
treechildren.gridlines:-moz-tree-cell {
|
||||
border-right: 1px solid GrayText;
|
||||
border-bottom: 1px solid GrayText;
|
||||
}
|
||||
|
||||
treechildren.gridlines:-moz-tree-row {
|
||||
border: none;
|
||||
}
|