| 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 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 6 | |
| 7 | #newButton { |
| 8 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 9 | -moz-image-region: rect(84px 25px 105px 0px); |
| 10 | } |
| 11 | |
| 12 | #newButton[disabled="true"] { |
| 13 | -moz-image-region: rect(84px 50px 105px 25px); |
| 14 | } |
| 15 | |
| 16 | #newButton:not([disabled="true"]):hover, |
| 17 | #newButton:not([disabled="true"]):hover:active { |
| 18 | -moz-image-region: rect(84px 75px 105px 50px) |
| 19 | } |
| 20 | |
| 21 | #openButton { |
| 22 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 23 | -moz-image-region: rect(105px 25px 126px 0px); |
| 24 | } |
| 25 | |
| 26 | #openButton[disabled="true"] { |
| 27 | -moz-image-region: rect(105px 50px 126px 25px); |
| 28 | } |
| 29 | |
| 30 | #openButton:not([disabled="true"]):hover, |
| 31 | #openButton:not([disabled="true"]):hover:active { |
| 32 | -moz-image-region: rect(105px 75px 126px 50px) |
| 33 | } |
| 34 | |
| 35 | #saveButton { |
| 36 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 37 | -moz-image-region: rect(147px 25px 168px 0px); |
| 38 | } |
| 39 | |
| 40 | #saveButton[disabled="true"] { |
| 41 | -moz-image-region: rect(147px 50px 168px 25px); |
| 42 | } |
| 43 | |
| 44 | #saveButton:not([disabled="true"]):hover, |
| 45 | #saveButton:not([disabled="true"]):hover:active { |
| 46 | -moz-image-region: rect(147px 75px 168px 50px) |
| 47 | } |
| 48 | |
| 49 | #publishButton { |
| 50 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 51 | -moz-image-region: rect(210px 25px 231px 0px); |
| 52 | } |
| 53 | |
| 54 | #publishButton[disabled="true"] { |
| 55 | -moz-image-region: rect(210px 50px 231px 25px); |
| 56 | } |
| 57 | |
| 58 | #publishButton:not([disabled="true"]):hover, |
| 59 | #publishButton:not([disabled="true"]):hover:active { |
| 60 | -moz-image-region: rect(210px 75px 231px 50px) |
| 61 | } |
| 62 | |
| 63 | #previewButton { |
| 64 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 65 | -moz-image-region: rect(126px 25px 147px 0px); |
| 66 | } |
| 67 | |
| 68 | #previewButton[disabled="true"] { |
| 69 | -moz-image-region: rect(126px 50px 147px 25px); |
| 70 | } |
| 71 | |
| 72 | #previewButton:not([disabled="true"]):hover, |
| 73 | #previewButton:not([disabled="true"]):hover:active { |
| 74 | -moz-image-region: rect(126px 75px 147px 50px) |
| 75 | } |
| 76 | |
| 77 | #printButton { |
| 78 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
| 79 | -moz-image-region: rect(0px 25px 21px 0px); |
| 80 | } |
| 81 | |
| 82 | #printButton[disabled="true"] { |
| 83 | -moz-image-region: rect(0px 50px 21px 25px); |
| 84 | } |
| 85 | |
| 86 | #printButton:not([disabled="true"]):hover, |
| 87 | #printButton:not([disabled="true"]):hover:active { |
| 88 | -moz-image-region: rect(0px 75px 21px 50px) |
| 89 | } |
| 90 | |
| 91 | #findButton { |
| 92 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 93 | -moz-image-region: rect(294px 25px 315px 0px); |
| 94 | } |
| 95 | |
| 96 | #findButton[disabled="true"] { |
| 97 | -moz-image-region: rect(294px 50px 315px 25px); |
| 98 | } |
| 99 | |
| 100 | #findButton:not([disabled="true"]):hover, |
| 101 | #findButton:not([disabled="true"]):hover:active { |
| 102 | -moz-image-region: rect(294px 75px 315px 50px) |
| 103 | } |
| 104 | |
| 105 | #linkButton { |
| 106 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 107 | -moz-image-region: rect(63px 25px 84px 0px); |
| 108 | } |
| 109 | |
| 110 | #linkButton[disabled="true"] { |
| 111 | -moz-image-region: rect(63px 50px 84px 25px); |
| 112 | } |
| 113 | |
| 114 | #linkButton:not([disabled="true"]):hover, |
| 115 | #linkButton:not([disabled="true"]):hover:active { |
| 116 | -moz-image-region: rect(63px 75px 84px 50px) |
| 117 | } |
| 118 | |
| 119 | #imageButton { |
| 120 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 121 | -moz-image-region: rect(42px 25px 63px 0px); |
| 122 | } |
| 123 | |
| 124 | #imageButton[disabled="true"] { |
| 125 | -moz-image-region: rect(42px 50px 63px 25px); |
| 126 | } |
| 127 | |
| 128 | #imageButton:not([disabled="true"]):hover, |
| 129 | #imageButton:not([disabled="true"]):hover:active { |
| 130 | -moz-image-region: rect(42px 75px 63px 50px) |
| 131 | } |
| 132 | |
| 133 | #namedAnchorButton { |
| 134 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 135 | -moz-image-region: rect(0px 25px 21px 0px); |
| 136 | } |
| 137 | |
| 138 | #namedAnchorButton[disabled="true"] { |
| 139 | -moz-image-region: rect(0px 50px 21px 25px); |
| 140 | } |
| 141 | |
| 142 | #namedAnchorButton:not([disabled="true"]):hover, |
| 143 | #namedAnchorButton:not([disabled="true"]):hover:active { |
| 144 | -moz-image-region: rect(0px 75px 21px 50px) |
| 145 | } |
| 146 | |
| 147 | #hlineButton { |
| 148 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 149 | -moz-image-region: rect(21px 25px 42px 0px); |
| 150 | } |
| 151 | |
| 152 | #hlineButton[disabled="true"] { |
| 153 | -moz-image-region: rect(21px 50px 42px 25px); |
| 154 | } |
| 155 | |
| 156 | #hlineButton:not([disabled="true"]):hover, |
| 157 | #hlineButton:not([disabled="true"]):hover:active { |
| 158 | -moz-image-region: rect(21px 75px 42px 50px) |
| 159 | } |
| 160 | |
| 161 | #tableButton { |
| 162 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 163 | -moz-image-region: rect(189px 25px 210px 0px); |
| 164 | } |
| 165 | |
| 166 | #tableButton[disabled="true"] { |
| 167 | -moz-image-region: rect(189px 50px 210px 25px); |
| 168 | } |
| 169 | |
| 170 | #tableButton:not([disabled="true"]):hover, |
| 171 | #tableButton:not([disabled="true"]):hover:active { |
| 172 | -moz-image-region: rect(189px 75px 210px 50px) |
| 173 | } |
| 174 | |
| 175 | #spellingButton { |
| 176 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 177 | -moz-image-region: rect(168px 25px 189px 0px); |
| 178 | } |
| 179 | |
| 180 | #spellingButton[disabled="true"] { |
| 181 | -moz-image-region: rect(168px 50px 189px 25px); |
| 182 | } |
| 183 | |
| 184 | #spellingButton:not([disabled="true"]):hover, |
| 185 | #spellingButton:not([disabled="true"]):hover:active, |
| 186 | #spellingButton[open="true"] { |
| 187 | -moz-image-region: rect(168px 75px 189px 50px); |
| 188 | } |
| 189 | |
| 190 | #cutButton { |
| 191 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 192 | -moz-image-region: rect(231px 25px 252px 0px); |
| 193 | } |
| 194 | |
| 195 | #cutButton[disabled="true"] { |
| 196 | -moz-image-region: rect(231px 50px 252px 25px); |
| 197 | } |
| 198 | |
| 199 | #cutButton:not([disabled="true"]):hover, |
| 200 | #cutButton:not([disabled="true"]):hover:active { |
| 201 | -moz-image-region: rect(231px 75px 251px 50px) |
| 202 | } |
| 203 | |
| 204 | #copyButton { |
| 205 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 206 | -moz-image-region: rect(252px 25px 273px 0px); |
| 207 | } |
| 208 | |
| 209 | #copyButton[disabled="true"] { |
| 210 | -moz-image-region: rect(252px 50px 273px 25px); |
| 211 | } |
| 212 | |
| 213 | #copyButton:not([disabled="true"]):hover, |
| 214 | #copyButton:not([disabled="true"]):hover:active { |
| 215 | -moz-image-region: rect(252px 75px 273px 50px) |
| 216 | } |
| 217 | |
| 218 | #pasteButton { |
| 219 | list-style-image: url("chrome://editor/skin/icons/editoricons.png"); |
| 220 | -moz-image-region: rect(273px 25px 294px 0px); |
| 221 | } |
| 222 | |
| 223 | #pasteButton[disabled="true"] { |
| 224 | -moz-image-region: rect(273px 50px 294px 25px); |
| 225 | } |
| 226 | |
| 227 | #pasteButton:not([disabled="true"]):hover, |
| 228 | #pasteButton:not([disabled="true"]):hover:active { |
| 229 | -moz-image-region: rect(273px 75px 294px 50px) |
| 230 | } |