Commit | Line | Data |
---|---|---|
c79d2bbe RK |
1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version | |
5 | * 1.1 (the "License"); you may not use this file except in compliance with | |
6 | * the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/MPL/ | |
8 | * | |
9 | * Software distributed under the License is distributed on an "AS IS" basis, | |
10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
11 | * for the specific language governing rights and limitations under the | |
12 | * License. | |
13 | * | |
14 | * The Original Code is Mozilla Help CSS | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * R.J. Keller | |
18 | * Portions created by the Initial Developer are Copyright (C) 2003 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Robert Kaiser <kairo@kairo.at> | |
23 | * | |
24 | * Alternatively, the contents of this file may be used under the terms of | |
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 | * of those above. If you wish to allow use of your version of this file only | |
29 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 | * use your version of this file under the terms of the MPL, indicate your | |
31 | * decision by deleting the provisions above and replace them with the notice | |
32 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 | * the provisions above, a recipient may use your version of this file under | |
34 | * the terms of any one of the MPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
38 | @import url("chrome://global/skin/"); | |
39 | @import url("chrome://communicator/skin/"); | |
40 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
41 | ||
42 | #HelpToolbar > toolbarbutton { | |
43 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); | |
44 | } | |
45 | ||
46 | /* Hide labels for the toolbar because we really don't need them what with the | |
47 | tooltips */ | |
48 | #HelpToolbar .toolbarbutton-text { | |
49 | display: none; | |
50 | } | |
51 | ||
52 | /* With no labels, we don't need the margin on the icon that separates it | |
53 | from the label */ | |
54 | #HelpToolbar .toolbarbutton-icon { | |
55 | -moz-margin-end: 0; | |
56 | } | |
57 | ||
58 | #help-back-button > toolbarbutton, | |
59 | #help-forward-button > toolbarbutton { | |
60 | list-style-image: inherit; | |
61 | -moz-image-region: inherit; | |
62 | } | |
63 | ||
64 | /* Set the minimum sidebar width so the help contents aren't squeezed together.*/ | |
65 | #help-sidebar { min-width: 15em; width: 20em; max-width: 25em; } | |
66 | ||
c79d2bbe RK |
67 | /* ----- BACK BUTTON ----- */ |
68 | ||
69 | #help-back-button { | |
70 | -moz-image-region: rect(42px 25px 63px 0px); | |
71 | } | |
72 | ||
73 | #help-back-button[disabled="true"] { | |
74 | -moz-image-region: rect(42px 50px 63px 25px); | |
75 | } | |
76 | ||
77 | #help-back-button:not([disabled="true"]):hover, | |
78 | #help-back-button:not([disabled="true"]):hover:active { | |
79 | -moz-image-region: rect(42px 75px 63px 50px); | |
80 | } | |
81 | ||
82 | #help-back-button .toolbarbutton-menubutton-button { | |
83 | -moz-box-align: end !important; | |
84 | } | |
85 | ||
86 | /* ----- FORWARD BUTTON ----- */ | |
87 | ||
88 | #help-forward-button { | |
89 | -moz-image-region: rect(63px 25px 84px 0px); | |
90 | } | |
91 | ||
92 | #help-forward-button[disabled="true"] { | |
93 | -moz-image-region: rect(63px 50px 84px 25px); | |
94 | } | |
95 | ||
96 | #help-forward-button:not([disabled="true"]):hover, | |
97 | #help-forward-button:not([disabled="true"]):hover:active { | |
98 | -moz-image-region: rect(63px 75px 84px 50px); | |
99 | } | |
100 | ||
101 | /* ----- HOME BUTTON ----- */ | |
102 | ||
103 | #help-home-button { | |
104 | -moz-image-region: rect(84px 25px 105px 0px); | |
105 | } | |
106 | ||
107 | #help-home-button[disabled="true"] { | |
108 | -moz-image-region: rect(84px 50px 105px 25px); | |
109 | } | |
110 | ||
111 | #help-home-button:not([disabled="true"]):hover, | |
112 | #help-home-button:not([disabled="true"]):hover:active { | |
113 | -moz-image-region: rect(84px 75px 105px 50px); | |
114 | } | |
115 | ||
116 | /* ----- PRINT BUTTON ----- */ | |
117 | ||
118 | #help-print-button { | |
119 | -moz-image-region: rect(0px 25px 21px 0px); | |
120 | } | |
121 | ||
122 | #help-print-button[disabled="true"] { | |
123 | -moz-image-region: rect(0px 50px 21px 25px); | |
124 | } | |
125 | ||
126 | #help-print-button:not([disabled="true"]):hover, | |
127 | #help-print-button:not([disabled="true"]):hover:active { | |
128 | -moz-image-region: rect(0px 75px 21px 50px); | |
129 | } | |
130 | ||
131 | /* ----- OTHER ----- */ | |
132 | ||
133 | #context-copy[disabled="true"] { | |
134 | display: none; | |
135 | } |