/* 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/. */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace html url("http://www.w3.org/1999/xhtml"); @namespace svg url("http://www.w3.org/2000/svg"); :root { --panelui-subview-transition-duration: 150ms; } #main-window:not([chromehidden~="toolbar"]) { %ifdef XP_MACOSX min-width: 335px; %else min-width: 300px; %endif } /* These values are chosen to keep the Loop detached chat window from * getting too small. When it's too small, three bad things happen: * * - It looks terrible * - It's not really usable * - It's possible for the user to be transmitting video that's cropped by the * the edge of the window, so that they're not aware of it, which is a * privacy problem * * Note that if the chat window grows more users than Loop who want this * ability, we'll need to generalize. A partial patch for this is in * bug 1112264. */ #chat-window { /* * In some ideal world, we'd have a simple way to express "block resizing * along any dimension beyond the point at which an overflow event would * occur". But none of -moz-{fit,max,min}-content do what we want here. So.. */ min-width: 260px; min-height: 315px; } #main-window[customize-entered] { min-width: -moz-fit-content; } searchbar { -moz-binding: url("chrome://browser/content/search/search.xml#searchbar"); } /* Prevent shrinking the page content to 0 height and width */ .browserStack > browser { min-height: 25px; min-width: 25px; } .browserStack > browser { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-browser"); } .browserStack > browser[remote="true"] { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-remote-browser"); } toolbar[customizable="true"] { -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar"); } %ifdef XP_MACOSX #toolbar-menubar { -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-menubar-stub"); } toolbar[customizable="true"]:not([nowindowdrag="true"]) { -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag"); } %endif #toolbar-menubar[autohide="true"] { -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-menubar-autohide"); } #addon-bar { -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#addonbar-delegating"); visibility: visible; margin: 0; height: 0 !important; overflow: hidden; padding: 0; border: 0 none; } #addonbar-closebutton { visibility: visible; height: 0 !important; } #status-bar { height: 0 !important; -moz-binding: none; padding: 0; margin: 0; } panelmultiview { -moz-binding: url("chrome://browser/content/customizableui/panelUI.xml#panelmultiview"); } panelview { -moz-binding: url("chrome://browser/content/customizableui/panelUI.xml#panelview"); -moz-box-orient: vertical; } .panel-mainview { transition: transform var(--panelui-subview-transition-duration); } panelview:not([mainview]):not([current]) { transition: visibility 0s linear var(--panelui-subview-transition-duration); visibility: collapse; } tabbrowser { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser"); } .tabbrowser-tabs { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-tabs"); } #tabbrowser-tabs:not([overflow="true"]) ~ #alltabs-button, #tabbrowser-tabs:not([overflow="true"]) + #new-tab-button, #tabbrowser-tabs[overflow="true"] > .tabbrowser-arrowscrollbox > .tabs-newtab-button, #TabsToolbar[currentset]:not([currentset*="tabbrowser-tabs,new-tab-button"]) > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .tabs-newtab-button, #TabsToolbar[customizing="true"] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .tabs-newtab-button { visibility: collapse; } #tabbrowser-tabs:not([overflow="true"])[using-closing-tabs-spacer] ~ #alltabs-button { visibility: hidden; /* temporary space to keep a tab's close button under the cursor */ } .tabbrowser-tab { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-tab"); } .tabbrowser-tab:not([pinned]) { -moz-box-flex: 100; max-width: 210px; min-width: 100px; width: 0; transition: min-width 200ms ease-out, max-width 230ms ease-out; } .tabbrowser-tab:not([pinned]):not([fadein]) { max-width: 0.1px; min-width: 0.1px; visibility: hidden; } .tab-close-button, .tab-background { /* Explicitly set the visibility to override the value (collapsed) * we inherit from #TabsToolbar[collapsed] upon opening a browser window. */ visibility: visible; } .tab-close-button[fadein], .tab-background[fadein] { /* This transition is only wanted for opening tabs. */ transition: visibility 0ms 25ms; } .tab-close-button:not([fadein]), .tab-background:not([fadein]) { visibility: hidden; } .tab-label:not([fadein]), .tab-throbber:not([fadein]), .tab-icon-image:not([fadein]) { display: none; } .tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] { position: fixed !important; display: block; /* position:fixed already does this (bug 579776), but let's be explicit */ } .tabbrowser-tabs[movingtab] > .tabbrowser-tab[selected] { position: relative; z-index: 2; pointer-events: none; /* avoid blocking dragover events on scroll buttons */ } .tabbrowser-tabs[movingtab] > .tabbrowser-tab[fadein]:not([selected]) { transition: transform 200ms ease-out; } #alltabs-popup { -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-alltabs-popup"); } toolbar[printpreview="true"] { -moz-binding: url("chrome://global/content/printPreviewBindings.xml#printpreviewtoolbar"); } toolbar[overflowable] > .customization-target { overflow: hidden; } toolbar:not([overflowing]) > .overflow-button, toolbar[customizing] > .overflow-button { display: none; } %ifdef CAN_DRAW_IN_TITLEBAR #main-window:not([chromemargin]) > #titlebar, #main-window[inFullscreen] > #titlebar, #main-window[inFullscreen] .titlebar-placeholder, #main-window:not([tabsintitlebar]) .titlebar-placeholder { display: none; } #titlebar { -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox"); %ifdef XP_MACOSX -moz-window-dragging: drag; %endif } #titlebar-spacer { pointer-events: none; } #main-window[tabsintitlebar] #titlebar-buttonbox { position: relative; } #titlebar-buttonbox { -moz-appearance: -moz-window-button-box; } %ifdef XP_MACOSX #titlebar-fullscreen-button { -moz-appearance: -moz-mac-fullscreen-button; } /* Because these buttons don't move, they should always be aligned the same, * left and right were deprecated, so we have to do work to get it to mean that: */ #titlebar-buttonbox-container:-moz-locale-dir(ltr) { -moz-box-align: start; } #titlebar-buttonbox-container:-moz-locale-dir(rtl) { -moz-box-align: end; } /* Fullscreen and caption buttons don't move with RTL on OS X so override the automatic ordering. */ #titlebar-secondary-buttonbox:-moz-locale-dir(ltr), #titlebar-buttonbox-container:-moz-locale-dir(rtl), .titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(ltr), .titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(rtl) { -moz-box-ordinal-group: 1000; } #titlebar-secondary-buttonbox:-moz-locale-dir(rtl), #titlebar-buttonbox-container:-moz-locale-dir(ltr), .titlebar-placeholder[type="caption-buttons"]:-moz-locale-dir(ltr), .titlebar-placeholder[type="fullscreen-button"]:-moz-locale-dir(rtl) { -moz-box-ordinal-group: 0; } %else /* On non-OSX, these should be start-aligned */ #titlebar-buttonbox-container { -moz-box-align: start; } %endif %if !defined(MOZ_WIDGET_GTK) && !defined(MOZ_WIDGET_QT) #TabsToolbar > .private-browsing-indicator { -moz-box-ordinal-group: 1000; } %endif %ifdef XP_WIN #main-window[sizemode="maximized"] #titlebar-buttonbox { -moz-appearance: -moz-window-button-box-maximized; } %endif %endif #main-window[inFullscreen][inDOMFullscreen] #navigator-toolbox, #main-window[inFullscreen][inDOMFullscreen] #fullscr-toggler, #main-window[inFullscreen][inDOMFullscreen] #sidebar-box, #main-window[inFullscreen][inDOMFullscreen] #sidebar-splitter, #main-window[inFullscreen]:not([OSXLionFullscreen]) toolbar:not([fullscreentoolbar=true]), #main-window[inFullscreen] #global-notificationbox, #main-window[inFullscreen] #high-priority-global-notificationbox { visibility: collapse; } #navigator-toolbox[fullscreenShouldAnimate] { transition: 1.5s margin-top ease-out; } /* Rules to help integrate SDK widgets */ toolbaritem[sdkstylewidget="true"] > toolbarbutton, toolbarpaletteitem > toolbaritem[sdkstylewidget="true"] > iframe, toolbarpaletteitem > toolbaritem[sdkstylewidget="true"] > .toolbarbutton-text { display: none; } toolbarpaletteitem:-moz-any([place="palette"], [place="panel"]) > toolbaritem[sdkstylewidget="true"] > toolbarbutton { display: -moz-box; } toolbarpaletteitem > toolbaritem[sdkstylewidget="true"][cui-areatype="toolbar"] > .toolbarbutton-text { display: -moz-box; } toolbarpaletteitem[removable="false"] { opacity: 0.5; cursor: default; } #bookmarks-toolbar-placeholder, toolbarpaletteitem > #personal-bookmarks > #PlacesToolbar, #personal-bookmarks[cui-areatype="menu-panel"] > #PlacesToolbar, #personal-bookmarks[cui-areatype="toolbar"][overflowedItem=true] > #PlacesToolbar { display: none; } #PlacesToolbarDropIndicatorHolder { position: absolute; top: 25%; } toolbarpaletteitem > #personal-bookmarks > #bookmarks-toolbar-placeholder, #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder, #personal-bookmarks[cui-areatype="toolbar"][overflowedItem=true] > #bookmarks-toolbar-placeholder { display: -moz-box; } #nav-bar-customization-target > #personal-bookmarks, toolbar:not(#TabsToolbar) > #wrapper-personal-bookmarks, toolbar:not(#TabsToolbar) > #personal-bookmarks { -moz-box-flex: 1; } #zoom-controls[cui-areatype="toolbar"]:not([overflowedItem=true]) > #zoom-reset-button > .toolbarbutton-text { display: -moz-box; } #urlbar-reload-button:not([displaystop]) + #urlbar-stop-button, #urlbar-reload-button[displaystop] { visibility: collapse; } #PanelUI-feeds > .feed-toolbarbutton:-moz-locale-dir(rtl) { direction: rtl; } #panelMenu_bookmarksMenu > .bookmark-item { max-width: none; } #urlbar-container { min-width: 50ch; } #search-container { min-width: 25ch; } /* Apply crisp rendering for favicons at exactly 2dppx resolution */ @media (resolution: 2dppx) { .searchbar-engine-image { image-rendering: -moz-crisp-edges; } } #urlbar, .searchbar-textbox { /* Setting a width and min-width to let the location & search bars maintain a constant width in case they haven't be resized manually. (bug 965772) */ width: 1px; min-width: 1px; } #main-window:-moz-lwtheme { background-repeat: no-repeat; background-position: top right; } %ifdef XP_MACOSX #main-window[inFullscreen="true"] { padding-top: 0; /* override drawintitlebar="true" */ } %endif #browser-bottombox[lwthemefooter="true"] { background-repeat: no-repeat; background-position: bottom left; } .menuitem-tooltip { -moz-binding: url("chrome://browser/content/urlbarBindings.xml#menuitem-tooltip"); } .menuitem-iconic-tooltip, .menuitem-tooltip[type="checkbox"], .menuitem-tooltip[type="radio"] { -moz-binding: url("chrome://browser/content/urlbarBindings.xml#menuitem-iconic-tooltip"); } /* Hide menu elements intended for keyboard access support */ #main-menubar[openedwithkey=false] .show-only-for-keyboard { display: none; } /* ::::: location bar ::::: */ #urlbar { -moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar); } .ac-url-text:-moz-locale-dir(rtl), .ac-title:-moz-locale-dir(rtl) > description { direction: ltr !important; } /* For results that are actions, their description text is shown instead of the URL - this needs to follow the locale's direction, unlike URLs. */ panel:not([noactions]) > richlistbox > richlistitem.overridable-action:-moz-locale-dir(rtl) > .ac-url-box { direction: rtl; } panel[noactions] > richlistbox > richlistitem.overridable-action > .ac-url-box > .ac-url > .ac-action-text, panel[noactions] > richlistbox > richlistitem.overridable-action > .ac-url-box > .ac-action-icon { visibility: collapse; } panel[noactions] > richlistbox > richlistitem.overridable-action > .ac-url-box > .ac-url > .ac-url-text { visibility: visible; } #urlbar:not([actiontype="switchtab"]) > #urlbar-display-box { display: none; } #PopupAutoComplete { -moz-binding: url("chrome://browser/content/urlbarBindings.xml#browser-autocomplete-result-popup"); } #PopupSearchAutoComplete { -moz-binding: url("chrome://browser/content/search/search.xml#browser-search-autocomplete-result-popup"); } /* Overlay a badge on top of the icon of additional open search providers in the search panel. */ .addengine-item > .button-box > .button-icon { -moz-binding: url("chrome://browser/content/search/search.xml#addengine-icon"); display: -moz-stack; } #PopupAutoCompleteRichResult { -moz-binding: url("chrome://browser/content/urlbarBindings.xml#urlbar-rich-result-popup"); } #PopupAutoCompleteRichResult.showSearchSuggestionsNotification { transition: height 100ms; } #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] { visibility: collapse; transition: margin-top 100ms; } #PopupAutoCompleteRichResult.showSearchSuggestionsNotification > hbox[anonid="search-suggestions-notification"] { visibility: visible; } #PopupAutoCompleteRichResult > richlistbox { transition: height 100ms; } #PopupAutoCompleteRichResult.showSearchSuggestionsNotification > richlistbox { transition: none; } #urlbar[pageproxystate="invalid"] > #urlbar-icons > .urlbar-icon, #urlbar[pageproxystate="invalid"][focused="true"] > #urlbar-go-button ~ toolbarbutton, #urlbar[pageproxystate="valid"] > #urlbar-go-button, #urlbar:not([focused="true"]) > #urlbar-go-button { visibility: collapse; } #urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon-labels { visibility: collapse; } #urlbar[pageproxystate="invalid"] > #identity-box { pointer-events: none; } #identity-icon-labels { max-width: 18em; } @media (max-width: 700px) { #urlbar-container { min-width: 45ch; } #identity-icon-labels { max-width: 70px; } } @media (max-width: 600px) { #urlbar-container { min-width: 40ch; } #identity-icon-labels { max-width: 60px; } } @media (max-width: 500px) { #urlbar-container { min-width: 35ch; } #identity-icon-labels { max-width: 50px; } } @media (max-width: 400px) { #urlbar-container { min-width: 28ch; } #identity-icon-labels { max-width: 40px; } } #identity-icon-country-label { direction: ltr; } #identity-box.verifiedIdentity > #identity-icon-labels > #identity-icon-label { -moz-margin-end: 0.25em !important; } #main-window[customizing] :-moz-any(#urlbar, .searchbar-textbox) > .autocomplete-textbox-container > .textbox-input-box { visibility: hidden; } /* ::::: Unified Back-/Forward Button ::::: */ #back-button > .toolbarbutton-menu-dropmarker, #forward-button > .toolbarbutton-menu-dropmarker { display: none; } .unified-nav-current { font-weight: bold; } toolbarbutton.bookmark-item { max-width: 13em; } /* Apply crisp rendering for favicons at exactly 2dppx resolution */ @media (resolution: 2dppx) { #alltabs-popup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon, .menuitem-with-favicon > .menu-iconic-left > .menu-iconic-icon { image-rendering: -moz-crisp-edges; } .bookmark-item > .toolbarbutton-icon, .bookmark-item > .menu-iconic-left > .menu-iconic-icon, #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon { image-rendering: -moz-crisp-edges; } } #editBMPanel_tagsSelector { /* override default listbox width from xul.css */ width: auto; } /* The star doesn't make sense as text */ toolbar[mode="text"] #bookmarks-menu-button > .toolbarbutton-menubutton-button > .toolbarbutton-icon { display: -moz-box !important; } toolbar[mode="text"] #bookmarks-menu-button > .toolbarbutton-menubutton-button > .toolbarbutton-text { display: none; } menupopup[emptyplacesresult="true"] > .hide-if-empty-places-result { display: none; } menuitem.spell-suggestion { font-weight: bold; } /* apply Fitts' law to the notification bar's close button */ window:not([sizemode="normal"]) .notification-inner { -moz-border-end-width: 0 !important; } /* Hide extension toolbars that neglected to set the proper class */ window[chromehidden~="location"][chromehidden~="toolbar"] toolbar:not(.chromeclass-menubar), window[chromehidden~="toolbar"] toolbar:not(#nav-bar):not(#TabsToolbar):not(#print-preview-toolbar):not(.chromeclass-menubar) { display: none; } #navigator-toolbox , #mainPopupSet { min-width: 1px; } %ifdef MOZ_SERVICES_SYNC /* Sync notification UI */ #sync-notifications { -moz-binding: url("chrome://browser/content/sync/notification.xml#notificationbox"); overflow-y: visible !important; } #sync-notifications notification { -moz-binding: url("chrome://browser/content/sync/notification.xml#notification"); } %endif /* History Swipe Animation */ #historySwipeAnimationContainer { overflow: hidden; } #historySwipeAnimationPreviousPage, #historySwipeAnimationCurrentPage, #historySwipeAnimationNextPage { background: none top left no-repeat white; } #historySwipeAnimationPreviousPage { background-image: -moz-element(#historySwipeAnimationPreviousPageSnapshot); } #historySwipeAnimationCurrentPage { background-image: -moz-element(#historySwipeAnimationCurrentPageSnapshot); } #historySwipeAnimationNextPage { background-image: -moz-element(#historySwipeAnimationNextPageSnapshot); } /* Full Screen UI */ #fullscr-toggler { height: 1px; background: black; } #fullscreen-warning { position: fixed; z-index: 2147483647 !important; visibility: visible; transition: transform 300ms ease-in; /* To center the warning box horizontally, we use left: 50% with translateX(-50%). */ top: 0; left: 50%; transform: translate(-50%, -100%); /* We must specify a max-width, otherwise word-wrap:break-word doesn't work in descendant and