pjs/xpfe/global/resources/content/xul.css

791 строка
17 KiB
CSS
Исходник Обычный вид История

/** 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;
2001-08-02 04:09:27 +04:00
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;
2001-03-13 07:17:20 +03:00
}
/* ::::::::::
:: 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 ******/
2001-03-17 03:28:00 +03:00
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 {
2001-08-02 04:09:27 +04:00
-moz-box-orient: vertical;
2000-06-22 05:02:11 +04:00
}
/********** 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");
}
2001-03-13 07:17:20 +03:00
/********** 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");
2001-03-13 07:17:20 +03:00
}
/******** browser, editor, iframe ********/
browser,
editor,
iframe {
display: inline;
}
browser {
-moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
}
tabbrowser {
2001-09-27 04:27:26 +04:00
-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");
2001-08-02 04:09:27 +04:00
display: -moz-groupbox;
}
caption {
-moz-binding: url("chrome://global/content/bindings/groupbox.xml#caption");
}
.groupbox-body {
2001-08-02 04:09:27 +04:00
-moz-box-pack: inherit;
-moz-box-align: inherit;
-moz-box-orient: vertical;
}
/******* toolbar *******/
toolbox {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
}
toolbar {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
}
toolbargrippy {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbargrippy");
2001-03-13 07:17:20 +03:00
}
toolbarseparator {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarseparator");
2001-03-13 07:17:20 +03:00
}
/********* menubar ***********/
menubar {
-moz-binding: url("chrome://global/content/bindings/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. */
2001-08-18 05:04:47 +04:00
popup,
menupopup {
-moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
2001-08-02 04:09:27 +04:00
-moz-box-orient: vertical;
display: none;
}
popup,
menupopup,
tooltip {
2001-03-13 07:17:20 +03:00
z-index: 2147483647;
}
menupopup[menugenerated="true"],
2001-08-18 05:04:47 +04:00
popup[menugenerated="true"],
tooltip[menugenerated="true"] {
2001-08-02 04:09:27 +04:00
display: -moz-popup;
}
2001-08-18 05:04:47 +04:00
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");
}
2001-02-06 05:57:58 +03:00
resizer[resizerdirection="bottomright"] {
-moz-binding: url("chrome://global/content/bindings/popup.xml#diag-resizer");
}
2001-02-06 05:57:58 +03:00
floatingwindow {
-moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
-moz-box-orient: vertical;
display: none;
z-index: 2147483647;
2001-02-06 05:57:58 +03:00
}
floatingwindow[docked="left"] {
-moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
2001-03-06 05:51:09 +03:00
}
button.popupClose {
-moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
}
*/
/******** grid **********/
2001-02-06 05:57:58 +03:00
grid {
2001-08-02 04:09:27 +04:00
display: -moz-grid;
2001-02-06 05:57:58 +03:00
}
rows,
columns {
2001-08-02 04:09:27 +04:00
display: -moz-grid-group;
2001-03-06 05:51:09 +03:00
}
row,
column {
2001-08-02 04:09:27 +04:00
display: -moz-grid-line;
}
rows {
2001-08-02 04:09:27 +04:00
-moz-box-orient: vertical;
2001-03-13 07:17:20 +03:00
}
column {
2001-08-02 04:09:27 +04:00
-moz-box-orient: vertical;
2001-03-13 07:17:20 +03:00
}
/******** 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");
}
2001-02-05 15:34:47 +03:00
treecols {
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecols");
2001-02-05 15:34:47 +03:00
}
treecol {
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol");
2001-02-05 15:34:47 +03:00
}
treecol.treecol-image {
-moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image");
2001-03-13 07:17:20 +03:00
}
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 {
2001-08-02 04:09:27 +04:00
display: -moz-deck;
-moz-binding: url("chrome://global/content/bindings/general.xml#deck");
}
2001-09-06 05:07:40 +04:00
stack, bulletinboard {
2001-08-02 04:09:27 +04:00
display: -moz-stack;
}
2001-08-02 04:09:27 +04:00
:-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");
2001-08-02 04:09:27 +04:00
display: -moz-deck;
}
/********** progressmeter **********/
progressmeter {
-moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
}
2001-08-14 04:07:36 +04:00
/********** 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;
}
2001-08-05 22:36:09 +04:00
/********** label **********/
spacer {
display: inline;
}
2001-08-05 22:36:09 +04:00
description {
-moz-binding: url("chrome://global/content/bindings/text.xml#text-base");
}
2001-08-05 22:36:09 +04:00
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;
}
2001-08-05 22:36:09 +04:00
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 **********/
2001-04-30 22:37:04 +04:00
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");
2001-04-30 22:37:04 +04:00
}
.autocomplete-history-popup {
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-history-popup");
2001-04-30 22:37:04 +04:00
}
.autocomplete-tree {
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-tree");
2001-04-30 22:37:04 +04:00
}
.autocomplete-treebody {
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treebody");
2001-04-30 22:37:04 +04:00
}
.autocomplete-treerows {
-moz-binding: url("chrome://global/content/autocomplete.xml#autocomplete-treerows");
2001-04-30 22:37:04 +04:00
}
.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");
2000-08-02 04:27:51 +04:00
}
2000-08-13 13:13:14 +04:00
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 **********/
2001-08-15 08:09:41 +04:00
/* 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");
2001-08-02 04:09:27 +04:00
-moz-box-orient: vertical;
}
wizardpage {
-moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
2001-08-02 04:09:27 +04:00
-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");
}