|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 .tabbrowser-tabbox { |
|
6 -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-tabbox"); |
|
7 } |
|
8 |
|
9 .tabbrowser-arrowscrollbox { |
|
10 -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-arrowscrollbox"); |
|
11 } |
|
12 |
|
13 .tab-close-button { |
|
14 -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-close-tab-button"); |
|
15 } |
|
16 |
|
17 .tab-close-button[pinned], |
|
18 .tabbrowser-tabs[closebuttons="activetab"] > * > * > * > .tab-close-button:not([selected="true"]) { |
|
19 display: none; |
|
20 } |
|
21 |
|
22 .tab-label[pinned] { |
|
23 width: 0; |
|
24 margin-left: 0 !important; |
|
25 margin-right: 0 !important; |
|
26 padding-left: 0 !important; |
|
27 padding-right: 0 !important; |
|
28 } |
|
29 |
|
30 .tab-stack { |
|
31 vertical-align: top; /* for pinned tabs */ |
|
32 } |
|
33 |
|
34 tabpanels { |
|
35 background-color: transparent; |
|
36 } |
|
37 |
|
38 .tab-drop-indicator { |
|
39 position: relative; |
|
40 z-index: 2; |
|
41 } |
|
42 |
|
43 .tab-icon-image:not([src]):not([pinned]), |
|
44 .tab-throbber:not([busy]), |
|
45 .tab-throbber[busy] + .tab-icon-image { |
|
46 display: none; |
|
47 } |
|
48 |
|
49 .closing-tabs-spacer { |
|
50 pointer-events: none; |
|
51 } |
|
52 |
|
53 .tabbrowser-tabs:not(:hover) > .tabbrowser-arrowscrollbox > .closing-tabs-spacer { |
|
54 transition: width .15s ease-out; |
|
55 } |
|
56 |
|
57 /** |
|
58 * Optimization for tabs that are restored lazily. We can save a good amount of |
|
59 * memory that to-be-restored tabs would otherwise consume simply by setting |
|
60 * their browsers to 'display: none' as that will prevent them from having to |
|
61 * create a presentation and the like. |
|
62 */ |
|
63 browser[pending] { |
|
64 display: none; |
|
65 } |