gecko-dev/browser/themes/linux/browser.css

705 строки
16 KiB
CSS
Исходник Обычный вид История

2007-11-07 11:50:18 +03:00
%if 0
2012-05-21 15:12:37 +04: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/. */
2007-11-07 11:50:18 +03:00
%endif
2007-11-07 08:07:40 +03:00
@import url("chrome://global/skin/");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
2007-11-07 08:07:40 +03:00
%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);
}
#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;
}
2007-11-07 11:50:18 +03:00
/* Bookmark menus */
2007-11-07 08:07:40 +03:00
menu.bookmark-item,
menuitem.bookmark-item {
min-width: 0;
max-width: 32em;
2007-11-07 08:07:40 +03:00
}
.bookmark-item:not(.subviewbutton) > .menu-iconic-left {
margin-top: 0;
margin-bottom: 0;
}
2007-11-07 08:07:40 +03:00
.bookmark-item > .menu-iconic-left > .menu-iconic-icon {
padding-inline-start: 0px;
}
2007-11-07 11:50:18 +03:00
/* 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);
2007-11-07 11:50:18 +03:00
}
2007-11-07 08:07:40 +03:00
.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/bookmarked-notification.inc.css
%include ../shared/toolbarbuttons.inc.css
%include ../shared/toolbarbutton-icons.inc.css
%include ../shared/menupanel.inc.css
2007-11-07 11:50:18 +03:00
/* Fullscreen window controls */
2007-11-07 08:07:40 +03:00
#window-controls {
-moz-box-align: start;
margin-inline-start: 10px;
2007-11-07 08:07:40 +03:00
}
#minimize-button {
list-style-image: url("chrome://global/skin/icons/Minimize.gif");
}
#restore-button {
list-style-image: url("chrome://global/skin/icons/Restore.gif");
}
#close-button {
list-style-image: url("chrome://global/skin/icons/Close.gif");
}
2007-11-07 11:50:18 +03:00
/* 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;
}
#urlbar[focused="true"],
.searchbar-textbox[focused="true"] {
border-color: Highlight;
}
/* ::::: 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;
2007-11-07 11:50:18 +03:00
}
%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 */
#editBookmarkPanelStarIcon {
list-style-image: url("chrome://browser/skin/places/starred48.png");
width: 48px;
height: 48px;
}
#editBookmarkPanelTitle {
font-size: 130%;
}
#editBookmarkPanelHeader,
#editBookmarkPanelContent {
margin-bottom: .5em;
}
/* Implements editBookmarkPanel resizing on folderTree un-collapse. */
#editBMPanel_folderTree {
min-width: 27em;
}
2007-11-07 11:50:18 +03:00
/* 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;
}
/* Tabstrip */
%include ../shared/tabs.inc.css
2007-11-07 08:07:40 +03:00
#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");
}
2007-11-07 11:50:18 +03:00
/* 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-label:-moz-locale-dir(ltr):not([mirror]),
.statuspanel-label:-moz-locale-dir(rtl)[mirror] {
border-right-style: solid;
border-top-right-radius: .3em;
margin-right: 1em;
}
.statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
.statuspanel-label:-moz-locale-dir(ltr)[mirror] {
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
.gcli-panel {
padding: 0;
}
.gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
color: hsl(210,11%,16%);
}
/* Error counter */
#developer-toolbar-toolbox-button[error-count]:before {
color: #FDF3DE;
min-width: 16px;
text-shadow: none;
background-image: linear-gradient(#B4211B, #8A1915);
border-radius: 1px;
margin-inline-end: 2px;
}
/* Customization mode */
Bug 858196 - Move all customization code to be under browser/components/customizableui/. r=jaws. --HG-- rename : browser/base/content/customizing.xhtml => browser/components/customizableui/content/aboutCustomizing.xhtml rename : browser/base/content/customize.inc => browser/components/customizableui/content/customizeMode.inc.xul rename : browser/base/content/panelUI.inc => browser/components/customizableui/content/panelUI.inc.xul rename : browser/base/content/panelUI.js => browser/components/customizableui/content/panelUI.js rename : browser/base/content/panelUI.xml => browser/components/customizableui/content/panelUI.xml rename : browser/base/content/panelUIOverlay.js => browser/components/customizableui/content/panelUIOverlay.js rename : browser/base/content/panelUIOverlay.xul => browser/components/customizableui/content/panelUIOverlay.xul rename : browser/base/content/toolbar.xml => browser/components/customizableui/content/toolbar.xml rename : browser/modules/CustomizableUI.jsm => browser/components/customizableui/src/CustomizableUI.jsm rename : browser/modules/CustomizeMode.jsm => browser/components/customizableui/src/CustomizeMode.jsm rename : browser/themes/linux/customization/customization-mode-background.jpg => browser/themes/linux/customizableui/customization-mode-background.jpg rename : browser/themes/linux/panelUIOverlay.css => browser/themes/linux/customizableui/panelUIOverlay.css rename : browser/themes/osx/customization/customization-mode-background.jpg => browser/themes/osx/customizableui/customization-mode-background.jpg rename : browser/themes/osx/panelUIOverlay.css => browser/themes/osx/customizableui/panelUIOverlay.css rename : browser/themes/shared/customization.inc.css => browser/themes/shared/customizableui/customizeMode.inc.css rename : browser/themes/shared/panelUIOverlay.inc.css => browser/themes/shared/customizableui/panelUIOverlay.inc.css rename : browser/themes/windows/customization/customization-mode-background.jpg => browser/themes/windows/customizableui/customization-mode-background.jpg rename : browser/themes/windows/panelUIOverlay.css => browser/themes/windows/customizableui/panelUIOverlay.css
2013-04-15 09:34:52 +04:00
%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;
}
/* Prevent movement in the restore-tabs-button when it's clicked. */
.restore-tabs-button:hover:active:not([disabled="true"]) {
padding: 3px;
}
/* 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][sizemode="normal"] > #titlebar {
-moz-appearance: -moz-window-titlebar;
}
:root[tabsintitlebar][sizemode="maximized"] > #titlebar {
-moz-appearance: -moz-window-titlebar-maximized;
}
/* 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;
}
/* 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;
}
}
}