2013-03-08 02:57:00 -08:00
|
|
|
%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
|
|
|
|
|
2015-01-09 11:42:00 -08:00
|
|
|
:root {
|
|
|
|
--tab-toolbar-navbar-overlap: 1px;
|
2015-08-09 02:13:27 -07:00
|
|
|
--navbar-tab-toolbar-highlight-overlap: 1px;
|
2015-01-09 11:42:00 -08:00
|
|
|
--tab-min-height: 31px;
|
|
|
|
}
|
2015-06-26 04:39:00 -07:00
|
|
|
#TabsToolbar {
|
2015-08-08 07:57:55 -07:00
|
|
|
--tab-stroke-background-size: auto 100%;
|
2015-06-26 04:39:00 -07:00
|
|
|
}
|
2015-01-09 11:42:00 -08:00
|
|
|
|
2015-01-28 08:50:00 -08:00
|
|
|
%define tabCurveWidth 30px
|
|
|
|
%define tabCurveHalfWidth 15px
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
/* image preloading hack */
|
2014-02-25 23:07:03 -08:00
|
|
|
#tabbrowser-tabs::before {
|
2013-05-31 14:47:11 -07:00
|
|
|
/* Because of bug 853415, we need to ordinal this to the first position: */
|
|
|
|
-moz-box-ordinal-group: 0;
|
2013-03-08 02:57:00 -08:00
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
background-image:
|
|
|
|
url(chrome://browser/skin/tabbrowser/tab-background-end.png),
|
|
|
|
url(chrome://browser/skin/tabbrowser/tab-background-middle.png),
|
|
|
|
url(chrome://browser/skin/tabbrowser/tab-background-start.png);
|
|
|
|
}
|
|
|
|
|
2014-03-03 09:18:54 -08:00
|
|
|
#tabbrowser-tabs {
|
2015-01-09 11:42:00 -08:00
|
|
|
min-height: var(--tab-min-height);
|
2014-03-03 09:18:54 -08:00
|
|
|
}
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
.tabbrowser-tab,
|
|
|
|
.tabs-newtab-button {
|
|
|
|
-moz-appearance: none;
|
|
|
|
background-color: transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
border-width: 0;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2013-04-25 04:30:33 -07:00
|
|
|
.tabbrowser-tab {
|
|
|
|
-moz-box-align: stretch;
|
|
|
|
}
|
|
|
|
|
2013-05-16 13:32:15 -07:00
|
|
|
/* The selected tab should appear above adjacent tabs, .tabs-newtab-button and the highlight of #nav-bar */
|
2015-03-16 11:30:41 -07:00
|
|
|
.tabbrowser-tab[visuallyselected=true] {
|
2013-03-08 02:57:00 -08:00
|
|
|
position: relative;
|
2013-05-16 13:32:15 -07:00
|
|
|
z-index: 2;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-middle {
|
|
|
|
-moz-box-flex: 1;
|
|
|
|
background-clip: padding-box;
|
2015-01-28 08:50:00 -08:00
|
|
|
border-left: @tabCurveHalfWidth@ solid transparent;
|
|
|
|
border-right: @tabCurveHalfWidth@ solid transparent;
|
|
|
|
margin: 0 -@tabCurveHalfWidth@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
2013-05-02 09:05:50 -07:00
|
|
|
-moz-padding-end: 9px;
|
|
|
|
-moz-padding-start: 9px;
|
|
|
|
}
|
|
|
|
|
2015-01-13 12:33:26 -08:00
|
|
|
.tab-content[pinned] {
|
|
|
|
-moz-padding-end: 3px;
|
|
|
|
}
|
|
|
|
|
2013-05-02 09:05:50 -07:00
|
|
|
.tab-throbber,
|
|
|
|
.tab-icon-image,
|
2015-07-04 13:24:50 -07:00
|
|
|
.tab-icon-sound,
|
2013-05-02 09:05:50 -07:00
|
|
|
.tab-close-button {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber,
|
|
|
|
.tab-icon-image {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2015-01-13 12:33:26 -08:00
|
|
|
-moz-margin-end: 6px;
|
2013-05-02 09:05:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-image {
|
|
|
|
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
|
|
|
|
}
|
|
|
|
|
2015-01-13 12:33:26 -08:00
|
|
|
.tab-icon-overlay {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2015-09-23 07:27:20 -07:00
|
|
|
margin-top: -8px;
|
|
|
|
margin-inline-start: -15px;
|
2015-08-06 17:16:06 -07:00
|
|
|
position: relative;
|
2015-01-13 12:33:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-overlay[crashed] {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/crashed.svg");
|
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
.tab-icon-overlay[soundplaying],
|
|
|
|
.tab-icon-overlay[muted]:not([crashed]) {
|
2015-09-23 07:27:20 -07:00
|
|
|
border-radius: 10px;
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
.tab-icon-overlay[soundplaying]:hover,
|
|
|
|
.tab-icon-overlay[muted]:not([crashed]):hover {
|
2015-08-01 08:53:03 -07:00
|
|
|
background-color: white;
|
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
.tab-icon-overlay[soundplaying] {
|
2015-08-01 08:53:03 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio");
|
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
.tab-icon-overlay[muted]:not([crashed]) {
|
2015-07-18 18:21:03 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted");
|
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
#TabsToolbar[brighttext] .tab-icon-overlay[soundplaying]:not(:hover) {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
2015-08-11 22:32:27 -07:00
|
|
|
#TabsToolbar[brighttext] .tab-icon-overlay[muted]:not([crashed]):not(:hover) {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-white-muted");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
2014-05-28 12:26:14 -07:00
|
|
|
.tab-throbber[busy] {
|
2013-05-02 09:05:50 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber[progress] {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/loading.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-label {
|
|
|
|
-moz-margin-end: 0;
|
|
|
|
-moz-margin-start: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-close-button {
|
|
|
|
-moz-margin-start: 4px;
|
|
|
|
-moz-margin-end: -2px;
|
|
|
|
padding: 0;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-07-04 13:24:50 -07:00
|
|
|
.tab-icon-sound {
|
|
|
|
-moz-margin-start: 4px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[soundplaying] {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[soundplaying]:hover {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-hover");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[soundplaying]:hover:active {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-pressed");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
2015-07-18 18:21:03 -07:00
|
|
|
.tab-icon-sound[muted] {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[muted]:hover {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted-hover");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[muted]:hover:active {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-backgroundTab-muted-pressed");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][soundplaying] {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][soundplaying]:hover {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][soundplaying]:hover:active {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][muted] {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][muted]:hover {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-sound[visuallyselected=true][muted]:hover:active {
|
2015-07-18 18:21:03 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed");
|
|
|
|
}
|
|
|
|
|
2015-07-04 13:24:50 -07:00
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[soundplaying] {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white-hover");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-white-pressed");
|
2015-07-04 13:24:50 -07:00
|
|
|
}
|
|
|
|
|
2015-07-18 18:21:03 -07:00
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[muted] {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white-hover");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
#TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active {
|
2015-08-06 20:40:44 -07:00
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-white-pressed");
|
2015-07-18 18:21:03 -07:00
|
|
|
}
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
.tab-background,
|
|
|
|
.tabs-newtab-button {
|
|
|
|
/* overlap the tab curves */
|
2015-01-28 08:50:00 -08:00
|
|
|
-moz-margin-end: -@tabCurveHalfWidth@;
|
|
|
|
-moz-margin-start: -@tabCurveHalfWidth@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
|
2015-01-28 08:50:00 -08:00
|
|
|
-moz-padding-end: @tabCurveHalfWidth@;
|
|
|
|
-moz-padding-start: @tabCurveHalfWidth@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2014-06-10 07:56:14 -07:00
|
|
|
/* Tab Overflow */
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]),
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
|
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-overflow-indicator.png);
|
|
|
|
background-size: 100% 100%;
|
|
|
|
width: 14px;
|
2015-08-09 02:13:27 -07:00
|
|
|
margin-bottom: var(--navbar-tab-toolbar-highlight-overlap);
|
2014-06-10 07:56:14 -07:00
|
|
|
pointer-events: none;
|
|
|
|
position: relative;
|
|
|
|
z-index: 3; /* the selected tab's z-index + 1 */
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:-moz-locale-dir(rtl),
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:-moz-locale-dir(ltr) {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]) {
|
|
|
|
-moz-margin-start: -2px;
|
|
|
|
-moz-margin-end: -12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
|
|
|
|
-moz-margin-start: -12px;
|
|
|
|
-moz-margin-end: -2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator[collapsed],
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator[collapsed] {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator,
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator {
|
|
|
|
transition: opacity 150ms ease;
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]::after,
|
|
|
|
.tab-background-start[visuallyselected=true]::before,
|
2013-03-08 02:57:00 -08:00
|
|
|
.tab-background-start,
|
|
|
|
.tab-background-end,
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-end[visuallyselected=true]::after,
|
|
|
|
.tab-background-end[visuallyselected=true]::before {
|
2015-01-09 11:42:00 -08:00
|
|
|
min-height: var(--tab-min-height);
|
2015-01-28 08:50:00 -08:00
|
|
|
width: @tabCurveWidth@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tabbrowser-tab:not([visuallyselected=true]),
|
2013-08-26 08:34:16 -07:00
|
|
|
.tabbrowser-tab:-moz-lwtheme {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
/* Selected tab */
|
|
|
|
|
|
|
|
/*
|
|
|
|
Tab background pseudo-elements which are positioned above .tab-background-start/end:
|
|
|
|
- ::before - provides the fill of the tab curve and is clipped to the tab shape. This is where
|
|
|
|
pointer events go for the curve.
|
|
|
|
- ::after - provides the border/stroke of the tab curve and is overlayed above ::before. Pointer
|
|
|
|
events go through to ::before to get the proper shape.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]::after,
|
|
|
|
.tab-background-end[visuallyselected=true]::after {
|
2013-03-08 02:57:00 -08:00
|
|
|
/* position ::after on top of its parent */
|
2015-01-28 08:50:00 -08:00
|
|
|
-moz-margin-start: -@tabCurveWidth@;
|
2013-05-22 12:47:12 -07:00
|
|
|
background-size: 100% 100%;
|
|
|
|
content: "";
|
2013-03-08 02:57:00 -08:00
|
|
|
display: -moz-box;
|
2013-05-29 15:16:48 -07:00
|
|
|
position: relative;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]::before,
|
|
|
|
.tab-background-end[visuallyselected=true]::before {
|
2013-03-08 02:57:00 -08:00
|
|
|
/* all ::before pseudo elements */
|
|
|
|
content: "";
|
|
|
|
display: -moz-box;
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
|
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
|
2013-10-28 00:49:37 -07:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-selected-start.svg);
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
|
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
|
2013-10-28 00:49:37 -07:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-selected-end.svg);
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* For lightweight themes, clip the header image on start, middle, and end. */
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
|
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(rtl):-moz-lwtheme::before {
|
2013-03-08 02:57:00 -08:00
|
|
|
clip-path: url(chrome://browser/content/browser.xul#tab-curve-clip-path-start);
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
|
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(rtl):-moz-lwtheme::before {
|
2013-03-08 02:57:00 -08:00
|
|
|
clip-path: url(chrome://browser/content/browser.xul#tab-curve-clip-path-end);
|
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(ltr)::after,
|
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(rtl)::after {
|
2013-05-22 12:47:12 -07:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-start.png);
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-end[visuallyselected=true]:-moz-locale-dir(ltr)::after,
|
|
|
|
.tab-background-start[visuallyselected=true]:-moz-locale-dir(rtl)::after {
|
2013-05-22 12:47:12 -07:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-end.png);
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-middle[visuallyselected=true] {
|
2013-09-13 17:28:11 -07:00
|
|
|
background-clip: padding-box, padding-box, content-box;
|
|
|
|
background-color: @fgTabBackgroundColor@;
|
2013-03-08 02:57:00 -08:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle.png),
|
2013-05-29 15:16:48 -07:00
|
|
|
@fgTabTexture@,
|
2013-09-13 17:28:11 -07:00
|
|
|
none;
|
2013-03-08 02:57:00 -08:00
|
|
|
background-repeat: repeat-x;
|
2015-08-08 07:57:55 -07:00
|
|
|
background-size: var(--tab-stroke-background-size), auto 100%;
|
2013-09-13 17:28:11 -07:00
|
|
|
/* The padding-top combined with background-clip: content-box (the bottom-most) ensure the
|
|
|
|
background-color doesn't extend above the top border. */
|
|
|
|
padding-top: 2px;
|
2013-05-04 00:25:59 -07:00
|
|
|
}
|
|
|
|
|
2013-11-15 03:13:52 -08:00
|
|
|
/* Selected tab lightweight theme styles.
|
|
|
|
See browser-lightweightTheme.css for information about run-time changes to LWT styles. */
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-middle[visuallyselected=true]:-moz-lwtheme {
|
2013-09-13 17:28:11 -07:00
|
|
|
background-color: transparent;
|
2013-11-15 03:13:52 -08:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle.png),
|
|
|
|
@fgTabTextureLWT@;/*,
|
|
|
|
lwtHeader;*/
|
2013-05-04 00:25:59 -07:00
|
|
|
/* Don't stretch the LWT header images */
|
2015-08-08 07:57:55 -07:00
|
|
|
background-size: var(--tab-stroke-background-size), auto 100%, auto auto;
|
2013-05-04 00:25:59 -07:00
|
|
|
}
|
|
|
|
|
2013-10-28 00:49:37 -07:00
|
|
|
/* These LWT styles are normally overridden by browser-lightweightTheme.css */
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-end[visuallyselected=true]:-moz-lwtheme::before {
|
2013-05-04 00:25:59 -07:00
|
|
|
background-image: @fgTabTextureLWT@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tab-background-start[visuallyselected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-end[visuallyselected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-middle[visuallyselected=true]:-moz-lwtheme {
|
2013-03-08 02:57:00 -08:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* End selected tab */
|
|
|
|
|
|
|
|
/* new tab button border and gradient on hover */
|
2015-03-16 11:30:41 -07:00
|
|
|
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([visuallyselected=true]),
|
2013-03-08 02:57:00 -08:00
|
|
|
.tabs-newtab-button:hover {
|
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-background-start.png),
|
|
|
|
url(chrome://browser/skin/tabbrowser/tab-background-middle.png),
|
|
|
|
url(chrome://browser/skin/tabbrowser/tab-background-end.png);
|
2015-01-28 08:50:00 -08:00
|
|
|
background-position: left bottom, @tabCurveWidth@ bottom, right bottom;
|
2013-03-08 02:57:00 -08:00
|
|
|
background-repeat: no-repeat;
|
2015-01-28 08:50:00 -08:00
|
|
|
background-size: @tabCurveWidth@ 100%, calc(100% - (2 * @tabCurveWidth@)) 100%, @tabCurveWidth@ 100%;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-09-04 04:07:00 -07:00
|
|
|
/* User Context UI - change tab decoration depending on userContextId.
|
|
|
|
Defaults to gray for unknown usercontextids. */
|
|
|
|
.tabbrowser-tab[usercontextid] {
|
|
|
|
background-image: linear-gradient(to right, transparent 20%, #909090 30%, #909090 70%, transparent 80%);
|
|
|
|
background-size: auto 2px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Personal User Context */
|
|
|
|
.tabbrowser-tab[usercontextid="1"] {
|
|
|
|
background-image: linear-gradient(to right, transparent 20%, #00a7e0 30%, #00a7e0 70%, transparent 80%);
|
|
|
|
}
|
|
|
|
/* Work User Context */
|
|
|
|
.tabbrowser-tab[usercontextid="2"] {
|
|
|
|
background-image: linear-gradient(to right, transparent 20%, #f89c24 30%, #f89c24 70%, transparent 80%);
|
|
|
|
}
|
|
|
|
/* Banking User Context */
|
|
|
|
.tabbrowser-tab[usercontextid="3"] {
|
|
|
|
background-image: linear-gradient(to right, transparent 20%, #7dc14c 30%, #7dc14c 70%, transparent 80%);
|
|
|
|
}
|
|
|
|
/* Shopping User Context */
|
|
|
|
.tabbrowser-tab[usercontextid="4"] {
|
|
|
|
background-image: linear-gradient(to right, transparent 20%, #ee5195 30%, #ee5195 70%, transparent 80%);
|
|
|
|
}
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
/* Tab pointer-events */
|
|
|
|
.tabbrowser-tab {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-middle,
|
|
|
|
.tabs-newtab-button,
|
2015-07-04 13:24:50 -07:00
|
|
|
.tab-icon-overlay[soundplaying],
|
2015-08-04 14:59:39 -07:00
|
|
|
.tab-icon-overlay[muted]:not([crashed]),
|
2015-07-04 13:24:50 -07:00
|
|
|
.tab-icon-sound,
|
2013-03-08 02:57:00 -08:00
|
|
|
.tab-close-button {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Pinned tabs */
|
|
|
|
|
2013-05-31 05:05:14 -07:00
|
|
|
/* Pinned tab separators need position: absolute when positioned (during overflow). */
|
2013-03-08 02:57:00 -08:00
|
|
|
#tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned]::before {
|
2013-05-31 05:05:14 -07:00
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
2015-03-16 11:30:41 -07:00
|
|
|
.tabbrowser-tab[pinned][titlechanged]:not([visuallyselected="true"]) > .tab-stack > .tab-content {
|
2014-10-26 03:08:00 -07:00
|
|
|
background-image: radial-gradient(farthest-corner at center bottom, rgb(255,255,255) 3%, rgba(186,221,251,0.75) 20%, rgba(127,179,255,0.25) 40%, transparent 70%);
|
2015-01-09 11:42:00 -08:00
|
|
|
background-position: center bottom var(--tab-toolbar-navbar-overlap);
|
2013-03-08 02:57:00 -08:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 85% 100%;
|
|
|
|
}
|
|
|
|
|
2015-08-27 03:52:34 -07:00
|
|
|
/* Tab separators */
|
|
|
|
|
|
|
|
.tabbrowser-tab::after,
|
|
|
|
.tabbrowser-tab::before {
|
|
|
|
width: 1px;
|
|
|
|
-moz-margin-start: -1px;
|
|
|
|
background-image: linear-gradient(transparent 5px,
|
|
|
|
currentColor 5px,
|
|
|
|
currentColor calc(100% - 4px),
|
|
|
|
transparent calc(100% - 4px));
|
2015-09-24 08:38:59 -07:00
|
|
|
opacity: 0.2;
|
2015-09-22 09:03:23 -07:00
|
|
|
}
|
|
|
|
|
2015-09-24 08:38:59 -07:00
|
|
|
#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::before,
|
|
|
|
#TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-tab::after {
|
|
|
|
opacity: 0.4;
|
2015-08-27 03:52:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Also show separators beside the selected tab when dragging it. */
|
2013-03-08 02:57:00 -08:00
|
|
|
#tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
|
2015-03-16 11:30:41 -07:00
|
|
|
.tabbrowser-tab:not([visuallyselected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
|
|
|
|
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([visuallyselected]):not([beforehovered]):not(:hover)::after {
|
2015-09-25 08:42:44 -07:00
|
|
|
content: "";
|
|
|
|
display: -moz-box;
|
2015-06-26 04:39:00 -07:00
|
|
|
}
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
/* New tab button */
|
|
|
|
|
|
|
|
.tabs-newtab-button {
|
2015-01-28 08:50:00 -08:00
|
|
|
width: calc(36px + @tabCurveWidth@);
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|