|
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 /* ===== toolbar.css ==================================================== |
|
6 == Styles used by XUL toolbar-related elements. |
|
7 ======================================================================= */ |
|
8 |
|
9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
10 |
|
11 /* ::::: toolbox ::::: */ |
|
12 |
|
13 toolbox { |
|
14 -moz-appearance: toolbox; |
|
15 } |
|
16 |
|
17 /* ::::: menubar & toolbar ::::: */ |
|
18 |
|
19 toolbar { |
|
20 -moz-appearance: toolbar; |
|
21 min-width: 1px; |
|
22 min-height: 20px; |
|
23 padding: 2px 0px; |
|
24 } |
|
25 |
|
26 menubar, toolbar[type="menubar"] { |
|
27 -moz-appearance: menubar; |
|
28 min-width: 1px; |
|
29 min-height: 20px; |
|
30 padding: 1px 0px; |
|
31 } |
|
32 |
|
33 menubar:-moz-lwtheme, |
|
34 toolbar:-moz-lwtheme { |
|
35 -moz-appearance: none; |
|
36 } |
|
37 |
|
38 /* in browser.xul, the menubar is inside a toolbar... */ |
|
39 toolbaritem > menubar { |
|
40 -moz-appearance: none; |
|
41 } |
|
42 |
|
43 /* ::::: toolbar decorations ::::: */ |
|
44 |
|
45 toolbarseparator { |
|
46 -moz-appearance: separator !important; |
|
47 margin : 0; |
|
48 border: 0; |
|
49 min-width: 2px; |
|
50 } |
|
51 |
|
52 toolbarspacer { |
|
53 width: 15px; |
|
54 } |
|
55 |
|
56 /* ::::: toolbarpaletteitem ::::: */ |
|
57 |
|
58 toolbarpaletteitem { |
|
59 cursor: grab; |
|
60 } |
|
61 |
|
62 .toolbarpaletteitem-box[type="spacer"], |
|
63 .toolbarpaletteitem-box[type="spring"] { |
|
64 border: 1px solid #808080; |
|
65 background-color: #FFF !important; |
|
66 } |
|
67 |
|
68 toolbarpaletteitem[place="toolbar"] > toolbarspacer { |
|
69 width: 11px; |
|
70 } |
|
71 |
|
72 .toolbarpaletteitem-box[type="spacer"][place="toolbar"], |
|
73 .toolbarpaletteitem-box[type="spring"][place="toolbar"] { |
|
74 margin-top: 2px; |
|
75 margin-bottom: 2px; |
|
76 -moz-margin-start: 0px; |
|
77 -moz-margin-end: 2px; |
|
78 } |
|
79 |
|
80 .toolbarpaletteitem-box[type="separator"][place="palette"] { |
|
81 width: 2px; |
|
82 height: 50px; |
|
83 } |
|
84 |
|
85 .toolbarpaletteitem-box[type="spacer"][place="palette"], |
|
86 .toolbarpaletteitem-box[type="spring"][place="palette"] { |
|
87 margin-bottom: 2px; |
|
88 width: 50px; |
|
89 height: 50px; |
|
90 } |
|
91 |
|
92 .toolbarpaletteitem-box[type="spring"][place="palette"] { |
|
93 background: url("chrome://global/skin/toolbar/spring.png") no-repeat center; |
|
94 } |
|
95 |
|
96 /* ..... drag and drop feedback ..... */ |
|
97 |
|
98 toolbarpaletteitem[place="toolbar"] { |
|
99 margin-left: -2px; |
|
100 margin-right: -2px; |
|
101 border-left: 2px solid transparent; |
|
102 border-right: 2px solid transparent; |
|
103 } |
|
104 |
|
105 toolbarpaletteitem[dragover="left"] { |
|
106 border-left-color: #000000; |
|
107 } |
|
108 |
|
109 toolbarpaletteitem[dragover="right"] { |
|
110 border-right-color: #000000; |
|
111 } |