2012-05-21 12:12:37 +01:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-05-24 19:51:06 +01:00
|
|
|
/**
|
|
|
|
* A minimal set of rules for the XUL elements that may be implicitly created
|
|
|
|
* as part of HTML/SVG documents (e.g. scrollbars) can be found over in
|
|
|
|
* minimal-xul.css. Rules for everything else related to XUL can be found in
|
|
|
|
* this file. Make sure you choose the correct style sheet when adding new
|
|
|
|
* rules. (This split of the XUL rules is to minimize memory use and improve
|
|
|
|
* performance in HTML/SVG documents.)
|
|
|
|
*
|
|
|
|
* This file should also not contain any app specific styling. Defaults for
|
|
|
|
* widgets of a particular application should be in that application's style
|
2020-04-01 15:59:23 +00:00
|
|
|
* sheet. For example, style definitions for browser can be found in
|
|
|
|
* browser.css.
|
2014-05-24 19:51:06 +01:00
|
|
|
*/
|
2002-08-04 01:04:19 +00:00
|
|
|
|
2018-07-17 19:04:43 +01:00
|
|
|
@import url("chrome://global/skin/tooltip.css");
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
@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 */
|
|
|
|
|
2019-11-08 23:33:43 +00:00
|
|
|
/* TODO: investigate unifying these two root selectors
|
|
|
|
* https://bugzilla.mozilla.org/show_bug.cgi?id=1592344
|
|
|
|
*/
|
|
|
|
*|*:root {
|
|
|
|
--animation-easing-function: cubic-bezier(.07, .95, 0, 1);
|
|
|
|
}
|
|
|
|
|
2017-05-03 15:16:12 -05:00
|
|
|
:root {
|
2019-06-07 13:49:19 +00:00
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-moz-control-character-visibility: visible;
|
2017-05-03 15:16:12 -05:00
|
|
|
}
|
|
|
|
|
2019-06-07 13:49:19 +00:00
|
|
|
:root:-moz-locale-dir(rtl) {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2019-12-30 14:47:46 +00:00
|
|
|
/*
|
|
|
|
* Native anonymous popups and tooltips in html are document-level, which means
|
|
|
|
* that they don't inherit from the root, so this is needed.
|
|
|
|
*/
|
|
|
|
popupgroup:-moz-native-anonymous:-moz-locale-dir(rtl),
|
|
|
|
tooltip:-moz-native-anonymous:-moz-locale-dir(rtl) {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/* ::::::::::
|
|
|
|
:: Rules for 'hiding' portions of the chrome for special
|
|
|
|
:: kinds of windows (not JUST browser windows) with toolbars
|
|
|
|
::::: */
|
|
|
|
|
2019-11-08 23:33:43 +00:00
|
|
|
*|*:root[chromehidden~="menubar"] .chromeclass-menubar,
|
|
|
|
*|*:root[chromehidden~="directories"] .chromeclass-directories,
|
|
|
|
*|*:root[chromehidden~="status"] .chromeclass-status,
|
|
|
|
*|*:root[chromehidden~="extrachrome"] .chromeclass-extrachrome,
|
|
|
|
*|*:root[chromehidden~="location"] .chromeclass-location,
|
|
|
|
*|*:root[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar,
|
|
|
|
*|*:root[chromehidden~="toolbar"] .chromeclass-toolbar-additional {
|
2002-08-04 01:04:19 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2004-12-05 16:25:14 +00:00
|
|
|
/* ::::::::::
|
|
|
|
:: Rules for forcing direction for entry and display of URIs
|
|
|
|
:: or URI elements
|
|
|
|
::::: */
|
|
|
|
|
2008-08-13 08:11:52 +02:00
|
|
|
.uri-element {
|
2004-12-05 16:25:14 +00:00
|
|
|
direction: ltr !important;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/****** elements that have no visual representation ******/
|
|
|
|
|
2019-11-15 17:34:27 +00:00
|
|
|
script, data, commandset, command,
|
2002-08-04 01:04:19 +00:00
|
|
|
broadcasterset, broadcaster, observes,
|
2019-10-30 11:30:55 +00:00
|
|
|
keyset, key, toolbarpalette, template,
|
Bug 1523957 - Convert trees to custom elements, r=bgrins, mak, standard8, MattN
***
Bug 1523957 - Part 0: Whitespace changes in tree.js, r=bgrins
***
Bug 1523957 - Part 1.1: Naively convert tree to a custom element, r=bgrins
***
Bug 1523957 - Part 1.2: Properly mixin BaseControl and extend XULTreeElement, r=bgrins
***
Bug 1523957 - Part 1.3: Use Shadow DOM for slotting children, r=bgrins
***
Bug 1523957 - Part 1.4: Properly handle key events in combination with shift modifiers, r=bgrins
***
Bug 1523957 - Part 1.5: Lint for the lint gods in tree.js, r=bgrins, standard8
***
Bug 1523957 - Part 2.1: Naively convert places-tree to a custom element, preserving history, r=bgrins
***
Bug 1523957 - Part 2.2: Lint for the lint gods in places-tree.js, r=bgrins
***
Bug 1523957 - Part 2.3: Fix browser_passwordmgr_editing.js, r=MattN
***
Bug 1523957 - Part 2.4: Fix browser_bookmarksProperties.js, r=bgrins
***
Bug 1523957 - Part 2.5: Make the edit bookmark tree lazily constructed so there aren't any trees left in the browser window markup, r=bgrins
***
Bug 1523957 - Part 2.6: Add eslint globals to places-tree.js, r=bgrins, standard8
--HG--
rename : browser/components/places/content/tree.xml => browser/components/places/content/places-tree.js
2019-02-21 15:39:53 +01:00
|
|
|
treeitem, treeseparator, treerow, treecell {
|
2002-08-04 01:04:19 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/********** focus rules **********/
|
|
|
|
|
|
|
|
button,
|
|
|
|
checkbox,
|
|
|
|
menulist,
|
|
|
|
radiogroup,
|
|
|
|
tree,
|
|
|
|
browser,
|
|
|
|
editor,
|
|
|
|
iframe {
|
|
|
|
-moz-user-focus: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******** window & page ******/
|
|
|
|
|
2019-09-27 13:04:20 +00:00
|
|
|
window {
|
2003-09-16 22:09:18 +00:00
|
|
|
overflow: -moz-hidden-unscrollable;
|
2002-08-04 01:04:19 +00:00
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******** box *******/
|
|
|
|
|
|
|
|
vbox {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
2018-09-13 11:06:32 +08:00
|
|
|
/********** label **********/
|
|
|
|
label.text-link, label[onclick] {
|
|
|
|
-moz-user-focus: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
label html|span.accesskey {
|
|
|
|
text-decoration: underline;
|
2020-04-02 18:37:17 +00:00
|
|
|
text-decoration-skip-ink: none;
|
2018-09-13 11:06:32 +08:00
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** toolbarbutton **********/
|
|
|
|
|
2018-04-05 11:46:00 +01:00
|
|
|
toolbarbutton:not([type="menu"]) > .toolbarbutton-menu-dropmarker,
|
2009-02-22 10:13:59 +01:00
|
|
|
toolbar[mode="icons"] .toolbarbutton-text,
|
2014-01-24 09:39:31 +00:00
|
|
|
toolbar[mode="icons"] .toolbarbutton-multiline-text,
|
2017-06-20 10:25:23 +02:00
|
|
|
toolbar[mode="text"] .toolbarbutton-icon,
|
2014-01-24 09:39:31 +00:00
|
|
|
.toolbarbutton-multiline-text:not([wrap="true"]),
|
2020-01-15 10:49:04 +00:00
|
|
|
.toolbarbutton-text[wrap="true"],
|
|
|
|
html|label.toolbarbutton-badge:empty {
|
2014-01-17 18:51:02 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/******** browser, editor, iframe ********/
|
|
|
|
|
|
|
|
browser,
|
|
|
|
editor,
|
|
|
|
iframe {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2018-01-25 15:09:23 -08:00
|
|
|
@supports -moz-bool-pref("layout.css.emulate-moz-box-with-flex") {
|
|
|
|
browser,
|
|
|
|
editor,
|
|
|
|
iframe {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-04-09 13:45:25 -04:00
|
|
|
/*********** popup notification ************/
|
|
|
|
popupnotification {
|
2019-02-07 22:16:26 +00:00
|
|
|
-moz-box-orient: vertical;
|
2010-04-09 13:45:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.popup-notification-menubutton:not([label]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** radio **********/
|
|
|
|
|
|
|
|
radiogroup {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******** groupbox *********/
|
|
|
|
|
|
|
|
groupbox {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
2015-01-23 13:07:54 -05:00
|
|
|
/******** draggable elements *********/
|
|
|
|
|
2017-09-21 09:28:55 -07:00
|
|
|
%ifndef MOZ_WIDGET_GTK
|
2015-01-23 13:07:54 -05:00
|
|
|
titlebar,
|
2018-03-05 14:54:03 +01:00
|
|
|
toolbar:not([nowindowdrag="true"]):not([customizing="true"]) {
|
2015-01-23 13:07:54 -05:00
|
|
|
-moz-window-dragging: drag;
|
|
|
|
}
|
2018-03-05 14:54:03 +01:00
|
|
|
%endif
|
2015-01-23 13:07:54 -05:00
|
|
|
|
|
|
|
/* The list below is non-comprehensive and will probably need some tweaking. */
|
2016-01-18 15:32:14 +00:00
|
|
|
toolbaritem,
|
2015-01-23 13:07:54 -05:00
|
|
|
toolbarbutton,
|
2017-10-06 14:29:45 -07:00
|
|
|
toolbarseparator,
|
2015-01-23 13:07:54 -05:00
|
|
|
button,
|
2019-11-15 13:35:14 +00:00
|
|
|
search-textbox,
|
|
|
|
html|input,
|
2015-01-23 13:07:54 -05:00
|
|
|
tab,
|
|
|
|
radio,
|
2015-03-14 16:23:38 -04:00
|
|
|
splitter,
|
|
|
|
menulist {
|
2015-01-23 13:07:54 -05:00
|
|
|
-moz-window-dragging: no-drag;
|
|
|
|
}
|
|
|
|
|
2019-11-22 13:15:00 +00:00
|
|
|
titlebar {
|
|
|
|
pointer-events: auto !important;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/******* toolbar *******/
|
|
|
|
|
2012-06-04 17:02:04 -07:00
|
|
|
toolbox {
|
2002-08-04 01:04:19 +00:00
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
2012-06-04 17:02:04 -07:00
|
|
|
|
2005-08-26 17:57:59 +00:00
|
|
|
%ifdef XP_MACOSX
|
2003-08-12 01:19:58 +00:00
|
|
|
toolbar[type="menubar"] {
|
|
|
|
min-height: 0 !important;
|
|
|
|
border: 0 !important;
|
|
|
|
}
|
2005-08-26 17:57:59 +00:00
|
|
|
%endif
|
2003-08-12 01:19:58 +00:00
|
|
|
|
2002-09-28 15:11:50 +00:00
|
|
|
toolbarspring {
|
2002-10-13 05:49:54 +00:00
|
|
|
-moz-box-flex: 1000;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/********* menu ***********/
|
|
|
|
|
2008-02-21 09:40:12 -08:00
|
|
|
menubar > menu:empty {
|
2005-06-17 13:44:07 +00:00
|
|
|
visibility: collapse;
|
2005-06-03 17:51:45 +00:00
|
|
|
}
|
|
|
|
|
2014-03-04 09:51:34 -05:00
|
|
|
.menu-text {
|
|
|
|
-moz-box-flex: 1;
|
|
|
|
}
|
|
|
|
|
2019-03-30 00:05:08 +00:00
|
|
|
/********* menupopup, panel, & tooltip ***********/
|
2002-08-04 01:04:19 +00:00
|
|
|
|
2019-10-30 11:30:55 +00:00
|
|
|
menupopup,
|
2007-07-04 08:49:38 -07:00
|
|
|
panel {
|
|
|
|
-moz-box-orient: vertical;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
menupopup,
|
2007-07-04 08:49:38 -07:00
|
|
|
panel,
|
2002-08-04 01:04:19 +00:00
|
|
|
tooltip {
|
2007-06-29 15:15:59 -07:00
|
|
|
display: -moz-popup;
|
2008-11-07 22:41:28 +01:00
|
|
|
z-index: 2147483647;
|
|
|
|
text-shadow: none;
|
2007-06-29 15:15:59 -07:00
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
tooltip {
|
2007-07-05 12:11:36 -07:00
|
|
|
-moz-box-orient: vertical;
|
2008-03-08 01:44:35 -08:00
|
|
|
white-space: pre-wrap;
|
2002-08-04 01:04:19 +00:00
|
|
|
margin-top: 21px;
|
|
|
|
}
|
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
@supports -moz-bool-pref("xul.panel-animations.enabled") {
|
2017-06-09 11:19:29 -04:00
|
|
|
%ifdef MOZ_WIDGET_COCOA
|
2019-04-24 09:56:38 +00:00
|
|
|
/* On Mac, use the properties "-moz-window-transform" and "-moz-window-opacity"
|
|
|
|
instead of "transform" and "opacity" for these animations.
|
|
|
|
The -moz-window* properties apply to the whole window including the window's
|
|
|
|
shadow, and they don't affect the window's "shape", so the system doesn't
|
|
|
|
have to recompute the shadow shape during the animation. This makes them a
|
|
|
|
lot faster. In fact, Gecko no longer triggers shadow shape recomputations
|
|
|
|
for repaints.
|
|
|
|
These properties are not implemented on other platforms. */
|
|
|
|
panel[type="arrow"]:not([animate="false"]) {
|
|
|
|
-moz-window-opacity: 0;
|
|
|
|
-moz-window-transform: translateY(-70px);
|
|
|
|
transition-property: -moz-window-transform, -moz-window-opacity;
|
|
|
|
transition-duration: 0.18s, 0.18s;
|
|
|
|
transition-timing-function:
|
|
|
|
var(--animation-easing-function), ease-out;
|
|
|
|
}
|
2017-06-09 11:19:29 -04:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
panel[type="arrow"][side="bottom"]:not([animate="false"]) {
|
|
|
|
-moz-window-transform: translateY(70px);
|
|
|
|
}
|
2017-07-27 11:07:23 -07:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
/* [animate] is here only so that this rule has greater specificity than the
|
|
|
|
* rule right above */
|
|
|
|
panel[type="arrow"][animate][animate="open"] {
|
|
|
|
-moz-window-opacity: 1.0;
|
|
|
|
transition-duration: 0.18s, 0.18s;
|
|
|
|
-moz-window-transform: none;
|
|
|
|
transition-timing-function:
|
|
|
|
var(--animation-easing-function), ease-in-out;
|
|
|
|
}
|
2017-07-27 11:07:23 -07:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
panel[type="arrow"][animate][animate="cancel"] {
|
|
|
|
-moz-window-transform: none;
|
|
|
|
}
|
|
|
|
%else
|
|
|
|
panel[type="arrow"]:not([animate="false"]) {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-70px);
|
|
|
|
transition-property: transform, opacity;
|
|
|
|
transition-duration: 0.18s, 0.18s;
|
|
|
|
transition-timing-function:
|
|
|
|
var(--animation-easing-function), ease-out;
|
|
|
|
}
|
2017-07-27 11:07:23 -07:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
panel[type="arrow"][side="bottom"]:not([animate="false"]) {
|
|
|
|
transform: translateY(70px);
|
|
|
|
}
|
2017-07-27 11:07:23 -07:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
/* [animate] is here only so that this rule has greater specificity than the
|
|
|
|
* rule right above */
|
|
|
|
panel[type="arrow"][animate][animate="open"] {
|
|
|
|
opacity: 1.0;
|
|
|
|
transition-duration: 0.18s, 0.18s;
|
|
|
|
transform: none;
|
|
|
|
transition-timing-function:
|
|
|
|
var(--animation-easing-function), ease-in-out;
|
|
|
|
}
|
2017-07-27 11:07:23 -07:00
|
|
|
|
2019-04-24 09:56:38 +00:00
|
|
|
panel[type="arrow"][animate][animate="cancel"] {
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
%endif
|
2017-07-27 11:07:23 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
panel[type="arrow"][animating] {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/******** grid **********/
|
|
|
|
|
|
|
|
grid {
|
|
|
|
display: -moz-grid;
|
|
|
|
}
|
|
|
|
|
2012-06-04 17:02:04 -07:00
|
|
|
rows,
|
2002-08-04 01:04:19 +00:00
|
|
|
columns {
|
|
|
|
display: -moz-grid-group;
|
|
|
|
}
|
|
|
|
|
|
|
|
row,
|
|
|
|
column {
|
|
|
|
display: -moz-grid-line;
|
|
|
|
}
|
|
|
|
|
2019-10-30 11:30:55 +00:00
|
|
|
rows,
|
2002-08-04 01:04:19 +00:00
|
|
|
column {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******** tree ******/
|
|
|
|
|
2018-11-27 18:43:58 +01:00
|
|
|
treecolpicker {
|
2003-08-17 11:21:09 +00:00
|
|
|
-moz-box-ordinal-group: 2147483646;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
Bug 1523957 - Convert trees to custom elements, r=bgrins, mak, standard8, MattN
***
Bug 1523957 - Part 0: Whitespace changes in tree.js, r=bgrins
***
Bug 1523957 - Part 1.1: Naively convert tree to a custom element, r=bgrins
***
Bug 1523957 - Part 1.2: Properly mixin BaseControl and extend XULTreeElement, r=bgrins
***
Bug 1523957 - Part 1.3: Use Shadow DOM for slotting children, r=bgrins
***
Bug 1523957 - Part 1.4: Properly handle key events in combination with shift modifiers, r=bgrins
***
Bug 1523957 - Part 1.5: Lint for the lint gods in tree.js, r=bgrins, standard8
***
Bug 1523957 - Part 2.1: Naively convert places-tree to a custom element, preserving history, r=bgrins
***
Bug 1523957 - Part 2.2: Lint for the lint gods in places-tree.js, r=bgrins
***
Bug 1523957 - Part 2.3: Fix browser_passwordmgr_editing.js, r=MattN
***
Bug 1523957 - Part 2.4: Fix browser_bookmarksProperties.js, r=bgrins
***
Bug 1523957 - Part 2.5: Make the edit bookmark tree lazily constructed so there aren't any trees left in the browser window markup, r=bgrins
***
Bug 1523957 - Part 2.6: Add eslint globals to places-tree.js, r=bgrins, standard8
--HG--
rename : browser/components/places/content/tree.xml => browser/components/places/content/places-tree.js
2019-02-21 15:39:53 +01:00
|
|
|
treechildren {
|
2002-08-04 01:04:19 +00:00
|
|
|
display: -moz-box;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-moz-box-flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
tree {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
}
|
|
|
|
|
Bug 1523957 - Convert trees to custom elements, r=bgrins, mak, standard8, MattN
***
Bug 1523957 - Part 0: Whitespace changes in tree.js, r=bgrins
***
Bug 1523957 - Part 1.1: Naively convert tree to a custom element, r=bgrins
***
Bug 1523957 - Part 1.2: Properly mixin BaseControl and extend XULTreeElement, r=bgrins
***
Bug 1523957 - Part 1.3: Use Shadow DOM for slotting children, r=bgrins
***
Bug 1523957 - Part 1.4: Properly handle key events in combination with shift modifiers, r=bgrins
***
Bug 1523957 - Part 1.5: Lint for the lint gods in tree.js, r=bgrins, standard8
***
Bug 1523957 - Part 2.1: Naively convert places-tree to a custom element, preserving history, r=bgrins
***
Bug 1523957 - Part 2.2: Lint for the lint gods in places-tree.js, r=bgrins
***
Bug 1523957 - Part 2.3: Fix browser_passwordmgr_editing.js, r=MattN
***
Bug 1523957 - Part 2.4: Fix browser_bookmarksProperties.js, r=bgrins
***
Bug 1523957 - Part 2.5: Make the edit bookmark tree lazily constructed so there aren't any trees left in the browser window markup, r=bgrins
***
Bug 1523957 - Part 2.6: Add eslint globals to places-tree.js, r=bgrins, standard8
--HG--
rename : browser/components/places/content/tree.xml => browser/components/places/content/places-tree.js
2019-02-21 15:39:53 +01:00
|
|
|
tree[hidecolumnpicker="true"] treecolpicker {
|
2002-08-04 01:04:19 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
treecol {
|
|
|
|
min-width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
treecol[hidden="true"] {
|
|
|
|
visibility: collapse;
|
|
|
|
display: -moz-box;
|
|
|
|
}
|
|
|
|
|
2008-06-11 09:46:05 +01:00
|
|
|
/* ::::: lines connecting cells ::::: */
|
Bug 1523957 - Convert trees to custom elements, r=bgrins, mak, standard8, MattN
***
Bug 1523957 - Part 0: Whitespace changes in tree.js, r=bgrins
***
Bug 1523957 - Part 1.1: Naively convert tree to a custom element, r=bgrins
***
Bug 1523957 - Part 1.2: Properly mixin BaseControl and extend XULTreeElement, r=bgrins
***
Bug 1523957 - Part 1.3: Use Shadow DOM for slotting children, r=bgrins
***
Bug 1523957 - Part 1.4: Properly handle key events in combination with shift modifiers, r=bgrins
***
Bug 1523957 - Part 1.5: Lint for the lint gods in tree.js, r=bgrins, standard8
***
Bug 1523957 - Part 2.1: Naively convert places-tree to a custom element, preserving history, r=bgrins
***
Bug 1523957 - Part 2.2: Lint for the lint gods in places-tree.js, r=bgrins
***
Bug 1523957 - Part 2.3: Fix browser_passwordmgr_editing.js, r=MattN
***
Bug 1523957 - Part 2.4: Fix browser_bookmarksProperties.js, r=bgrins
***
Bug 1523957 - Part 2.5: Make the edit bookmark tree lazily constructed so there aren't any trees left in the browser window markup, r=bgrins
***
Bug 1523957 - Part 2.6: Add eslint globals to places-tree.js, r=bgrins, standard8
--HG--
rename : browser/components/places/content/tree.xml => browser/components/places/content/places-tree.js
2019-02-21 15:39:53 +01:00
|
|
|
tree:not([treelines="true"]) treechildren::-moz-tree-line {
|
2008-06-11 09:46:05 +01:00
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2009-02-27 22:07:59 +03:30
|
|
|
treechildren::-moz-tree-cell(ltr) {
|
|
|
|
direction: ltr !important;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** deck & stack *********/
|
|
|
|
|
|
|
|
deck {
|
|
|
|
display: -moz-deck;
|
|
|
|
}
|
|
|
|
|
2018-02-21 09:28:47 -08:00
|
|
|
stack {
|
2019-11-12 19:49:48 +00:00
|
|
|
display: grid;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2020-02-28 18:33:56 +00:00
|
|
|
/* We shouldn't style native anonymous children like scrollbars or what not */
|
|
|
|
stack > *|*:not(:-moz-native-anonymous) {
|
2019-11-12 19:49:48 +00:00
|
|
|
grid-area: 1 / 1;
|
|
|
|
z-index: 0;
|
2019-11-16 02:00:01 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
The default `min-height: auto` value makes grid items refuse to be smaller
|
|
|
|
than their content. This doesn't match the traditional behavior of XUL stack,
|
|
|
|
which often shoehorns tall content into a smaller stack and allows the content
|
|
|
|
to decide how to handle overflow (e.g. by scaling down if it's an image, or
|
|
|
|
by adding scrollbars if it's scrollable).
|
|
|
|
*/
|
|
|
|
min-height: 0;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
2020-02-14 16:32:38 +00:00
|
|
|
legacy-stack {
|
|
|
|
display: -moz-stack;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** tabbox *********/
|
|
|
|
|
|
|
|
tabbox {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
tabs {
|
|
|
|
-moz-box-orient: horizontal;
|
|
|
|
}
|
|
|
|
|
|
|
|
tab {
|
|
|
|
-moz-box-align: center;
|
|
|
|
-moz-box-pack: center;
|
|
|
|
}
|
|
|
|
|
2012-05-05 01:32:34 +02:00
|
|
|
tab[selected="true"]:not([ignorefocus="true"]) {
|
2009-06-15 15:43:34 +02:00
|
|
|
-moz-user-focus: normal;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
tabpanels {
|
|
|
|
display: -moz-deck;
|
|
|
|
}
|
|
|
|
|
2018-07-17 19:04:43 +01:00
|
|
|
/********** tooltip *********/
|
|
|
|
|
|
|
|
tooltip[titletip="true"] {
|
|
|
|
/* The width of the tooltip isn't limited on cropped <tree> cells. */
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** basic rule for anonymous content that needs to pass box properties through
|
|
|
|
********** to an insertion point parent that holds the real kids **************/
|
|
|
|
|
2008-08-13 08:11:52 +02:00
|
|
|
.box-inherit {
|
|
|
|
-moz-box-orient: inherit;
|
|
|
|
-moz-box-pack: inherit;
|
|
|
|
-moz-box-align: inherit;
|
|
|
|
-moz-box-direction: inherit;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/********** textbox **********/
|
|
|
|
|
2019-10-09 09:27:28 +00:00
|
|
|
search-textbox {
|
2002-08-04 01:04:19 +00:00
|
|
|
-moz-user-select: text;
|
2008-11-12 08:07:16 +01:00
|
|
|
text-shadow: none;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
2019-03-05 11:41:42 +00:00
|
|
|
/* Prefix with (xul|*):root to workaround HTML tests loading xul.css */
|
|
|
|
:root html|textarea:not([resizable="true"]) {
|
2010-07-05 10:41:04 -04:00
|
|
|
resize: none;
|
2010-03-19 07:49:34 -04:00
|
|
|
}
|
|
|
|
|
2018-10-09 10:22:15 +02:00
|
|
|
@supports -moz-bool-pref("layout.css.emulate-moz-box-with-flex") {
|
2019-03-05 11:41:42 +00:00
|
|
|
html|*.textbox-input {
|
2018-10-09 10:22:15 +02:00
|
|
|
/* Be block-level, so that -moz-box-flex can take effect, when we are an item
|
|
|
|
in a -moz-box being emulated by modified modern flex. */
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** autocomplete textbox **********/
|
|
|
|
|
2017-11-28 08:04:53 -08:00
|
|
|
/* SeaMonkey uses its own autocomplete and the toolkit's autocomplete widget */
|
|
|
|
%ifndef MOZ_SUITE
|
2002-08-04 01:04:19 +00:00
|
|
|
|
2007-11-29 20:57:57 -08:00
|
|
|
.autocomplete-richlistbox {
|
|
|
|
-moz-user-focus: ignore;
|
2008-02-13 02:57:08 -08:00
|
|
|
overflow-x: hidden !important;
|
2007-11-29 20:57:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.autocomplete-richlistitem {
|
2008-02-13 02:57:08 -08:00
|
|
|
-moz-box-orient: vertical;
|
2019-01-24 08:40:36 -05:00
|
|
|
-moz-box-align: center;
|
2008-02-13 02:57:08 -08:00
|
|
|
overflow: -moz-hidden-unscrollable;
|
2007-11-29 20:57:57 -08:00
|
|
|
}
|
|
|
|
|
2005-08-26 17:57:59 +00:00
|
|
|
%endif
|
2003-06-09 04:26:42 +00:00
|
|
|
|
2012-06-04 17:02:04 -07:00
|
|
|
/* The following rule is here to fix bug 96899 (and now 117952).
|
2002-09-28 06:25:03 +00:00
|
|
|
Somehow trees create a situation
|
|
|
|
in which a popupset flows itself as if its popup child is directly within it
|
|
|
|
instead of the placeholder child that should actually be inside the popupset.
|
|
|
|
This is a stopgap measure, and it does not address the real bug. */
|
|
|
|
.autocomplete-result-popupset {
|
|
|
|
max-width: 0px;
|
|
|
|
width: 0 !important;
|
2009-05-12 11:15:15 +02:00
|
|
|
min-width: 0%;
|
|
|
|
min-height: 0%;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/********** menulist **********/
|
|
|
|
|
2020-04-08 20:00:30 +00:00
|
|
|
menulist[popuponly] {
|
2015-01-05 16:38:48 -05:00
|
|
|
-moz-appearance: none !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
height: 0 !important;
|
2017-07-16 12:51:00 -07:00
|
|
|
min-height: 0 !important;
|
2015-01-05 16:38:48 -05:00
|
|
|
border: 0 !important;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** splitter **********/
|
|
|
|
|
|
|
|
.tree-splitter {
|
|
|
|
width: 0px;
|
|
|
|
max-width: 0px;
|
2004-12-01 16:21:02 +00:00
|
|
|
min-width: 0% ! important;
|
2004-12-01 10:58:20 +00:00
|
|
|
min-height: 0% ! important;
|
2002-11-20 01:38:08 +00:00
|
|
|
-moz-box-ordinal-group: 2147483646;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
2015-03-25 16:45:24 -04:00
|
|
|
/******** scrollbar ********/
|
|
|
|
|
|
|
|
slider {
|
|
|
|
/* This is a hint to layerization that the scrollbar thumb can never leave
|
|
|
|
the scrollbar track. */
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/******** scrollbox ********/
|
|
|
|
|
|
|
|
scrollbox {
|
2004-12-01 16:21:02 +00:00
|
|
|
/* This makes it scrollable! */
|
2005-03-30 00:11:06 +00:00
|
|
|
overflow: hidden;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
2017-08-02 16:50:02 -04:00
|
|
|
scrollbox[smoothscroll=true] {
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
|
2002-08-04 01:04:19 +00:00
|
|
|
/********** stringbundle **********/
|
|
|
|
|
2017-10-25 13:51:13 -07:00
|
|
|
stringbundle,
|
2002-08-04 01:04:19 +00:00
|
|
|
stringbundleset {
|
2017-10-25 13:51:13 -07:00
|
|
|
display: none;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/********** dialog **********/
|
|
|
|
|
2019-10-30 11:30:55 +00:00
|
|
|
dialog {
|
2019-12-10 18:25:59 +00:00
|
|
|
-moz-box-flex: 1;
|
2002-08-04 01:04:19 +00:00
|
|
|
-moz-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
/********** wizard **********/
|
|
|
|
|
2019-10-17 21:25:53 +00:00
|
|
|
wizard {
|
|
|
|
-moz-box-flex: 1;
|
2002-08-04 01:04:19 +00:00
|
|
|
-moz-box-orient: vertical;
|
2004-01-19 09:32:45 +00:00
|
|
|
width: 40em;
|
|
|
|
height: 30em;
|
2002-08-04 01:04:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
wizardpage {
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2005-06-17 18:11:02 +00:00
|
|
|
/********** Rich Listbox ********/
|
|
|
|
|
|
|
|
richlistbox {
|
|
|
|
-moz-user-focus: normal;
|
2007-10-11 15:43:31 -07:00
|
|
|
-moz-box-orient: vertical;
|
2005-06-17 18:11:02 +00:00
|
|
|
}
|
2005-07-05 21:07:09 +00:00
|
|
|
|
2006-11-26 22:47:46 +00:00
|
|
|
/*********** findbar ************/
|
|
|
|
findbar {
|
2018-01-04 16:14:31 +01:00
|
|
|
overflow-x: hidden;
|
2006-11-26 22:47:46 +00:00
|
|
|
}
|
2008-10-10 00:04:06 +01:00
|
|
|
|
2010-11-19 21:23:25 -08:00
|
|
|
/*********** tabmodalprompt ************/
|
|
|
|
tabmodalprompt {
|
2011-10-01 21:40:36 +02:00
|
|
|
overflow: hidden;
|
2010-11-24 09:35:39 +01:00
|
|
|
text-shadow: none;
|
2010-11-19 21:23:25 -08:00
|
|
|
}
|
2017-05-02 18:09:22 +08:00
|
|
|
|
2020-01-08 12:17:07 +00:00
|
|
|
/* Some elements that in HTML blocks should be inline-level by default */
|
2020-01-10 10:29:12 +00:00
|
|
|
label, button, image {
|
2020-01-08 12:17:07 +00:00
|
|
|
display: -moz-inline-box;
|
|
|
|
}
|
|
|
|
|
2017-05-20 00:09:25 +08:00
|
|
|
.menu-iconic-highlightable-text:not([highlightable="true"]),
|
|
|
|
.menu-iconic-text[highlightable="true"] {
|
2017-05-02 18:09:22 +08:00
|
|
|
display: none;
|
2017-05-20 00:09:25 +08:00
|
|
|
}
|
2018-01-04 10:25:30 -08:00
|
|
|
|
2019-11-19 20:30:54 +00:00
|
|
|
[orient="vertical"] { -moz-box-orient: vertical !important; }
|
|
|
|
[orient="horizontal"] { -moz-box-orient: horizontal !important; }
|
|
|
|
|
|
|
|
[align="start"] { -moz-box-align: start !important; }
|
|
|
|
[align="center"] { -moz-box-align: center !important; }
|
|
|
|
[align="end"] { -moz-box-align: end !important; }
|
|
|
|
[align="baseline"] { -moz-box-align: baseline !important; }
|
|
|
|
[align="stretch"] { -moz-box-align: stretch !important; }
|
2018-01-04 10:25:30 -08:00
|
|
|
|
2019-11-19 20:30:54 +00:00
|
|
|
[pack="start"] { -moz-box-pack: start !important; }
|
|
|
|
[pack="center"] { -moz-box-pack: center !important; }
|
|
|
|
[pack="end"] { -moz-box-pack: end !important; }
|
|
|
|
|
|
|
|
@supports -moz-bool-pref("layout.css.emulate-moz-box-with-flex") {
|
2018-01-04 10:25:30 -08:00
|
|
|
/* This isn't a real solution for [flex] and [ordinal], but it covers enough
|
2019-11-19 20:30:54 +00:00
|
|
|
cases to render the browser chrome for us to test emulated flex mode without
|
|
|
|
mass-changing existing markup and CSS.
|
|
|
|
If we get attr() in Bug 435426 this could work for all cases. */
|
2018-01-04 10:25:30 -08:00
|
|
|
[flex="1"] { -moz-box-flex: 1; }
|
|
|
|
[flex="2"] { -moz-box-flex: 2; }
|
|
|
|
[flex="3"] { -moz-box-flex: 3; }
|
|
|
|
[flex="4"] { -moz-box-flex: 4; }
|
|
|
|
[flex="5"] { -moz-box-flex: 5; }
|
|
|
|
[flex="6"] { -moz-box-flex: 6; }
|
|
|
|
[flex="7"] { -moz-box-flex: 7; }
|
|
|
|
[flex="8"] { -moz-box-flex: 8; }
|
|
|
|
[flex="9"] { -moz-box-flex: 9; }
|
|
|
|
[flex="100"] { -moz-box-flex: 100; }
|
|
|
|
[flex="400"] { -moz-box-flex: 400; }
|
|
|
|
[flex="1000"] { -moz-box-flex: 1000; }
|
2018-04-03 13:57:36 -07:00
|
|
|
[flex="10000"] { -moz-box-flex: 10000; }
|
2018-01-04 10:25:30 -08:00
|
|
|
}
|