| 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 | /* ===== global.css ===================================================== |
| 6 | == Styles that apply everywhere. |
| 7 | ======================================================================= */ |
| 8 | |
| 9 | /* all localizable skin settings shall live here */ |
| 10 | @import url("chrome://global/locale/intl.css"); |
| 11 | |
| 12 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 13 | |
| 14 | /* ::::: XBL bindings ::::: */ |
| 15 | |
| 16 | checkbox { |
| 17 | -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing"); |
| 18 | } |
| 19 | |
| 20 | radio { |
| 21 | -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing"); |
| 22 | } |
| 23 | |
| 24 | menulist > menupopup, |
| 25 | .menulist-menupopup { |
| 26 | -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); |
| 27 | } |
| 28 | |
| 29 | .menulist-compact { |
| 30 | -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact"); |
| 31 | } |
| 32 | |
| 33 | /* LCARStrek special bindings */ |
| 34 | |
| 35 | statusbar { |
| 36 | -moz-binding: url("chrome://global/skin/globalBindings.xml#statusbar"); |
| 37 | } |
| 38 | |
| 39 | toolbar { |
| 40 | -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar"); |
| 41 | } |
| 42 | |
| 43 | menubar { |
| 44 | -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar"); |
| 45 | } |
| 46 | |
| 47 | toolbaritem > menubar { |
| 48 | -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar"); |
| 49 | } |
| 50 | /* |
| 51 | progressmeter[mode="undetermined"] { |
| 52 | -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter-undetermined"); |
| 53 | } |
| 54 | */ |
| 55 | |
| 56 | /* ::::: root elements ::::: */ |
| 57 | |
| 58 | window, |
| 59 | page, |
| 60 | dialog, |
| 61 | wizard, |
| 62 | prefwindow { |
| 63 | background-color: #000000; |
| 64 | color: #FF9F00; |
| 65 | /* font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */ |
| 66 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 67 | padding: 3px; |
| 68 | } |
| 69 | |
| 70 | /* deprecated */ |
| 71 | window.dialog { |
| 72 | background-color: #000000; |
| 73 | padding-top: 8px; |
| 74 | padding-bottom: 10px; |
| 75 | -moz-padding-start: 8px; |
| 76 | -moz-padding-end: 10px; |
| 77 | } |
| 78 | |
| 79 | /* ::::: alert icons :::::*/ |
| 80 | |
| 81 | .message-icon, |
| 82 | .alert-icon, |
| 83 | .error-icon, |
| 84 | .question-icon, |
| 85 | .authentication-icon { |
| 86 | width: 32px; |
| 87 | height: 32px; |
| 88 | } |
| 89 | |
| 90 | .message-icon { |
| 91 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); |
| 92 | } |
| 93 | |
| 94 | .alert-icon { |
| 95 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); |
| 96 | } |
| 97 | |
| 98 | .error-icon { |
| 99 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); |
| 100 | } |
| 101 | |
| 102 | .question-icon, |
| 103 | .authentication-icon { |
| 104 | list-style-image: url("chrome://global/skin/icons/alert-question.gif"); |
| 105 | } |
| 106 | |
| 107 | /* ::::: iframe ::::: */ |
| 108 | |
| 109 | iframe { |
| 110 | border: none; |
| 111 | width: 100px; |
| 112 | height: 100px; |
| 113 | min-width: 10px; |
| 114 | min-height: 10px; |
| 115 | } |
| 116 | |
| 117 | /* ::::: statusbar ::::: */ |
| 118 | |
| 119 | statusbar { |
| 120 | margin-top: 3px; |
| 121 | min-height: 16px; |
| 122 | } |
| 123 | |
| 124 | .statusbar-center { |
| 125 | background-color: #8050B0; |
| 126 | -moz-padding-start: 2px; |
| 127 | color: #FFCF00; |
| 128 | -moz-box-align: stretch; |
| 129 | } |
| 130 | |
| 131 | .statusbar-left { |
| 132 | border-radius: 9px 0px 0px 9px; |
| 133 | background-color: #6000CF; |
| 134 | width: 13px; |
| 135 | -moz-margin-end: 3px; |
| 136 | } |
| 137 | |
| 138 | .statusbar-right { |
| 139 | border-radius: 0px 9px 9px 0px; |
| 140 | background-color: #6000CF; |
| 141 | width: 13px; |
| 142 | -moz-margin-start: 3px; |
| 143 | } |
| 144 | |
| 145 | statusbarpanel { |
| 146 | -moz-box-align: center; |
| 147 | -moz-box-pack: center; |
| 148 | border-left: 3px solid black; |
| 149 | padding: 0px 2px; |
| 150 | } |
| 151 | |
| 152 | statusbarpanel:first-child { |
| 153 | border-left: none; |
| 154 | } |
| 155 | |
| 156 | statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme { |
| 157 | -moz-appearance: none; |
| 158 | border-top-style: none; |
| 159 | border-bottom-style: none; |
| 160 | -moz-border-start-style: none; |
| 161 | } |
| 162 | |
| 163 | .statusbar-resizerpanel { |
| 164 | -moz-box-align: end; |
| 165 | -moz-box-pack: end; |
| 166 | padding: 0px; |
| 167 | } |
| 168 | |
| 169 | .statusbarpanel-iconic, |
| 170 | .statusbarpanel-iconic-text, |
| 171 | .statusbarpanel-menu-iconic { |
| 172 | } |
| 173 | |
| 174 | .statusbarpanel-progress { |
| 175 | -moz-box-orient: vertical; |
| 176 | padding: 0px; |
| 177 | } |
| 178 | |
| 179 | .toolbar-focustarget { |
| 180 | -moz-user-focus: ignore !important; |
| 181 | } |
| 182 | |
| 183 | toolbar[mode="text"] .toolbarbutton-text { |
| 184 | /* padding: 0 !important; |
| 185 | margin: 3px 5px !important; */ |
| 186 | } |
| 187 | |
| 188 | /* ::::: miscellaneous formatting ::::: */ |
| 189 | |
| 190 | :root:-moz-lwtheme, |
| 191 | [lwthemefooter="true"] { |
| 192 | -moz-appearance: none; |
| 193 | } |
| 194 | |
| 195 | :root:-moz-lwtheme-darktext { |
| 196 | text-shadow: 1px 1px 2px #FFCF00; |
| 197 | } |
| 198 | |
| 199 | :root:-moz-lwtheme-brighttext { |
| 200 | text-shadow: 1px 1px 2px #000000; |
| 201 | } |
| 202 | |
| 203 | statusbar:-moz-lwtheme, |
| 204 | sidebarheader:-moz-lwtheme { |
| 205 | -moz-appearance: none; |
| 206 | background: none; |
| 207 | border-style: none; |
| 208 | } |
| 209 | |
| 210 | .inset { |
| 211 | /* border: 1px inset #FF9F00; |
| 212 | margin: 0px 5px 5px; */ |
| 213 | } |
| 214 | |
| 215 | .outset { |
| 216 | /* border: 1px outset #FF9F00; */ |
| 217 | } |
| 218 | |
| 219 | /* separators */ |
| 220 | separator:not([orient="vertical"]) { |
| 221 | height: 1.5em; |
| 222 | } |
| 223 | |
| 224 | separator[orient="vertical"] { |
| 225 | width: 1.5em; |
| 226 | } |
| 227 | |
| 228 | separator.thin:not([orient="vertical"]) { |
| 229 | height: 0.5em; |
| 230 | } |
| 231 | |
| 232 | separator.thin[orient="vertical"] { |
| 233 | width: 0.5em; |
| 234 | } |
| 235 | |
| 236 | separator.groove:not([orient="vertical"]) { |
| 237 | border-top: 2px groove #FF9F00; |
| 238 | height: 0px; |
| 239 | margin-top: 0.4em; |
| 240 | margin-bottom: 0.4em; |
| 241 | } |
| 242 | |
| 243 | separator.groove[orient="vertical"] { |
| 244 | border-left: 2px groove #FF9F00; |
| 245 | -moz-margin-start: 0.4em; |
| 246 | -moz-margin-end: 0.4em; |
| 247 | } |
| 248 | |
| 249 | /* groove separators (0 padding, for dividing effects) */ |
| 250 | separator.groove-thin { |
| 251 | border-top: 2px groove #FF9F00; |
| 252 | height: 0px; |
| 253 | } |
| 254 | |
| 255 | separator[orient="vertical"].groove-thin { |
| 256 | border-left: 2px groove #FF9F00; |
| 257 | } |
| 258 | |
| 259 | .small-margin { |
| 260 | margin: 0px 1px; |
| 261 | } |
| 262 | |
| 263 | .plain { |
| 264 | -moz-appearance: none; |
| 265 | margin: 0px !important; |
| 266 | border: none; |
| 267 | padding: 0px; |
| 268 | } |
| 269 | |
| 270 | description, label { |
| 271 | cursor: default; |
| 272 | margin: 1px 2px; |
| 273 | } |
| 274 | |
| 275 | label[disabled="true"] { |
| 276 | color: #8050B0; |
| 277 | } |
| 278 | |
| 279 | description { |
| 280 | /* margin-bottom: 4px; */ |
| 281 | } |
| 282 | |
| 283 | .tooltip-label { |
| 284 | margin: 0px; |
| 285 | } |
| 286 | |
| 287 | .header { |
| 288 | font-weight: bold; |
| 289 | } |
| 290 | |
| 291 | .monospace { |
| 292 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
| 293 | } |
| 294 | |
| 295 | .indent { |
| 296 | /* -moz-margin-start: 23px; */ |
| 297 | -moz-margin-start: 15px; |
| 298 | } |
| 299 | |
| 300 | .box-padded { |
| 301 | padding: 5px; |
| 302 | } |
| 303 | |
| 304 | .spaced { |
| 305 | margin: 1px 3px; |
| 306 | } |
| 307 | |
| 308 | .wizard-box { |
| 309 | padding: 15px 35px 10px; |
| 310 | } |
| 311 | |
| 312 | .text-link { |
| 313 | color: blue; |
| 314 | text-decoration: underline; |
| 315 | cursor: pointer; |
| 316 | } |
| 317 | |
| 318 | .text-link:-moz-focusring { |
| 319 | /* Don't specify the outline-color, we should always use initial value. */ |
| 320 | outline: 1px dotted; |
| 321 | } |
| 322 | |
| 323 | /* :::::: autoscroll popup ::::: */ |
| 324 | |
| 325 | .autoscroller { |
| 326 | height: 28px; |
| 327 | width: 28px; |
| 328 | border: 0px; |
| 329 | margin: -14px; |
| 330 | padding: 0px; |
| 331 | background-image: url("chrome://global/skin/icons/autoscroll.png"); |
| 332 | background-color: transparent; |
| 333 | -moz-appearance: none; |
| 334 | } |
| 335 | |
| 336 | .autoscroller[scrolldir="NS"] { |
| 337 | background-position: left center; |
| 338 | } |
| 339 | |
| 340 | .autoscroller[scrolldir="EW"] { |
| 341 | background-position: left bottom; |
| 342 | } |
| 343 | |
| 344 | .autoscroller[transparent="true"] { |
| 345 | background-position: center top; |
| 346 | } |
| 347 | |
| 348 | .autoscroller[transparent="true"][scrolldir="NS"] { |
| 349 | background-position: center center; |
| 350 | } |
| 351 | |
| 352 | .autoscroller[transparent="true"][scrolldir="EW"] { |
| 353 | background-position: center bottom; |
| 354 | } |
| 355 | |
| 356 | .autoscroller[translucent="true"] { |
| 357 | background-position: right top; |
| 358 | } |
| 359 | |
| 360 | .autoscroller[translucent="true"][scrolldir="NS"] { |
| 361 | background-position: right center; |
| 362 | } |
| 363 | |
| 364 | .autoscroller[translucent="true"][scrolldir="EW"] { |
| 365 | background-position: right bottom; |
| 366 | } |