| 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 file, |
| 3 | - You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | /* === BEGIN shared/in-content/preferences.css === */ |
| 6 | |
| 7 | @namespace html "http://www.w3.org/1999/xhtml"; |
| 8 | |
| 9 | #dialogBox, |
| 10 | dialog, |
| 11 | window, |
| 12 | prefwindow, |
| 13 | .windowDialog { |
| 14 | background-color: #000000; |
| 15 | } |
| 16 | |
| 17 | .main-content { |
| 18 | padding: 1.5em 0 0; /* That padding needs to match the upper stripe. */ |
| 19 | overflow: auto; |
| 20 | |
| 21 | /* This actually results in two black boxes extending to the right and bottom, |
| 22 | * leaving the LCARS-gray background only in a top stripe and |
| 23 | * a bit larger area on the top left. |
| 24 | * The prefpane will overlay that with the rounded shape we want. */ |
| 25 | background-color: #A09090; |
| 26 | background-position: 3em 1.5em, 0px 5em; |
| 27 | background-image: linear-gradient(0deg, #000, #000), linear-gradient(0deg, #000, #000); |
| 28 | background-repeat: no-repeat; |
| 29 | } |
| 30 | |
| 31 | prefpane { |
| 32 | padding: 10px 20px 0px; |
| 33 | border-radius: 1em 0 0 0; |
| 34 | background-color: #000000; |
| 35 | |
| 36 | max-width: 800px; |
| 37 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
| 38 | font-size: 1.25rem; |
| 39 | line-height: 22px; |
| 40 | color: #FF9F00; |
| 41 | } |
| 42 | |
| 43 | * { |
| 44 | -moz-user-select: text; |
| 45 | } |
| 46 | |
| 47 | button, |
| 48 | treecol { |
| 49 | /* override the * rule */ |
| 50 | -moz-user-select: none; |
| 51 | } |
| 52 | |
| 53 | /* Category List */ |
| 54 | |
| 55 | #categories { |
| 56 | background-color: #A09090; |
| 57 | padding-top: 4em; |
| 58 | margin: 0; |
| 59 | border-radius: 1em 0 0 0; |
| 60 | border: none; |
| 61 | } |
| 62 | |
| 63 | .category { |
| 64 | background-color: #000000; |
| 65 | color: #FFCF00; |
| 66 | -moz-border-end-width: 0; |
| 67 | -moz-padding-start: 15px; |
| 68 | -moz-padding-end: 21px; |
| 69 | min-height: 40px; |
| 70 | transition: background-color 150ms; |
| 71 | } |
| 72 | |
| 73 | .category:hover { |
| 74 | background-color: #FFCF00; |
| 75 | color: #000000; |
| 76 | } |
| 77 | |
| 78 | .category[selected] { |
| 79 | background-color: #008484; |
| 80 | color: #000000; |
| 81 | } |
| 82 | |
| 83 | #categories[keyboard-navigation="true"]:-moz-focusring > .category[current] { |
| 84 | border-top: 1px dotted #000000; |
| 85 | border-bottom: 1px dotted #000000; |
| 86 | } |
| 87 | |
| 88 | .category-name { |
| 89 | line-height: 22px; |
| 90 | font-size: 1.25rem; |
| 91 | padding-bottom: 2px; |
| 92 | -moz-padding-start: 9px; |
| 93 | margin: 0; |
| 94 | } |
| 95 | |
| 96 | .category-icon { |
| 97 | width: 24px; |
| 98 | height: 24px; |
| 99 | list-style-image: url("chrome://browser/skin/preferences/in-content/icons.png"); |
| 100 | } |
| 101 | |
| 102 | #category-general > .category-icon { |
| 103 | -moz-image-region: rect(0, 24px, 24px, 0); |
| 104 | } |
| 105 | |
| 106 | #category-general:hover > .category-icon, |
| 107 | #category-general[selected] > .category-icon { |
| 108 | -moz-image-region: rect(24px, 24px, 48px, 0); |
| 109 | } |
| 110 | |
| 111 | #category-search > .category-icon { |
| 112 | -moz-image-region: rect(0, 194px, 24px, 168px); |
| 113 | } |
| 114 | |
| 115 | #category-search:hover > .category-icon, |
| 116 | #category-search[selected] > .category-icon { |
| 117 | -moz-image-region: rect(24px, 194px, 48px, 168px); |
| 118 | } |
| 119 | |
| 120 | #category-content > .category-icon { |
| 121 | -moz-image-region: rect(0, 48px, 24px, 24px) |
| 122 | } |
| 123 | |
| 124 | #category-content:hover > .category-icon, |
| 125 | #category-content[selected] > .category-icon { |
| 126 | -moz-image-region: rect(24px, 48px, 48px, 24px); |
| 127 | } |
| 128 | |
| 129 | #category-application > .category-icon { |
| 130 | -moz-image-region: rect(0, 72px, 24px, 48px) |
| 131 | } |
| 132 | |
| 133 | #category-application:hover > .category-icon, |
| 134 | #category-application[selected] > .category-icon { |
| 135 | -moz-image-region: rect(24px, 72px, 48px, 48px); |
| 136 | } |
| 137 | |
| 138 | #category-privacy > .category-icon { |
| 139 | -moz-image-region: rect(0, 96px, 24px, 72px) |
| 140 | } |
| 141 | |
| 142 | #category-privacy:hover > .category-icon, |
| 143 | #category-privacy[selected] > .category-icon { |
| 144 | -moz-image-region: rect(24px, 96px, 48px, 72px); |
| 145 | } |
| 146 | |
| 147 | #category-security > .category-icon { |
| 148 | -moz-image-region: rect(0, 120px, 24px, 96px) |
| 149 | } |
| 150 | |
| 151 | #category-security:hover > .category-icon, |
| 152 | #category-security[selected] > .category-icon { |
| 153 | -moz-image-region: rect(24px, 120px, 48px, 96px); |
| 154 | } |
| 155 | |
| 156 | #category-sync > .category-icon { |
| 157 | -moz-image-region: rect(0, 144px, 24px, 120px); |
| 158 | } |
| 159 | |
| 160 | #category-sync:hover > .category-icon, |
| 161 | #category-sync[selected] > .category-icon { |
| 162 | -moz-image-region: rect(24px, 144px, 48px, 120px); |
| 163 | } |
| 164 | |
| 165 | #category-advanced > .category-icon { |
| 166 | -moz-image-region: rect(0, 168px, 24px, 144px) |
| 167 | } |
| 168 | |
| 169 | #category-advanced:hover > .category-icon, |
| 170 | #category-advanced[selected] > .category-icon { |
| 171 | -moz-image-region: rect(24px, 168px, 48px, 144px); |
| 172 | } |
| 173 | |
| 174 | /* header */ |
| 175 | |
| 176 | #header-advanced { |
| 177 | border-bottom: none; |
| 178 | padding-bottom: 0; |
| 179 | } |
| 180 | |
| 181 | .indent { |
| 182 | margin-top: 7px; |
| 183 | margin-bottom: 7px; |
| 184 | } |
| 185 | |
| 186 | /* General Pane */ |
| 187 | |
| 188 | #isNotDefaultLabel { |
| 189 | font-weight: bold; |
| 190 | } |
| 191 | |
| 192 | /* Applications Pane Styles */ |
| 193 | |
| 194 | #applicationsContent { |
| 195 | padding: 15px 0; |
| 196 | } |
| 197 | |
| 198 | #filter { |
| 199 | -moz-margin-start: 0; |
| 200 | } |
| 201 | |
| 202 | #handlersView { |
| 203 | -moz-margin-start: 0; |
| 204 | font-size: 1.25rem; |
| 205 | line-height: 22px; |
| 206 | border: none; /*1px solid #9C9CFF;*/ |
| 207 | margin: 0; |
| 208 | overflow-y: auto; |
| 209 | border-top-left-radius: 0; |
| 210 | border-top-right-radius: 0; |
| 211 | height: 500px; |
| 212 | } |
| 213 | |
| 214 | #handlersView > listheader > treecol { |
| 215 | } |
| 216 | |
| 217 | #handlersView > scrollbox { |
| 218 | border-left: 1px solid #9C9CFF; |
| 219 | border-right: 1px solid #9C9CFF; |
| 220 | border-bottom: 1px solid #9C9CFF; |
| 221 | } |
| 222 | |
| 223 | #handlersView > listheader { |
| 224 | background: transparent; |
| 225 | border: 0; |
| 226 | padding: 0; |
| 227 | } |
| 228 | |
| 229 | #typeColumn, |
| 230 | #actionColumn { |
| 231 | line-height: 20px; |
| 232 | /* color: #737980; |
| 233 | height: 36px; |
| 234 | padding: 0 10px; |
| 235 | background-color: #F7F7F7; |
| 236 | border: 1px solid #CCCCCC; |
| 237 | -moz-border-top-colors: none; |
| 238 | -moz-border-right-colors: none; |
| 239 | -moz-border-bottom-colors: none; |
| 240 | -moz-border-left-colors: none; |
| 241 | */ |
| 242 | } |
| 243 | |
| 244 | #typeColumn:-moz-locale-dir(ltr), |
| 245 | #actionColumn:-moz-locale-dir(rtl) { |
| 246 | border-top-left-radius: 5px; |
| 247 | } |
| 248 | |
| 249 | #typeColumn:-moz-locale-dir(rtl), |
| 250 | #actionColumn:-moz-locale-dir(ltr) { |
| 251 | border-top-right-radius: 5px; |
| 252 | } |
| 253 | /* |
| 254 | #typeColumn:hover, |
| 255 | #actionColumn:hover { |
| 256 | border-color: #737980; |
| 257 | } |
| 258 | |
| 259 | #typeColumn:hover:active, |
| 260 | #actionColumn:hover:active { |
| 261 | padding: 0 10px; |
| 262 | border-color: #0096DC; |
| 263 | } |
| 264 | */ |
| 265 | #typeColumn > .treecol-sortdirection[sortDirection=ascending], |
| 266 | #actionColumn > .treecol-sortdirection[sortDirection=ascending], |
| 267 | #typeColumn > .treecol-sortdirection[sortDirection=descending], |
| 268 | #actionColumn > .treecol-sortdirection[sortDirection=descending] { |
| 269 | } |
| 270 | |
| 271 | #typeColumn > .treecol-sortdirection[sortDirection=descending], |
| 272 | #actionColumn > .treecol-sortdirection[sortDirection=descending] { |
| 273 | } |
| 274 | |
| 275 | #handlersView > richlistitem { |
| 276 | min-height: 40px !important; |
| 277 | } |
| 278 | |
| 279 | .typeIcon { |
| 280 | -moz-margin-start: 10px !important; |
| 281 | -moz-margin-end: 9px !important; |
| 282 | } |
| 283 | |
| 284 | .actionIcon { |
| 285 | -moz-margin-start: 11px !important; |
| 286 | -moz-margin-end: 8px !important; |
| 287 | } |
| 288 | |
| 289 | .actionsMenu { |
| 290 | height: 40px; |
| 291 | max-height: 40px; |
| 292 | } |
| 293 | |
| 294 | .actionsMenu > menupopup > menuitem { |
| 295 | -moz-padding-start: 10px !important; |
| 296 | } |
| 297 | |
| 298 | .actionsMenu > menupopup > menuitem > .menu-iconic-left { |
| 299 | -moz-margin-end: 8px !important; |
| 300 | } |
| 301 | |
| 302 | /* XXX This style is for bug 740213 and should be removed once that |
| 303 | bug has a solution. */ |
| 304 | description > html|a { |
| 305 | cursor: pointer; |
| 306 | } |
| 307 | |
| 308 | #offlineAppsList, |
| 309 | #syncEnginesList { |
| 310 | /* -moz-appearance: none; |
| 311 | color: #737980; |
| 312 | padding: 10px; |
| 313 | border: 1px solid rgba(23,50,77,0.4); |
| 314 | border-radius: 5px; |
| 315 | background-color: #F1F1F1;*/ |
| 316 | } |
| 317 | |
| 318 | #noFxaAccount { |
| 319 | /* Overriding the margins from the base preferences.css theme file. |
| 320 | These overrides can be simplified by fixing bug 1027174 */ |
| 321 | margin: 0; |
| 322 | } |
| 323 | |
| 324 | #weavePrefsDeck > vbox > label, |
| 325 | #weavePrefsDeck > vbox > groupbox, |
| 326 | #weavePrefsDeck > vbox > description, |
| 327 | #weavePrefsDeck > vbox > #pairDevice > label, |
| 328 | #weavePrefsDeck > #needsUpdate > hbox > #loginError, |
| 329 | #weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-normal) > label, |
| 330 | #weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-small) > label { |
| 331 | /* no margin-start for elements at the begin of a line */ |
| 332 | -moz-margin-start: 0; |
| 333 | } |
| 334 | |
| 335 | #advancedPrefs { |
| 336 | padding-bottom: 0; /* no padding needed in inContent prefs */ |
| 337 | } |
| 338 | |
| 339 | #encryptionPanel { |
| 340 | margin-top: 15px; |
| 341 | } |
| 342 | |
| 343 | #telemetryLearnMore, |
| 344 | #FHRLearnMore, |
| 345 | #crashReporterLearnMore { |
| 346 | /* center the links */ |
| 347 | margin-top: 8px; |
| 348 | margin-bottom: 8px; |
| 349 | } |
| 350 | |
| 351 | |
| 352 | /** |
| 353 | * Sub-dialog |
| 354 | */ |
| 355 | |
| 356 | #dialogOverlay { |
| 357 | background-color: rgba(0,0,0,0.75); |
| 358 | visibility: hidden; |
| 359 | } |
| 360 | |
| 361 | #dialogBox { |
| 362 | border: 1px solid #9C9CFF; |
| 363 | display: -moz-box; |
| 364 | margin: 0; |
| 365 | padding-right: 6px; |
| 366 | padding-left: 6px; |
| 367 | } |
| 368 | |
| 369 | #dialogBox[resizable="true"] { |
| 370 | resize: both; |
| 371 | overflow: hidden; |
| 372 | min-height: 30em; |
| 373 | min-width: 66ch; |
| 374 | } |
| 375 | |
| 376 | .close-icon { |
| 377 | background-color: transparent !important; |
| 378 | border: none; |
| 379 | box-shadow: none; |
| 380 | height: 18px; |
| 381 | padding: 0; |
| 382 | min-width: 18px; |
| 383 | } |
| 384 | |
| 385 | #dialogBox > .groupbox-title > caption { |
| 386 | margin: 0; |
| 387 | border-radius: 1000px; |
| 388 | background-color: #A09090; |
| 389 | } |
| 390 | |
| 391 | #dialogBox > .groupbox-body { |
| 392 | -moz-appearance: none; |
| 393 | padding: 0; |
| 394 | } |
| 395 | |
| 396 | #dialogFrame { |
| 397 | -moz-box-flex: 1; |
| 398 | /* Default dialog dimensions */ |
| 399 | height: 30em; |
| 400 | width: 66ch; |
| 401 | } |
| 402 | |
| 403 | tree:not(#rejectsTree) { |
| 404 | min-height: 15em; |
| 405 | } |
| 406 | |
| 407 | :-moz-any(dialog, window, prefwindow) groupbox { |
| 408 | -moz-margin-start: 8px; |
| 409 | -moz-margin-end: 8px; |
| 410 | } |
| 411 | |
| 412 | /** |
| 413 | * End sub-dialog |
| 414 | */ |
| 415 | |
| 416 | /* === END shared/in-content/preferences.css === */ |
| 417 | |
| 418 | caption { |
| 419 | } |
| 420 | |
| 421 | .indent-small { |
| 422 | -moz-margin-start: 10px; |
| 423 | } |
| 424 | |
| 425 | @media (min-resolution: 2dppx) { |
| 426 | checkbox:hover::before, |
| 427 | checkbox[checked]::before { |
| 428 | } |
| 429 | |
| 430 | checkbox[checked]::before { |
| 431 | } |
| 432 | |
| 433 | .category-icon { |
| 434 | list-style-image: url("chrome://browser/skin/preferences/in-content/icons@2x.png"); |
| 435 | } |
| 436 | |
| 437 | #category-general > .category-icon { |
| 438 | -moz-image-region: rect(0, 48px, 48px, 0); |
| 439 | } |
| 440 | |
| 441 | #category-general:hover > .category-icon, |
| 442 | #category-general[selected] > .category-icon { |
| 443 | -moz-image-region: rect(48px, 48px, 96px, 0); |
| 444 | } |
| 445 | |
| 446 | #category-search > .category-icon { |
| 447 | -moz-image-region: rect(0, 384px, 48px, 336px); |
| 448 | } |
| 449 | |
| 450 | #category-search:hover > .category-icon, |
| 451 | #category-search[selected] > .category-icon { |
| 452 | -moz-image-region: rect(48, 384px, 96px, 336px); |
| 453 | } |
| 454 | |
| 455 | #category-content > .category-icon { |
| 456 | -moz-image-region: rect(0, 96px, 48px, 48px); |
| 457 | } |
| 458 | |
| 459 | #category-content:hover > .category-icon, |
| 460 | #category-content[selected] > .category-icon { |
| 461 | -moz-image-region: rect(48px, 96px, 96px, 48px); |
| 462 | } |
| 463 | |
| 464 | #category-application > .category-icon { |
| 465 | -moz-image-region: rect(0, 144px, 48px, 96px); |
| 466 | } |
| 467 | |
| 468 | #category-application:hover > .category-icon, |
| 469 | #category-application[selected] > .category-icon { |
| 470 | -moz-image-region: rect(48px, 144px, 96px, 96px); |
| 471 | } |
| 472 | |
| 473 | #category-privacy > .category-icon { |
| 474 | -moz-image-region: rect(0, 192px, 48px, 144px); |
| 475 | } |
| 476 | |
| 477 | #category-privacy:hover > .category-icon, |
| 478 | #category-privacy[selected] > .category-icon { |
| 479 | -moz-image-region: rect(48px, 192px, 96px, 144px); |
| 480 | } |
| 481 | |
| 482 | #category-security > .category-icon { |
| 483 | -moz-image-region: rect(0, 240px, 48px, 192px); |
| 484 | } |
| 485 | |
| 486 | #category-security:hover > .category-icon, |
| 487 | #category-security[selected] > .category-icon { |
| 488 | -moz-image-region: rect(48px, 240px, 96px, 192px); |
| 489 | } |
| 490 | |
| 491 | #category-sync > .category-icon { |
| 492 | -moz-image-region: rect(0, 288px, 48px, 240px); |
| 493 | } |
| 494 | |
| 495 | #category-sync:hover > .category-icon, |
| 496 | #category-sync[selected] > .category-icon { |
| 497 | -moz-image-region: rect(48px, 288px, 96px, 240px); |
| 498 | } |
| 499 | |
| 500 | #category-advanced > .category-icon { |
| 501 | -moz-image-region: rect(0, 336px, 48px, 288px); |
| 502 | } |
| 503 | |
| 504 | #category-advanced:hover > .category-icon, |
| 505 | #category-advanced[selected] > .category-icon { |
| 506 | -moz-image-region: rect(48px, 336px, 96px, 288px); |
| 507 | } |
| 508 | } |