зеркало из https://github.com/mozilla/pjs.git
nsbeta3+ bug 28508, select all is flakey from the context menu. Make sure popups don't steal focus. r=hyatt
This commit is contained in:
Родитель
7bc998fc6f
Коммит
ad76c66cbd
|
@ -29,7 +29,7 @@ checkbox,radio,tree,menulist {
|
|||
}
|
||||
|
||||
|
||||
menupopup, splitter {
|
||||
menupopup, popup, splitter {
|
||||
user-focus: ignore;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,543 +0,0 @@
|
|||
/** 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/content.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 */
|
||||
|
||||
* {
|
||||
display: block;
|
||||
}
|
||||
|
||||
*[collapsed="true"] {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
*[hidden="true"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
checkbox,radio,tree,menulist {
|
||||
user-focus: normal;
|
||||
}
|
||||
|
||||
|
||||
menupopup, splitter {
|
||||
user-focus: ignore;
|
||||
}
|
||||
|
||||
treechildren, treehead, treerows {
|
||||
user-focus: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* All elements that have no visual representation
|
||||
*/
|
||||
commands, commandset, command {
|
||||
display: none;
|
||||
}
|
||||
|
||||
xbl|children {
|
||||
display: none;
|
||||
}
|
||||
|
||||
broadcasterset, broadcaster {
|
||||
display: none;
|
||||
}
|
||||
|
||||
observes {
|
||||
display: none;
|
||||
}
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
data {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**********************************
|
||||
* Window
|
||||
**********************************/
|
||||
|
||||
window {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/**********************************
|
||||
* XUL widgets
|
||||
**********************************/
|
||||
|
||||
/******** Browser, editor, iframe ********/
|
||||
|
||||
browser, editor, iframe {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/******** Box *******/
|
||||
|
||||
/******** TitledBox *******/
|
||||
|
||||
box.titledbox-title {
|
||||
}
|
||||
|
||||
box.titledbox-body {
|
||||
vertical-align: inherit;
|
||||
text-align: inherit;
|
||||
}
|
||||
|
||||
titledbox {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#titledbox);
|
||||
}
|
||||
|
||||
title {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#title);
|
||||
}
|
||||
|
||||
/******* ToolBox & ToolBar *******/
|
||||
|
||||
toolbox {
|
||||
user-focus: ignore;
|
||||
behavior: url(resource:/chrome/xulBindings.xml#toolbox);
|
||||
}
|
||||
|
||||
toolbar, menubar {
|
||||
user-focus: ignore;
|
||||
}
|
||||
|
||||
toolbar,menubar {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#toolbar);
|
||||
}
|
||||
|
||||
toolbargrippy {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#toolbargrippy);
|
||||
}
|
||||
|
||||
toolbar[collapsed="true"] {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
box.toolbar-holder[collapsed="true"] {
|
||||
visibility: collapse;
|
||||
}
|
||||
|
||||
/********* XP Menus ***********/
|
||||
|
||||
menubar > menu
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menu-menubar");
|
||||
}
|
||||
|
||||
menubar > menu.menu-iconic
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menu-menubar-iconic");
|
||||
}
|
||||
|
||||
menu
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menu");
|
||||
}
|
||||
|
||||
menu.menu-iconic
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menu-iconic");
|
||||
}
|
||||
|
||||
menuitem
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menuitem");
|
||||
}
|
||||
|
||||
menuitem.menuitem-iconic
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
menuitem[type="checkbox"],
|
||||
menuitem[type="radio"]
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
menulist > menupopup > menuitem
|
||||
{
|
||||
behavior : url("resource:/chrome/xulBindings.xml#menuitem-iconic");
|
||||
}
|
||||
|
||||
menuitem.menuitem-non-iconic
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-item");
|
||||
}
|
||||
|
||||
|
||||
menupopup
|
||||
{
|
||||
behavior: url("resource:/chrome/xulBindings.xml#popups");
|
||||
display : none;
|
||||
}
|
||||
|
||||
popup {
|
||||
behavior: url("resource:/chrome/xulBindings.xml#popups");
|
||||
display: none;
|
||||
}
|
||||
|
||||
menupopup[menugenerated="true"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
popup[menugenerated="true"] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
menupopup, popup {
|
||||
z-index: 2147483647;
|
||||
}
|
||||
|
||||
/******** Titled buttons **********/
|
||||
|
||||
/******** Tree widget **********/
|
||||
|
||||
tree {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
min-width: 0px;
|
||||
min-height: 0px;
|
||||
}
|
||||
|
||||
/*
|
||||
tree {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#tree");
|
||||
}
|
||||
|
||||
tree > treechildren {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treerows");
|
||||
}
|
||||
*/
|
||||
|
||||
treeitem {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
treerow {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
treehead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
treechildren {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
treecell {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell");
|
||||
}
|
||||
|
||||
.treecell-indent {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell-indented-leaf");
|
||||
}
|
||||
|
||||
treeitem[container="true"] > treerow > .treecell-indent {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell-indented-folder");
|
||||
}
|
||||
|
||||
.treecell-iconic {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell-iconic");
|
||||
}
|
||||
|
||||
.treecell-image {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell-image");
|
||||
}
|
||||
|
||||
.treecell-header {
|
||||
behavior: url("resource:/chrome/treeBindings.xml#treecell-header");
|
||||
}
|
||||
|
||||
treeitem > treechildren {
|
||||
display: none;
|
||||
}
|
||||
|
||||
treeitem[open="true"] > treechildren {
|
||||
display: table-row-group;
|
||||
}
|
||||
|
||||
treecol {
|
||||
display: table-column;
|
||||
}
|
||||
|
||||
treecolgroup {
|
||||
display: table-column-group;
|
||||
}
|
||||
|
||||
/********** Tab widget *********/
|
||||
|
||||
tab {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#tab);
|
||||
}
|
||||
|
||||
:-moz-deck-hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/********** checkbox **********/
|
||||
|
||||
checkbox {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#checkbox);
|
||||
}
|
||||
|
||||
radio
|
||||
{
|
||||
behavior : url(resource:/chrome/radioBindings.xml#radio);
|
||||
}
|
||||
|
||||
radiogroup
|
||||
{
|
||||
behavior : url(resource:/chrome/radioBindings.xml#radiogroup);
|
||||
}
|
||||
|
||||
button, button.left {
|
||||
/*user-focus: normal;*/
|
||||
behavior: url(resource:/chrome/xulBindings.xml#buttonleft);
|
||||
}
|
||||
|
||||
button.top {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#buttontop);
|
||||
}
|
||||
|
||||
button.right {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#buttonright);
|
||||
}
|
||||
|
||||
button.bottom {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#buttonbottom);
|
||||
}
|
||||
|
||||
menuseparator, separator {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#separator);
|
||||
}
|
||||
|
||||
|
||||
/* appending to end so we don't make hyatt cry */
|
||||
progressmeter {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#progressmeter);
|
||||
}
|
||||
|
||||
textfield {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#textfield);
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
textfield[multiline="true"] {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#textarea);
|
||||
}
|
||||
|
||||
text {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#text);
|
||||
}
|
||||
|
||||
text[editable="true"] {
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
text[editable="true"], text[editable="true"][mode="display"] {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#text-editable-display);
|
||||
}
|
||||
|
||||
text[editable="true"][mode="edit"] {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#text-editable-edit);
|
||||
}
|
||||
|
||||
textfield[autocomplete="true"] {
|
||||
behavior: url(resource:/chrome/autocomplete.xml#autocomplete);
|
||||
}
|
||||
|
||||
colorpicker {
|
||||
behavior: url(resource:/chrome/xulBindings.xml#colorpicker);
|
||||
}
|
||||
|
||||
/** Buttons with Menus:
|
||||
* - menulist
|
||||
* - menulist[editable="true"] (combobox)
|
||||
* - menubutton
|
||||
**/
|
||||
|
||||
menulist
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menulist");
|
||||
}
|
||||
|
||||
menulist[editable="true"]
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menulist-editable");
|
||||
}
|
||||
|
||||
menubutton
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-single-left");
|
||||
}
|
||||
|
||||
menubutton.right
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-single-right");
|
||||
}
|
||||
|
||||
menubutton.menubutton-dual.left
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-left");
|
||||
}
|
||||
|
||||
menubutton.menubutton-dual.top
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-top");
|
||||
}
|
||||
|
||||
menubutton.menubutton-dual.right
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-right");
|
||||
}
|
||||
|
||||
menubutton.menubutton-dual.bottom
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-dual-bottom");
|
||||
}
|
||||
|
||||
menubutton.menubutton-icon
|
||||
{
|
||||
behavior : url("resource:/chrome/menulistBindings.xml#menubutton-icon");
|
||||
}
|
||||
|
||||
/**
|
||||
* Scrollbar <content> styles
|
||||
**/
|
||||
|
||||
slider
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton
|
||||
{
|
||||
display : inline;
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbar[value="hidden"]
|
||||
{
|
||||
visibility : hidden;
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
thumb
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
thumb[disabled="true"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton:active
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton[type="decrement"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton[type="decrement"][disabled="true"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton[type="increment"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbarbutton[type="increment"][disabled="true"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbar[align="vertical"] scrollbarbutton[type="decrement"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbar[align="vertical"] scrollbarbutton[type="decrement"][disabled="true"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbar[align="vertical"] scrollbarbutton[type="increment"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
scrollbar[align="vertical"] scrollbarbutton[type="increment"][disabled="true"]
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
slider[align="vertical"] thumb:active
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
slider
|
||||
{
|
||||
user-focus : ignore;
|
||||
user-select : none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Status Bar
|
||||
**/
|
||||
statusbar
|
||||
{
|
||||
user-focus : ignore;
|
||||
behavior : url("resource:/chrome/xulBindings.xml#statusbar");
|
||||
}
|
||||
|
||||
statusbarpanel
|
||||
{
|
||||
user-focus : ignore;
|
||||
behavior : url("resource:/chrome/xulBindings.xml#statusbar-panel");
|
||||
}
|
Загрузка…
Ссылка в новой задаче