1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 @namespace url
("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6 @namespace html url
("http://www.w3.org/1999/xhtml");
9 --panelui-subview-transition-duration: 150ms;
10 --lwt-additional-images: none
;
11 --lwt-background-alignment: right top
;
12 --lwt-background-tiling: no-repeat
;
14 --toolbar-bgcolor: var
(--toolbar-non-lwt-bgcolor
);
15 --toolbar-bgimage: var
(--toolbar-non-lwt-bgimage
);
16 --toolbar-color: var
(--toolbar-non-lwt-textcolor
);
20 --toolbar-bgcolor: rgba
(255,255,255,.4);
21 --toolbar-bgimage: none
;
22 --toolbar-color: var
(--lwt-text-color
, inherit
);
24 background-color: var
(--lwt-accent-color
);
25 color: var
(--lwt-text-color
);
28 :root:-moz-lwtheme
[lwtheme-image
] {
29 background-image: var
(--lwt-header-image
) !important
;
30 background-repeat: no-repeat
;
31 background-position: right top
!important
;
34 :root:-moz-lwtheme:-moz-window-inactive
{
35 background-color: var
(--lwt-accent-color-inactive
, var
(--lwt-accent-color
));
38 /* Set additional backgrounds alignment relative to toolbox */
40 #navigator-toolbox:-moz-lwtheme
{
41 background-image: var
(--lwt-additional-images
);
42 background-position: var
(--lwt-background-alignment
);
43 background-repeat: var
(--lwt-background-tiling
);
46 :root:not
([chromehidden
~="toolbar"]) {
54 :root
[customize-entered
] {
55 min-width: -moz-fit-content
;
59 -moz-binding: url
("chrome://browser/content/search/search.xml#searchbar-textbox");
62 .search-one-offs
[compact
=true
] .search-setting-button
,
63 .search-one-offs:not([compact=true]) .search-setting-button-compact {
67 /* Prevent shrinking the page content to 0 height and width */
68 .browserStack > browser {
73 %ifdef MENUBAR_CAN_AUTOHIDE
74 #toolbar-menubar[autohide
="true"] {
78 #toolbar-menubar[autohide
="true"][inactive
="true"]:not
([customizing
="true"]) {
79 min-height: 0 !important
;
81 -moz-appearance: none
!important
;
93 -moz-box-align: start
;
96 panelmultiview
[transitioning
] {
101 -moz-box-orient: vertical
;
104 panelview:not
([visible
]) {
105 visibility: collapse
;
108 /* Hide the header when a subview is reused as a main view. */
109 panelview
[mainview
] > .panel-header
{
113 .panel-viewcontainer {
117 .panel-viewcontainer[panelopen] {
118 transition-property: height
;
119 transition-timing-function: var
(--animation-easing-function
);
120 transition-duration: var
(--panelui-subview-transition-duration
);
124 .panel-viewcontainer.offscreen {
130 transition: height var
(--panelui-subview-transition-duration
);
134 -moz-binding: url
("chrome://browser/content/tabbrowser.xml#tabbrowser-tabs");
137 @supports -moz-bool-pref
("layout.css.emulate-moz-box-with-flex") {
139 /* Without this, the tabs container width extends beyond the window width */
143 /* Without this, pinned tabs get a bit too tall when the tabstrip overflows. */
149 #tabbrowser-tabs:not
([overflow
="true"]):not
([hashiddentabs
]) ~ #alltabs-button
,
150 #tabbrowser-tabs[hasadjacentnewtabbutton
]:not
([overflow
="true"]) ~ #new-tab-button
,
151 #tabbrowser-tabs[overflow
="true"] > .tabbrowser-arrowscrollbox
> .tabs-newtab-button
,
152 #tabbrowser-tabs:not
([hasadjacentnewtabbutton
]) > .tabbrowser-arrowscrollbox
> .tabs-newtab-button
,
153 #TabsToolbar[customizing
="true"] #tabbrowser-tabs
> .tabbrowser-arrowscrollbox
> .tabs-newtab-button
{
154 visibility: collapse
;
157 #tabbrowser-tabs:not
([overflow
="true"])[using-closing-tabs-spacer
] ~ #alltabs-button
{
158 visibility: hidden
; /* temporary space to keep a tab's close button under the cursor */
162 -moz-binding: url
("chrome://browser/content/tabbrowser.xml#tabbrowser-tab");
165 .tabbrowser-tab:not([pinned]) {
168 min-width: var
(--tab-min-width
);
170 transition: min-width
100ms ease-out
,
171 max-width
100ms ease-out
;
174 :root
[uidensity
=touch
] .tabbrowser-tab:not
([pinned
]) {
175 /* Touch mode needs additional space for the close button. */
176 min-width: calc
(var
(--tab-min-width
) + 10px);
179 @supports -moz-bool-pref
("browser.tabs.newanimations") {
181 .tabbrowser-tab:not([pinned]):not([tabdrop-samewindow]) {
182 transition: transform
100ms ease-in-out
;
185 #tabbrowser-tabs[movingtab
] > .tabbrowser-tab
[selected
] {
189 .tabbrowser-tab:not([pinned]):not([fadein]) {
190 transform: translateY
(var
(--tab-min-height
));
193 } /* end @supports -moz-bool-pref("browser.tabs.newanimations") */
195 @supports not
-moz-bool-pref
("browser.tabs.newanimations") {
197 .tabbrowser-tab:not([pinned]):not([fadein]) {
203 .tab-icon-image
[fadein
],
204 .tab-close-button
[fadein
],
205 .tabbrowser-tab
[fadein
]::after
,
206 .tab-background[fadein] {
207 /* This transition is only wanted for opening tabs. */
208 transition: visibility
0ms 25ms;
211 .tab-icon-pending:not
([fadein
]),
212 .tab-icon-image:not
([fadein
]),
213 .tab-close-button:not
([fadein
]),
214 .tabbrowser-tab:not
([fadein
])::after
,
215 .tab-background:not([fadein]) {
219 .tab-label:not
([fadein
]),
220 .tab-throbber:not([fadein]) {
224 } /* end @supports not -moz-bool-pref("browser.tabs.newanimations") */
227 @supports -moz-bool-pref
("browser.tabs.hideThrobber") {
229 display: none
!important
;
234 #tabbrowser-tabs[positionpinnedtabs
] > .tabbrowser-tab
[pinned
] {
235 position: fixed
!important
;
236 display: block
; /* position:fixed already does this (bug 579776), but let's be explicit */
239 #tabbrowser-tabs[movingtab
] > .tabbrowser-tab
[selected
],
240 #tabbrowser-tabs[movingtab
] > .tabbrowser-tab
[multiselected
] {
243 pointer-events: none
; /* avoid blocking dragover events on scroll buttons */
246 .tabbrowser-tab
[tab-grouping
],
247 .tabbrowser-tab
[tabdrop-samewindow
],
248 #tabbrowser-tabs[movingtab
] > .tabbrowser-tab
[fadein
]:not
([selected
]):not
([multiselected
]) {
249 transition: transform
200ms var
(--animation-easing-function
);
252 .tabbrowser-tab[tab-grouping][multiselected]:not([selected]) {
256 /* Make it easier to drag tabs by expanding the drag area downwards. */
257 #tabbrowser-tabs[movingtab
] {
258 padding-bottom: 15px;
259 margin-bottom: -15px;
262 #navigator-toolbox[movingtab
] > #nav-bar
{
263 pointer-events: none
;
266 /* Allow dropping a tab on buttons with associated drop actions. */
267 #navigator-toolbox[movingtab
] > #nav-bar
> #nav-bar-customization-target
> #personal-bookmarks
,
268 #navigator-toolbox[movingtab
] > #nav-bar
> #nav-bar-customization-target
> #home-button
,
269 #navigator-toolbox[movingtab
] > #nav-bar
> #nav-bar-customization-target
> #downloads-button
,
270 #navigator-toolbox[movingtab
] > #nav-bar
> #nav-bar-customization-target
> #bookmarks-menu-button
{
271 pointer-events: auto
;
274 toolbar
[overflowable
] > .customization-target
{
278 toolbar:not
([overflowing
]) > .overflow-button
,
279 toolbar
[customizing
] > .overflow-button
{
283 window:not
([chromehidden
~="toolbar"]) #nav-bar
[nonemptyoverflow
] > .overflow-button
,
284 #nav-bar[customizing
] > .overflow-button
{
288 /* The ids are ugly, but this should be reasonably performant, and
289 * using a tagname as the last item would be less so.
291 #widget-overflow-list:empty
+ #widget-overflow-fixed-separator
,
292 #widget-overflow:not
([hasfixeditems
]) #widget-overflow-fixed-separator
{
297 %ifdef MENUBAR_CAN_AUTOHIDE
298 :root:not
([chromehidden
~="menubar"]) #
toolbar-menubar:not
([autohide
=true
]) + #TabsToolbar
> .titlebar-buttonbox-container
,
299 :root:not
([chromehidden
~="menubar"]) #
toolbar-menubar:not
([autohide
=true
]) + #TabsToolbar
.titlebar-spacer
,
301 %ifndef MOZ_WIDGET_COCOA
302 %ifndef MOZ_WIDGET_GTK
303 :root:not
([sizemode
=normal
]) .titlebar-spacer
[type
="pre-tabs"],
306 :root:not
([chromemargin
]) .titlebar-buttonbox-container
,
307 :root
[inFullscreen
] .titlebar-buttonbox-container
,
308 :root
[inFullscreen
] .titlebar-spacer
,
309 :root:not
([tabsintitlebar
]) .titlebar-spacer
{
312 %ifdef MOZ_WIDGET_GTK
313 @media (-moz-gtk-csd-reversed-placement: 0) {
314 :root:not
([sizemode
=normal
]) .titlebar-spacer
[type
="pre-tabs"] {
318 @media (-moz-gtk-csd-reversed-placement
) {
319 :root:not
([sizemode
=normal
]) .titlebar-spacer
[type
="post-tabs"] {
325 %ifdef MENUBAR_CAN_AUTOHIDE
326 #toolbar-menubar[autohide
=true
]:not
([inactive
]) + #TabsToolbar
> .titlebar-buttonbox-container
{
332 -moz-window-dragging: drag
;
335 :root
[tabsintitlebar
] .titlebar-buttonbox
{
339 :root:not
([tabsintitlebar
]) .titlebar-buttonbox
{
343 .titlebar-buttonbox {
344 -moz-appearance: -moz-window-button-box
;
348 #personal-bookmarks {
349 -moz-window-dragging: inherit
;
353 -moz-window-dragging: no-drag
;
354 -moz-box-pack: start
;
357 .titlebar-buttonbox-container {
358 -moz-box-ordinal-group: 1000;
362 #titlebar-fullscreen-button {
363 -moz-appearance: -moz-mac-fullscreen-button
;
367 * On macOS, the window caption buttons are on the left side of the window titlebar,
368 * even when using the RTL UI direction. Similarly, the fullscreen button is on the
369 * right side of the window titlebar, even when using the RTL UI direction. These
370 * next rules enforce that ordering.
372 #titlebar-secondary-buttonbox:-moz-locale-dir
(ltr
) {
373 -moz-box-ordinal-group: 1000;
376 #titlebar-secondary-buttonbox:-moz-locale-dir
(rtl
),
377 .titlebar-buttonbox-container:-moz-locale-dir(ltr) {
378 -moz-box-ordinal-group: 0;
382 :root
[inDOMFullscreen
] #navigator-toolbox
,
383 :root
[inDOMFullscreen
] #fullscr-toggler
,
384 :root
[inDOMFullscreen
] #sidebar-box
,
385 :root
[inDOMFullscreen
] #sidebar-splitter
,
386 :root
[inFullscreen
]:not
([OSXLionFullscreen
]) toolbar:not
([fullscreentoolbar
=true
]),
387 :root
[inFullscreen
] .global-notificationbox
{
388 visibility: collapse
;
391 #navigator-toolbox[fullscreenShouldAnimate
] {
392 transition: 0.8s margin-top ease-out
;
395 /* Rules to help integrate WebExtension buttons */
397 .webextension-browser-action > .toolbarbutton-badge-stack > .toolbarbutton-icon {
402 @media not all and
(min-resolution: 1.1dppx) {
403 .webextension-browser-action {
404 list-style-image: var
(--webextension-toolbar-image
, inherit
);
407 toolbar
[brighttext
] .webextension-browser-action
{
408 list-style-image: var
(--webextension-toolbar-image-light
, inherit
);
411 toolbar:not
([brighttext
]) .webextension-browser-action:-moz-lwtheme
{
412 list-style-image: var
(--webextension-toolbar-image-dark
, inherit
);
415 .webextension-browser-action[cui-areatype="menu-panel"] {
416 list-style-image: var
(--webextension-menupanel-image
, inherit
);
419 :root
[lwt-popup-brighttext
] .webextension-browser-action
[cui-areatype
="menu-panel"] {
420 list-style-image: var
(--webextension-menupanel-image-light
, inherit
);
423 :root:not
([lwt-popup-brighttext
]) .webextension-browser-action
[cui-areatype
="menu-panel"]:-moz-lwtheme
{
424 list-style-image: var
(--webextension-menupanel-image-dark
, inherit
);
427 .webextension-menuitem {
428 list-style-image: var
(--webextension-menuitem-image
, inherit
) !important
;
432 @media (min-resolution: 1.1dppx) {
433 .webextension-browser-action {
434 list-style-image: var
(--webextension-toolbar-image-2x
, inherit
);
437 toolbar
[brighttext
] .webextension-browser-action
{
438 list-style-image: var
(--webextension-toolbar-image-2x-light
, inherit
);
441 toolbar:not
([brighttext
]) .webextension-browser-action:-moz-lwtheme
{
442 list-style-image: var
(--webextension-toolbar-image-2x-dark
, inherit
);
445 .webextension-browser-action[cui-areatype="menu-panel"] {
446 list-style-image: var
(--webextension-menupanel-image-2x
, inherit
);
449 :root
[lwt-popup-brighttext
] .webextension-browser-action
[cui-areatype
="menu-panel"] {
450 list-style-image: var
(--webextension-menupanel-image-2x-light
, inherit
);
453 :root:not
([lwt-popup-brighttext
]) .webextension-browser-action
[cui-areatype
="menu-panel"]:-moz-lwtheme
{
454 list-style-image: var
(--webextension-menupanel-image-2x-dark
, inherit
);
457 .webextension-menuitem {
458 list-style-image: var
(--webextension-menuitem-image-2x
, inherit
) !important
;
462 toolbarbutton
.webextension-menuitem
> .toolbarbutton-icon
{
467 toolbarpaletteitem
[removable
="false"] {
472 toolbarpaletteitem
[place
="palette"],
473 toolbarpaletteitem
[place
="menu-panel"],
474 toolbarpaletteitem
[place
="toolbar"] {
475 -moz-user-focus: normal
;
479 #bookmarks-toolbar-placeholder,
480 #bookmarks-toolbar-button,
481 toolbarpaletteitem
> #personal-bookmarks
> #PlacesToolbar
,
482 #personal-bookmarks:-moz-any
([overflowedItem
=true
], [cui-areatype
="menu-panel"]) > #PlacesToolbar
{
486 toolbarpaletteitem
[place
="toolbar"] > #personal-bookmarks
> #bookmarks-toolbar-placeholder
,
487 toolbarpaletteitem
[place
="palette"] > #personal-bookmarks
> #bookmarks-toolbar-button
,
488 #personal-bookmarks:-moz-any
([overflowedItem
=true
], [cui-areatype
="menu-panel"]) > #bookmarks-toolbar-button
{
492 #personal-bookmarks {
496 #PlacesToolbarDropIndicatorHolder {
500 #nav-bar-customization-target > #personal-bookmarks
,
501 toolbar:not
(#TabsToolbar
) > #wrapper-personal-bookmarks
,
502 toolbar:not
(#TabsToolbar
) > #personal-bookmarks
{
506 #zoom-controls[cui-areatype
="toolbar"]:not
([overflowedItem
=true
]) > #zoom-reset-button
> .toolbarbutton-text
{
510 #reload-button:not
([displaystop
]) + #stop-button
,
511 #reload-button[displaystop
] {
515 /* The reload-button is only disabled temporarily when it becomes visible
516 to prevent users from accidentally clicking it. We don't however need
517 to show this disabled state, as the flicker that it generates is short
518 enough to be visible but not long enough to explain anything to users. */
519 #reload-button[disabled
]:not
(:-moz-window-inactive
) > .toolbarbutton-icon
{
520 opacity: 1 !important
;
523 /* Ensure stop-button and reload-button are displayed correctly when in the overflow menu */
524 .widget-overflow-list > #stop-reload-button > .toolbarbutton-1 {
528 #appMenu_historyMenu > .bookmark-item
,
529 #appMenu-library-recentlyClosedTabs > .panel-subview-body
> .bookmark-item
,
530 #appMenu-library-recentlyClosedWindows > .panel-subview-body
> .bookmark-item
,
531 #appMenu-library-recentHighlights > .bookmark-item
,
532 #panelMenu_bookmarksMenu > .bookmark-item
{
537 :root
[inFullscreen
="true"] {
538 padding-top: 0; /* override drawintitlebar="true" */
542 /* Hide menu elements intended for keyboard access support */
543 #main-menubar[openedwithkey
=false
] .show-only-for-keyboard
{
547 /* ::::: location bar & search bar ::::: */
549 /* url bar min-width is defined further down, together with the maximum size
550 * of the identity icon block, for different window sizes.
558 /* Setting a width and min-width to let the location & search bars maintain
559 a constant width in case they haven't be resized manually. (bug 965772) */
564 #urlbar[quantumbar
="false"] {
565 -moz-binding: url
(chrome://browser
/content
/urlbarBindings
.xml#legacy-urlbar
);
568 #urlbar[quantumbar
="true"] {
569 -moz-binding: url
(chrome://browser
/content
/urlbarBindings
.xml#urlbar
);
572 /* Display URLs left-to-right but right aligned in RTL mode. */
573 html|input
.urlbar-input:-moz-locale-dir
(rtl
) {
574 direction: ltr
!important
;
575 text-align: right
!important
;
578 /* Make sure that the location bar's alignment in RTL mode changes according
579 to the input box direction if the user switches the text direction using
580 cmd_switchTextDirection (which applies a dir attribute to the <input>). */
581 html|input
.urlbar-input
[dir
=ltr
]:-moz-locale-dir
(rtl
) {
582 text-align: left
!important
;
586 * Display visual cue that browser is under remote control by Marionette.
587 * This is to help users visually distinguish a user agent session that
588 * is under remote control from those used for normal browsing sessions.
590 * Attribute is controlled by browser.js:/gRemoteControl.
592 :root
[remotecontrol
] #urlbar
{
593 background: repeating-linear-gradient
(
597 rgba
(255,255,255,.3) 25px,
598 rgba
(255,255,255,.3) 50px);
599 background-color: rgba
(255,170,68,.8);
602 :root
[remotecontrol
] #urlbar #identity-box
{
606 /* Show the url scheme in a static box when overflowing to the left */
607 moz-input-box
.urlbar-input-box
{
611 html|input
.urlbar-scheme
{
616 pointer-events: none
;
619 /* Visible if the urlbar is not focused and it overflows at the start.
620 Uses the required-valid trick to check if it contains a value */
621 html|input
.urlbar-scheme
[textoverflow
="start"]:not
([focused
]):valid
{
625 /* Fade out URL on overflow
626 This mask may be overriden when a Contextual Feature Recommendation is shown,
627 see browser/themes/shared/urlbar-searchbar.inc.css for details */
628 html|input
.urlbar-input
[textoverflow
="end"]:not
([focused
]) {
629 mask-image: linear-gradient
(to left
, transparent
, black
3ch);
632 html|input
.urlbar-input
[textoverflow
="start"]:not
([focused
]) {
633 mask-image: linear-gradient
(to right
, transparent var
(--urlbar-scheme-size
), black calc
(var
(--urlbar-scheme-size
) + 3ch));
636 html|input
.urlbar-input
{
637 mask-repeat: no-repeat
;
640 /* Apply crisp rendering for favicons at exactly 2dppx resolution */
641 @media (resolution: 2dppx) {
642 .searchbar-engine-image {
643 image-rendering: -moz-crisp-edges
;
647 /* Always show URLs LTR. */
648 .ac-url-text:-moz-locale-dir
(rtl
),
649 .ac-title-text[lookslikeurl]:-moz-locale-dir(rtl) {
650 direction: ltr
!important
;
653 /* Never show a scrollbar for the Location Bar popup. This overrides the
654 richlistbox inline overflow: auto style.*/
655 #PopupAutoCompleteRichResult > richlistbox
{
656 overflow: hidden
!important
;
659 /* For non-action items, hide the action text; for action items, hide the URL
660 text. Don't show the separator for keyword results. */
661 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-type-icon
,
662 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-site-icon
,
663 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-tags:not
([empty
]),
664 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-separator:not
([type
=keyword
]),
665 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-url:not
([actiontype
]),
666 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-action
[actiontype
],
667 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
[selected
] > .ac-url
[actiontype
=remotetab
],
668 #PopupAutoCompleteRichResult > richlistbox
> richlistitem:hover
> .ac-url
[actiontype
=remotetab
]
673 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
[selected
] > .ac-action
[actiontype
=remotetab
],
674 #PopupAutoCompleteRichResult > richlistbox
> richlistitem:hover
> .ac-action
[actiontype
=remotetab
] {
678 /* Normally we want to show the "Search with Engine" label only on hover or
679 selection, but we also want to show it for "alias offer" results -- that is,
680 non-heuristic search engine results that have an alias and empty query.
681 These results tell the user that they can be used to search. */
682 #PopupAutoCompleteRichResult > richlistbox
> richlistitem:not
([selected
]):not
(:hover
):not
(.aliasOffer
) > .ac-action
[actiontype
=searchengine
],
683 #PopupAutoCompleteRichResult > richlistbox
> richlistitem:not
([selected
]):not
(:hover
):not
(.aliasOffer
) > .ac-separator
[actiontype
=searchengine
] {
687 /* Hide the em-dash separator between the search query description (.ac-title)
688 and the "Search with Foo" description (.ac-url) if the search query is the
689 empty string. Also hide .ac-title itself because it has a margin-inline-end;
690 alternatively we would need to remove that margin in this case. */
691 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
.emptySearchQuery
> .ac-separator
,
692 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
.emptySearchQuery
> .ac-title
{
696 #PopupAutoCompleteRichResult > richlistbox
> richlistitem
> .ac-site-icon
{
697 margin-inline-start: 0;
700 /* For action items in a noactions popup, show the URL text and hide the action
701 text and type icon. */
702 #PopupAutoCompleteRichResult[noactions
] > richlistbox
> richlistitem
.overridable-action
> .ac-url
{
705 #PopupAutoCompleteRichResult[noactions
] > richlistbox
> richlistitem
.overridable-action
> .ac-action
{
708 #PopupAutoCompleteRichResult[noactions
] > richlistbox
> richlistitem
.overridable-action
> .ac-type-icon
{
709 list-style-image: none
;
712 #urlbar[actionoverride
] > #urlbar-display-box
,
713 #urlbar:not
([actiontype
="switchtab"]):not
([actiontype
="extension"]) > #urlbar-display-box
,
714 #urlbar:not
([actiontype
="switchtab"]) > #urlbar-display-box
> #switchtab
,
715 #urlbar:not
([actiontype
="extension"]) > #urlbar-display-box
> #extension
{
719 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="loginsFooter"] {
720 color: var
(--btn-text-color
);
722 border-top: 1px solid rgba
(38,38,38,.15);
723 background-color: #EDEDED;
725 justify-content: center
;
729 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="loginsFooter"]:hover
,
730 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="loginsFooter"][selected
] {
731 background-color: #DCDCDE;
734 #PopupAutoComplete[firstresultstyle
="insecureWarning"] {
738 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="insecureWarning"] {
743 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="insecureWarning"] > .ac-site-icon
{
744 margin-inline-start: 0;
748 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="insecureWarning"] > .ac-title
> .ac-text-overflow-container
> .ac-title-text
{
749 text-overflow: initial
;
750 white-space: initial
;
753 #PopupAutoComplete > richlistbox
> richlistitem
[originaltype
="insecureWarning"] > .ac-title
> label
{
754 margin-inline-start: 0;
757 #PopupAutoCompleteRichResult {
758 -moz-binding: url
("chrome://browser/content/urlbarBindings.xml#urlbar-rich-result-popup");
761 #PopupAutoCompleteRichResult.showSearchSuggestionsNotification
{
762 transition: height
100ms;
765 #PopupAutoCompleteRichResult > deck
[anonid
="search-suggestions-notification"] {
767 transition: margin-top
100ms;
770 #PopupAutoCompleteRichResult.showSearchSuggestionsNotification
> deck
[anonid
="search-suggestions-notification"] {
774 #PopupAutoCompleteRichResult > richlistbox
{
775 transition: height
100ms;
778 #PopupAutoCompleteRichResult.showSearchSuggestionsNotification
> richlistbox
{
782 #urlbar[pageproxystate
=invalid
] > #page-action-buttons
> .urlbar-page-action
,
783 #identity-box.chromeUI
~ #page-action-buttons
> .urlbar-page-action:not
(#star-button-box
),
784 .urlbar-history-dropmarker
[usertyping
],
785 .urlbar-go-button:not
([usertyping
]),
786 .urlbar-go-button:not([parentfocused="true"]) {
790 #nav-bar:not
([keyNav
=true
]) #identity-box
{
791 -moz-user-focus: normal
;
794 /* We leave 49ch plus whatever space the download button will need when it
795 * appears. Normally this should be 16px for the icon, plus 2 * 2px padding
796 * plus the toolbarbutton-inner-padding. We're adding 4px to ensure things
797 * like rounding on hidpi don't accidentally result in the button going
801 min-width: calc
(49ch + 24px + 2 * var
(--toolbarbutton-inner-padding
));
804 #nav-bar[downloadsbuttonshown
] #urlbar-container
{
808 #identity-icon-labels {
811 @media (max-width: 700px) {
813 min-width: calc
(44ch + 24px + 2 * var
(--toolbarbutton-inner-padding
));
815 #nav-bar[downloadsbuttonshown
] #urlbar-container
{
819 #identity-icon-labels {
823 @media (max-width: 600px) {
825 min-width: calc
(39ch + 24px + 2 * var
(--toolbarbutton-inner-padding
));
827 #nav-bar[downloadsbuttonshown
] #urlbar-container
{
830 #identity-icon-labels {
834 @media (max-width: 500px) {
836 min-width: calc
(34ch + 24px + 2 * var
(--toolbarbutton-inner-padding
));
838 #nav-bar[downloadsbuttonshown
] #urlbar-container
{
841 #identity-icon-labels {
845 @media (max-width: 400px) {
847 min-width: calc
(27ch + 24px + 2 * var
(--toolbarbutton-inner-padding
));
849 #nav-bar[downloadsbuttonshown
] #urlbar-container
{
852 #identity-icon-labels {
857 #identity-icon-country-label {
861 #identity-box.verifiedIdentity
> #identity-icon-labels
> #identity-icon-label
{
862 margin-inline-end: 0.25em !important
;
865 /* Flexible spacer sizing (matching url bar) */
866 toolbarpaletteitem
[place
=toolbar
][id^
=wrapper-customizableui-special-spring
],
873 #nav-bar toolbarpaletteitem
[id^
=wrapper-customizableui-special-spring
],
874 #nav-bar toolbarspring
{
878 #widget-overflow-list > toolbarspring
{
882 /* ::::: Unified Back-/Forward Button ::::: */
883 .unified-nav-current {
887 .bookmark-item > label {
888 /* ensure we use the direction of the bookmarks label instead of the
890 unicode-bidi: plaintext
;
893 /* Apply crisp rendering for favicons at exactly 2dppx resolution */
894 @media (resolution: 2dppx) {
895 .menuitem-with-favicon > .menu-iconic-left > .menu-iconic-icon {
896 image-rendering: -moz-crisp-edges
;
899 .bookmark-item
> .toolbarbutton-icon
,
900 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
901 image-rendering: -moz-crisp-edges
;
903 /* Synced Tabs sidebar */
904 html|
*.tabs-container html|
*.item-tabs-list html|
*.item-icon-container
{
905 image-rendering: -moz-crisp-edges
;
909 menupopup
[emptyplacesresult
="true"] > .hide-if-empty-places-result
{
913 /* Hide extension toolbars that neglected to set the proper class */
914 window
[chromehidden
~="location"][chromehidden
~="toolbar"] toolbar:not
(.chromeclass-menubar
),
915 window
[chromehidden
~="toolbar"] toolbar:not
(#nav-bar
):not
(#TabsToolbar
):not
(#print-preview-toolbar
):not
(.chromeclass-menubar
) {
924 /* History Swipe Animation */
926 #historySwipeAnimationContainer {
928 pointer-events: none
;
931 #historySwipeAnimationPreviousArrow {
932 background: url
("chrome://browser/content/history-swipe-arrow.svg")
933 center left
/ 64px 128px no-repeat transparent
;
935 #historySwipeAnimationNextArrow {
936 background: url
("chrome://browser/content/history-swipe-arrow.svg")
937 center left
/ 64px 128px no-repeat transparent
;
938 transform: rotate
(180deg);
948 html|
*.pointerlockfswarning
{
950 z-index: 2147483647 !important
;
952 transition: transform
300ms ease-in
;
953 /* To center the warning box horizontally,
954 we use left: 50% with translateX(-50%). */
956 transform: translate
(-50%, -100%);
957 box-sizing: border-box
;
960 pointer-events: none
;
962 html|
*.pointerlockfswarning:not
([hidden
]) {
964 will-change: transform
;
966 html|
*.pointerlockfswarning
[onscreen
] {
967 transform: translate
(-50%, 50px);
969 html|
*.pointerlockfswarning
[ontop
] {
970 /* Use -10px to hide the border and border-radius on the top */
971 transform: translate
(-50%, -10px);
973 :root
[OSXLionFullscreen
] html|
*.pointerlockfswarning
[ontop
] {
974 transform: translate
(-50%, 80px);
977 html|
*.pointerlockfswarning-domain-text
,
978 html|
*.pointerlockfswarning-generic-text
{
979 word-wrap: break-word
;
980 /* We must specify a min-width, otherwise word-wrap:break-word doesn't work. Bug 630864. */
983 html|
*.pointerlockfswarning-domain-text:not
([hidden
]) + html|
*.pointerlockfswarning-generic-text
{
987 html|
*#fullscreen-exit-button
{
988 pointer-events: auto
;
991 /* notification anchors should only be visible when their associated
993 #nav-bar:not
([keyNav
=true
]) .notification-anchor-icon
{
994 -moz-user-focus: normal
;
997 #blocked-permissions-container > .blocked-permission-icon:not
([showing
]),
998 .notification-anchor-icon:not([showing]) {
1002 #invalid-form-popup > description
{
1007 /* should occupy space but not be visible */
1009 pointer-events: none
;
1010 -moz-stack-sizing: ignore
;
1013 browser
[tabmodalPromptShowing
] {
1014 -moz-user-focus: none
!important
;
1022 max-width: calc
(100% - 5px);
1023 pointer-events: none
;
1026 #statuspanel[mirror
] {
1027 inset-inline-start: auto
;
1028 inset-inline-end: 0;
1031 #statuspanel[sizelimit
] {
1035 #statuspanel[type
=status
] {
1039 @media all and
(max-width: 800px) {
1040 #statuspanel[type
=status
] {
1045 #statuspanel[type
=overLink
] {
1046 transition: opacity
120ms ease-out
;
1049 #statuspanel[type
=overLink
] > #statuspanel-inner
{
1053 #statuspanel[inactive
] {
1058 #statuspanel[inactive
][previoustype
=overLink
] {
1059 transition: opacity
200ms ease-out
;
1062 #statuspanel-inner {
1065 -moz-box-align: end
;
1068 /*** Visibility of downloads indicator controls ***/
1070 /* Bug 924050: If we've loaded the indicator, for now we hide it in the menu panel,
1071 and just show the icon. This is a hack to side-step very weird layout bugs that
1072 seem to be caused by the indicator stack interacting with the menu panel. */
1073 #downloads-button[indicator
]:not
([cui-areatype
="menu-panel"]) > .toolbarbutton-badge-stack
> image
.toolbarbutton-icon
,
1074 #downloads-button[indicator
][cui-areatype
="menu-panel"] > #downloads-indicator-anchor
{
1078 toolbarpaletteitem
[place
="palette"] > #downloads-button
[indicator
] > .toolbarbutton-badge-stack
> image
.toolbarbutton-icon
{
1082 toolbarpaletteitem
[place
="palette"] > #downloads-button
[indicator
] > #downloads-indicator-anchor
{
1086 /* Combobox dropdown renderer */
1087 #ContentSelectDropdown > menupopup
{
1088 /* The menupopup itself should always be rendered LTR to ensure the scrollbar aligns with
1089 * the dropdown arrow on the dropdown widget. If a menuitem is RTL, its style will be set accordingly */
1093 /* Indent options in optgroups */
1094 .contentSelectDropdown-ingroup .menu-iconic-text {
1095 padding-inline-start: 2em;
1098 /* Give this menupopup an arrow panel styling */
1099 #BMB_bookmarksPopup {
1100 -moz-appearance: none
;
1101 -moz-binding: url
("chrome://browser/content/places/menu.xml#places-popup-arrow");
1102 background: transparent
;
1104 /* The popup inherits -moz-image-region from the button, must reset it */
1105 -moz-image-region: auto
;
1108 %ifdef MOZ_WIDGET_COCOA
1110 /* On Mac, use the properties "-moz-window-transform" and "-moz-window-opacity"
1111 instead of "transform" and "opacity" for these animations.
1112 The -moz-window* properties apply to the whole window including the window's
1113 shadow, and they don't affect the window's "shape", so the system doesn't
1114 have to recompute the shadow shape during the animation. This makes them a
1115 lot faster. In fact, Gecko no longer triggers shadow shape recomputations
1117 These properties are not implemented on other platforms. */
1118 #BMB_bookmarksPopup:not
([animate
="false"]) {
1119 -moz-window-opacity: 0;
1120 -moz-window-transform: translateY
(-70px);
1121 transition-property: -moz-window-transform
, -moz-window-opacity
;
1122 transition-duration: 0.18s, 0.18s;
1123 transition-timing-function:
1124 var
(--animation-easing-function
), ease-out
;
1127 #BMB_bookmarksPopup[side
="bottom"]:not
([animate
="false"]) {
1128 -moz-window-transform: translateY
(70px);
1131 #BMB_bookmarksPopup[side
][animate
="open"] {
1132 -moz-window-opacity: 1.0;
1133 transition-duration: 0.18s, 0.18s;
1134 -moz-window-transform: none
;
1135 transition-timing-function:
1136 var
(--animation-easing-function
), ease-in-out
;
1139 #BMB_bookmarksPopup[animate
="cancel"] {
1140 -moz-window-transform: none
;
1143 %elifndef MOZ_WIDGET_GTK
1145 #BMB_bookmarksPopup {
1146 will-change: transform
, opacity
; /* workaround for bug 1414033 */
1149 #BMB_bookmarksPopup:not
([animate
="false"]) {
1151 transform: translateY
(-70px);
1152 transition-property: transform
, opacity
;
1153 transition-duration: 0.18s, 0.18s;
1154 transition-timing-function:
1155 var
(--animation-easing-function
), ease-out
;
1158 #BMB_bookmarksPopup[side
="bottom"]:not
([animate
="false"]) {
1159 transform: translateY
(70px);
1162 #BMB_bookmarksPopup[side
][animate
="open"] {
1164 transition-duration: 0.18s, 0.18s;
1166 transition-timing-function:
1167 var
(--animation-easing-function
), ease-in-out
;
1170 #BMB_bookmarksPopup[animate
="cancel"] {
1175 /* Apply crisp rendering for favicons at exactly 2dppx resolution */
1176 @media (resolution: 2dppx) {
1177 #PanelUI-remotetabs-tabslist > toolbarbutton
> .toolbarbutton-icon
,
1178 #PanelUI-recentlyClosedWindows > toolbarbutton
> .toolbarbutton-icon
,
1179 #PanelUI-recentlyClosedTabs > toolbarbutton
> .toolbarbutton-icon
,
1180 #PanelUI-historyItems > toolbarbutton
> .toolbarbutton-icon
{
1181 image-rendering: -moz-crisp-edges
;
1185 #customization-container {
1186 -moz-box-orient: horizontal
;
1187 flex-direction: column
;
1190 #customization-container:not
([hidden
]) {
1191 /* In a separate rule to avoid 'display:flex' causing the node to be
1192 * displayed while the container is still hidden. */
1196 #customization-content-container {
1198 flex-grow: 1; /* Grow so there isn't empty space below the footer */
1199 min-height: 0; /* Allow this to shrink so the footer doesn't get pushed out. */
1202 #customization-panelHolder {
1204 padding-bottom: 10px;
1207 #customization-panelHolder > #widget-overflow-fixed-list
{
1208 flex: 1 1 auto
; /* Grow within the available space, and allow ourselves to shrink */
1210 flex-direction: column
;
1215 #customization-panelWrapper,
1216 #customization-panelWrapper > .panel-arrowcontent
,
1217 #customization-panelHolder {
1218 flex-direction: column
;
1220 min-height: calc
(174px + 9em);
1223 #customization-panelWrapper {
1225 height: 0; /* Don't let my contents affect ancestors' content-based sizing */
1226 align-items: end
; /* align to the end on the cross-axis (affects arrow) */
1229 #customization-panelWrapper,
1230 #customization-panelWrapper > .panel-arrowcontent
{
1234 #customization-panel-container {
1237 flex-direction: column
;
1241 toolbarpaletteitem
[dragover
] {
1242 border-left-color: transparent
;
1243 border-right-color: transparent
;
1246 #customization-palette-container {
1248 flex-direction: column
;
1252 #customization-palette:not
([hidden
]) {
1259 #customization-footer-spacer,
1260 #customization-spacer {
1264 #customization-footer {
1270 #customization-toolbar-visibility-button > .box-inherit
> .button-menu-dropmarker
{
1274 toolbarpaletteitem
[place
="palette"] {
1275 -moz-box-orient: vertical
;
1278 /* icon (16) + margin (9 + 12) + 3 lines of text: */
1279 height: calc
(39px + 3em);
1281 margin-inline-end: 24px;
1283 display: inline-block
;
1284 vertical-align: top
;
1287 toolbarpaletteitem
[place
="palette"][hidden
] {
1291 toolbarpaletteitem
> toolbarbutton
,
1292 toolbarpaletteitem
> toolbaritem
{
1293 /* Prevent children from getting events */
1294 pointer-events: none
;
1295 -moz-box-pack: center
;
1298 :root
[customizing
=true
] .addon-banner-item
,
1299 :root
[customizing
=true
] .panel-banner-item
{
1305 @keyframes uitour-wobble
{
1307 transform: rotate
(0deg) translateX
(3px) rotate
(0deg);
1310 transform: rotate
(360deg) translateX
(3px) rotate
(-360deg);
1313 transform: rotate
(720deg) translateX
(0px) rotate
(-720deg);
1317 @keyframes uitour-zoom
{
1319 transform: scale
(0.8);
1322 transform: scale
(1.0);
1325 transform: scale
(0.8);
1329 @keyframes uitour-color
{
1331 border-color: #5B9CD9;
1334 border-color: #FF0000;
1337 border-color: #5B9CD9;
1341 #UITourHighlightContainer,
1343 pointer-events: none
;
1346 #UITourHighlight[active
] {
1347 animation-delay: 2s;
1348 animation-fill-mode: forwards
;
1349 animation-iteration-count: infinite
;
1350 animation-timing-function: linear
;
1353 #UITourHighlight[active
="wobble"] {
1354 animation-name: uitour-wobble
;
1355 animation-delay: 0s;
1356 animation-duration: 1.5s;
1357 animation-iteration-count: 1;
1359 #UITourHighlight[active
="zoom"] {
1360 animation-name: uitour-zoom
;
1361 animation-duration: 1s;
1363 #UITourHighlight[active
="color"] {
1364 animation-name: uitour-color
;
1365 animation-duration: 2s;
1368 /* Combined context-menu items */
1369 #context-navigation > .menuitem-iconic
> .menu-iconic-text
,
1370 #context-navigation > .menuitem-iconic
> .menu-accel-container
{
1374 .popup-notification-invalid-input {
1375 box-shadow: 0 0 1.5px 1px red
;
1378 .popup-notification-invalid-input[focused] {
1379 box-shadow: 0 0 2px 2px rgba
(255,0,0,0.4);
1382 .popup-notification-description[popupid=webauthn-prompt-register-direct] {
1383 white-space: pre-line
;
1387 -moz-appearance: none
;
1389 -moz-window-shadow: none
;
1392 /* Page action panel */
1393 #pageAction-panel-sendToDevice-subview-body:not
([state
="notready"]) > .pageAction-sendToDevice-notReady
,
1394 #pageAction-urlbar-sendToDevice-subview-body:not
([state
="notready"]) > .pageAction-sendToDevice-notReady
{
1398 /* Page action buttons */
1399 .pageAction-panel-button > .toolbarbutton-icon {
1400 list-style-image: var
(--pageAction-image-16px
, inherit
);
1402 .urlbar-page-action {
1403 list-style-image: var
(--pageAction-image-16px
, inherit
);
1405 @media (min-resolution: 1.1dppx) {
1406 .pageAction-panel-button > .toolbarbutton-icon {
1407 list-style-image: var
(--pageAction-image-32px
, inherit
);
1409 .urlbar-page-action {
1410 list-style-image: var
(--pageAction-image-32px
, inherit
);
1414 /* Page action context menu */
1415 #pageActionContextMenu > .pageActionContextMenuItem
{
1416 visibility: collapse
;
1418 #pageActionContextMenu[state
=builtInPinned
] > .pageActionContextMenuItem
.builtInPinned
,
1419 #pageActionContextMenu[state
=builtInUnpinned
] > .pageActionContextMenuItem
.builtInUnpinned
,
1420 #pageActionContextMenu[state
=extensionPinned
] > .pageActionContextMenuItem
.extensionPinned
,
1421 #pageActionContextMenu[state
=extensionUnpinned
] > .pageActionContextMenuItem
.extensionUnpinned
{
1422 visibility: visible
;
1425 /* WebExtension Sidebars */
1426 #sidebar-box[sidebarcommand$
="-sidebar-action"] > #sidebar-header
> #sidebar-switcher-target
> #sidebar-icon
{
1427 list-style-image: var
(--webextension-menuitem-image
, inherit
);
1428 -moz-context-properties: fill
;
1434 @media (min-resolution: 1.1dppx) {
1435 #sidebar-box[sidebarcommand$
="-sidebar-action"] > #sidebar-header
> #sidebar-switcher-target
> #sidebar-icon
{
1436 list-style-image: var
(--webextension-menuitem-image-2x
, inherit
);
1440 toolbar
[keyNav
=true
]:not
([collapsed
=true
]):not
([customizing
=true
]) toolbartabstop
{
1441 -moz-user-focus: normal
;
1444 %include theme-vars
.inc
.css