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
|
|
|
|
|
2013-05-16 13:32:15 -07:00
|
|
|
%define tabHeight 31px
|
2013-03-08 02:57:00 -08:00
|
|
|
%define tabCurveWidth 30px
|
|
|
|
%define tabCurveHalfWidth 15px
|
|
|
|
|
2013-03-08 02:57:00 -08:00
|
|
|
/* image preloading hack */
|
2013-04-16 21:08:07 -07:00
|
|
|
#TabsToolbar::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);
|
|
|
|
}
|
|
|
|
|
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-08-05 02:57:12 -07:00
|
|
|
.tabbrowser-tab[remote] {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
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 */
|
2013-03-08 02:57:00 -08:00
|
|
|
.tabbrowser-tab[selected=true] {
|
|
|
|
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;
|
|
|
|
border-left: @tabCurveHalfWidth@ solid transparent;
|
|
|
|
border-right: @tabCurveHalfWidth@ solid transparent;
|
|
|
|
margin: 0 -@tabCurveHalfWidth@;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
2013-05-02 09:05:50 -07:00
|
|
|
-moz-padding-end: 9px;
|
|
|
|
-moz-padding-start: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber,
|
|
|
|
.tab-icon-image,
|
|
|
|
.tab-close-button {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber,
|
|
|
|
.tab-icon-image {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-icon-image {
|
|
|
|
list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber[progress] {
|
|
|
|
list-style-image: url("chrome://browser/skin/tabbrowser/loading.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-throbber:not([pinned]),
|
|
|
|
.tab-icon-image:not([pinned]) {
|
|
|
|
-moz-margin-end: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background,
|
|
|
|
.tabs-newtab-button {
|
|
|
|
/* overlap the tab curves */
|
|
|
|
-moz-margin-end: -@tabCurveHalfWidth@;
|
|
|
|
-moz-margin-start: -@tabCurveHalfWidth@;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
|
|
|
|
-moz-padding-end: @tabCurveHalfWidth@;
|
|
|
|
-moz-padding-start: @tabCurveHalfWidth@;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-start[selected=true]::after,
|
|
|
|
.tab-background-start[selected=true]::before,
|
|
|
|
.tab-background-start,
|
|
|
|
.tab-background-end,
|
|
|
|
.tab-background-end[selected=true]::after,
|
|
|
|
.tab-background-end[selected=true]::before {
|
|
|
|
min-height: @tabHeight@;
|
|
|
|
width: @tabCurveWidth@;
|
|
|
|
}
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
.tab-background-start[selected=true]::after,
|
|
|
|
.tab-background-end[selected=true]::after {
|
|
|
|
/* position ::after on top of its parent */
|
|
|
|
-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
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-start[selected=true]::before,
|
|
|
|
.tab-background-end[selected=true]::before {
|
|
|
|
/* all ::before pseudo elements */
|
|
|
|
content: "";
|
|
|
|
display: -moz-box;
|
|
|
|
}
|
|
|
|
|
2013-10-28 00:49:37 -07:00
|
|
|
.tab-background-start[selected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
|
|
|
|
.tab-background-end[selected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
|
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-selected-start.svg);
|
|
|
|
background-size: 100% 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-end[selected=true]:-moz-locale-dir(ltr):not(:-moz-lwtheme)::before,
|
|
|
|
.tab-background-start[selected=true]:-moz-locale-dir(rtl):not(:-moz-lwtheme)::before {
|
|
|
|
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. */
|
|
|
|
.tab-background-start[selected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
|
|
|
|
.tab-background-end[selected=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);
|
|
|
|
}
|
|
|
|
|
2013-10-28 00:49:37 -07:00
|
|
|
.tab-background-end[selected=true]:-moz-locale-dir(ltr):-moz-lwtheme::before,
|
|
|
|
.tab-background-start[selected=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);
|
|
|
|
}
|
|
|
|
|
2013-04-22 17:01:31 -07:00
|
|
|
.tab-background-start[selected=true]:-moz-locale-dir(ltr)::after,
|
|
|
|
.tab-background-end[selected=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
|
|
|
}
|
|
|
|
|
2013-04-22 17:01:31 -07:00
|
|
|
.tab-background-end[selected=true]:-moz-locale-dir(ltr)::after,
|
|
|
|
.tab-background-start[selected=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
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-middle[selected=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;
|
2013-06-12 23:52:16 -07:00
|
|
|
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. */
|
2013-05-04 00:25:59 -07:00
|
|
|
.tab-background-middle[selected=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 */
|
2013-06-12 23:52:16 -07:00
|
|
|
background-size: auto 100%, 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 */
|
2013-05-04 00:25:59 -07:00
|
|
|
.tab-background-start[selected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-end[selected=true]:-moz-lwtheme::before {
|
|
|
|
background-image: @fgTabTextureLWT@;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-start[selected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-end[selected=true]:-moz-lwtheme::before,
|
|
|
|
.tab-background-middle[selected=true]:-moz-lwtheme {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* End selected tab */
|
|
|
|
|
|
|
|
/* new tab button border and gradient on hover */
|
|
|
|
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]),
|
|
|
|
.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);
|
|
|
|
background-position: left bottom, @tabCurveWidth@ bottom, right bottom;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: @tabCurveWidth@ 100%, calc(100% - (2 * @tabCurveWidth@)) 100%, @tabCurveWidth@ 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Tab pointer-events */
|
|
|
|
.tabbrowser-tab {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-background-middle,
|
|
|
|
.tabs-newtab-button,
|
|
|
|
.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
|
|
|
}
|
|
|
|
|
|
|
|
.tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) > .tab-stack > .tab-content {
|
|
|
|
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%, rgba(127,179,255,0) 70%);
|
|
|
|
background-position: center bottom 1px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 85% 100%;
|
|
|
|
}
|
|
|
|
|
2013-04-16 21:08:07 -07:00
|
|
|
/* Background tab separators (3px wide).
|
2013-03-08 02:57:00 -08:00
|
|
|
Also show separators beside the selected tab when dragging it. */
|
|
|
|
#tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
|
|
|
|
.tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
|
|
|
|
#tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
|
2013-04-16 21:08:07 -07:00
|
|
|
-moz-margin-start: -1.5px;
|
|
|
|
-moz-margin-end: -1.5px;
|
2013-05-22 12:47:12 -07:00
|
|
|
background-image: url(chrome://browser/skin/tabbrowser/tab-separator.png);
|
|
|
|
background-position: left bottom;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 3px 100%;
|
|
|
|
content: "";
|
2013-03-08 02:57:00 -08:00
|
|
|
display: -moz-box;
|
2013-05-29 15:16:48 -07:00
|
|
|
margin-bottom: 1px;
|
2013-04-16 21:08:07 -07:00
|
|
|
width: 3px;
|
2013-03-08 02:57:00 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* New tab button */
|
|
|
|
|
|
|
|
.tabs-newtab-button {
|
|
|
|
width: 66px;
|
|
|
|
}
|