|
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 @import url("chrome://global/skin/"); |
|
6 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
|
7 |
|
8 #HelpToolbar toolbarbutton { |
|
9 -moz-box-orient: horizontal !important; |
|
10 min-width: 0px; |
|
11 list-style-image: url("chrome://help/skin/Toolbar.png"); |
|
12 margin: 0 !important; |
|
13 padding: 4px 5px; |
|
14 } |
|
15 |
|
16 #HelpToolbar:-moz-locale-dir(rtl) toolbarbutton { |
|
17 list-style-image: url("chrome://help/skin/Toolbar-rtl.png"); |
|
18 } |
|
19 |
|
20 /* Hide labels for the toolbar because we really don't need them what with the |
|
21 tooltips */ |
|
22 #HelpToolbar .toolbarbutton-text { |
|
23 display: none; |
|
24 } |
|
25 |
|
26 /* With no labels, we don't need the margin on the icon that separates it |
|
27 from the label */ |
|
28 #HelpToolbar .toolbarbutton-icon { |
|
29 -moz-margin-end: 0; |
|
30 } |
|
31 |
|
32 /* Set the minimum sidebar width so the help contents aren't squeezed together.*/ |
|
33 #help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } |
|
34 |
|
35 /* ----- BACK BUTTON ----- */ |
|
36 |
|
37 #help-back-button { |
|
38 -moz-image-region: rect(0px 24px 24px 0px); |
|
39 } |
|
40 |
|
41 #help-back-button:not([disabled="true"]):hover { |
|
42 -moz-image-region: rect(24px 24px 48px 0px); |
|
43 } |
|
44 |
|
45 #help-back-button[disabled="true"] { |
|
46 -moz-image-region: rect(48px 24px 72px 0px); |
|
47 } |
|
48 |
|
49 #help-back-button:not([disabled="true"]):hover:active { |
|
50 -moz-image-region: rect(72px 24px 96px 0px); |
|
51 } |
|
52 |
|
53 #help-back-button .toolbarbutton-menubutton-button { |
|
54 -moz-box-align: end !important; |
|
55 } |
|
56 |
|
57 /* ----- FORWARD BUTTON ----- */ |
|
58 |
|
59 #help-forward-button { |
|
60 -moz-image-region: rect(0px 48px 24px 24px); |
|
61 } |
|
62 |
|
63 #help-forward-button:not([disabled="true"]):hover { |
|
64 -moz-image-region: rect(24px 48px 48px 24px); |
|
65 } |
|
66 |
|
67 #help-forward-button[disabled="true"] { |
|
68 -moz-image-region: rect(48px 48px 72px 24px); |
|
69 } |
|
70 |
|
71 #help-forward-button:not([disabled="true"]):hover:active { |
|
72 -moz-image-region: rect(72px 48px 96px 24px); |
|
73 } |
|
74 |
|
75 /* ----- HOME BUTTON ----- */ |
|
76 |
|
77 #help-home-button { |
|
78 -moz-image-region: rect(0px 72px 24px 48px); |
|
79 } |
|
80 |
|
81 #help-home-button:not([disabled="true"]):hover { |
|
82 -moz-image-region: rect(24px 72px 48px 48px); |
|
83 } |
|
84 |
|
85 #help-home-button[disabled="true"] { |
|
86 -moz-image-region: rect(48px 72px 72px 48px); |
|
87 } |
|
88 |
|
89 #help-home-button:not([disabled="true"]):hover:active { |
|
90 -moz-image-region: rect(72px 72px 96px 48px); |
|
91 } |
|
92 |
|
93 /* ----- PRINT BUTTON ----- */ |
|
94 |
|
95 #help-print-button { |
|
96 -moz-image-region: rect(0px 96px 24px 72px); |
|
97 } |
|
98 |
|
99 #help-print-button:not([disabled="true"]):hover { |
|
100 -moz-image-region: rect(24px 96px 48px 72px); |
|
101 } |
|
102 |
|
103 #help-print-button[disabled="true"] { |
|
104 -moz-image-region: rect(48px 96px 72px 72px); |
|
105 } |
|
106 |
|
107 #help-print-button:not([disabled="true"]):hover:active { |
|
108 -moz-image-region: rect(72px 96px 96px 72px); |
|
109 } |
|
110 |
|
111 /* ----- OTHER ----- */ |
|
112 |
|
113 #context-copy[disabled="true"] { |
|
114 display: none; |
|
115 } |