forked from mirrors/gecko-dev
		
	
		
			
				
	
	
		
			731 lines
		
	
	
	
		
			17 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			731 lines
		
	
	
	
		
			17 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
| %if 0
 | |
| /* 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/. */
 | |
| %endif
 | |
| 
 | |
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 | |
| @namespace html url("http://www.w3.org/1999/xhtml");
 | |
| 
 | |
| %include ../shared/browser.inc.css
 | |
| 
 | |
| :root {
 | |
|   --toolbar-non-lwt-bgcolor: -moz-dialog;
 | |
|   --toolbar-non-lwt-textcolor: -moz-dialogtext;
 | |
|   --toolbar-non-lwt-bgimage: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15));
 | |
|   --toolbar-bgcolor: var(--toolbar-non-lwt-bgcolor);
 | |
|   --toolbar-bgimage: var(--toolbar-non-lwt-bgimage);
 | |
| 
 | |
|   --toolbarbutton-border-radius: 4px;
 | |
|   --toolbarbutton-vertical-text-padding: calc(var(--toolbarbutton-inner-padding) - 1px);
 | |
|   --toolbarbutton-icon-fill-opacity: .85;
 | |
| 
 | |
|   --panel-separator-color: ThreeDShadow;
 | |
|   --arrowpanel-dimmed: hsla(0,0%,80%,.3);
 | |
|   --arrowpanel-dimmed-further: hsla(0,0%,80%,.45);
 | |
|   --arrowpanel-dimmed-even-further: hsla(0,0%,80%,.8);
 | |
| 
 | |
|   --urlbar-separator-color: ThreeDShadow;
 | |
| 
 | |
|   --toolbox-border-bottom-color: ThreeDShadow;
 | |
| }
 | |
| 
 | |
| #navigator-toolbox {
 | |
|   --tabs-border-color: rgba(0,0,0,.3);
 | |
| }
 | |
| 
 | |
| #tabbrowser-tabs {
 | |
|   --tab-line-color: highlight;
 | |
| }
 | |
| 
 | |
| :root:-moz-lwtheme {
 | |
|   --toolbar-bgcolor: rgba(255,255,255,.4);
 | |
|   --toolbar-bgimage: none;
 | |
| 
 | |
|   --toolbox-border-bottom-color: rgba(0,0,0,.3);
 | |
| 
 | |
|   --panel-separator-color: hsla(210,4%,10%,.14);
 | |
| }
 | |
| 
 | |
| :root[lwt-popup-brighttext] {
 | |
|   --panel-separator-color: rgba(249,249,250,.1);
 | |
| 
 | |
|   --arrowpanel-dimmed: rgba(249,249,250,.1);
 | |
|   --arrowpanel-dimmed-further: rgba(249,249,250,.15);
 | |
|   --arrowpanel-dimmed-even-further: rgba(249,249,250,.2);
 | |
| }
 | |
| 
 | |
| #menubar-items {
 | |
|   -moz-box-orient: vertical; /* for flex hack */
 | |
| }
 | |
| 
 | |
| #main-menubar {
 | |
|   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
 | |
| }
 | |
| 
 | |
| #navigator-toolbox {
 | |
|   -moz-appearance: none;
 | |
|   background-color: transparent;
 | |
|   border-top: none;
 | |
| }
 | |
| 
 | |
| #navigator-toolbox > toolbar {
 | |
|   padding: 0;
 | |
| }
 | |
| 
 | |
| #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) {
 | |
|   background-color: var(--toolbar-bgcolor);
 | |
|   background-image: var(--toolbar-bgimage);
 | |
|   color: var(--toolbar-color, inherit);
 | |
|   -moz-appearance: none;
 | |
|   border-style: none;
 | |
| }
 | |
| 
 | |
| #TabsToolbar:not([collapsed="true"]) + #nav-bar {
 | |
|   box-shadow: 0 -@navbarTabsShadowSize@ 0 var(--tabs-border-color);
 | |
|   /* This is needed for some toolbar button animations. Gross :( */
 | |
|   position: relative;
 | |
| }
 | |
| 
 | |
| #browser-bottombox {
 | |
|   /* opaque for layers optimization */
 | |
|   background-color: -moz-Dialog;
 | |
| }
 | |
| 
 | |
| /* Bookmark menus */
 | |
| menu.bookmark-item,
 | |
| menuitem.bookmark-item {
 | |
|   min-width: 0;
 | |
|   max-width: 32em;
 | |
| }
 | |
| 
 | |
| .bookmark-item:not(.subviewbutton) > .menu-iconic-left {
 | |
|   margin-top: 0;
 | |
|   margin-bottom: 0;
 | |
| }
 | |
| 
 | |
| .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
 | |
|   padding-inline-start: 0px;
 | |
| }
 | |
| 
 | |
| /* Bookmark drag and drop styles */
 | |
| .bookmark-item[dragover-into="true"] {
 | |
|   background: Highlight !important;
 | |
|   color: HighlightText !important;
 | |
| }
 | |
| 
 | |
| /* rules for menupopup drop indicators */
 | |
| .menupopup-drop-indicator-bar {
 | |
|   position: relative;
 | |
|   /* these two margins must together compensate the indicator's height */
 | |
|   margin-top: -1px;
 | |
|   margin-bottom: -1px;
 | |
| }
 | |
| 
 | |
| .menupopup-drop-indicator {
 | |
|   list-style-image: none;
 | |
|   height: 2px;
 | |
|   margin-inline-end: -4em;
 | |
|   background-color: Highlight;
 | |
| }
 | |
| 
 | |
| /* Bookmarks toolbar */
 | |
| #PlacesToolbarDropIndicator {
 | |
|   list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png);
 | |
| }
 | |
| 
 | |
| .bookmark-item[cutting] > .toolbarbutton-icon,
 | |
| .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
 | |
|   opacity: 0.5;
 | |
| }
 | |
| 
 | |
| .bookmark-item[cutting] > .toolbarbutton-text,
 | |
| .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
 | |
|   opacity: 0.7;
 | |
| }
 | |
| 
 | |
| %include ../shared/toolbarbuttons.inc.css
 | |
| %include ../shared/toolbarbutton-icons.inc.css
 | |
| %include ../shared/menupanel.inc.css
 | |
| 
 | |
| /* Fullscreen window controls */
 | |
| 
 | |
| #minimize-button,
 | |
| #restore-button,
 | |
| #close-button {
 | |
|   -moz-appearance: none;
 | |
|   padding: 6px 12px;
 | |
|   -moz-context-properties: stroke;
 | |
|   stroke: currentColor;
 | |
|   color: inherit;
 | |
| }
 | |
| 
 | |
| #minimize-button {
 | |
|   list-style-image: url(chrome://browser/skin/window-controls/minimize.svg);
 | |
| }
 | |
| 
 | |
| #restore-button {
 | |
|   list-style-image: url(chrome://browser/skin/window-controls/restore.svg);
 | |
| }
 | |
| 
 | |
| #minimize-button:hover,
 | |
| #restore-button:hover {
 | |
|   background-color: hsla(0,0%,0%,.12);
 | |
| }
 | |
| 
 | |
| #minimize-button:hover:active,
 | |
| #restore-button:hover:active {
 | |
|   background-color: hsla(0,0%,0%,.22);
 | |
| }
 | |
| 
 | |
| #TabsToolbar[brighttext] > #window-controls > #minimize-button:hover,
 | |
| #TabsToolbar[brighttext] > #window-controls > #restore-button:hover {
 | |
|   background-color: hsla(0,0%,100%,.12);
 | |
| }
 | |
| 
 | |
| #TabsToolbar[brighttext] > #window-controls > #minimize-button:hover:active,
 | |
| #TabsToolbar[brighttext] > #window-controls > #restore-button:hover:active {
 | |
|   background-color: hsla(0,0%,100%,.22);
 | |
| }
 | |
| 
 | |
| #close-button {
 | |
|   list-style-image: url(chrome://browser/skin/window-controls/close.svg);
 | |
| }
 | |
| 
 | |
| #close-button:hover {
 | |
|   background-color: #d70022;
 | |
|   stroke: white;
 | |
| }
 | |
| 
 | |
| #close-button:hover:active {
 | |
|   background-color: #ff0039;
 | |
| }
 | |
| 
 | |
| /* Location bar */
 | |
| 
 | |
| %include ../shared/urlbar-searchbar.inc.css
 | |
| 
 | |
| #urlbar:not(:-moz-lwtheme):not([focused="true"]),
 | |
| .searchbar-textbox:not(:-moz-lwtheme):not([focused="true"]) {
 | |
|   border-color: ThreeDShadow;
 | |
| }
 | |
| 
 | |
| /* ::::: URL Bar Zoom Reset Button ::::: */
 | |
| @keyframes urlbar-zoom-reset-pulse {
 | |
|   0% {
 | |
|     transform: scale(0);
 | |
|   }
 | |
|   75% {
 | |
|     transform: scale(1.5);
 | |
|   }
 | |
|   100% {
 | |
|     transform: scale(1.0);
 | |
|   }
 | |
| }
 | |
| 
 | |
| #urlbar-zoom-button {
 | |
|   -moz-appearance: none;
 | |
|   color: inherit;
 | |
| }
 | |
| 
 | |
| #urlbar-search-footer {
 | |
|   border-top: 1px solid var(--panel-separator-color);
 | |
|   background-color: var(--arrowpanel-dimmed);
 | |
| }
 | |
| 
 | |
| #urlbar-search-settings {
 | |
|   -moz-appearance: none;
 | |
|   -moz-user-focus: ignore;
 | |
|   color: GrayText;
 | |
|   margin: 0;
 | |
|   border: 0;
 | |
|   padding: 8px 20px;
 | |
|   background: transparent;
 | |
| }
 | |
| 
 | |
| #urlbar-search-settings:hover {
 | |
|   background-color: var(--arrowpanel-dimmed);
 | |
| }
 | |
| 
 | |
| #urlbar-search-settings:hover:active {
 | |
|   background-color: var(--arrowpanel-dimmed-further);
 | |
| }
 | |
| 
 | |
| #urlbar-display-box {
 | |
|   margin-top: -1px;
 | |
|   margin-bottom: -1px;
 | |
| }
 | |
| 
 | |
| .urlbar-display {
 | |
|   margin-top: 0;
 | |
|   margin-bottom: 0;
 | |
|   margin-inline-start: 0;
 | |
|   color: GrayText;
 | |
| }
 | |
| 
 | |
| %include ../shared/urlbarSearchSuggestionsNotification.inc.css
 | |
| 
 | |
| #search-container {
 | |
|   min-width: calc(54px + 11ch);
 | |
| }
 | |
| 
 | |
| /* identity box */
 | |
| 
 | |
| #identity-box:not(:active):-moz-focusring {
 | |
|   outline: 1px dotted;
 | |
|   outline-offset: -3px;
 | |
| }
 | |
| 
 | |
| %include ../shared/identity-block/identity-block.inc.css
 | |
| 
 | |
| %include ../shared/notification-icons.inc.css
 | |
| 
 | |
| .popup-notification-body[popupid="addon-progress"],
 | |
| .popup-notification-body[popupid="addon-install-confirmation"] {
 | |
|   width: 28em;
 | |
|   max-width: 28em;
 | |
| }
 | |
| 
 | |
| .addon-install-confirmation-name {
 | |
|   font-weight: bold;
 | |
| }
 | |
| 
 | |
| html|*.addon-webext-perm-list {
 | |
|   margin-block-end: 0;
 | |
|   padding-inline-start: 10px;
 | |
| }
 | |
| 
 | |
| .addon-webext-perm-text {
 | |
|   margin-inline-start: 0;
 | |
| }
 | |
| 
 | |
| .popup-notification-description[popupid="addon-webext-permissions"],
 | |
| .popup-notification-description[popupid="addon-webext-permissions-notification"] {
 | |
|   margin-inline-start: -1px;
 | |
| }
 | |
| 
 | |
| .addon-webext-perm-notification-content,
 | |
| .addon-installed-notification-content {
 | |
|   margin-top: 0;
 | |
| }
 | |
| 
 | |
| .addon-webext-name {
 | |
|   display: inline;
 | |
|   font-weight: bold;
 | |
|   margin: 0;
 | |
| }
 | |
| 
 | |
| .addon-addon-icon,
 | |
| .addon-toolbar-icon {
 | |
|   width: 14px;
 | |
|   height: 14px;
 | |
|   vertical-align: bottom;
 | |
|   margin-bottom: 1px;
 | |
|   -moz-context-properties: fill;
 | |
|   fill: currentColor;
 | |
| }
 | |
| 
 | |
| .addon-addon-icon {
 | |
|   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.svg");
 | |
| }
 | |
| 
 | |
| .addon-toolbar-icon {
 | |
|   list-style-image: url("chrome://browser/skin/menu.svg");
 | |
| }
 | |
| 
 | |
| /* Notification icon box */
 | |
| 
 | |
| .notification-anchor-icon:-moz-focusring {
 | |
|   outline: 1px dotted -moz-DialogText;
 | |
| }
 | |
| 
 | |
| /* Translation infobar */
 | |
| 
 | |
| %include ../shared/translation/infobar.inc.css
 | |
| 
 | |
| notification[value="translation"] {
 | |
|   min-height: 40px;
 | |
| }
 | |
| 
 | |
| notification[value="translation"],
 | |
| notification[value="translation"] button,
 | |
| notification[value="translation"] menulist {
 | |
|   min-height: 30px;
 | |
|   color: #5A5959;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] {
 | |
|   background-color: #F2F1F0;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button,
 | |
| notification[value="translation"] menulist {
 | |
|   padding-inline-end: 1ch;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] menulist {
 | |
|   border: 1px solid #C1C1C1;
 | |
|   background-color: #FFF;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button {
 | |
|   border: 1px solid #C1C1C1;
 | |
|   background-color: #F2F1F0;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button,
 | |
| notification[value="translation"] menulist,
 | |
| notification[value="translation"] menulist > .menulist-label-box {
 | |
|   margin-inline-start: 1ch;
 | |
|   margin-inline-end: 1ch;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button:hover,
 | |
| notification[value="translation"] button:active,
 | |
| notification[value="translation"] menulist:hover,
 | |
| notification[value="translation"] menulist:active {
 | |
|   background-color: #E2E1E0;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button[anonid="translate"] {
 | |
|   color: #FFF;
 | |
|   background-image: linear-gradient(#9FB938, #8DA726);
 | |
|   box-shadow: none;
 | |
|   border: 1px solid #829C1C;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button[anonid="translate"]:hover,
 | |
| notification[value="translation"] button[anonid="translate"]:active {
 | |
|   background-image: linear-gradient(#8DA726, #8DA726);
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button > .button-box,
 | |
| notification[value="translation"] button[type="menu"] > .button-box > .button-menu-dropmarker {
 | |
|   padding: 0;
 | |
|   margin-inline-start: 3ch;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] button:not([type="menu"]) > .button-box {
 | |
|   margin-inline-end: 3ch;
 | |
| }
 | |
| 
 | |
| notification[value="translation"] menulist > .menulist-dropmarker {
 | |
|   display: block;
 | |
| }
 | |
| 
 | |
| /* AutoComplete */
 | |
| 
 | |
| %include ../shared/autocomplete.inc.css
 | |
| %include ../shared/urlbar-autocomplete.inc.css
 | |
| 
 | |
| :root {
 | |
|   --urlbar-popup-url-color: -moz-nativehyperlinktext;
 | |
|   --urlbar-popup-action-color: -moz-nativehyperlinktext;
 | |
| }
 | |
| 
 | |
| #PopupAutoComplete > richlistbox > richlistitem[originaltype~="datalist-first"] {
 | |
|   border-top: 1px solid ThreeDShadow;
 | |
| }
 | |
| 
 | |
| .ac-title {
 | |
|   font-size: 1.05em;
 | |
| }
 | |
| 
 | |
| .ac-separator,
 | |
| .ac-url,
 | |
| .ac-action,
 | |
| .ac-tags {
 | |
|   font-size: 0.9em;
 | |
| }
 | |
| 
 | |
| /* Bookmarking panel */
 | |
| 
 | |
| %include ../shared/places/editBookmarkPanel.inc.css
 | |
| 
 | |
| /* Content area */
 | |
| 
 | |
| %include ../shared/sidebar.inc.css
 | |
| 
 | |
| #sidebar-box {
 | |
|   background-color: -moz-Field;
 | |
|   color: -moz-FieldText;
 | |
| }
 | |
| 
 | |
| #sidebar-header {
 | |
|   border-bottom: 1px solid ThreeDShadow;
 | |
| }
 | |
| 
 | |
| .sidebar-splitter {
 | |
|   -moz-appearance: none;
 | |
|   width: 6px;
 | |
|   background-color: -moz-dialog;
 | |
|   border: 1px ThreeDShadow;
 | |
|   border-style: none solid;
 | |
| }
 | |
| 
 | |
| .browserContainer > findbar {
 | |
|   background-color: -moz-dialog;
 | |
|   color: -moz-DialogText;
 | |
|   text-shadow: none;
 | |
| }
 | |
| 
 | |
| .browserContainer > findbar:-moz-lwtheme {
 | |
|   background-color: var(--toolbar-bgcolor);
 | |
|   color: var(--toolbar-color, -moz-DialogText);
 | |
| }
 | |
| 
 | |
| /* Tabstrip */
 | |
| 
 | |
| %include ../shared/tabs.inc.css
 | |
| 
 | |
| #tabbrowser-tabs {
 | |
|   /* override the global style to allow the selected tab to be above the nav-bar */
 | |
|   z-index: auto;
 | |
| }
 | |
| 
 | |
| #TabsToolbar {
 | |
|   min-height: 0;
 | |
| }
 | |
| 
 | |
| #TabsToolbar:not(:-moz-lwtheme) {
 | |
|   -moz-appearance: menubar;
 | |
|   color: -moz-menubartext;
 | |
| }
 | |
| 
 | |
| #nav-bar {
 | |
|   -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag");
 | |
| }
 | |
| 
 | |
| @media (-moz-menubar-drag) {
 | |
|   #toolbar-menubar:not([autohide="true"]),
 | |
|   #TabsToolbar {
 | |
|     -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag");
 | |
|   }
 | |
| }
 | |
| 
 | |
| .tabbrowser-tab:focus > .tab-stack > .tab-content {
 | |
|   outline: 1px dotted;
 | |
|   outline-offset: -6px;
 | |
| }
 | |
| 
 | |
| #context_reloadTab {
 | |
|   list-style-image: url("moz-icon://stock/gtk-refresh?size=menu");
 | |
| }
 | |
| 
 | |
| #context_closeOtherTabs {
 | |
|   list-style-image: url("moz-icon://stock/gtk-clear?size=menu");
 | |
| }
 | |
| 
 | |
| #context_closeOtherTabs[disabled] {
 | |
|   list-style-image: url("moz-icon://stock/gtk-clear?size=menu&state=disabled");
 | |
| }
 | |
| 
 | |
| #context_undoCloseTab {
 | |
|   list-style-image: url("moz-icon://stock/gtk-undelete?size=menu");
 | |
| }
 | |
| 
 | |
| #context_closeTab {
 | |
|   list-style-image: url("moz-icon://stock/gtk-close?size=menu");
 | |
| }
 | |
| 
 | |
| /* Tab drag and drop */
 | |
| .tab-drop-indicator {
 | |
|   list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png);
 | |
|   margin-bottom: -9px;
 | |
|   z-index: 3;
 | |
| }
 | |
| 
 | |
| /* Tab bar scroll arrows */
 | |
| 
 | |
| .tabbrowser-arrowscrollbox > .scrollbutton-up > .toolbarbutton-icon,
 | |
| .tabbrowser-arrowscrollbox > .scrollbutton-down > .toolbarbutton-icon {
 | |
|   -moz-appearance: none;
 | |
| }
 | |
| 
 | |
| /* All tabs menupopup */
 | |
| 
 | |
| .alltabs-item[selected="true"] {
 | |
|   font-weight: bold;
 | |
| }
 | |
| 
 | |
| /* Status panel */
 | |
| 
 | |
| #statuspanel-label {
 | |
|   margin: 0;
 | |
|   padding: 2px 4px;
 | |
|   background-color: -moz-dialog;
 | |
|   border: 1px none ThreeDShadow;
 | |
|   border-top-style: solid;
 | |
|   color: -moz-dialogText;
 | |
|   text-shadow: none;
 | |
| }
 | |
| 
 | |
| #statuspanel:not([mirror]) > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(ltr),
 | |
| #statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(rtl) {
 | |
|   border-right-style: solid;
 | |
|   border-top-right-radius: .3em;
 | |
|   margin-right: 1em;
 | |
| }
 | |
| 
 | |
| #statuspanel:not([mirror]) > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(rtl),
 | |
| #statuspanel[mirror] > #statuspanel-inner > #statuspanel-label:-moz-locale-dir(ltr) {
 | |
|   border-left-style: solid;
 | |
|   border-top-left-radius: .3em;
 | |
|   margin-left: 1em;
 | |
| }
 | |
| 
 | |
| %include ../shared/fullscreen/warning.inc.css
 | |
| %include ../shared/ctrlTab.inc.css
 | |
| %include ../shared/plugin-doorhanger.inc.css
 | |
| 
 | |
| /* Customization mode */
 | |
| 
 | |
| %include ../shared/customizableui/customizeMode.inc.css
 | |
| 
 | |
| /* End customization mode */
 | |
| 
 | |
| %include ../shared/UITour.inc.css
 | |
| 
 | |
| #UITourHighlight {
 | |
|   /* Below are some fixes for people without an X compositor on Linux.
 | |
|      This is why we can't have nice things: */
 | |
|   /* Animations don't repaint properly without an X compositor. */
 | |
|   animation-name: none !important;
 | |
|   /* Opacity rounds to 0 or 1 on Linux without an X compositor, making the
 | |
|      background color not visible. Anti-aliasing is not available either. Make a
 | |
|      thicker outline and cancel border-radius for that case. */
 | |
|      outline: 4px solid rgb(0,200,215);
 | |
|      border-radius: 0 !important;
 | |
| }
 | |
| 
 | |
| #UITourTooltipDescription {
 | |
|   font-size: 1.05rem;
 | |
| }
 | |
| 
 | |
| #UITourTooltipClose {
 | |
|   margin-inline-end: -4px;
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * Override the --arrowpanel-padding so the background extends
 | |
|  * to the sides and bottom of the panel.
 | |
|  */
 | |
| #UITourTooltipButtons {
 | |
|   margin-left: -10px;
 | |
|   margin-bottom: -10px;
 | |
| }
 | |
| 
 | |
| %include ../shared/contextmenu.inc.css
 | |
| 
 | |
| #context-navigation > .menuitem-iconic > .menu-iconic-left {
 | |
|   /* override toolkit/themes/linux/global/menu.css */
 | |
|   padding-inline-end: 0 !important;
 | |
|   margin-inline-end: 0 !important;
 | |
| }
 | |
| 
 | |
| .browser-extension-panel > .panel-arrowcontainer > .panel-arrowcontent {
 | |
|   padding: 0;
 | |
|   overflow: hidden;
 | |
| }
 | |
| 
 | |
| .webextension-popup-browser,
 | |
| .webextension-popup-stack {
 | |
|   border-radius: inherit;
 | |
| }
 | |
| 
 | |
| /* Hide the titlebar explicitly on versions of GTK+ where
 | |
|  * it's rendered by window manager. */
 | |
| @media (-moz-gtk-csd-available: 0) {
 | |
|   #titlebar {
 | |
|     display: none;
 | |
|   }
 | |
| }
 | |
| 
 | |
| /* We draw to titlebar when Gkt+ CSD is available */
 | |
| @media (-moz-gtk-csd-available) {
 | |
|   :root[tabsintitlebar] > #titlebar:-moz-lwtheme {
 | |
|     visibility: hidden;
 | |
|   }
 | |
|   :root[tabsintitlebar] #titlebar-content:-moz-lwtheme {
 | |
|     visibility: visible;
 | |
|   }
 | |
| 
 | |
|   :root[tabsintitlebar] > #titlebar {
 | |
|     -moz-appearance: -moz-window-titlebar-maximized;
 | |
|   }
 | |
|   :root[tabsintitlebar][sizemode="normal"] > #titlebar {
 | |
|     -moz-appearance: -moz-window-titlebar;
 | |
|   }
 | |
| 
 | |
|   /* Add extra space to titlebar for dragging */
 | |
|   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar,
 | |
|   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar {
 | |
|     padding-top: var(--space-above-tabbar);
 | |
|   }
 | |
| 
 | |
|   /* Private browsing and accessibility indicators */
 | |
|   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .private-browsing-indicator,
 | |
|   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .accessibility-indicator,
 | |
|   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .private-browsing-indicator,
 | |
|   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .accessibility-indicator {
 | |
|     padding-top: calc(-1 * var(--space-above-tabbar));
 | |
|   }
 | |
| 
 | |
|   /* Make #TabsToolbar transparent as we style underlying #titlebar with
 | |
|    * -moz-window-titlebar (Gtk+ theme).
 | |
|    */
 | |
|   :root[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #TabsToolbar,
 | |
|   :root[tabsintitlebar][sizemode="maximized"] #TabsToolbar,
 | |
|   :root[tabsintitlebar] #toolbar-menubar {
 | |
|     -moz-appearance: none;
 | |
|   }
 | |
| 
 | |
|   /* The button box must appear on top of the navigator-toolbox in order for
 | |
|    * click and hover mouse events to work properly for the button in the restored
 | |
|    * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
 | |
|    * can swallow those events.
 | |
|    */
 | |
|   #titlebar-buttonbox {
 | |
|     z-index: 1;
 | |
|     -moz-box-align: center;
 | |
|   }
 | |
| 
 | |
|   /* Render titlebar command buttons according to system config.
 | |
|    * Use full scale icons here as the Gtk+ does.
 | |
|    */
 | |
|   @media (-moz-gtk-csd-minimize-button) {
 | |
|     #titlebar-min {
 | |
|       -moz-appearance: -moz-window-button-minimize;
 | |
|     }
 | |
|   }
 | |
|   @media (-moz-gtk-csd-minimize-button: 0) {
 | |
|     #titlebar-min {
 | |
|       display: none;
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   @media (-moz-gtk-csd-maximize-button) {
 | |
|     #titlebar-max {
 | |
|       -moz-appearance: -moz-window-button-maximize;
 | |
|     }
 | |
|     :root[sizemode="maximized"] #titlebar-max {
 | |
|       -moz-appearance: -moz-window-button-restore;
 | |
|     }
 | |
|   }
 | |
|   @media (-moz-gtk-csd-maximize-button: 0) {
 | |
|     #titlebar-max {
 | |
|       display: none;
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   @media (-moz-gtk-csd-close-button) {
 | |
|     #titlebar-close {
 | |
|       -moz-appearance: -moz-window-button-close;
 | |
|     }
 | |
|   }
 | |
|   @media (-moz-gtk-csd-close-button: 0) {
 | |
|     #titlebar-close {
 | |
|       display: none;
 | |
|     }
 | |
|   }
 | |
| }
 | 
