browser/themes/osx/browser.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 @import url("chrome://global/skin/");
michael@0 6
michael@0 7 %include shared.inc
michael@0 8 %filter substitution
michael@0 9 %define forwardTransitionLength 150ms
michael@0 10 %define conditionalForwardWithUrlbar window:not([chromehidden~="toolbar"]) #urlbar-wrapper
michael@0 11 %define conditionalForwardWithUrlbarWidth 32
michael@0 12 %define spaceAboveTabbar 9px
michael@0 13 %define toolbarButtonPressed :hover:active:not([disabled="true"]):not([cui-areatype="menu-panel"])
michael@0 14 %define windowButtonMarginTop 11px
michael@0 15
michael@0 16 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 17 @namespace html url("http://www.w3.org/1999/xhtml");
michael@0 18 @namespace svg url("http://www.w3.org/2000/svg");
michael@0 19
michael@0 20 #urlbar:-moz-lwtheme:not([focused="true"]),
michael@0 21 .searchbar-textbox:-moz-lwtheme:not([focused="true"]) {
michael@0 22 opacity: .9;
michael@0 23 }
michael@0 24
michael@0 25 #navigator-toolbox::after {
michael@0 26 -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
michael@0 27 background-image: linear-gradient(to top, hsla(0,0%,0%,.15), hsla(0,0%,0%,.15) 1px, hsla(0,0%,100%,.15) 1px, hsla(0,0%,100%,.15) 2px, transparent 3px);
michael@0 28 content: "";
michael@0 29 display: -moz-box;
michael@0 30 height: 2px;
michael@0 31 margin-top: -2px;
michael@0 32 position: relative;
michael@0 33 z-index: 2; /* navbar is at 1 */
michael@0 34 }
michael@0 35
michael@0 36 #navigator-toolbox toolbarbutton:-moz-lwtheme {
michael@0 37 color: inherit;
michael@0 38 text-shadow: inherit;
michael@0 39 }
michael@0 40
michael@0 41 #main-window {
michael@0 42 -moz-appearance: none;
michael@0 43 background-color: #eeeeee;
michael@0 44 }
michael@0 45
michael@0 46 /** Begin titlebar **/
michael@0 47
michael@0 48 #titlebar-buttonbox > .titlebar-button {
michael@0 49 display: none;
michael@0 50 }
michael@0 51
michael@0 52 /* NB: these would be -moz-margin-start/end if it wasn't for the fact that OS X
michael@0 53 * doesn't reverse the order of the items in the titlebar in RTL mode. */
michael@0 54 .titlebar-placeholder[type="caption-buttons"],
michael@0 55 #titlebar-buttonbox {
michael@0 56 margin-left: 7px;
michael@0 57 }
michael@0 58
michael@0 59 @media (-moz-mac-lion-theme) {
michael@0 60 .titlebar-placeholder[type="fullscreen-button"],
michael@0 61 #titlebar-secondary-buttonbox {
michael@0 62 margin-right: 7px;
michael@0 63 margin-left: 7px;
michael@0 64 }
michael@0 65 }
michael@0 66
michael@0 67 #main-window:not(:-moz-lwtheme) > #titlebar {
michael@0 68 -moz-appearance: -moz-window-titlebar;
michael@0 69 }
michael@0 70
michael@0 71 #main-window:not([tabsintitlebar]) > #titlebar {
michael@0 72 height: 22px; /* The native titlebar on OS X is 22px tall. */
michael@0 73 }
michael@0 74
michael@0 75 /**
michael@0 76 * For tabs in titlebar on OS X, we stretch the titlebar down so that the
michael@0 77 * tabstrip can overlap it.
michael@0 78 */
michael@0 79 #main-window[tabsintitlebar] > #titlebar {
michael@0 80 min-height: calc(@tabMinHeight@ + @spaceAboveTabbar@ - @tabToolbarNavbarOverlap@);
michael@0 81 }
michael@0 82
michael@0 83 /**
michael@0 84 * We also vertically center the window buttons.
michael@0 85 */
michael@0 86 #main-window[tabsintitlebar] > #titlebar > #titlebar-content > #titlebar-buttonbox-container,
michael@0 87 #main-window[tabsintitlebar] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > #titlebar-fullscreen-button {
michael@0 88 margin-top: @windowButtonMarginTop@;
michael@0 89 }
michael@0 90
michael@0 91 #main-window[customize-entered] > #titlebar {
michael@0 92 -moz-appearance: none;
michael@0 93 }
michael@0 94
michael@0 95 /** End titlebar **/
michael@0 96
michael@0 97 #main-window[chromehidden~="toolbar"][chromehidden~="location"][chromehidden~="directories"] {
michael@0 98 border-top: 1px solid rgba(0,0,0,0.65);
michael@0 99 }
michael@0 100
michael@0 101 /* Because of -moz-box-align: center above, separators will be invisible unless
michael@0 102 we set their min-height. See bug 583510 for more information. */
michael@0 103 toolbarseparator {
michael@0 104 min-height: 22px;
michael@0 105 }
michael@0 106
michael@0 107 #navigator-toolbox > toolbar:not(#TabsToolbar):not(#nav-bar):not(:-moz-lwtheme) {
michael@0 108 -moz-appearance: none;
michael@0 109 background: url(chrome://browser/skin/Toolbar-background-noise.png) hsl(0,0%,83%);
michael@0 110 }
michael@0 111
michael@0 112 #TabsToolbar:not([collapsed="true"]) + #nav-bar {
michael@0 113 margin-top: -@tabToolbarNavbarOverlap@; /* Move up into the TabsToolbar */
michael@0 114 /* Position the toolbar above the bottom of background tabs */
michael@0 115 position: relative;
michael@0 116 z-index: 1;
michael@0 117 }
michael@0 118
michael@0 119 #nav-bar {
michael@0 120 -moz-appearance: none;
michael@0 121 background: url(chrome://browser/skin/Toolbar-background-noise.png),
michael@0 122 linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
michael@0 123 background-clip: border-box;
michael@0 124 background-origin: border-box !important;
michael@0 125
michael@0 126 /* Move the noise texture out of the top 1px strip because that overlaps
michael@0 127 with the tabbar and we don't want to repaint it when animating tabs.
michael@0 128 The noise image is at least 100px high, so repeating it only horizontally
michael@0 129 is enough. */
michael@0 130 background-repeat: repeat-x, no-repeat;
michael@0 131 background-position: 0 1px, 0 0;
michael@0 132
michael@0 133 box-shadow: inset 0 1px 0 hsla(0,0%,100%,.4);
michael@0 134 }
michael@0 135
michael@0 136 @media (min-resolution: 2dppx) {
michael@0 137 #nav-bar {
michael@0 138 background-size: 100px 100px, auto;
michael@0 139 }
michael@0 140 }
michael@0 141
michael@0 142 #nav-bar-customization-target {
michael@0 143 padding: 4px;
michael@0 144 }
michael@0 145
michael@0 146 #PersonalToolbar {
michael@0 147 padding: 0 4px 4px;
michael@0 148 /* 4px padding ^ plus 19px personal-bookmarks (see below) */
michael@0 149 min-height: 23px;
michael@0 150 }
michael@0 151
michael@0 152 #navigator-toolbox > toolbar:not(#TabsToolbar):-moz-lwtheme {
michael@0 153 background-color: @toolbarColorLWT@;
michael@0 154 background-image: url(chrome://browser/skin/Toolbar-background-noise.png);
michael@0 155 }
michael@0 156
michael@0 157 #PersonalToolbar:not(:-moz-lwtheme):-moz-window-inactive,
michael@0 158 #nav-bar:not(:-moz-lwtheme):-moz-window-inactive {
michael@0 159 background-color: -moz-mac-chrome-inactive;
michael@0 160 }
michael@0 161
michael@0 162 /* ----- BOOKMARK TOOLBAR ----- */
michael@0 163
michael@0 164 #personal-bookmarks {
michael@0 165 min-height: 19px; /* 16px button height + 2px padding + 1px margin-bottom */
michael@0 166 }
michael@0 167
michael@0 168 toolbarbutton.chevron {
michael@0 169 list-style-image: url("chrome://global/skin/icons/chevron.png");
michael@0 170 margin: 1px 0 0;
michael@0 171 padding: 0;
michael@0 172 }
michael@0 173
michael@0 174 toolbarbutton.chevron > .toolbarbutton-text {
michael@0 175 display: none;
michael@0 176 }
michael@0 177
michael@0 178 toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon {
michael@0 179 transform: scaleX(-1);
michael@0 180 }
michael@0 181
michael@0 182 @media (min-resolution: 2dppx) {
michael@0 183 toolbarbutton.chevron {
michael@0 184 list-style-image: url("chrome://global/skin/icons/chevron@2x.png");
michael@0 185 }
michael@0 186
michael@0 187 toolbarbutton.chevron > .toolbarbutton-icon {
michael@0 188 width: 13px;
michael@0 189 }
michael@0 190 }
michael@0 191
michael@0 192 /* ----- BOOKMARK BUTTONS ----- */
michael@0 193
michael@0 194 toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button),
michael@0 195 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
michael@0 196 border: 0;
michael@0 197 border-radius: 10000px;
michael@0 198 padding: 1px 8px;
michael@0 199 margin: 0 0 1px;
michael@0 200 }
michael@0 201
michael@0 202 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
michael@0 203 -moz-box-orient: horizontal;
michael@0 204 }
michael@0 205
michael@0 206 .bookmark-item > .toolbarbutton-menu-dropmarker {
michael@0 207 list-style-image: url("chrome://browser/skin/places/folderDropArrow.png");
michael@0 208 -moz-image-region: rect(0, 7px, 5px, 0);
michael@0 209 margin-top: 1px;
michael@0 210 -moz-margin-start: 3px;
michael@0 211 -moz-margin-end: -2px;
michael@0 212 }
michael@0 213
michael@0 214 @media (min-resolution: 2dppx) {
michael@0 215 .bookmark-item > .toolbarbutton-menu-dropmarker {
michael@0 216 list-style-image: url("chrome://browser/skin/places/folderDropArrow@2x.png");
michael@0 217 -moz-image-region: rect(0, 14px, 10px, 0);
michael@0 218 }
michael@0 219
michael@0 220 .bookmark-item > .toolbarbutton-menu-dropmarker > .dropmarker-icon {
michael@0 221 width: 7px;
michael@0 222 }
michael@0 223 }
michael@0 224
michael@0 225 .bookmark-item > .toolbarbutton-text,
michael@0 226 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text {
michael@0 227 display: -moz-box !important; /* Force the display of the label for bookmarks */
michael@0 228 margin: 0 !important;
michael@0 229 }
michael@0 230
michael@0 231 toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button):hover {
michael@0 232 background-color: rgba(0, 0, 0, .205);
michael@0 233 }
michael@0 234
michael@0 235 toolbarbutton.bookmark-item:hover:not(.subviewbutton),
michael@0 236 toolbarbutton.bookmark-item[open="true"]:not(.subviewbutton) {
michael@0 237 color: #FFF !important;
michael@0 238 text-shadow: 0 1px rgba(0, 0, 0, .4) !important;
michael@0 239 }
michael@0 240
michael@0 241 .bookmark-item:hover > .toolbarbutton-menu-dropmarker,
michael@0 242 .bookmark-item[open="true"] > .toolbarbutton-menu-dropmarker {
michael@0 243 -moz-image-region: rect(5px, 7px, 10px, 0);
michael@0 244 }
michael@0 245
michael@0 246 @media (min-resolution: 2dppx) {
michael@0 247 .bookmark-item:hover > .toolbarbutton-menu-dropmarker,
michael@0 248 .bookmark-item[open="true"] > .toolbarbutton-menu-dropmarker {
michael@0 249 -moz-image-region: rect(10px, 14px, 20px, 0);
michael@0 250 }
michael@0 251 }
michael@0 252
michael@0 253 toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button):active:hover,
michael@0 254 toolbarbutton.bookmark-item:not(.subviewbutton):not(#bookmarks-menu-button)[open="true"] {
michael@0 255 box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4), 0 1px rgba(255, 255, 255, 0.4);
michael@0 256 background-color: rgba(0, 0, 0, .5);
michael@0 257 }
michael@0 258
michael@0 259 toolbarbutton.bookmark-item > menupopup {
michael@0 260 margin-top: 2px;
michael@0 261 -moz-margin-start: 3px;
michael@0 262 }
michael@0 263
michael@0 264 .bookmark-item:not(#home-button) > .toolbarbutton-icon,
michael@0 265 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
michael@0 266 width: 16px;
michael@0 267 min-height: 16px;
michael@0 268 max-height: 16px;
michael@0 269 }
michael@0 270
michael@0 271 .bookmark-item > .toolbarbutton-icon[label]:not([label=""]),
michael@0 272 .bookmark-item > .toolbarbutton-icon[type="menu"],
michael@0 273 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder > .toolbarbutton-icon[label]:not([label=""]) {
michael@0 274 -moz-margin-end: 5px;
michael@0 275 }
michael@0 276
michael@0 277 .bookmark-item[container] {
michael@0 278 list-style-image: url("chrome://global/skin/tree/folder.png");
michael@0 279 }
michael@0 280
michael@0 281 .bookmark-item[container][livemark] {
michael@0 282 list-style-image: url("chrome://browser/skin/page-livemarks.png");
michael@0 283 }
michael@0 284
michael@0 285 .bookmark-item[container][livemark] .bookmark-item {
michael@0 286 list-style-image: url("chrome://browser/skin/places/livemark-item.png");
michael@0 287 -moz-image-region: rect(0px, 16px, 16px, 0px);
michael@0 288 }
michael@0 289
michael@0 290 .bookmark-item[container][livemark] .bookmark-item[visited] {
michael@0 291 -moz-image-region: rect(0px, 32px, 16px, 16px);
michael@0 292 }
michael@0 293
michael@0 294 .bookmark-item[container][query] {
michael@0 295 list-style-image: url("chrome://browser/skin/places/query.png");
michael@0 296 }
michael@0 297
michael@0 298 .bookmark-item[query][tagContainer] {
michael@0 299 list-style-image: url("chrome://browser/skin/places/tag.png");
michael@0 300 }
michael@0 301
michael@0 302 .bookmark-item[query][dayContainer] {
michael@0 303 list-style-image: url("chrome://browser/skin/places/history.png");
michael@0 304 }
michael@0 305
michael@0 306 .bookmark-item[query][hostContainer] {
michael@0 307 list-style-image: url("chrome://global/skin/tree/folder.png");
michael@0 308 }
michael@0 309
michael@0 310 .bookmark-item[query][hostContainer][open] {
michael@0 311 list-style-image: url("chrome://global/skin/tree/folder.png");
michael@0 312 }
michael@0 313
michael@0 314 @media (min-resolution: 2dppx) {
michael@0 315 .bookmark-item[container] {
michael@0 316 list-style-image: url("chrome://global/skin/tree/folder@2x.png");
michael@0 317 }
michael@0 318
michael@0 319 .bookmark-item[container][livemark] {
michael@0 320 list-style-image: url("chrome://browser/skin/page-livemarks@2x.png");
michael@0 321 }
michael@0 322
michael@0 323 .bookmark-item[container][livemark] .bookmark-item {
michael@0 324 list-style-image: url("chrome://browser/skin/places/livemark-item.png");
michael@0 325 }
michael@0 326
michael@0 327 .bookmark-item[container][query] {
michael@0 328 list-style-image: url("chrome://browser/skin/places/query@2x.png");
michael@0 329 }
michael@0 330
michael@0 331 .bookmark-item[query][tagContainer] {
michael@0 332 list-style-image: url("chrome://browser/skin/places/tag@2x.png");
michael@0 333 }
michael@0 334
michael@0 335 .bookmark-item[query][dayContainer] {
michael@0 336 list-style-image: url("chrome://browser/skin/places/history@2x.png");
michael@0 337 }
michael@0 338
michael@0 339 .bookmark-item[query][hostContainer] {
michael@0 340 list-style-image: url("chrome://global/skin/tree/folder@2x.png");
michael@0 341 }
michael@0 342
michael@0 343 .bookmark-item[query][hostContainer][open] {
michael@0 344 list-style-image: url("chrome://global/skin/tree/folder@2x.png");
michael@0 345 }
michael@0 346 }
michael@0 347
michael@0 348 /* Workaround for native menubar inheritance */
michael@0 349 .openintabs-menuitem,
michael@0 350 .openlivemarksite-menuitem,
michael@0 351 .livemarkstatus-menuitem {
michael@0 352 list-style-image: none;
michael@0 353 }
michael@0 354
michael@0 355 .bookmark-item[cutting] > .toolbarbutton-icon,
michael@0 356 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
michael@0 357 opacity: 0.5;
michael@0 358 }
michael@0 359
michael@0 360 .bookmark-item[cutting] > .toolbarbutton-text,
michael@0 361 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
michael@0 362 opacity: 0.7;
michael@0 363 }
michael@0 364
michael@0 365 @media (min-resolution: 2dppx) {
michael@0 366 .bookmark-item > .toolbarbutton-icon,
michael@0 367 .bookmark-item > .menu-iconic-left > .menu-iconic-icon,
michael@0 368 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
michael@0 369 image-rendering: -moz-crisp-edges;
michael@0 370 }
michael@0 371 }
michael@0 372
michael@0 373 #bookmarks-toolbar-placeholder {
michael@0 374 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
michael@0 375 }
michael@0 376
michael@0 377 toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
michael@0 378 #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
michael@0 379 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important;
michael@0 380 }
michael@0 381
michael@0 382 @media (min-resolution: 2dppx) {
michael@0 383 #bookmarks-toolbar-placeholder {
michael@0 384 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar@2x.png") !important;
michael@0 385 }
michael@0 386
michael@0 387 toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
michael@0 388 #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
michael@0 389 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel@2x.png") !important;
michael@0 390 }
michael@0 391
michael@0 392 #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
michael@0 393 width: 16px;
michael@0 394 }
michael@0 395 }
michael@0 396
michael@0 397 /* ----- BOOKMARK STAR ANIMATION ----- */
michael@0 398
michael@0 399 @keyframes animation-bookmarkAdded {
michael@0 400 from { transform: rotate(0deg) translateX(-14px) rotate(0deg) scale(1); opacity: 0; }
michael@0 401 60% { transform: rotate(180deg) translateX(-14px) rotate(-180deg) scale(2.2); opacity: 1; }
michael@0 402 80% { opacity: 1; }
michael@0 403 to { transform: rotate(180deg) translateX(-14px) rotate(-180deg) scale(1); opacity: 0; }
michael@0 404 }
michael@0 405
michael@0 406 @keyframes animation-bookmarkPulse {
michael@0 407 from { transform: scale(1); }
michael@0 408 50% { transform: scale(1.3); }
michael@0 409 to { transform: scale(1); }
michael@0 410 }
michael@0 411
michael@0 412 #bookmarked-notification-container {
michael@0 413 min-height: 1px;
michael@0 414 min-width: 1px;
michael@0 415 height: 1px;
michael@0 416 margin-bottom: -1px;
michael@0 417 z-index: 5;
michael@0 418 position: relative;
michael@0 419 }
michael@0 420
michael@0 421 #bookmarked-notification {
michael@0 422 background-size: 16px;
michael@0 423 background-position: center;
michael@0 424 background-repeat: no-repeat;
michael@0 425 width: 16px;
michael@0 426 height: 16px;
michael@0 427 opacity: 0;
michael@0 428 }
michael@0 429
michael@0 430 #bookmarked-notification-dropmarker-anchor {
michael@0 431 z-index: -1;
michael@0 432 position: relative;
michael@0 433 }
michael@0 434
michael@0 435 #bookmarked-notification-dropmarker-icon {
michael@0 436 width: 18px;
michael@0 437 height: 18px;
michael@0 438 visibility: hidden;
michael@0 439 }
michael@0 440
michael@0 441 #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
michael@0 442 background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png");
michael@0 443 animation: animation-bookmarkAdded 800ms;
michael@0 444 animation-timing-function: ease, ease, ease;
michael@0 445 }
michael@0 446
michael@0 447 @media (min-resolution: 2dppx) {
michael@0 448 #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
michael@0 449 background-image: url("chrome://browser/skin/places/bookmarks-notification-finish@2x.png");
michael@0 450 }
michael@0 451 }
michael@0 452
michael@0 453 #bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 454 list-style-image: none !important;
michael@0 455 }
michael@0 456
michael@0 457 #bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon {
michael@0 458 visibility: visible;
michael@0 459 animation: animation-bookmarkPulse 300ms;
michael@0 460 animation-delay: 600ms;
michael@0 461 animation-timing-function: ease-out;
michael@0 462 }
michael@0 463
michael@0 464 /* ----- BOOKMARK MENUS ----- */
michael@0 465
michael@0 466 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
michael@0 467 width: 16px;
michael@0 468 height: 16px;
michael@0 469 }
michael@0 470
michael@0 471 #bookmarksToolbarFolderMenu,
michael@0 472 #BMB_bookmarksToolbar,
michael@0 473 #panelMenu_bookmarksToolbar {
michael@0 474 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
michael@0 475 }
michael@0 476
michael@0 477 #BMB_unsortedBookmarks,
michael@0 478 #panelMenu_unsortedBookmarks {
michael@0 479 list-style-image: url("chrome://browser/skin/places/unfiledBookmarks.png");
michael@0 480 }
michael@0 481
michael@0 482 @media (min-resolution: 2dppx) {
michael@0 483 #bookmarksToolbarFolderMenu,
michael@0 484 #BMB_bookmarksToolbar {
michael@0 485 list-style-image: url("chrome://browser/skin/places/bookmarksToolbar@2x.png");
michael@0 486 }
michael@0 487
michael@0 488 #BMB_unsortedBookmarks {
michael@0 489 list-style-image: url("chrome://browser/skin/places/unfiledBookmarks@2x.png");
michael@0 490 }
michael@0 491 }
michael@0 492
michael@0 493 /* ----- PRIMARY TOOLBAR BUTTONS ----- */
michael@0 494
michael@0 495 toolbar .toolbarbutton-1:not([type="menu-button"]),
michael@0 496 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
michael@0 497 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 498 -moz-box-orient: vertical;
michael@0 499 height: 24px;
michael@0 500 padding: 0;
michael@0 501 border: 0;
michael@0 502 }
michael@0 503
michael@0 504 toolbar .toolbarbutton-1:not(:-moz-any([type="menu-button"],#back-button,#forward-button)),
michael@0 505 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
michael@0 506 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 507 border: 1px solid transparent;
michael@0 508 border-radius: @toolbarbuttonCornerRadius@;
michael@0 509 transition-property: background, border-color;
michael@0 510 transition-duration: 250ms;
michael@0 511 }
michael@0 512
michael@0 513 toolbar .toolbarbutton-1:not(:-moz-any([type="menu-button"],#back-button,#forward-button)) {
michael@0 514 padding: 0 4px;
michael@0 515 }
michael@0 516
michael@0 517 toolbar .toolbarbutton-1:not(:-moz-any([type="menu-button"],[disabled],[open],#back-button,#forward-button)):hover,
michael@0 518 toolbar .toolbarbutton-1[type="menu-button"]:not([disabled]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker,
michael@0 519 toolbar .toolbarbutton-1[type="menu-button"]:not([disabled]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button,
michael@0 520 toolbar .toolbarbutton-1[type="menu-button"]:not([disabled]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker,
michael@0 521 toolbar .toolbaritem-combined-buttons:hover > .toolbarbutton-combined {
michael@0 522 border-color: hsla(0,0%,0%,.2);
michael@0 523 box-shadow: 0 1px 0 hsla(0,0%,100%,.5),
michael@0 524 0 1px 0 hsla(0,0%,100%,.5) inset;
michael@0 525 }
michael@0 526
michael@0 527 toolbar .toolbarbutton-1:not(:-moz-any([type="menu-button"],[disabled],[open],#back-button,#forward-button)):hover,
michael@0 528 toolbar .toolbarbutton-1[type="menu-button"]:not(:-moz-any([disabled],[open]))[buttonover] > .toolbarbutton-menubutton-button,
michael@0 529 toolbar .toolbarbutton-1[type="menu-button"]:not(:-moz-any([disabled],[open],[buttonover])):hover > .toolbarbutton-menubutton-dropmarker {
michael@0 530 background: hsla(0,0%,100%,.1) linear-gradient(hsla(0,0%,100%,.3), hsla(0,0%,100%,.1)) padding-box;
michael@0 531 }
michael@0 532
michael@0 533 toolbar .toolbarbutton-1:not(:-moz-any([type="menu-button"],[disabled],#back-button,#forward-button)):-moz-any(:hover:active,[open],[checked]),
michael@0 534 toolbar .toolbarbutton-1[type="menu-button"]:not([disabled]) > .toolbarbutton-menubutton-button[open],
michael@0 535 toolbar .toolbarbutton-1[type="menu-button"]:not(:-moz-any([disabled],[open]))[buttonover]:active > .toolbarbutton-menubutton-button,
michael@0 536 toolbar .toolbarbutton-1[type="menu-button"]:not(:-moz-any([disabled],[open],[buttonover])):hover:active > .toolbarbutton-menubutton-dropmarker,
michael@0 537 toolbar .toolbarbutton-1[type="menu-button"][open]:not([disabled]) > .toolbarbutton-menubutton-dropmarker {
michael@0 538 background: hsla(0,0%,0%,.02) linear-gradient(hsla(0,0%,0%,.12), hsla(0,0%,0%,0)) border-box;
michael@0 539 border-color: hsla(0,0%,0%,.3);
michael@0 540 box-shadow: 0 1px 0 hsla(0,0%,100%,.5),
michael@0 541 0 1px 0 hsla(0,0%,0%,.05) inset,
michael@0 542 0 1px 1px hsla(0,0%,0%,.2) inset;
michael@0 543 transition-duration: 10ms;
michael@0 544 }
michael@0 545
michael@0 546 toolbar .toolbarbutton-1[checked]:not(:active):hover {
michael@0 547 background-color: hsla(0,0%,0%,.09);
michael@0 548 transition: background-color 250ms;
michael@0 549 }
michael@0 550
michael@0 551 .toolbarbutton-1[type="menu-button"]:not([overflowedItem=true]) {
michael@0 552 padding: 0;
michael@0 553 }
michael@0 554
michael@0 555 toolbar .toolbarbutton-1[type="menu-button"] {
michael@0 556 margin: 0;
michael@0 557 }
michael@0 558
michael@0 559 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
michael@0 560 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 561 margin: 0;
michael@0 562 }
michael@0 563
michael@0 564 .toolbarbutton-1 {
michael@0 565 margin: 0 4px;
michael@0 566 }
michael@0 567
michael@0 568 toolbar .toolbarbutton-1:not([type="menu-button"]) {
michael@0 569 margin: 0 2px;
michael@0 570 }
michael@0 571
michael@0 572 /**
michael@0 573 * Draw seperators before toolbar button dropmarkers, as well as between
michael@0 574 * consecutive toolbarbutton-1's within a toolbaritem.
michael@0 575 */
michael@0 576 toolbar .toolbaritem-combined-buttons > separator,
michael@0 577 toolbar .toolbarbutton-1:not(:-moz-any([open],:hover)) > .toolbarbutton-menubutton-dropmarker::before {
michael@0 578 content: "";
michael@0 579 display: -moz-box;
michael@0 580 position: relative;
michael@0 581 top: calc(50% - 9px);
michael@0 582 width: 1px;
michael@0 583 height: 18px;
michael@0 584 -moz-margin-start: -1px;
michael@0 585 background-image: linear-gradient(hsla(0,0%,0%,.15) 0, hsla(0,0%,0%,.15) 18px);
michael@0 586 background-clip: padding-box;
michael@0 587 background-position: center;
michael@0 588 background-repeat: no-repeat;
michael@0 589 background-size: 1px 18px;
michael@0 590 box-shadow: 0 0 0 1px hsla(0,0%,100%,.15);
michael@0 591 }
michael@0 592
michael@0 593 toolbar .toolbaritem-combined-buttons:hover > separator {
michael@0 594 display: none;
michael@0 595 }
michael@0 596
michael@0 597 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 598 -moz-box-orient: horizontal;
michael@0 599 }
michael@0 600
michael@0 601 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
michael@0 602 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 603 margin: 0 4px;
michael@0 604 }
michael@0 605
michael@0 606 #nav-bar .toolbarbutton-1:not(#back-button):not(#forward-button) {
michael@0 607 margin-top: 4px;
michael@0 608 margin-bottom: 4px;
michael@0 609 }
michael@0 610
michael@0 611 #nav-bar #PanelUI-button {
michael@0 612 -moz-box-align: center;
michael@0 613 }
michael@0 614
michael@0 615 #nav-bar #PanelUI-menu-button {
michael@0 616 margin-top: 0;
michael@0 617 margin-bottom: 0;
michael@0 618 padding-top: 1px;
michael@0 619 padding-bottom: 1px;
michael@0 620 -moz-margin-start: 9px;
michael@0 621 -moz-margin-end: 7px;
michael@0 622 }
michael@0 623
michael@0 624 @media not all and (min-resolution: 2dppx) {
michael@0 625 %include ../shared/toolbarbuttons.inc.css
michael@0 626 %include ../shared/menupanel.inc.css
michael@0 627
michael@0 628 #back-button:hover:active:not([disabled="true"]) {
michael@0 629 -moz-image-region: rect(18px, 36px, 36px, 18px);
michael@0 630 }
michael@0 631
michael@0 632 #forward-button:hover:active:not([disabled="true"]) {
michael@0 633 -moz-image-region: rect(18px, 72px, 36px, 54px);
michael@0 634 }
michael@0 635
michael@0 636 #home-button@toolbarButtonPressed@ {
michael@0 637 -moz-image-region: rect(18px, 126px, 36px, 108px);
michael@0 638 }
michael@0 639
michael@0 640 #bookmarks-menu-button[buttonover]@toolbarButtonPressed@ {
michael@0 641 -moz-image-region: rect(18px, 144px, 36px, 126px);
michael@0 642 }
michael@0 643
michael@0 644 #bookmarks-menu-button[starred][buttonover]@toolbarButtonPressed@ {
michael@0 645 -moz-image-region: rect(18px, 162px, 36px, 144px);
michael@0 646 }
michael@0 647
michael@0 648 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 649 -moz-image-region: rect(0px, 630px, 18px, 612px);
michael@0 650 }
michael@0 651
michael@0 652 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker:hover:active:not([disabled="true"]) > .dropmarker-icon {
michael@0 653 -moz-image-region: rect(18px, 630px, 36px, 612px);
michael@0 654 }
michael@0 655
michael@0 656 #history-panelmenu@toolbarButtonPressed@ {
michael@0 657 -moz-image-region: rect(18px, 180px, 36px, 162px);
michael@0 658 }
michael@0 659
michael@0 660 #downloads-button@toolbarButtonPressed@ {
michael@0 661 -moz-image-region: rect(18px, 198px, 36px, 180px);
michael@0 662 }
michael@0 663
michael@0 664 #add-ons-button@toolbarButtonPressed@ {
michael@0 665 -moz-image-region: rect(18px, 216px, 36px, 198px);
michael@0 666 }
michael@0 667
michael@0 668 #open-file-button@toolbarButtonPressed@ {
michael@0 669 -moz-image-region: rect(18px, 234px, 36px, 216px);
michael@0 670 }
michael@0 671
michael@0 672 #save-page-button@toolbarButtonPressed@ {
michael@0 673 -moz-image-region: rect(18px, 252px, 36px, 234px);
michael@0 674 }
michael@0 675
michael@0 676 #sync-button@toolbarButtonPressed@ {
michael@0 677 -moz-image-region: rect(18px, 270px, 36px, 252px);
michael@0 678 }
michael@0 679
michael@0 680 #feed-button@toolbarButtonPressed@ {
michael@0 681 -moz-image-region: rect(18px, 288px, 36px, 270px);
michael@0 682 }
michael@0 683
michael@0 684 #social-share-button@toolbarButtonPressed@ {
michael@0 685 -moz-image-region: rect(18px, 306px, 36px, 288px);
michael@0 686 }
michael@0 687
michael@0 688 #characterencoding-button@toolbarButtonPressed@ {
michael@0 689 -moz-image-region: rect(18px, 324px, 36px, 306px);
michael@0 690 }
michael@0 691
michael@0 692 #new-window-button@toolbarButtonPressed@ {
michael@0 693 -moz-image-region: rect(18px, 342px, 36px, 324px);
michael@0 694 }
michael@0 695
michael@0 696 #e10s-button@toolbarButtonPressed@ {
michael@0 697 -moz-image-region: rect(18px, 342px, 36px, 324px);
michael@0 698 }
michael@0 699
michael@0 700 #new-tab-button@toolbarButtonPressed@ {
michael@0 701 -moz-image-region: rect(18px, 360px, 36px, 342px);
michael@0 702 }
michael@0 703
michael@0 704 #privatebrowsing-button@toolbarButtonPressed@ {
michael@0 705 -moz-image-region: rect(18px, 378px, 36px, 360px);
michael@0 706 }
michael@0 707
michael@0 708 #find-button@toolbarButtonPressed@ {
michael@0 709 -moz-image-region: rect(18px, 396px, 36px, 378px);
michael@0 710 }
michael@0 711
michael@0 712 #print-button@toolbarButtonPressed@ {
michael@0 713 -moz-image-region: rect(18px, 414px, 36px, 396px);
michael@0 714 }
michael@0 715
michael@0 716 #restore-button@toolbarButtonPressed@,
michael@0 717 #fullscreen-button@toolbarButtonPressed@ {
michael@0 718 -moz-image-region: rect(18px, 432px, 36px, 414px);
michael@0 719 }
michael@0 720
michael@0 721 #developer-button@toolbarButtonPressed@ {
michael@0 722 -moz-image-region: rect(18px, 450px, 36px, 432px);
michael@0 723 }
michael@0 724
michael@0 725 #preferences-button@toolbarButtonPressed@ {
michael@0 726 -moz-image-region: rect(18px, 468px, 36px, 450px);
michael@0 727 }
michael@0 728
michael@0 729 #PanelUI-menu-button@toolbarButtonPressed@ {
michael@0 730 -moz-image-region: rect(18px, 486px, 36px, 468px);
michael@0 731 }
michael@0 732
michael@0 733 #cut-button@toolbarButtonPressed@ {
michael@0 734 -moz-image-region: rect(18px, 504px, 36px, 486px);
michael@0 735 }
michael@0 736
michael@0 737 #copy-button@toolbarButtonPressed@ {
michael@0 738 -moz-image-region: rect(18px, 522px, 36px, 504px);
michael@0 739 }
michael@0 740
michael@0 741 #paste-button@toolbarButtonPressed@ {
michael@0 742 -moz-image-region: rect(18px, 540px, 36px, 522px);
michael@0 743 }
michael@0 744
michael@0 745 #zoom-out-button@toolbarButtonPressed@ {
michael@0 746 -moz-image-region: rect(18px, 558px, 36px, 540px);
michael@0 747 }
michael@0 748
michael@0 749 #zoom-in-button@toolbarButtonPressed@ {
michael@0 750 -moz-image-region: rect(18px, 576px, 36px, 558px);
michael@0 751 }
michael@0 752
michael@0 753 #webrtc-status-button@toolbarButtonPressed@ {
michael@0 754 -moz-image-region: rect(18px, 594px, 36px, 576px);
michael@0 755 }
michael@0 756
michael@0 757 #nav-bar-overflow-button@toolbarButtonPressed@ {
michael@0 758 -moz-image-region: rect(18px, 612px, 36px, 594px);
michael@0 759 }
michael@0 760
michael@0 761 #tabview-button@toolbarButtonPressed@ {
michael@0 762 -moz-image-region: rect(18px, 648px, 36px, 630px);
michael@0 763 }
michael@0 764
michael@0 765 #email-link-button@toolbarButtonPressed@ {
michael@0 766 -moz-image-region: rect(18px, 666px, 36px, 648px);
michael@0 767 }
michael@0 768
michael@0 769 #sidebar-button@toolbarButtonPressed@ {
michael@0 770 -moz-image-region: rect(18px, 684px, 36px, 666px);
michael@0 771 }
michael@0 772
michael@0 773 /**
michael@0 774 * OSX has a unique set of icons when fullscreen is in the checked state.
michael@0 775 */
michael@0 776
michael@0 777 #fullscreen-button[checked="true"]:not([cui-areatype="menu-panel"]) {
michael@0 778 -moz-image-region: rect(36px, 432px, 54px, 414px);
michael@0 779 }
michael@0 780
michael@0 781 #fullscreen-button[checked="true"]@toolbarButtonPressed@ {
michael@0 782 -moz-image-region: rect(54px, 432px, 72px, 414px);
michael@0 783 }
michael@0 784 }
michael@0 785
michael@0 786 @media (min-resolution: 2dppx) {
michael@0 787 /* Whitelist built-in buttons, instead of .toolbarbutton-1,
michael@0 788 to avoid potentially breaking add-on toolbar buttons. */
michael@0 789
michael@0 790 :-moz-any(@primaryToolbarButtons@),
michael@0 791 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 792 list-style-image: url("chrome://browser/skin/Toolbar@2x.png");
michael@0 793 }
michael@0 794
michael@0 795 toolbar[brighttext] :-moz-any(@primaryToolbarButtons@),
michael@0 796 toolbar[brighttext] #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 797 list-style-image: url("chrome://browser/skin/Toolbar-inverted@2x.png");
michael@0 798 }
michael@0 799
michael@0 800 #back-button {
michael@0 801 -moz-image-region: rect(0, 72px, 36px, 36px);
michael@0 802 }
michael@0 803
michael@0 804 #back-button:hover:active:not([disabled="true"]) {
michael@0 805 -moz-image-region: rect(36px, 72px, 72px, 36px);
michael@0 806 }
michael@0 807
michael@0 808 #forward-button {
michael@0 809 -moz-image-region: rect(0, 144px, 36px, 108px);
michael@0 810 }
michael@0 811
michael@0 812 #forward-button:hover:active:not([disabled="true"]) {
michael@0 813 -moz-image-region: rect(36px, 144px, 72px, 108px);
michael@0 814 }
michael@0 815
michael@0 816 #home-button[cui-areatype="toolbar"] {
michael@0 817 -moz-image-region: rect(0, 252px, 36px, 216px);
michael@0 818 }
michael@0 819
michael@0 820 #home-button[cui-areatype="toolbar"]:hover:active {
michael@0 821 -moz-image-region: rect(36px, 252px, 72px, 216px);
michael@0 822 }
michael@0 823
michael@0 824 #bookmarks-menu-button[cui-areatype="toolbar"] {
michael@0 825 -moz-image-region: rect(0, 288px, 36px, 252px);
michael@0 826 }
michael@0 827
michael@0 828 #bookmarks-menu-button[cui-areatype="toolbar"][buttonover]:hover:active:not([disabled="true"]) {
michael@0 829 -moz-image-region: rect(36px, 288px, 72px, 252px);
michael@0 830 }
michael@0 831
michael@0 832 #bookmarks-menu-button[cui-areatype="toolbar"][starred] {
michael@0 833 -moz-image-region: rect(0, 324px, 36px, 288px);
michael@0 834 }
michael@0 835
michael@0 836 #bookmarks-menu-button[cui-areatype="toolbar"][starred][buttonover]:hover:active:not([disabled="true"]) {
michael@0 837 -moz-image-region: rect(36px, 324px, 72px, 288px);
michael@0 838 }
michael@0 839
michael@0 840 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 841 -moz-image-region: rect(0px, 1260px, 36px, 1224px);
michael@0 842 }
michael@0 843
michael@0 844 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker:hover:active:not([disabled="true"]) > .dropmarker-icon {
michael@0 845 -moz-image-region: rect(36px, 1260px, 72px, 1224px);
michael@0 846 }
michael@0 847
michael@0 848 #history-panelmenu[cui-areatype="toolbar"] {
michael@0 849 -moz-image-region: rect(0, 360px, 36px, 324px);
michael@0 850 }
michael@0 851
michael@0 852 #history-panelmenu[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 853 -moz-image-region: rect(36px, 360px, 72px, 324px);
michael@0 854 }
michael@0 855
michael@0 856 #downloads-button[cui-areatype="toolbar"] {
michael@0 857 -moz-image-region: rect(0, 396px, 36px, 360px);
michael@0 858 }
michael@0 859
michael@0 860 #downloads-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 861 -moz-image-region: rect(36px, 396px, 72px, 360px);
michael@0 862 }
michael@0 863
michael@0 864 #add-ons-button[cui-areatype="toolbar"] {
michael@0 865 -moz-image-region: rect(0, 432px, 36px, 396px);
michael@0 866 }
michael@0 867
michael@0 868 #add-ons-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 869 -moz-image-region: rect(36px, 432px, 72px, 396px);
michael@0 870 }
michael@0 871
michael@0 872 #open-file-button[cui-areatype="toolbar"] {
michael@0 873 -moz-image-region: rect(0, 468px, 36px, 432px);
michael@0 874 }
michael@0 875
michael@0 876 #open-file-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 877 -moz-image-region: rect(36px, 468px, 72px, 432px);
michael@0 878 }
michael@0 879
michael@0 880 #save-page-button[cui-areatype="toolbar"] {
michael@0 881 -moz-image-region: rect(0, 504px, 36px, 468px);
michael@0 882 }
michael@0 883
michael@0 884 #save-page-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 885 -moz-image-region: rect(36px, 504px, 72px, 468px);
michael@0 886 }
michael@0 887
michael@0 888 #sync-button[cui-areatype="toolbar"] {
michael@0 889 -moz-image-region: rect(0, 540px, 36px, 504px);
michael@0 890 }
michael@0 891
michael@0 892 #sync-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 893 -moz-image-region: rect(36px, 540px, 72px, 504px);
michael@0 894 }
michael@0 895
michael@0 896 #sync-button[cui-areatype="toolbar"][status="active"],
michael@0 897 #sync-button[cui-areatype="toolbar"][status="active"]:hover:active:not([disabled="true"]) {
michael@0 898 list-style-image: url("chrome://browser/skin/syncProgress-toolbar@2x.png");
michael@0 899 -moz-image-region: rect(0, 36px, 36px, 0px);
michael@0 900 }
michael@0 901
michael@0 902 toolbar[brighttext] #sync-button[cui-areatype="toolbar"][status="active"],
michael@0 903 toolbar[brighttext] #sync-button[cui-areatype="toolbar"][status="active"]:hover:active:not([disabled="true"]) {
michael@0 904 list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted@2x.png");
michael@0 905 }
michael@0 906
michael@0 907 #feed-button[cui-areatype="toolbar"] {
michael@0 908 -moz-image-region: rect(0, 576px, 36px, 540px);
michael@0 909 }
michael@0 910
michael@0 911 #feed-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 912 -moz-image-region: rect(36px, 576px, 72px, 540px);
michael@0 913 }
michael@0 914
michael@0 915 #social-share-button[cui-areatype="toolbar"] {
michael@0 916 -moz-image-region: rect(0, 612px, 36px, 576px);
michael@0 917 }
michael@0 918
michael@0 919 #social-share-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 920 -moz-image-region: rect(36px, 612px, 72px, 576px);
michael@0 921 }
michael@0 922
michael@0 923 #characterencoding-button[cui-areatype="toolbar"] {
michael@0 924 -moz-image-region: rect(0, 648px, 36px, 612px);
michael@0 925 }
michael@0 926
michael@0 927 #characterencoding-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 928 -moz-image-region: rect(36px, 648px, 72px, 612px);
michael@0 929 }
michael@0 930
michael@0 931 #new-window-button[cui-areatype="toolbar"] {
michael@0 932 -moz-image-region: rect(0, 684px, 36px, 648px);
michael@0 933 }
michael@0 934
michael@0 935 #new-window-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 936 -moz-image-region: rect(36px, 684px, 72px, 648px);
michael@0 937 }
michael@0 938
michael@0 939 #e10s-button[cui-areatype="toolbar"] {
michael@0 940 -moz-image-region: rect(0, 684px, 36px, 648px);
michael@0 941 }
michael@0 942
michael@0 943 #e10s-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 944 -moz-image-region: rect(36px, 684px, 72px, 648px);
michael@0 945 }
michael@0 946
michael@0 947 #e10s-button > .toolbarbutton-icon {
michael@0 948 transform: scaleY(-1);
michael@0 949 }
michael@0 950
michael@0 951 #new-tab-button[cui-areatype="toolbar"] {
michael@0 952 -moz-image-region: rect(0, 720px, 36px, 684px);
michael@0 953 }
michael@0 954
michael@0 955 #new-tab-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 956 -moz-image-region: rect(36px, 720px, 72px, 684px);
michael@0 957 }
michael@0 958
michael@0 959 #privatebrowsing-button[cui-areatype="toolbar"] {
michael@0 960 -moz-image-region: rect(0, 756px, 36px, 720px);
michael@0 961 }
michael@0 962
michael@0 963 #privatebrowsing-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 964 -moz-image-region: rect(36px, 756px, 72px, 720px);
michael@0 965 }
michael@0 966
michael@0 967 #find-button[cui-areatype="toolbar"] {
michael@0 968 -moz-image-region: rect(0, 792px, 36px, 756px);
michael@0 969 }
michael@0 970
michael@0 971 #find-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 972 -moz-image-region: rect(36px, 792px, 72px, 756px);
michael@0 973 }
michael@0 974
michael@0 975 #print-button[cui-areatype="toolbar"] {
michael@0 976 -moz-image-region: rect(0, 828px, 36px, 792px);
michael@0 977 }
michael@0 978
michael@0 979 #print-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 980 -moz-image-region: rect(36px, 828px, 72px, 792px);
michael@0 981 }
michael@0 982
michael@0 983 #restore-button,
michael@0 984 #fullscreen-button[cui-areatype="toolbar"] {
michael@0 985 -moz-image-region: rect(0, 864px, 36px, 828px);
michael@0 986 }
michael@0 987
michael@0 988 #restore-button:hover:active:not([disabled="true"]),
michael@0 989 #fullscreen-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 990 -moz-image-region: rect(36px, 864px, 72px, 828px);
michael@0 991 }
michael@0 992
michael@0 993 #fullscreen-button[cui-areatype="toolbar"][checked="true"] {
michael@0 994 -moz-image-region: rect(72px, 864px, 108px, 828px);
michael@0 995 }
michael@0 996
michael@0 997 #fullscreen-button[cui-areatype="toolbar"][checked="true"]:hover:active:not([disabled="true"]) {
michael@0 998 -moz-image-region: rect(108px, 864px, 144px, 828px);
michael@0 999 }
michael@0 1000
michael@0 1001 #developer-button[cui-areatype="toolbar"] {
michael@0 1002 -moz-image-region: rect(0, 900px, 36px, 864px);
michael@0 1003 }
michael@0 1004
michael@0 1005 #developer-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 1006 -moz-image-region: rect(36px, 900px, 72px, 864px);
michael@0 1007 }
michael@0 1008
michael@0 1009 #preferences-button[cui-areatype="toolbar"] {
michael@0 1010 -moz-image-region: rect(0, 936px, 36px, 900px);
michael@0 1011 }
michael@0 1012
michael@0 1013 #preferences-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 1014 -moz-image-region: rect(36px, 936px, 72px, 900px);
michael@0 1015 }
michael@0 1016
michael@0 1017 #PanelUI-menu-button {
michael@0 1018 -moz-image-region: rect(0, 972px, 36px, 936px);
michael@0 1019 }
michael@0 1020
michael@0 1021 #PanelUI-menu-button:hover:active:not([disabled="true"]) {
michael@0 1022 -moz-image-region: rect(36px, 972px, 72px, 936px);
michael@0 1023 }
michael@0 1024
michael@0 1025 #edit-controls[cui-areatype="toolbar"] > #cut-button {
michael@0 1026 -moz-image-region: rect(0, 1008px, 36px, 972px);
michael@0 1027 }
michael@0 1028
michael@0 1029 #edit-controls[cui-areatype="toolbar"] > #cut-button:hover:active:not([disabled="true"]) {
michael@0 1030 -moz-image-region: rect(36px, 1008px, 72px, 972px);
michael@0 1031 }
michael@0 1032
michael@0 1033 #edit-controls[cui-areatype="toolbar"] > #copy-button {
michael@0 1034 -moz-image-region: rect(0, 1044px, 36px, 1008px);
michael@0 1035 }
michael@0 1036
michael@0 1037 #edit-controls[cui-areatype="toolbar"] > #copy-button:hover:active:not([disabled="true"]) {
michael@0 1038 -moz-image-region: rect(36px, 1044px, 72px, 1008px);
michael@0 1039 }
michael@0 1040
michael@0 1041 #edit-controls[cui-areatype="toolbar"] > #paste-button {
michael@0 1042 -moz-image-region: rect(0, 1080px, 36px, 1044px);
michael@0 1043 }
michael@0 1044
michael@0 1045 #edit-controls[cui-areatype="toolbar"] > #paste-button:hover:active:not([disabled="true"]) {
michael@0 1046 -moz-image-region: rect(36px, 1080px, 72px, 1044px);
michael@0 1047 }
michael@0 1048
michael@0 1049 #zoom-controls[cui-areatype="toolbar"] > #zoom-out-button {
michael@0 1050 -moz-image-region: rect(0, 1116px, 36px, 1080px);
michael@0 1051 }
michael@0 1052
michael@0 1053 #zoom-controls[cui-areatype="toolbar"] > #zoom-out-button:hover:active:not([disabled="true"]) {
michael@0 1054 -moz-image-region: rect(36px, 1116px, 72px, 1080px);
michael@0 1055 }
michael@0 1056
michael@0 1057 #zoom-controls[cui-areatype="toolbar"] > #zoom-in-button {
michael@0 1058 -moz-image-region: rect(0, 1152px, 36px, 1116px);
michael@0 1059 }
michael@0 1060
michael@0 1061 #zoom-controls[cui-areatype="toolbar"] > #zoom-in-button:hover:active:not([disabled="true"]) {
michael@0 1062 -moz-image-region: rect(36px, 1152px, 72px, 1116px);
michael@0 1063 }
michael@0 1064
michael@0 1065 #webrtc-status-button[cui-areatype="toolbar"] {
michael@0 1066 -moz-image-region: rect(0, 1188px, 36px, 1152px);
michael@0 1067 }
michael@0 1068
michael@0 1069 #webrtc-status-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 1070 -moz-image-region: rect(36px, 1188px, 72px, 1152px);
michael@0 1071 }
michael@0 1072
michael@0 1073 #nav-bar-overflow-button {
michael@0 1074 -moz-image-region: rect(0, 1224px, 36px, 1188px);
michael@0 1075 }
michael@0 1076
michael@0 1077 #nav-bar-overflow-button:hover:active:not([disabled="true"]) {
michael@0 1078 -moz-image-region: rect(36px, 1224px, 72px, 1188px);
michael@0 1079 }
michael@0 1080
michael@0 1081 #nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
michael@0 1082 transform: scaleX(-1);
michael@0 1083 }
michael@0 1084
michael@0 1085 #tabview-button {
michael@0 1086 -moz-image-region: rect(0, 1296px, 36px, 1260px);
michael@0 1087 }
michael@0 1088
michael@0 1089 #tabview-button@toolbarButtonPressed@ {
michael@0 1090 -moz-image-region: rect(36px, 1296px, 72px, 1260px);
michael@0 1091 }
michael@0 1092
michael@0 1093 #email-link-button[cui-areatype="toolbar"] {
michael@0 1094 -moz-image-region: rect(0, 1332px, 36px, 1296px);
michael@0 1095 }
michael@0 1096
michael@0 1097 #email-link-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 1098 -moz-image-region: rect(36px, 1332px, 72px, 1296px);
michael@0 1099 }
michael@0 1100
michael@0 1101 #sidebar-button[cui-areatype="toolbar"] {
michael@0 1102 -moz-image-region: rect(0, 1368px, 36px, 1332px);
michael@0 1103 }
michael@0 1104
michael@0 1105 #sidebar-button[cui-areatype="toolbar"]:hover:active:not([disabled="true"]) {
michael@0 1106 -moz-image-region: rect(36px, 1368px, 72px, 1332px);
michael@0 1107 }
michael@0 1108
michael@0 1109 :-moz-any(@primaryToolbarButtons@) > .toolbarbutton-icon,
michael@0 1110 :-moz-any(@primaryToolbarButtons@) > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
michael@0 1111 width: 18px;
michael@0 1112 }
michael@0 1113
michael@0 1114 /* Menu panel and palette styles */
michael@0 1115
michael@0 1116 toolbaritem[sdkstylewidget="true"] > toolbarbutton,
michael@0 1117 :-moz-any(@primaryToolbarButtons@)[cui-areatype="menu-panel"],
michael@0 1118 toolbarpaletteitem[place="palette"] > :-moz-any(@primaryToolbarButtons@) {
michael@0 1119 list-style-image: url(chrome://browser/skin/menuPanel@2x.png);
michael@0 1120 }
michael@0 1121
michael@0 1122 #home-button[cui-areatype="menu-panel"],
michael@0 1123 toolbarpaletteitem[place="palette"] > #home-button {
michael@0 1124 -moz-image-region: rect(0px, 256px, 64px, 192px);
michael@0 1125 }
michael@0 1126
michael@0 1127 #bookmarks-menu-button[cui-areatype="menu-panel"],
michael@0 1128 toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
michael@0 1129 -moz-image-region: rect(0px, 384px, 64px, 320px);
michael@0 1130 }
michael@0 1131
michael@0 1132 #bookmarks-menu-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
michael@0 1133 -moz-image-region: rect(64px, 384px, 128px, 320px);
michael@0 1134 }
michael@0 1135
michael@0 1136 #history-panelmenu[cui-areatype="menu-panel"],
michael@0 1137 toolbarpaletteitem[place="palette"] > #history-panelmenu {
michael@0 1138 -moz-image-region: rect(0px, 448px, 64px, 384px);
michael@0 1139 }
michael@0 1140
michael@0 1141 #history-panelmenu[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
michael@0 1142 -moz-image-region: rect(64px, 448px, 128px, 384px);
michael@0 1143 }
michael@0 1144
michael@0 1145 #downloads-button[cui-areatype="menu-panel"],
michael@0 1146 toolbarpaletteitem[place="palette"] > #downloads-button {
michael@0 1147 -moz-image-region: rect(0px, 512px, 64px, 448px);
michael@0 1148 }
michael@0 1149
michael@0 1150 #add-ons-button[cui-areatype="menu-panel"],
michael@0 1151 toolbarpaletteitem[place="palette"] > #add-ons-button {
michael@0 1152 -moz-image-region: rect(0px, 576px, 64px, 512px);
michael@0 1153 }
michael@0 1154
michael@0 1155 #open-file-button[cui-areatype="menu-panel"],
michael@0 1156 toolbarpaletteitem[place="palette"] > #open-file-button {
michael@0 1157 -moz-image-region: rect(0px, 640px, 64px, 576px);
michael@0 1158 }
michael@0 1159
michael@0 1160 #save-page-button[cui-areatype="menu-panel"],
michael@0 1161 toolbarpaletteitem[place="palette"] > #save-page-button {
michael@0 1162 -moz-image-region: rect(0px, 704px, 64px, 640px);
michael@0 1163 }
michael@0 1164
michael@0 1165 #sync-button[cui-areatype="menu-panel"],
michael@0 1166 toolbarpaletteitem[place="palette"] > #sync-button {
michael@0 1167 -moz-image-region: rect(0px, 768px, 64px, 704px);
michael@0 1168 }
michael@0 1169
michael@0 1170 #sync-button[cui-areatype="menu-panel"][status="active"] {
michael@0 1171 list-style-image: url(chrome://browser/skin/syncProgress-menuPanel@2x.png);
michael@0 1172 -moz-image-region: rect(0px, 64px, 64px, 0px);
michael@0 1173 }
michael@0 1174
michael@0 1175 #feed-button[cui-areatype="menu-panel"],
michael@0 1176 toolbarpaletteitem[place="palette"] > #feed-button {
michael@0 1177 -moz-image-region: rect(0px, 832px, 64px, 768px);
michael@0 1178 }
michael@0 1179
michael@0 1180 #social-share-button[cui-areatype="menu-panel"],
michael@0 1181 toolbarpaletteitem[place="palette"] > #social-share-button {
michael@0 1182 -moz-image-region: rect(0px, 896px, 64px, 832px);
michael@0 1183 }
michael@0 1184
michael@0 1185 #characterencoding-button[cui-areatype="menu-panel"],
michael@0 1186 toolbarpaletteitem[place="palette"] > #characterencoding-button {
michael@0 1187 -moz-image-region: rect(0, 960px, 64px, 896px);
michael@0 1188 }
michael@0 1189
michael@0 1190 #characterencoding-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
michael@0 1191 -moz-image-region: rect(64px, 960px, 128px, 896px);
michael@0 1192 }
michael@0 1193
michael@0 1194 #new-window-button[cui-areatype="menu-panel"],
michael@0 1195 toolbarpaletteitem[place="palette"] > #new-window-button {
michael@0 1196 -moz-image-region: rect(0px, 1024px, 64px, 960px);
michael@0 1197 }
michael@0 1198
michael@0 1199 #e10s-button[cui-areatype="menu-panel"],
michael@0 1200 toolbarpaletteitem[place="palette"] > #e10s-button {
michael@0 1201 -moz-image-region: rect(0px, 1024px, 64px, 960px);
michael@0 1202 }
michael@0 1203
michael@0 1204 #new-tab-button[cui-areatype="menu-panel"],
michael@0 1205 toolbarpaletteitem[place="palette"] > #new-tab-button {
michael@0 1206 -moz-image-region: rect(0px, 1088px, 64px, 1024px);
michael@0 1207 }
michael@0 1208
michael@0 1209 #privatebrowsing-button[cui-areatype="menu-panel"],
michael@0 1210 toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
michael@0 1211 -moz-image-region: rect(0px, 1152px, 64px, 1088px);
michael@0 1212 }
michael@0 1213
michael@0 1214 #tabview-button[cui-areatype="menu-panel"],
michael@0 1215 toolbarpaletteitem[place="palette"] > #tabview-button {
michael@0 1216 -moz-image-region: rect(0px, 1216px, 64px, 1152px);
michael@0 1217 }
michael@0 1218
michael@0 1219 #find-button[cui-areatype="menu-panel"],
michael@0 1220 toolbarpaletteitem[place="palette"] > #find-button {
michael@0 1221 -moz-image-region: rect(0px, 1280px, 64px, 1216px);
michael@0 1222 }
michael@0 1223
michael@0 1224 #print-button[cui-areatype="menu-panel"],
michael@0 1225 toolbarpaletteitem[place="palette"] > #print-button {
michael@0 1226 -moz-image-region: rect(0px, 1344px, 64px, 1280px);
michael@0 1227 }
michael@0 1228
michael@0 1229 #fullscreen-button[cui-areatype="menu-panel"],
michael@0 1230 toolbarpaletteitem[place="palette"] > #fullscreen-button {
michael@0 1231 -moz-image-region: rect(0px, 1408px, 64px, 1344px);
michael@0 1232 }
michael@0 1233
michael@0 1234 #developer-button[cui-areatype="menu-panel"],
michael@0 1235 toolbarpaletteitem[place="palette"] > #developer-button {
michael@0 1236 -moz-image-region: rect(0px, 1472px, 64px, 1408px);
michael@0 1237 }
michael@0 1238
michael@0 1239 #developer-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
michael@0 1240 -moz-image-region: rect(64px, 1472px, 128px, 1408px);
michael@0 1241 }
michael@0 1242
michael@0 1243 #preferences-button[cui-areatype="menu-panel"],
michael@0 1244 toolbarpaletteitem[place="palette"] > #preferences-button {
michael@0 1245 -moz-image-region: rect(0px, 1536px, 64px, 1472px);
michael@0 1246 }
michael@0 1247
michael@0 1248 #email-link-button[cui-areatype="menu-panel"],
michael@0 1249 toolbarpaletteitem[place="palette"] > #email-link-button {
michael@0 1250 -moz-image-region: rect(0px, 1600px, 64px, 1536px);
michael@0 1251 }
michael@0 1252
michael@0 1253 #sidebar-button[cui-areatype="menu-panel"],
michael@0 1254 toolbarpaletteitem[place="palette"] > #sidebar-button {
michael@0 1255 -moz-image-region: rect(0px, 1728px, 64px, 1664px);
michael@0 1256 }
michael@0 1257
michael@0 1258 toolbaritem[sdkstylewidget="true"] > toolbarbutton {
michael@0 1259 -moz-image-region: rect(0, 1664px, 64px, 1600px);
michael@0 1260 }
michael@0 1261
michael@0 1262 /* Footer and wide panel control icons */
michael@0 1263 #edit-controls@inAnyPanel@ > toolbarbutton,
michael@0 1264 #zoom-controls@inAnyPanel@ > toolbarbutton,
michael@0 1265 toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
michael@0 1266 toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
michael@0 1267 list-style-image: url(chrome://browser/skin/menuPanel-small@2x.png);
michael@0 1268 }
michael@0 1269
michael@0 1270 /* Wide items like the Cut/Copy/Paste and Zoom controls are special in that their icons
michael@0 1271 are 16x16 when in the panel, but 18x18 when in a toolbar. */
michael@0 1272 #edit-controls@inAnyPanel@ > toolbarbutton > .toolbarbutton-icon,
michael@0 1273 #zoom-controls@inAnyPanel@ > toolbarbutton > .toolbarbutton-icon,
michael@0 1274 toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton > .toolbarbutton-icon,
michael@0 1275 toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton > .toolbarbutton-icon {
michael@0 1276 width: 16px;
michael@0 1277 }
michael@0 1278
michael@0 1279 #edit-controls@inAnyPanel@ > #cut-button,
michael@0 1280 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
michael@0 1281 -moz-image-region: rect(0px, 64px, 32px, 32px);
michael@0 1282 }
michael@0 1283
michael@0 1284 #edit-controls@inAnyPanel@ > #copy-button,
michael@0 1285 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
michael@0 1286 -moz-image-region: rect(0px, 96px, 32px, 64px);
michael@0 1287 }
michael@0 1288
michael@0 1289 #edit-controls@inAnyPanel@ > #paste-button,
michael@0 1290 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
michael@0 1291 -moz-image-region: rect(0px, 128px, 32px, 96px);
michael@0 1292 }
michael@0 1293
michael@0 1294 #zoom-controls@inAnyPanel@ > #zoom-out-button,
michael@0 1295 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
michael@0 1296 -moz-image-region: rect(0px, 160px, 32px, 128px);
michael@0 1297 }
michael@0 1298
michael@0 1299 #zoom-controls@inAnyPanel@ > #zoom-in-button,
michael@0 1300 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
michael@0 1301 -moz-image-region: rect(0px, 192px, 32px, 160px);
michael@0 1302 }
michael@0 1303
michael@0 1304 #PanelUI-fxa-status > .toolbarbutton-icon,
michael@0 1305 #PanelUI-quit > .toolbarbutton-icon,
michael@0 1306 #PanelUI-customize > .toolbarbutton-icon,
michael@0 1307 #PanelUI-help > .toolbarbutton-icon {
michael@0 1308 width: 16px;
michael@0 1309 }
michael@0 1310 }
michael@0 1311
michael@0 1312 toolbar .toolbarbutton-1:not([type="menu-button"]),
michael@0 1313 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
michael@0 1314 min-width: 28px;
michael@0 1315 }
michael@0 1316
michael@0 1317 /* Help 16px icons fit: */
michael@0 1318 .toolbarbutton-1[cui-areatype="toolbar"]:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-icon {
michael@0 1319 margin: 2px;
michael@0 1320 }
michael@0 1321
michael@0 1322 /* Help SDK icons fit: */
michael@0 1323 toolbarbutton[sdk-button="true"][cui-areatype="toolbar"] > .toolbarbutton-icon {
michael@0 1324 width: 16px;
michael@0 1325 }
michael@0 1326
michael@0 1327 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-icon,
michael@0 1328 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-badge-container > .toolbarbutton-icon,
michael@0 1329 #main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled="true"] > .toolbarbutton-icon {
michael@0 1330 opacity: .4;
michael@0 1331 }
michael@0 1332
michael@0 1333 @media (-moz-mac-lion-theme) {
michael@0 1334 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-icon,
michael@0 1335 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-badge-container > .toolbarbutton-icon,
michael@0 1336 #main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled="true"] > .toolbarbutton-icon,
michael@0 1337 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-menu-dropmarker,
michael@0 1338 #main-window:not([customizing]) .toolbarbutton-1[disabled="true"] > .toolbarbutton-menubutton-dropmarker,
michael@0 1339 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-icon,
michael@0 1340 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-text,
michael@0 1341 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-badge-container > .toolbarbutton-icon,
michael@0 1342 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-menu-dropmarker,
michael@0 1343 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
michael@0 1344 .toolbarbutton-1:not(:hover):-moz-window-inactive > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
michael@0 1345 opacity: .5;
michael@0 1346 }
michael@0 1347
michael@0 1348 #main-window:not([customizing]) .toolbarbutton-1:-moz-window-inactive[disabled="true"] > .toolbarbutton-icon,
michael@0 1349 #main-window:not([customizing]) .toolbarbutton-1:-moz-window-inactive[disabled="true"] > .toolbarbutton-badge-container > .toolbarbutton-icon,
michael@0 1350 #main-window:not([customizing]) .toolbarbutton-1:-moz-window-inactive > .toolbarbutton-menubutton-button[disabled="true"] > .toolbarbutton-icon {
michael@0 1351 opacity: .25;
michael@0 1352 }
michael@0 1353 }
michael@0 1354
michael@0 1355 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
michael@0 1356 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 1357 list-style-image: url(chrome://browser/skin/toolbarbutton-dropmarker.png);
michael@0 1358 }
michael@0 1359
michael@0 1360 @media (min-resolution: 2dppx) {
michael@0 1361 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
michael@0 1362 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 1363 list-style-image: url(chrome://browser/skin/toolbarbutton-dropmarker@2x.png);
michael@0 1364 }
michael@0 1365
michael@0 1366 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker > .dropmarker-icon,
michael@0 1367 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 1368 width: 7px;
michael@0 1369 }
michael@0 1370 }
michael@0 1371
michael@0 1372 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker {
michael@0 1373 -moz-margin-end: 1px;
michael@0 1374 }
michael@0 1375
michael@0 1376 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
michael@0 1377 -moz-border-end: none !important;
michael@0 1378 }
michael@0 1379
michael@0 1380 .toolbarbutton-1 > .toolbarbutton-menubutton-button:-moz-locale-dir(rtl),
michael@0 1381 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker:-moz-locale-dir(ltr) {
michael@0 1382 border-top-left-radius: 0;
michael@0 1383 border-bottom-left-radius: 0;
michael@0 1384 }
michael@0 1385
michael@0 1386 .toolbarbutton-1 > .toolbarbutton-menubutton-button:-moz-locale-dir(ltr),
michael@0 1387 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker:-moz-locale-dir(rtl) {
michael@0 1388 border-top-right-radius: 0;
michael@0 1389 border-bottom-right-radius: 0;
michael@0 1390 }
michael@0 1391
michael@0 1392 .toolbarbutton-1 > .toolbarbutton-text,
michael@0 1393 .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text {
michael@0 1394 margin: 2px 0 0;
michael@0 1395 }
michael@0 1396
michael@0 1397 .toolbarbutton-1 > menupopup {
michael@0 1398 margin-top: 1px;
michael@0 1399 }
michael@0 1400
michael@0 1401 .toolbarbutton-1 > menupopup.cui-widget-panel {
michael@0 1402 margin-top: -5px;
michael@0 1403 }
michael@0 1404
michael@0 1405 /* Common back and forward button styles */
michael@0 1406
michael@0 1407 #back-button,
michael@0 1408 #forward-button {
michael@0 1409 background: linear-gradient(rgba(255,255,255,0.5),
michael@0 1410 rgba(255,255,255,0.2) 50%,
michael@0 1411 rgba(255,255,255,0.1) 50%,
michael@0 1412 rgba(255,255,255,0.2)) repeat-x;
michael@0 1413 }
michael@0 1414
michael@0 1415 #back-button:-moz-lwtheme,
michael@0 1416 #forward-button:-moz-lwtheme {
michael@0 1417 background-origin: border-box;
michael@0 1418 border: 1px solid rgba(0,0,0,0.4);
michael@0 1419 box-shadow: inset 0 1px rgba(255,255,255,0.3), 0 1px rgba(255,255,255,0.2);
michael@0 1420 }
michael@0 1421
michael@0 1422 #back-button:active:hover:-moz-lwtheme,
michael@0 1423 #forward-button:active:hover:-moz-lwtheme {
michael@0 1424 background-color: rgba(0,0,0,0.2);
michael@0 1425 box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 1px rgba(255,255,255,0.2);
michael@0 1426 }
michael@0 1427
michael@0 1428 #back-button:-moz-window-inactive,
michael@0 1429 #forward-button:-moz-window-inactive {
michael@0 1430 background-color: rgba(0,0,0,0.04);
michael@0 1431 border-color: rgba(0,0,0,0.2);
michael@0 1432 }
michael@0 1433
michael@0 1434 #back-button:-moz-locale-dir(rtl) {
michael@0 1435 transform: scaleX(-1);
michael@0 1436 }
michael@0 1437
michael@0 1438 /* Back button styles */
michael@0 1439
michael@0 1440 #back-button {
michael@0 1441 width: 32px;
michael@0 1442 height: 32px;
michael@0 1443 padding: 4px 5px 4px 3px;
michael@0 1444 -moz-margin-end: 0;
michael@0 1445 border-radius: 10000px;
michael@0 1446 }
michael@0 1447
michael@0 1448 #back-button:not(:-moz-lwtheme) {
michael@0 1449 height: 33px;
michael@0 1450 padding: 4px 5px 5px 3px;
michael@0 1451 margin-bottom: -1px;
michael@0 1452 background: url(chrome://browser/skin/keyhole-circle.png) 0 0 no-repeat;
michael@0 1453 }
michael@0 1454
michael@0 1455 @media (min-resolution: 2dppx) {
michael@0 1456 #back-button:not(:-moz-lwtheme) {
michael@0 1457 background-image: url(chrome://browser/skin/keyhole-circle@2x.png);
michael@0 1458 background-size: 96px;
michael@0 1459 }
michael@0 1460 }
michael@0 1461
michael@0 1462 #back-button:-moz-window-inactive:not(:-moz-lwtheme) {
michael@0 1463 background-position: -64px 0;
michael@0 1464 }
michael@0 1465
michael@0 1466 #back-button:not([disabled="true"]):active:hover:not(:-moz-lwtheme),
michael@0 1467 #back-button[open="true"]:not(:-moz-lwtheme) {
michael@0 1468 background-position: -32px 0;
michael@0 1469 }
michael@0 1470
michael@0 1471 /* Forward button styles */
michael@0 1472
michael@0 1473 #forward-button {
michael@0 1474 margin-left: -2px;
michael@0 1475 margin-right: 0;
michael@0 1476 padding-left: 2px;
michael@0 1477 width: 32px;
michael@0 1478 }
michael@0 1479
michael@0 1480 #forward-button > .toolbarbutton-icon {
michael@0 1481 /* shift the icon away from the back button */
michael@0 1482 margin-left: 3px;
michael@0 1483 margin-right: -1px;
michael@0 1484 }
michael@0 1485
michael@0 1486 #forward-button:not(:-moz-lwtheme) {
michael@0 1487 background: linear-gradient(hsl(0,0%,99%), hsl(0,0%,67%)) padding-box;
michael@0 1488 border: 1px solid;
michael@0 1489 border-color: hsl(0,0%,31%) hsla(0,0%,29%,.6) hsl(0,0%,27%);
michael@0 1490 box-shadow: inset 0 1px 0 hsla(0,0%,100%,.35),
michael@0 1491 0 1px 0 hsla(0,0%,100%,.2);
michael@0 1492 }
michael@0 1493
michael@0 1494 #forward-button:hover:active:not(:-moz-lwtheme) {
michael@0 1495 background-image: linear-gradient(hsl(0,0%,74%), hsl(0,0%,61%));
michael@0 1496 box-shadow: inset rgba(0,0,0,.3) 0 -6px 10px,
michael@0 1497 inset #000 0 1px 3px,
michael@0 1498 inset rgba(0,0,0,.2) 0 1px 3px,
michael@0 1499 0 1px 0 hsla(0,0%,100%,.2);
michael@0 1500 }
michael@0 1501
michael@0 1502 #forward-button:-moz-window-inactive:not(:-moz-lwtheme) {
michael@0 1503 border-color: hsl(0,0%,64%) hsl(0,0%,65%) hsl(0,0%,66%);
michael@0 1504 background-image: linear-gradient(hsl(0,0%,99%), hsl(0,0%,82%));
michael@0 1505 box-shadow: inset 0 1px 0 hsla(0,0%,100%,.35);
michael@0 1506 }
michael@0 1507
michael@0 1508 @media (-moz-mac-lion-theme) {
michael@0 1509 #forward-button:not(:-moz-lwtheme) {
michael@0 1510 background-image: linear-gradient(hsla(0,0%,100%,.73), hsla(0,0%,100%,.05) 85%);
michael@0 1511 border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.25) hsla(0,0%,0%,.2);
michael@0 1512 box-shadow: inset 0 1px 0 hsla(0,0%,100%,.2),
michael@0 1513 inset 0 0 1px hsla(0,0%,100%,.1),
michael@0 1514 0 1px 0 hsla(0,0%,100%,.2);
michael@0 1515 }
michael@0 1516
michael@0 1517 #forward-button:hover:active:not(:-moz-lwtheme) {
michael@0 1518 background-image: linear-gradient(hsla(0,0%,60%,.37), hsla(0,0%,100%,.35) 95%);
michael@0 1519 border-color: hsla(0,0%,0%,.43) hsla(0,0%,0%,.25) hsla(0,0%,0%,.37);
michael@0 1520 box-shadow: inset 0 1px 0 hsla(0,0%,0%,.02),
michael@0 1521 inset 0 1px 2px hsla(0,0%,0%,.2),
michael@0 1522 0 1px 0 hsla(0,0%,100%,.2);
michael@0 1523 }
michael@0 1524
michael@0 1525 #forward-button:-moz-window-inactive:not(:-moz-lwtheme) {
michael@0 1526 background-image: none;
michael@0 1527 border-color: hsla(0,0%,0%,.2);
michael@0 1528 }
michael@0 1529 }
michael@0 1530
michael@0 1531 @conditionalForwardWithUrlbar@:not([switchingtabs]) > #forward-button {
michael@0 1532 transition: margin-left @forwardTransitionLength@ ease-out;
michael@0 1533 }
michael@0 1534
michael@0 1535 @conditionalForwardWithUrlbar@ > #forward-button[disabled] {
michael@0 1536 margin-left: -@conditionalForwardWithUrlbarWidth@px;
michael@0 1537 }
michael@0 1538
michael@0 1539 @conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] {
michael@0 1540 /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
michael@0 1541 transition-delay: 100s;
michael@0 1542 }
michael@0 1543
michael@0 1544 @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] {
michael@0 1545 /* when not hovered anymore, trigger a new transition to hide the forward button immediately */
michael@0 1546 margin-left: -@conditionalForwardWithUrlbarWidth@.01px;
michael@0 1547 }
michael@0 1548
michael@0 1549 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
michael@0 1550 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
michael@0 1551 list-style-image: url("chrome://browser/skin/menu-back.png") !important;
michael@0 1552 }
michael@0 1553
michael@0 1554 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
michael@0 1555 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
michael@0 1556 list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
michael@0 1557 }
michael@0 1558
michael@0 1559 /* home button */
michael@0 1560
michael@0 1561 #home-button.bookmark-item {
michael@0 1562 /* We need to use !important here, because other selectors that apply padding
michael@0 1563 are more specific. */
michael@0 1564 padding-top: 0 !important;
michael@0 1565 padding-bottom: 0 !important;
michael@0 1566 }
michael@0 1567
michael@0 1568 #home-button.bookmark-item > .toolbarbutton-icon {
michael@0 1569 display: -moz-box !important;
michael@0 1570 -moz-margin-start: -2px;
michael@0 1571 -moz-margin-end: 3px;
michael@0 1572 }
michael@0 1573
michael@0 1574 /* tabview menu item */
michael@0 1575
michael@0 1576 #menu_tabview {
michael@0 1577 list-style-image: url(chrome://browser/skin/tabview/tabview.png);
michael@0 1578 }
michael@0 1579
michael@0 1580 #menu_tabview {
michael@0 1581 -moz-image-region: rect(2px, 98px, 18px, 82px);
michael@0 1582 }
michael@0 1583
michael@0 1584 #menu_tabview[groups="0"] {
michael@0 1585 -moz-image-region: rect(2px, 18px, 18px, 2px);
michael@0 1586 }
michael@0 1587
michael@0 1588 #menu_tabview[groups="1"] {
michael@0 1589 -moz-image-region: rect(2px, 38px, 18px, 22px);
michael@0 1590 }
michael@0 1591
michael@0 1592 #menu_tabview[groups="2"] {
michael@0 1593 -moz-image-region: rect(2px, 58px, 18px, 42px);
michael@0 1594 }
michael@0 1595
michael@0 1596 #menu_tabview[groups="3"] {
michael@0 1597 -moz-image-region: rect(2px, 78px, 18px, 62px);
michael@0 1598 }
michael@0 1599
michael@0 1600 #cut-button {
michael@0 1601 -moz-margin-end: 0;
michael@0 1602 }
michael@0 1603
michael@0 1604 #edit-controls[cui-areatype="toolbar"] > #cut-button {
michael@0 1605 -moz-border-end: 0;
michael@0 1606 }
michael@0 1607
michael@0 1608 #paste-button {
michael@0 1609 -moz-border-start: none;
michael@0 1610 -moz-margin-start: 0;
michael@0 1611 }
michael@0 1612
michael@0 1613 #cut-button:-moz-locale-dir(ltr),
michael@0 1614 #paste-button:-moz-locale-dir(rtl) {
michael@0 1615 border-top-right-radius: 0;
michael@0 1616 border-bottom-right-radius: 0;
michael@0 1617 }
michael@0 1618
michael@0 1619 #cut-button:-moz-locale-dir(rtl),
michael@0 1620 #paste-button:-moz-locale-dir(ltr) {
michael@0 1621 border-top-left-radius: 0;
michael@0 1622 border-bottom-left-radius: 0;
michael@0 1623 }
michael@0 1624
michael@0 1625 #copy-button {
michael@0 1626 border-radius: 0;
michael@0 1627 margin-right: 0;
michael@0 1628 margin-left: 0;
michael@0 1629 }
michael@0 1630
michael@0 1631 /* zoom controls */
michael@0 1632
michael@0 1633 #zoom-out-button {
michael@0 1634 -moz-margin-end: 0;
michael@0 1635 }
michael@0 1636
michael@0 1637 #zoom-in-button {
michael@0 1638 -moz-margin-start: 0;
michael@0 1639 -moz-border-start: 0;
michael@0 1640 }
michael@0 1641
michael@0 1642 #zoom-controls[cui-areatype="toolbar"] > #zoom-out-button {
michael@0 1643 -moz-border-end: 0;
michael@0 1644 }
michael@0 1645
michael@0 1646 #zoom-controls[cui-areatype="toolbar"] > #zoom-in-button {
michael@0 1647 -moz-border-start-width: 1px;
michael@0 1648 }
michael@0 1649
michael@0 1650 #zoom-controls[cui-areatype="toolbar"] > #zoom-reset-button {
michael@0 1651 border-radius: 0;
michael@0 1652 }
michael@0 1653
michael@0 1654 #zoom-out-button:-moz-locale-dir(ltr),
michael@0 1655 #zoom-in-button:-moz-locale-dir(rtl) {
michael@0 1656 border-top-right-radius: 0;
michael@0 1657 border-bottom-right-radius: 0;
michael@0 1658 }
michael@0 1659
michael@0 1660 #zoom-out-button:-moz-locale-dir(rtl),
michael@0 1661 #zoom-in-button:-moz-locale-dir(ltr) {
michael@0 1662 border-top-left-radius: 0;
michael@0 1663 border-bottom-left-radius: 0;
michael@0 1664 }
michael@0 1665
michael@0 1666 #zoom-controls[cui-areatype="toolbar"]:not([overflowedItem=true]) > #zoom-reset-button {
michael@0 1667 min-width: 0;
michael@0 1668 margin: 0;
michael@0 1669 -moz-box-orient: horizontal;
michael@0 1670 -moz-box-align: center;
michael@0 1671 }
michael@0 1672
michael@0 1673 #zoom-controls[cui-areatype="toolbar"]:not([overflowedItem=true]) > #zoom-reset-button > .toolbarbutton-text {
michael@0 1674 margin-top: 0;
michael@0 1675 }
michael@0 1676
michael@0 1677 /* ----- FULLSCREEN WINDOW CONTROLS ----- */
michael@0 1678
michael@0 1679 #minimize-button,
michael@0 1680 #close-button,
michael@0 1681 #fullscreen-button ~ #window-controls > #restore-button {
michael@0 1682 display: none;
michael@0 1683 }
michael@0 1684
michael@0 1685 /* ::::: nav-bar-inner ::::: */
michael@0 1686
michael@0 1687 #urlbar,
michael@0 1688 .searchbar-textbox {
michael@0 1689 font: icon;
michael@0 1690 -moz-appearance: none;
michael@0 1691 box-shadow: 0 1px rgba(255, 255, 255, 0.2), inset 0 1px hsla(0,0%,0%,.05);
michael@0 1692 margin: 0 4px;
michael@0 1693 padding: 1px 0;
michael@0 1694 border: 1px solid;
michael@0 1695 border-color: #626262 #787878 #8c8c8c;
michael@0 1696 background-clip: padding-box;
michael@0 1697 }
michael@0 1698
michael@0 1699 @media (-moz-mac-lion-theme) {
michael@0 1700 #urlbar,
michael@0 1701 .searchbar-textbox {
michael@0 1702 background-image: linear-gradient(hsl(0,0%,97%), hsl(0,0%,100%));
michael@0 1703 border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.25) hsla(0,0%,0%,.15);
michael@0 1704 box-shadow: 0 1px 0 hsla(0,0%,100%,.2),
michael@0 1705 inset 0 0 1px hsla(0,0%,0%,.05),
michael@0 1706 inset 0 1px 2px hsla(0,0%,0%,.1);
michael@0 1707 }
michael@0 1708 }
michael@0 1709
michael@0 1710 @media not all and (-moz-mac-lion-theme) {
michael@0 1711 #urlbar:-moz-window-inactive,
michael@0 1712 .searchbar-textbox:-moz-window-inactive {
michael@0 1713 border-color: @toolbarbuttonInactiveBorderColor@;
michael@0 1714 }
michael@0 1715 }
michael@0 1716
michael@0 1717 #urlbar[focused="true"],
michael@0 1718 .searchbar-textbox[focused="true"] {
michael@0 1719 border-color: -moz-mac-focusring;
michael@0 1720 box-shadow: @focusRingShadow@;
michael@0 1721 }
michael@0 1722
michael@0 1723 #urlbar-container {
michael@0 1724 -moz-box-align: center;
michael@0 1725 }
michael@0 1726
michael@0 1727 #urlbar {
michael@0 1728 -moz-padding-end: 4px;
michael@0 1729 border-radius: @toolbarbuttonCornerRadius@;
michael@0 1730 }
michael@0 1731
michael@0 1732 @conditionalForwardWithUrlbar@ > #urlbar {
michael@0 1733 -moz-border-start: none;
michael@0 1734 margin-left: 0;
michael@0 1735 }
michael@0 1736
michael@0 1737 @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(ltr) {
michael@0 1738 border-top-left-radius: 0;
michael@0 1739 border-bottom-left-radius: 0;
michael@0 1740 }
michael@0 1741
michael@0 1742 @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
michael@0 1743 border-top-right-radius: 0;
michael@0 1744 border-bottom-right-radius: 0;
michael@0 1745 }
michael@0 1746
michael@0 1747 @conditionalForwardWithUrlbar@ {
michael@0 1748 clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");
michael@0 1749 -moz-margin-start: -6px;
michael@0 1750 }
michael@0 1751
michael@0 1752 @conditionalForwardWithUrlbar@:-moz-locale-dir(rtl),
michael@0 1753 @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) {
michael@0 1754 /* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
michael@0 1755 transform: scaleX(-1);
michael@0 1756 }
michael@0 1757
michael@0 1758 @conditionalForwardWithUrlbar@:-moz-locale-dir(rtl) {
michael@0 1759 -moz-box-direction: reverse;
michael@0 1760 }
michael@0 1761
michael@0 1762 #identity-box {
michael@0 1763 -moz-margin-end: 3px;
michael@0 1764 padding-top: 1px;
michael@0 1765 padding-bottom: 1px;
michael@0 1766 -moz-padding-start: 4px;
michael@0 1767 -moz-padding-end: 0;
michael@0 1768 font-size: .9em;
michael@0 1769 }
michael@0 1770
michael@0 1771 #identity-box:-moz-locale-dir(ltr) {
michael@0 1772 border-top-left-radius: 2px;
michael@0 1773 border-bottom-left-radius: 2px;
michael@0 1774 }
michael@0 1775
michael@0 1776 #identity-box:-moz-locale-dir(rtl) {
michael@0 1777 border-top-right-radius: 2px;
michael@0 1778 border-bottom-right-radius: 2px;
michael@0 1779 }
michael@0 1780
michael@0 1781 #notification-popup-box:not([hidden]) + #identity-box {
michael@0 1782 -moz-padding-start: 10px;
michael@0 1783 border-radius: 0;
michael@0 1784 }
michael@0 1785
michael@0 1786 @conditionalForwardWithUrlbar@ > #urlbar > #identity-box {
michael@0 1787 border-radius: 0;
michael@0 1788 }
michael@0 1789
michael@0 1790 @conditionalForwardWithUrlbar@:not([switchingtabs]) > #urlbar > #identity-box {
michael@0 1791 transition: padding-left, padding-right;
michael@0 1792 }
michael@0 1793
michael@0 1794 @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
michael@0 1795 padding-left: 10px;
michael@0 1796 }
michael@0 1797
michael@0 1798 @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
michael@0 1799 padding-right: 10px;
michael@0 1800 }
michael@0 1801
michael@0 1802 @conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box {
michael@0 1803 /* forward button hiding is delayed when hovered */
michael@0 1804 transition-delay: 100s;
michael@0 1805 }
michael@0 1806
michael@0 1807 @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
michael@0 1808 padding-left: 10.01px;
michael@0 1809 }
michael@0 1810
michael@0 1811 @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
michael@0 1812 padding-right: 10.01px;
michael@0 1813 }
michael@0 1814
michael@0 1815 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI,
michael@0 1816 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
michael@0 1817 -moz-padding-end: 4px;
michael@0 1818 }
michael@0 1819
michael@0 1820 #identity-box:-moz-focusring {
michael@0 1821 box-shadow: 0 0 2px 1px -moz-mac-focusring inset,
michael@0 1822 0 0 2px 2px -moz-mac-focusring;
michael@0 1823 -moz-border-end-style: none;
michael@0 1824 -moz-padding-end: 5px;
michael@0 1825 }
michael@0 1826
michael@0 1827 #identity-icon-labels {
michael@0 1828 -moz-margin-start: 4px;
michael@0 1829 }
michael@0 1830
michael@0 1831 .urlbar-input-box {
michael@0 1832 -moz-margin-start: 0;
michael@0 1833 padding: 3px 0 2px;
michael@0 1834 }
michael@0 1835
michael@0 1836 .urlbar-history-dropmarker {
michael@0 1837 padding: 0 3px;
michael@0 1838 list-style-image: url("chrome://browser/skin/urlbar-history-dropmarker.png");
michael@0 1839 -moz-image-region: rect(0px, 11px, 14px, 0px);
michael@0 1840 }
michael@0 1841
michael@0 1842 .urlbar-history-dropmarker[open="true"],
michael@0 1843 .urlbar-history-dropmarker:hover:active {
michael@0 1844 -moz-image-region: rect(0px, 22px, 14px, 11px);
michael@0 1845 background-image: radial-gradient(circle closest-side, hsla(205,100%,70%,.3), hsla(205,100%,70%,0));
michael@0 1846 }
michael@0 1847
michael@0 1848 @media (min-resolution: 2dppx) {
michael@0 1849 .urlbar-history-dropmarker {
michael@0 1850 list-style-image: url("chrome://browser/skin/urlbar-history-dropmarker@2x.png");
michael@0 1851 -moz-image-region: rect(0px, 22px, 28px, 0px);
michael@0 1852 }
michael@0 1853
michael@0 1854 .urlbar-history-dropmarker[open="true"],
michael@0 1855 .urlbar-history-dropmarker:hover:active {
michael@0 1856 -moz-image-region: rect(0px, 44px, 28px, 22px);
michael@0 1857 }
michael@0 1858
michael@0 1859 .urlbar-history-dropmarker > .dropmarker-icon {
michael@0 1860 width: 11px;
michael@0 1861 }
michael@0 1862 }
michael@0 1863
michael@0 1864 #urlbar-icons {
michael@0 1865 -moz-box-align: center;
michael@0 1866 }
michael@0 1867
michael@0 1868 .urlbar-icon {
michael@0 1869 padding: 0 3px;
michael@0 1870 }
michael@0 1871
michael@0 1872 .urlbar-icon[open="true"],
michael@0 1873 .urlbar-icon:hover:active {
michael@0 1874 background-image: radial-gradient(circle closest-side, hsla(205,100%,70%,.3), hsla(205,100%,70%,0));
michael@0 1875 }
michael@0 1876
michael@0 1877 #urlbar-search-splitter {
michael@0 1878 min-width: 8px;
michael@0 1879 width: 8px;
michael@0 1880 background-image: none;
michael@0 1881 margin: 0 -4px;
michael@0 1882 position: relative;
michael@0 1883 height: 22px;
michael@0 1884 }
michael@0 1885
michael@0 1886 #search-container {
michael@0 1887 min-width: calc(54px + 11ch);
michael@0 1888 }
michael@0 1889
michael@0 1890 %include ../shared/identity-block.inc.css
michael@0 1891
michael@0 1892 #page-proxy-favicon {
michael@0 1893 margin: 0px;
michael@0 1894 padding: 0px;
michael@0 1895 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 1896 }
michael@0 1897
michael@0 1898 #identity-box:hover:active > #page-proxy-favicon,
michael@0 1899 #identity-box[open=true] > #page-proxy-favicon {
michael@0 1900 -moz-image-region: rect(0, 32px, 16px, 16px);
michael@0 1901 }
michael@0 1902
michael@0 1903 /* The chromeUI identity-icon set includes three states,
michael@0 1904 but OS X only uses two of them. */
michael@0 1905 #identity-box.chromeUI:hover:active > #page-proxy-favicon,
michael@0 1906 #identity-box.chromeUI[open=true] > #page-proxy-favicon {
michael@0 1907 -moz-image-region: rect(0, 48px, 16px, 32px);
michael@0 1908 }
michael@0 1909
michael@0 1910 @media (min-resolution: 2dppx) {
michael@0 1911 #page-proxy-favicon {
michael@0 1912 list-style-image: url(chrome://browser/skin/identity-icons-generic@2x.png);
michael@0 1913 -moz-image-region: rect(0, 32px, 32px, 0);
michael@0 1914 }
michael@0 1915
michael@0 1916 .chromeUI > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1917 list-style-image: url(chrome://branding/content/identity-icons-brand@2x.png);
michael@0 1918 }
michael@0 1919
michael@0 1920 .verifiedDomain > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1921 list-style-image: url(chrome://browser/skin/identity-icons-https@2x.png);
michael@0 1922 }
michael@0 1923
michael@0 1924 .verifiedIdentity > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1925 list-style-image: url(chrome://browser/skin/identity-icons-https-ev@2x.png);
michael@0 1926 }
michael@0 1927
michael@0 1928 .mixedActiveContent > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1929 list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-active@2x.png);
michael@0 1930 }
michael@0 1931
michael@0 1932 .mixedDisplayContent > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1933 list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
michael@0 1934 }
michael@0 1935
michael@0 1936 .mixedDisplayContentLoadedActiveBlocked > #page-proxy-favicon[pageproxystate="valid"] {
michael@0 1937 list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
michael@0 1938 }
michael@0 1939
michael@0 1940 #identity-box:hover:active > #page-proxy-favicon,
michael@0 1941 #identity-box[open=true] > #page-proxy-favicon {
michael@0 1942 -moz-image-region: rect(0, 64px, 32px, 32px);
michael@0 1943 }
michael@0 1944
michael@0 1945 /* The chromeUI identity-icon set includes three states,
michael@0 1946 but OS X only uses two of them. */
michael@0 1947 #identity-box.chromeUI:hover:active > #page-proxy-favicon,
michael@0 1948 #identity-box.chromeUI[open=true] > #page-proxy-favicon {
michael@0 1949 -moz-image-region: rect(0, 96px, 32px, 64px);
michael@0 1950 }
michael@0 1951 }
michael@0 1952
michael@0 1953 #wrapper-urlbar-container[place="palette"] {
michael@0 1954 max-width: 20em;
michael@0 1955 }
michael@0 1956
michael@0 1957 #urlbar-display-box {
michael@0 1958 -moz-border-end: 1px solid #AAA;
michael@0 1959 -moz-margin-end: 3px;
michael@0 1960 }
michael@0 1961
michael@0 1962 #urlbar-display {
michael@0 1963 margin-top: 0;
michael@0 1964 margin-bottom: 0;
michael@0 1965 color: GrayText;
michael@0 1966 }
michael@0 1967
michael@0 1968 #PopupAutoCompleteRichResult {
michael@0 1969 margin-top: 2px;
michael@0 1970 }
michael@0 1971
michael@0 1972 /* ----- AUTOCOMPLETE ----- */
michael@0 1973
michael@0 1974 #treecolAutoCompleteImage {
michael@0 1975 max-width: 36px;
michael@0 1976 }
michael@0 1977
michael@0 1978 .ac-result-type-bookmark,
michael@0 1979 .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
michael@0 1980 list-style-image: url("chrome://browser/skin/places/star-icons.png");
michael@0 1981 -moz-image-region: rect(0, 48px, 16px, 32px);
michael@0 1982 }
michael@0 1983
michael@0 1984 .ac-result-type-keyword,
michael@0 1985 .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
michael@0 1986 list-style-image: url(chrome://global/skin/icons/search-textbox.png);
michael@0 1987 margin: 2px;
michael@0 1988 width: 12px;
michael@0 1989 height: 12px;
michael@0 1990 }
michael@0 1991
michael@0 1992 richlistitem[selected="true"][current="true"] > .ac-title-box > .ac-result-type-bookmark,
michael@0 1993 .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
michael@0 1994 list-style-image: url("chrome://browser/skin/places/star-icons.png");
michael@0 1995 -moz-image-region: rect(0, 64px, 16px, 48px);
michael@0 1996 }
michael@0 1997
michael@0 1998 .ac-result-type-tag,
michael@0 1999 .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
michael@0 2000 list-style-image: url("chrome://browser/skin/places/tag.png");
michael@0 2001 width: 16px;
michael@0 2002 height: 16px;
michael@0 2003 }
michael@0 2004
michael@0 2005 .ac-extra > .ac-comment {
michael@0 2006 font-size: inherit;
michael@0 2007 }
michael@0 2008
michael@0 2009 .ac-url-text,
michael@0 2010 .ac-action-text {
michael@0 2011 color: -moz-nativehyperlinktext;
michael@0 2012 font: message-box;
michael@0 2013 }
michael@0 2014
michael@0 2015 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
michael@0 2016 list-style-image: url("chrome://browser/skin/actionicon-tab.png");
michael@0 2017 -moz-image-region: rect(0, 16px, 11px, 0);
michael@0 2018 padding: 0 3px;
michael@0 2019 }
michael@0 2020
michael@0 2021 richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-box > .ac-action-icon {
michael@0 2022 -moz-image-region: rect(11px, 16px, 22px, 0);
michael@0 2023 }
michael@0 2024
michael@0 2025 @media (min-resolution: 2dppx) {
michael@0 2026 .ac-result-type-bookmark {
michael@0 2027 list-style-image: url("chrome://browser/skin/places/star-icons@2x.png");
michael@0 2028 -moz-image-region: rect(0, 64px, 32px, 32px);
michael@0 2029 }
michael@0 2030
michael@0 2031 richlistitem[selected="true"][current="true"] > .ac-title-box > .ac-result-type-bookmark {
michael@0 2032 list-style-image: url("chrome://browser/skin/places/star-icons@2x.png");
michael@0 2033 -moz-image-region: rect(0, 128px, 32px, 96px);
michael@0 2034 }
michael@0 2035
michael@0 2036 .ac-result-type-tag {
michael@0 2037 list-style-image: url("chrome://browser/skin/places/tag@2x.png");
michael@0 2038 }
michael@0 2039
michael@0 2040 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
michael@0 2041 list-style-image: url("chrome://browser/skin/actionicon-tab@2x.png");
michael@0 2042 -moz-image-region: rect(0, 32px, 22px, 0);
michael@0 2043 width: 22px;
michael@0 2044 }
michael@0 2045
michael@0 2046 richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-box > .ac-action-icon {
michael@0 2047 -moz-image-region: rect(22px, 32px, 44px, 0);
michael@0 2048 }
michael@0 2049 }
michael@0 2050
michael@0 2051 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
michael@0 2052 color: GrayText;
michael@0 2053 }
michael@0 2054
michael@0 2055 .ac-comment[selected="true"],
michael@0 2056 .ac-url-text[selected="true"],
michael@0 2057 .ac-action-text[selected="true"] {
michael@0 2058 color: inherit !important;
michael@0 2059 }
michael@0 2060
michael@0 2061 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
michael@0 2062 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment)
michael@0 2063 {
michael@0 2064 color: GrayText;
michael@0 2065 font-size: smaller;
michael@0 2066 }
michael@0 2067
michael@0 2068 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
michael@0 2069 border-top: 1px solid GrayText;
michael@0 2070 }
michael@0 2071
michael@0 2072
michael@0 2073 /* ----- COMBINED GO/RELOAD/STOP BUTTON IN LOCATION BAR ----- */
michael@0 2074
michael@0 2075 #urlbar > toolbarbutton {
michael@0 2076 margin: 0;
michael@0 2077 -moz-padding-start: 2px;
michael@0 2078 -moz-padding-end: 1px;
michael@0 2079 background-origin: border-box;
michael@0 2080 list-style-image: url("chrome://browser/skin/reload-stop-go.png");
michael@0 2081 }
michael@0 2082
michael@0 2083 #urlbar > toolbarbutton:not([disabled]):hover:active {
michael@0 2084 background-image: radial-gradient(circle closest-side, hsla(205,100%,70%,.3), hsla(205,100%,70%,0));
michael@0 2085 }
michael@0 2086
michael@0 2087 #urlbar-go-button {
michael@0 2088 -moz-image-region: rect(0, 42px, 14px, 28px);
michael@0 2089 }
michael@0 2090
michael@0 2091 #urlbar-go-button:hover:active {
michael@0 2092 -moz-image-region: rect(14px, 42px, 28px, 28px);
michael@0 2093 }
michael@0 2094
michael@0 2095 #urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
michael@0 2096 transform: scaleX(-1);
michael@0 2097 }
michael@0 2098
michael@0 2099 #urlbar-reload-button {
michael@0 2100 -moz-image-region: rect(0, 14px, 14px, 0);
michael@0 2101 }
michael@0 2102
michael@0 2103 #urlbar-reload-button:not([disabled]):hover:active {
michael@0 2104 -moz-image-region: rect(14px, 14px, 28px, 0);
michael@0 2105 }
michael@0 2106
michael@0 2107 #urlbar-reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
michael@0 2108 transform: scaleX(-1);
michael@0 2109 }
michael@0 2110
michael@0 2111 #urlbar-stop-button {
michael@0 2112 -moz-image-region: rect(0, 28px, 14px, 14px);
michael@0 2113 }
michael@0 2114
michael@0 2115 #urlbar-stop-button:hover:active {
michael@0 2116 -moz-image-region: rect(14px, 28px, 28px, 14px);
michael@0 2117 }
michael@0 2118
michael@0 2119 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 2120 width: 18px;
michael@0 2121 height: 18px;
michael@0 2122 }
michael@0 2123
michael@0 2124 #bookmarks-menu-button[cui-areatype="toolbar"].bookmark-item > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 2125 width: 16px;
michael@0 2126 height: 16px;
michael@0 2127 }
michael@0 2128
michael@0 2129 #BMB_bookmarksPopup[side="top"],
michael@0 2130 #BMB_bookmarksPopup[side="bottom"] {
michael@0 2131 margin-left: -26px;
michael@0 2132 margin-right: -26px;
michael@0 2133 }
michael@0 2134
michael@0 2135 #BMB_bookmarksPopup[side="left"],
michael@0 2136 #BMB_bookmarksPopup[side="right"] {
michael@0 2137 margin-top: -26px;
michael@0 2138 margin-bottom: -26px;
michael@0 2139 }
michael@0 2140
michael@0 2141 @media (min-resolution: 2dppx) {
michael@0 2142 #urlbar > toolbarbutton {
michael@0 2143 list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
michael@0 2144 }
michael@0 2145
michael@0 2146 #urlbar-go-button {
michael@0 2147 -moz-image-region: rect(0, 84px, 28px, 56px);
michael@0 2148 }
michael@0 2149
michael@0 2150 #urlbar-go-button:hover:active {
michael@0 2151 -moz-image-region: rect(28px, 84px, 56px, 56px);
michael@0 2152 }
michael@0 2153
michael@0 2154 #urlbar-reload-button {
michael@0 2155 -moz-image-region: rect(0, 28px, 28px, 0);
michael@0 2156 }
michael@0 2157
michael@0 2158 #urlbar-reload-button:not([disabled]):hover:active {
michael@0 2159 -moz-image-region: rect(28px, 28px, 56px, 0);
michael@0 2160 }
michael@0 2161
michael@0 2162 #urlbar-stop-button {
michael@0 2163 -moz-image-region: rect(0, 56px, 28px, 28px);
michael@0 2164 }
michael@0 2165
michael@0 2166 #urlbar-stop-button:hover:active {
michael@0 2167 -moz-image-region: rect(28px, 56px, 56px, 28px);
michael@0 2168 }
michael@0 2169
michael@0 2170 #urlbar > toolbarbutton > .toolbarbutton-icon {
michael@0 2171 width: 14px;
michael@0 2172 }
michael@0 2173 }
michael@0 2174
michael@0 2175 /* POPUP BLOCKER BUTTON */
michael@0 2176 #page-report-button {
michael@0 2177 list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
michael@0 2178 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 2179 }
michael@0 2180
michael@0 2181 #page-report-button:hover:active,
michael@0 2182 #page-report-button[open="true"] {
michael@0 2183 -moz-image-region: rect(0, 32px, 16px, 16px);
michael@0 2184 }
michael@0 2185
michael@0 2186 @media (min-resolution: 2dppx) {
michael@0 2187 #page-report-button {
michael@0 2188 list-style-image: url("chrome://browser/skin/urlbar-popup-blocked@2x.png");
michael@0 2189 -moz-image-region: rect(0, 32px, 32px, 0);
michael@0 2190 width: 22px;
michael@0 2191 }
michael@0 2192
michael@0 2193 #page-report-button:hover:active,
michael@0 2194 #page-report-button[open="true"] {
michael@0 2195 -moz-image-region: rect(0, 64px, 32px, 32px);
michael@0 2196 }
michael@0 2197 }
michael@0 2198
michael@0 2199 /* social share panel */
michael@0 2200 .social-share-frame {
michael@0 2201 background: linear-gradient(to bottom, rgba(242,242,242,.99), rgba(242,242,242,.95));
michael@0 2202 border-left: 1px solid #f8f8f8;
michael@0 2203 width: 330px;
michael@0 2204 height: 150px;
michael@0 2205 /* we resize our panels dynamically, make it look nice */
michael@0 2206 transition: height 100ms ease-out, width 100ms ease-out;
michael@0 2207 }
michael@0 2208
michael@0 2209 .social-share-toolbar {
michael@0 2210 border-right: 1px solid #dedede;
michael@0 2211 background: linear-gradient(to bottom, rgba(247,247,247,.99), rgba(247,247,247,.95));
michael@0 2212 }
michael@0 2213
michael@0 2214 #social-share-provider-buttons {
michael@0 2215 border-right: 1px solid #fbfbfb;
michael@0 2216 padding: 6px;
michael@0 2217 }
michael@0 2218
michael@0 2219 #social-share-provider-buttons > .share-provider-button {
michael@0 2220 padding: 6px;
michael@0 2221 margin: 0;
michael@0 2222 border: none;
michael@0 2223 border-radius: 2px;
michael@0 2224 }
michael@0 2225
michael@0 2226 #social-share-provider-buttons > .share-provider-button[checked],
michael@0 2227 #social-share-provider-buttons > .share-provider-button:active {
michael@0 2228 padding: 5px;
michael@0 2229 border: 1px solid #b5b5b8;
michael@0 2230 box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2);
michael@0 2231 }
michael@0 2232
michael@0 2233 #social-share-provider-buttons > .share-provider-button[checked] {
michael@0 2234 background: linear-gradient(to bottom, #d9d9d9, #e3e3e3);
michael@0 2235 }
michael@0 2236
michael@0 2237 #social-share-provider-buttons > .share-provider-button > .toolbarbutton-text {
michael@0 2238 display: none;
michael@0 2239 }
michael@0 2240 #social-share-provider-buttons > .share-provider-button > .toolbarbutton-icon {
michael@0 2241 width: 16px;
michael@0 2242 min-height: 16px;
michael@0 2243 max-height: 16px;
michael@0 2244 }
michael@0 2245
michael@0 2246 /* social recommending panel */
michael@0 2247
michael@0 2248 #social-mark-button {
michael@0 2249 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 2250 }
michael@0 2251
michael@0 2252 /* bookmarks menu-button */
michael@0 2253
michael@0 2254 #bookmarks-menu-button.bookmark-item,
michael@0 2255 #bookmarks-menu-button.bookmark-item[open] {
michael@0 2256 list-style-image: url("chrome://browser/skin/places/star-icons.png");
michael@0 2257 -moz-image-region: rect(0px 16px 16px 0px);
michael@0 2258 }
michael@0 2259
michael@0 2260 #bookmarks-menu-button.bookmark-item[starred] {
michael@0 2261 -moz-image-region: rect(0px 32px 16px 16px);
michael@0 2262 }
michael@0 2263
michael@0 2264 #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button {
michael@0 2265 padding: 0;
michael@0 2266 }
michael@0 2267
michael@0 2268 @media (min-resolution: 2dppx) {
michael@0 2269 #bookmarks-menu-button.bookmark-item,
michael@0 2270 #bookmarks-menu-button.bookmark-item[open] {
michael@0 2271 list-style-image: url("chrome://browser/skin/places/star-icons@2x.png");
michael@0 2272 -moz-image-region: rect(0px 32px 32px 0px);
michael@0 2273 }
michael@0 2274
michael@0 2275 #bookmarks-menu-button.bookmark-item[starred] {
michael@0 2276 -moz-image-region: rect(0px 64px 32px 32px);
michael@0 2277 }
michael@0 2278
michael@0 2279 #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
michael@0 2280 width: 16px;
michael@0 2281 }
michael@0 2282 }
michael@0 2283
michael@0 2284 /* BOOKMARKING PANEL */
michael@0 2285 #editBookmarkPanelStarIcon {
michael@0 2286 list-style-image: url("chrome://browser/skin/places/starred48.png");
michael@0 2287 width: 48px;
michael@0 2288 height: 48px;
michael@0 2289 }
michael@0 2290
michael@0 2291 #editBookmarkPanelStarIcon[unstarred] {
michael@0 2292 list-style-image: url("chrome://browser/skin/places/unstarred48.png");
michael@0 2293 }
michael@0 2294
michael@0 2295 @media (min-resolution: 2dppx) {
michael@0 2296 #editBookmarkPanelStarIcon {
michael@0 2297 list-style-image: url("chrome://browser/skin/places/starred48@2x.png");
michael@0 2298 -moz-image-region: rect(0px 96px 96px 0px);
michael@0 2299 }
michael@0 2300 }
michael@0 2301
michael@0 2302 #editBookmarkPanelTitle {
michael@0 2303 font-size: 130%;
michael@0 2304 font-weight: bold;
michael@0 2305 }
michael@0 2306
michael@0 2307 #editBMPanel_rows > row {
michael@0 2308 margin-bottom: 8px;
michael@0 2309 }
michael@0 2310
michael@0 2311 #editBMPanel_rows > row:last-of-type {
michael@0 2312 margin-bottom: 0;
michael@0 2313 }
michael@0 2314
michael@0 2315 /**** Input elements ****/
michael@0 2316
michael@0 2317 #editBMPanel_rows > row > textbox,
michael@0 2318 #editBMPanel_rows > row > hbox > textbox {
michael@0 2319 -moz-appearance: none;
michael@0 2320 background: linear-gradient(#fafafa, #fff);
michael@0 2321 background-clip: padding-box;
michael@0 2322 border-radius: 3px;
michael@0 2323 border: 1px solid rgba(0,0,0,.3) !important;
michael@0 2324 box-shadow: inset 0 1px 1px 1px rgba(0,0,0,.05),
michael@0 2325 0 1px rgba(255,255,255,.3);
michael@0 2326 margin: 0;
michael@0 2327 padding: 3px 6px;
michael@0 2328 }
michael@0 2329
michael@0 2330 #editBMPanel_rows > row > textbox[focused="true"],
michael@0 2331 #editBMPanel_rows > row > hbox > textbox[focused="true"] {
michael@0 2332 border-color: -moz-mac-focusring !important;
michael@0 2333 box-shadow: @focusRingShadow@;
michael@0 2334 }
michael@0 2335
michael@0 2336 /**** HUD style buttons ****/
michael@0 2337
michael@0 2338 .editBookmarkPanelHeaderButton,
michael@0 2339 .editBookmarkPanelBottomButton {
michael@0 2340 @hudButton@
michael@0 2341 margin: 0;
michael@0 2342 min-width: 82px;
michael@0 2343 min-height: 22px;
michael@0 2344 }
michael@0 2345
michael@0 2346 .editBookmarkPanelHeaderButton:hover:active,
michael@0 2347 .editBookmarkPanelBottomButton:hover:active {
michael@0 2348 @hudButtonPressed@
michael@0 2349 }
michael@0 2350
michael@0 2351 .editBookmarkPanelHeaderButton:-moz-focusring,
michael@0 2352 .editBookmarkPanelBottomButton:-moz-focusring {
michael@0 2353 @hudButtonFocused@
michael@0 2354 }
michael@0 2355
michael@0 2356 .editBookmarkPanelBottomButton[default="true"] {
michael@0 2357 background-color: #666;
michael@0 2358 }
michael@0 2359
michael@0 2360 #editBookmarkPanelHeader {
michael@0 2361 margin-bottom: 6px;
michael@0 2362 }
michael@0 2363
michael@0 2364 .editBookmarkPanelBottomButton:last-child {
michael@0 2365 -moz-margin-start: 8px;
michael@0 2366 }
michael@0 2367
michael@0 2368 /* The following elements come from editBookmarkOverlay.xul. Styling that's
michael@0 2369 specific to the editBookmarkPanel should be in browser.css. Styling that
michael@0 2370 should be shared by all editBookmarkOverlay.xul consumers should be in
michael@0 2371 editBookmarkOverlay.css. */
michael@0 2372
michael@0 2373 #editBMPanel_newFolderBox {
michael@0 2374 background: linear-gradient(#fff, #f2f2f2);
michael@0 2375 background-origin: padding-box;
michael@0 2376 background-clip: padding-box;
michael@0 2377 border-radius: 0 0 3px 3px;
michael@0 2378 border: 1px solid #a5a5a5;
michael@0 2379 box-shadow: inset 0 1px rgba(255,255,255,.8),
michael@0 2380 inset 0 0 1px rgba(255,255, 255,.25),
michael@0 2381 0 1px rgba(255,255,255,.3);
michael@0 2382 margin: 0;
michael@0 2383 padding: 0;
michael@0 2384 height: 20px;
michael@0 2385 }
michael@0 2386
michael@0 2387 #editBMPanel_newFolderButton {
michael@0 2388 -moz-appearance: none;
michael@0 2389 border: 0 solid #a5a5a5;
michael@0 2390 -moz-border-end-width: 1px;
michael@0 2391 padding: 0 9px;
michael@0 2392 margin: 0;
michael@0 2393 min-width: 21px;
michael@0 2394 min-height: 20px;
michael@0 2395 height: 20px;
michael@0 2396 color: #fff;
michael@0 2397 list-style-image: url("chrome://browser/skin/panel-plus-sign.png");
michael@0 2398 position: relative;
michael@0 2399 }
michael@0 2400
michael@0 2401 #editBMPanel_newFolderButton:hover:active {
michael@0 2402 background: linear-gradient(rgba(40,40,40,.9), rgba(70,70,70,.9));
michael@0 2403 box-shadow: inset 0 0 3px rgba(0,0,0,.2), inset 0 1px 7px rgba(0,0,0,.4);
michael@0 2404 }
michael@0 2405
michael@0 2406 #editBMPanel_newFolderButton:-moz-focusring {
michael@0 2407 @hudButtonFocused@
michael@0 2408 }
michael@0 2409
michael@0 2410 #editBMPanel_newFolderButton .button-text {
michael@0 2411 display: none;
michael@0 2412 }
michael@0 2413
michael@0 2414 #editBMPanel_folderMenuList {
michael@0 2415 @hudButton@
michael@0 2416 background-clip: padding-box;
michael@0 2417 margin: 0;
michael@0 2418 min-height: 22px;
michael@0 2419 padding-top: 2px;
michael@0 2420 padding-bottom: 1px;
michael@0 2421 -moz-padding-start: 8px;
michael@0 2422 -moz-padding-end: 4px;
michael@0 2423 }
michael@0 2424
michael@0 2425 #editBMPanel_folderMenuList:-moz-focusring {
michael@0 2426 @hudButtonFocused@
michael@0 2427 }
michael@0 2428
michael@0 2429 #editBMPanel_folderMenuList[open="true"],
michael@0 2430 #editBMPanel_folderMenuList:hover:active {
michael@0 2431 @hudButtonPressed@
michael@0 2432 }
michael@0 2433
michael@0 2434 #editBMPanel_folderMenuList > .menulist-dropmarker {
michael@0 2435 -moz-appearance: none;
michael@0 2436 display: -moz-box;
michael@0 2437 background-color: transparent;
michael@0 2438 border: 0;
michael@0 2439 margin: 0;
michael@0 2440 padding: 0;
michael@0 2441 -moz-padding-end: 4px;
michael@0 2442 width: 7px;
michael@0 2443 }
michael@0 2444
michael@0 2445 #editBMPanel_folderMenuList > .menulist-dropmarker > .dropmarker-icon {
michael@0 2446 list-style-image: url("chrome://global/skin/icons/panel-dropmarker.png");
michael@0 2447 }
michael@0 2448
michael@0 2449 /**** folder tree and tag selector ****/
michael@0 2450
michael@0 2451 #editBMPanel_folderTree,
michael@0 2452 #editBMPanel_tagsSelector {
michael@0 2453 -moz-appearance: none;
michael@0 2454 background: linear-gradient(#fafafa, #fff);
michael@0 2455 background-clip: padding-box;
michael@0 2456 border-radius: 3px;
michael@0 2457 border: 1px solid rgba(0,0,0,.3);
michael@0 2458 box-shadow: inset 0 1px 1px 1px rgba(0,0,0,.05),
michael@0 2459 0 1px rgba(255,255,255,.3);
michael@0 2460 margin: 0;
michael@0 2461 }
michael@0 2462
michael@0 2463 #editBMPanel_folderTree:-moz-focusring,
michael@0 2464 #editBMPanel_tagsSelector:-moz-focusring {
michael@0 2465 border-color: -moz-mac-focusring;
michael@0 2466 box-shadow: @focusRingShadow@;
michael@0 2467 }
michael@0 2468
michael@0 2469 #editBMPanel_folderTree {
michael@0 2470 border-bottom: none;
michael@0 2471 border-bottom-left-radius: 0;
michael@0 2472 border-bottom-right-radius: 0;
michael@0 2473 /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
michael@0 2474 margin: 0 !important;
michael@0 2475 min-width: 27em;
michael@0 2476 position: relative;
michael@0 2477 }
michael@0 2478
michael@0 2479 /**** expanders ****/
michael@0 2480
michael@0 2481 #editBookmarkPanel .expander-up,
michael@0 2482 #editBookmarkPanel .expander-down {
michael@0 2483 @hudButton@
michael@0 2484 margin: 0;
michael@0 2485 -moz-margin-start: 4px;
michael@0 2486 min-width: 27px;
michael@0 2487 min-height: 22px;
michael@0 2488 }
michael@0 2489
michael@0 2490 #editBookmarkPanel .expander-up:-moz-focusring,
michael@0 2491 #editBookmarkPanel .expander-down:-moz-focusring {
michael@0 2492 @hudButtonFocused@
michael@0 2493 }
michael@0 2494
michael@0 2495 #editBookmarkPanel .expander-up:hover:active,
michael@0 2496 #editBookmarkPanel .expander-down:hover:active {
michael@0 2497 @hudButtonPressed@
michael@0 2498 }
michael@0 2499
michael@0 2500 #editBookmarkPanel .expander-up {
michael@0 2501 list-style-image: url("chrome://browser/skin/panel-expander-open.png");
michael@0 2502 }
michael@0 2503
michael@0 2504 #editBookmarkPanel .expander-down {
michael@0 2505 list-style-image: url("chrome://browser/skin/panel-expander-closed.png");
michael@0 2506 }
michael@0 2507
michael@0 2508 #editBookmarkPanel .expander-up > .button-box > .button-icon,
michael@0 2509 #editBookmarkPanel .expander-down > .button-box > .button-icon {
michael@0 2510 margin: 1px 0 0;
michael@0 2511 }
michael@0 2512
michael@0 2513 #editBookmarkPanel .expander-up > .button-box > .button-text,
michael@0 2514 #editBookmarkPanel .expander-down > .button-box > .button-text {
michael@0 2515 display: none;
michael@0 2516 }
michael@0 2517
michael@0 2518 @media (min-resolution: 2dppx) {
michael@0 2519 #editBookmarkPanel .expander-up {
michael@0 2520 list-style-image: url("chrome://browser/skin/panel-expander-open@2x.png");
michael@0 2521 }
michael@0 2522
michael@0 2523 #editBookmarkPanel .expander-down {
michael@0 2524 list-style-image: url("chrome://browser/skin/panel-expander-closed@2x.png");
michael@0 2525 }
michael@0 2526
michael@0 2527 #editBookmarkPanel .expander-up > .button-box > .button-icon,
michael@0 2528 #editBookmarkPanel .expander-down > .button-box > .button-icon {
michael@0 2529 width: 9px;
michael@0 2530 }
michael@0 2531 }
michael@0 2532
michael@0 2533 #editBMPanel_tagsField > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::-moz-placeholder {
michael@0 2534 opacity: 1.0;
michael@0 2535 color: #bbb;
michael@0 2536 }
michael@0 2537
michael@0 2538 .editBMPanel_rowLabel {
michael@0 2539 text-align: end;
michael@0 2540 }
michael@0 2541
michael@0 2542 .panel-promo-box {
michael@0 2543 margin: 8px -16px -16px -16px;
michael@0 2544 padding: 8px 16px;
michael@0 2545 background-color: hsla(210,4%,10%,.07);
michael@0 2546 border-top: 1px solid hsla(210,4%,10%,.12);
michael@0 2547 border-radius: 0 0 5px 5px;
michael@0 2548 box-shadow: 0 -1px hsla(0,0%,100%,.5) inset, 0 1px 1px hsla(0,0%,0%,.03) inset;
michael@0 2549 color: hsl(0,0%,30%);
michael@0 2550 }
michael@0 2551
michael@0 2552 .panel-promo-icon {
michael@0 2553 list-style-image: url("chrome://browser/skin/sync-notification-24.png");
michael@0 2554 -moz-margin-end: 10px;
michael@0 2555 vertical-align: middle;
michael@0 2556 }
michael@0 2557
michael@0 2558 .panel-promo-closebutton {
michael@0 2559 border: none;
michael@0 2560 -moz-margin-end: -14px;
michael@0 2561 margin-top: -8px;
michael@0 2562 }
michael@0 2563
michael@0 2564 .panel-promo-closebutton > .toolbarbutton-text {
michael@0 2565 padding: 0;
michael@0 2566 margin: 0;
michael@0 2567 }
michael@0 2568
michael@0 2569 @media (min-resolution: 2dppx) {
michael@0 2570 .panel-promo-closebutton > .toolbarbutton-icon {
michael@0 2571 width: 16px;
michael@0 2572 }
michael@0 2573 }
michael@0 2574
michael@0 2575 /* History Swipe Animation */
michael@0 2576
michael@0 2577 #historySwipeAnimationCurrentPage,
michael@0 2578 #historySwipeAnimationNextPage {
michael@0 2579 box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
michael@0 2580 }
michael@0 2581
michael@0 2582 #historySwipeAnimationContainer {
michael@0 2583 background: url("chrome://browser/skin/subtle-pattern.png") #B3B9C1;
michael@0 2584 }
michael@0 2585
michael@0 2586 /* ----- SIDEBAR ELEMENTS ----- */
michael@0 2587
michael@0 2588 #sidebar,
michael@0 2589 sidebarheader {
michael@0 2590 background-color: #e2e7ed;
michael@0 2591 }
michael@0 2592
michael@0 2593 #sidebar:-moz-window-inactive,
michael@0 2594 sidebarheader:-moz-window-inactive {
michael@0 2595 background-color: #e8e8e8;
michael@0 2596 }
michael@0 2597
michael@0 2598 sidebarheader {
michael@0 2599 padding: 2px;
michael@0 2600 text-shadow: none;
michael@0 2601 }
michael@0 2602
michael@0 2603 sidebarheader > .close-icon > .toolbarbutton-text {
michael@0 2604 display: none;
michael@0 2605 }
michael@0 2606
michael@0 2607 #sidebar-box {
michael@0 2608 -moz-appearance: dialog;
michael@0 2609 -moz-appearance: none;
michael@0 2610 }
michael@0 2611
michael@0 2612 .sidebar-splitter {
michael@0 2613 -moz-border-start: none;
michael@0 2614 -moz-border-end: 1px solid #bdbdbd;
michael@0 2615 min-width: 1px;
michael@0 2616 width: 3px;
michael@0 2617 background-image: none !important;
michael@0 2618 background-color: transparent;
michael@0 2619 -moz-margin-start: -3px;
michael@0 2620 position: relative;
michael@0 2621 }
michael@0 2622
michael@0 2623 #appcontent ~ .sidebar-splitter {
michael@0 2624 -moz-border-start: 1px solid #ccc;
michael@0 2625 -moz-border-end: none;
michael@0 2626 -moz-margin-start: 0;
michael@0 2627 -moz-margin-end: -3px;
michael@0 2628 }
michael@0 2629
michael@0 2630 .sidebar-title,
michael@0 2631 #sidebar-title {
michael@0 2632 color: #535f6d;
michael@0 2633 font-weight: bold;
michael@0 2634 }
michael@0 2635
michael@0 2636 .sidebar-throbber[loading="true"],
michael@0 2637 #sidebar-throbber[loading="true"] {
michael@0 2638 list-style-image: url("chrome://global/skin/icons/loading_16.png");
michael@0 2639 }
michael@0 2640
michael@0 2641 /* ----- CONTENT ----- */
michael@0 2642
michael@0 2643 .browserContainer > findbar {
michael@0 2644 background: @scopeBarBackground@;
michael@0 2645 border-top: @scopeBarSeparatorBorder@;
michael@0 2646 color: -moz-DialogText;
michael@0 2647 text-shadow: none;
michael@0 2648 }
michael@0 2649
michael@0 2650 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
michael@0 2651 display: none;
michael@0 2652 }
michael@0 2653
michael@0 2654 .bookmark-item {
michael@0 2655 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
michael@0 2656 }
michael@0 2657
michael@0 2658 @media (min-resolution: 2dppx) {
michael@0 2659 .bookmark-item {
michael@0 2660 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
michael@0 2661 }
michael@0 2662
michael@0 2663 image.bookmark-item {
michael@0 2664 width: 16px;
michael@0 2665 }
michael@0 2666 }
michael@0 2667
michael@0 2668 .openintabs-menuitem {
michael@0 2669 list-style-image: none;
michael@0 2670 }
michael@0 2671
michael@0 2672 /* ::::: tabbrowser ::::: */
michael@0 2673
michael@0 2674 .tabbrowser-tabbox {
michael@0 2675 margin: 0;
michael@0 2676 }
michael@0 2677
michael@0 2678 %include ../shared/tabs.inc.css
michael@0 2679
michael@0 2680 .tab-label {
michael@0 2681 margin-top: 1px;
michael@0 2682 margin-bottom: 0;
michael@0 2683 text-align: center;
michael@0 2684 }
michael@0 2685
michael@0 2686 @media (min-resolution: 2dppx) {
michael@0 2687 /* image preloading hack from shared/tabs.inc.css */
michael@0 2688 #tabbrowser-tabs::before {
michael@0 2689 background-image:
michael@0 2690 url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png),
michael@0 2691 url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png),
michael@0 2692 url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png);
michael@0 2693 }
michael@0 2694
michael@0 2695 .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]),
michael@0 2696 .tabs-newtab-button:hover {
michael@0 2697 background-image: url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png),
michael@0 2698 url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png),
michael@0 2699 url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png);
michael@0 2700 }
michael@0 2701
michael@0 2702 .tab-background-middle[selected=true] {
michael@0 2703 background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle@2x.png),
michael@0 2704 @fgTabTexture@,
michael@0 2705 none;
michael@0 2706 }
michael@0 2707
michael@0 2708 .tab-background-start[selected=true]:-moz-locale-dir(ltr)::after,
michael@0 2709 .tab-background-end[selected=true]:-moz-locale-dir(rtl)::after {
michael@0 2710 background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-start@2x.png);
michael@0 2711 }
michael@0 2712
michael@0 2713 .tab-background-end[selected=true]:-moz-locale-dir(ltr)::after,
michael@0 2714 .tab-background-start[selected=true]:-moz-locale-dir(rtl)::after {
michael@0 2715 background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-end@2x.png);
michael@0 2716 }
michael@0 2717
michael@0 2718 .tab-icon-image {
michael@0 2719 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
michael@0 2720 image-rendering: -moz-crisp-edges;
michael@0 2721 }
michael@0 2722
michael@0 2723 .tab-throbber {
michael@0 2724 list-style-image: url("chrome://browser/skin/tabbrowser/connecting@2x.png");
michael@0 2725 }
michael@0 2726
michael@0 2727 .tab-throbber[progress] {
michael@0 2728 list-style-image: url("chrome://browser/skin/tabbrowser/loading@2x.png");
michael@0 2729 }
michael@0 2730
michael@0 2731 /* Background tab separators */
michael@0 2732 #tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after,
michael@0 2733 .tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before,
michael@0 2734 #tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after {
michael@0 2735 background-image: url(chrome://browser/skin/tabbrowser/tab-separator@2x.png);
michael@0 2736 }
michael@0 2737 }
michael@0 2738
michael@0 2739 .tabbrowser-tab:not(:hover) > .tab-stack > .tab-content > .tab-icon-image:not([selected="true"]) {
michael@0 2740 opacity: .9;
michael@0 2741 }
michael@0 2742
michael@0 2743 .tab-label:not([selected="true"]) {
michael@0 2744 opacity: .7;
michael@0 2745 }
michael@0 2746
michael@0 2747 .tabbrowser-tab,
michael@0 2748 .tabs-newtab-button {
michael@0 2749 font: message-box;
michael@0 2750 border: none;
michael@0 2751 }
michael@0 2752
michael@0 2753 .tabbrowser-tab[selected=true]:not(:-moz-lwtheme) {
michael@0 2754 /* overriding tabbox.css */
michael@0 2755 color: inherit;
michael@0 2756 }
michael@0 2757
michael@0 2758 .tabbrowser-tab[selected=true] {
michael@0 2759 /* overriding tabbox.css */
michael@0 2760 text-shadow: inherit;
michael@0 2761 }
michael@0 2762
michael@0 2763 .tabs-newtab-button > .toolbarbutton-icon {
michael@0 2764 -moz-box-align: center;
michael@0 2765 border: solid transparent;
michael@0 2766 border-width: 0 11px;
michael@0 2767 }
michael@0 2768
michael@0 2769 .tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-label {
michael@0 2770 box-shadow: @focusRingShadow@;
michael@0 2771 }
michael@0 2772
michael@0 2773 /* We want the titlebar to be unified, but we still want to be able
michael@0 2774 * to give #TabsToolbar a background. So we can't set -moz-appearance:
michael@0 2775 * toolbar on #TabsToolbar itself. Instead, we set it on a box of the
michael@0 2776 * right size which is put underneath #TabsToolbar.
michael@0 2777 *
michael@0 2778 * Because of Bug 941309, we make sure this pseudoelement always exists,
michael@0 2779 * but we only make it visible when we need it.
michael@0 2780 */
michael@0 2781 #navigator-toolbox::before {
michael@0 2782 content: '';
michael@0 2783 display: block;
michael@0 2784 -moz-appearance: toolbar;
michael@0 2785 height: @tabMinHeight@;
michael@0 2786 margin-bottom: -@tabMinHeight@;
michael@0 2787 visibility: hidden;
michael@0 2788 }
michael@0 2789
michael@0 2790 #main-window:not([customizing]) #navigator-toolbox[inFullscreen]:not(:-moz-lwtheme)::before,
michael@0 2791 #main-window:not(:-moz-any([customizing],[tabsintitlebar])) #navigator-toolbox:not(:-moz-lwtheme)::before {
michael@0 2792 visibility: visible;
michael@0 2793 }
michael@0 2794
michael@0 2795 #TabsToolbar {
michael@0 2796 position: relative;
michael@0 2797 -moz-appearance: none;
michael@0 2798 background-repeat: repeat-x;
michael@0 2799 }
michael@0 2800
michael@0 2801 #TabsToolbar:not(:-moz-lwtheme) {
michael@0 2802 color: #333;
michael@0 2803 text-shadow: @loweredShadow@;
michael@0 2804 }
michael@0 2805
michael@0 2806 /*
michael@0 2807 * Draw the bottom border of the tabstrip when core doesn't do it for us.
michael@0 2808 * Because of Bug 941309, we make sure this pseudoelement always exists,
michael@0 2809 * but we only make it visible when we need it.
michael@0 2810 */
michael@0 2811 #TabsToolbar::after {
michael@0 2812 content: '';
michael@0 2813 /* Because we use placeholders for window controls etc. in the tabstrip,
michael@0 2814 * and position those with ordinal attributes, and because our layout code
michael@0 2815 * expects :before/:after nodes to come first/last in the frame list,
michael@0 2816 * we have to reorder this element to come last, hence the
michael@0 2817 * ordinal group value (see bug 853415). */
michael@0 2818 -moz-box-ordinal-group: 1001;
michael@0 2819 position: absolute;
michael@0 2820 bottom: @tabToolbarNavbarOverlap@;
michael@0 2821 left: 0;
michael@0 2822 right: 0;
michael@0 2823 z-index: 0;
michael@0 2824 border-bottom: 1px solid hsla(0,0%,0%,.3);
michael@0 2825 visibility: hidden;
michael@0 2826 }
michael@0 2827
michael@0 2828 #main-window:-moz-any([sizemode="fullscreen"],[customize-entered]) #TabsToolbar::after,
michael@0 2829 #main-window:not([tabsintitlebar]) #TabsToolbar::after,
michael@0 2830 #TabsToolbar:-moz-lwtheme::after {
michael@0 2831 visibility: visible;
michael@0 2832 }
michael@0 2833
michael@0 2834 #tabbrowser-tabs {
michael@0 2835 -moz-box-align: stretch;
michael@0 2836 }
michael@0 2837
michael@0 2838 .tabs-newtab-button > .toolbarbutton-icon {
michael@0 2839 padding: 6px 0 4px;
michael@0 2840 }
michael@0 2841
michael@0 2842 /* Background tabs:
michael@0 2843 *
michael@0 2844 * Decrease the height of the hoverable region of background tabs whenever the tabs are at the top
michael@0 2845 * of the window (e.g. no menubar, tabs in titlebar, etc.) to make it easier to drag the window by
michael@0 2846 * the titlebar. We don't need this in fullscreen since window dragging is not an issue there.
michael@0 2847 */
michael@0 2848 #main-window[tabsintitlebar]:not([inFullscreen]) .tab-background-middle:not([selected=true]) {
michael@0 2849 clip-path: url(chrome://browser/content/browser.xul#tab-hover-clip-path);
michael@0 2850 }
michael@0 2851
michael@0 2852 /**
michael@0 2853 * Tab Drag and Drop
michael@0 2854 */
michael@0 2855
michael@0 2856 .tab-drop-indicator {
michael@0 2857 list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png);
michael@0 2858 margin-top: -2px;
michael@0 2859 z-index: 3;
michael@0 2860 }
michael@0 2861
michael@0 2862 @media (min-resolution: 2dppx) {
michael@0 2863 .tab-drop-indicator {
michael@0 2864 list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator@2x.png);
michael@0 2865 width: 12px;
michael@0 2866 }
michael@0 2867 }
michael@0 2868
michael@0 2869 /**
michael@0 2870 * In-tab close button
michael@0 2871 */
michael@0 2872
michael@0 2873 .tab-close-button > .toolbarbutton-icon {
michael@0 2874 -moz-margin-end: 0px !important;
michael@0 2875 }
michael@0 2876
michael@0 2877 .tab-close-button {
michael@0 2878 -moz-appearance: none;
michael@0 2879 border: none !important;
michael@0 2880 background: none;
michael@0 2881 cursor: default;
michael@0 2882 }
michael@0 2883
michael@0 2884 .tab-close-button.close-icon:not([selected=true]):not(:hover):-moz-lwtheme-brighttext {
michael@0 2885 -moz-image-region: rect(0, 64px, 16px, 48px);
michael@0 2886 }
michael@0 2887
michael@0 2888 @media (min-resolution: 2dppx) {
michael@0 2889 .tab-close-button.close-icon:not([selected=true]):not(:hover):-moz-lwtheme-brighttext {
michael@0 2890 -moz-image-region: rect(0, 128px, 32px, 96px);
michael@0 2891 }
michael@0 2892 }
michael@0 2893
michael@0 2894 .tabbrowser-arrowscrollbox > .scrollbutton-up,
michael@0 2895 .tabbrowser-arrowscrollbox > .scrollbutton-down {
michael@0 2896 -moz-image-region: rect(0, 13px, 20px, 0);
michael@0 2897 margin: 0 0 @tabToolbarNavbarOverlap@;
michael@0 2898 padding: 0 4px;
michael@0 2899 border: none;
michael@0 2900 }
michael@0 2901
michael@0 2902 .tabbrowser-arrowscrollbox > .scrollbutton-up {
michael@0 2903 -moz-border-end: 2px solid transparent;
michael@0 2904 }
michael@0 2905
michael@0 2906 .tabbrowser-arrowscrollbox > .scrollbutton-down {
michael@0 2907 -moz-border-start: 2px solid transparent;
michael@0 2908 transition: 1s background-color ease-out;
michael@0 2909 }
michael@0 2910
michael@0 2911 .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
michael@0 2912 background-color: Highlight;
michael@0 2913 transition: none;
michael@0 2914 }
michael@0 2915
michael@0 2916 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(ltr),
michael@0 2917 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(rtl) {
michael@0 2918 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left.png");
michael@0 2919 }
michael@0 2920
michael@0 2921 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr),
michael@0 2922 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl) {
michael@0 2923 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-right.png");
michael@0 2924 }
michael@0 2925
michael@0 2926 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(ltr):-moz-lwtheme-brighttext,
michael@0 2927 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(rtl):-moz-lwtheme-brighttext {
michael@0 2928 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left-inverted.png");
michael@0 2929 }
michael@0 2930
michael@0 2931 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr):-moz-lwtheme-brighttext,
michael@0 2932 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl):-moz-lwtheme-brighttext {
michael@0 2933 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-right-inverted.png");
michael@0 2934 }
michael@0 2935
michael@0 2936 .tabbrowser-arrowscrollbox > .scrollbutton-up:hover,
michael@0 2937 .tabbrowser-arrowscrollbox > .scrollbutton-down:hover {
michael@0 2938 -moz-image-region: rect(0, 26px, 20px, 13px);
michael@0 2939 }
michael@0 2940
michael@0 2941 .tabbrowser-arrowscrollbox > .scrollbutton-up:hover:active,
michael@0 2942 .tabbrowser-arrowscrollbox > .scrollbutton-down:hover:active {
michael@0 2943 -moz-image-region: rect(0, 39px, 20px, 26px);
michael@0 2944 }
michael@0 2945
michael@0 2946 .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled] > .toolbarbutton-icon,
michael@0 2947 .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] > .toolbarbutton-icon {
michael@0 2948 -moz-image-region: rect(0, 13px, 20px, 0) !important;
michael@0 2949 opacity: .5;
michael@0 2950 }
michael@0 2951
michael@0 2952 @media (min-resolution: 2dppx) {
michael@0 2953 .tabbrowser-arrowscrollbox > .scrollbutton-up,
michael@0 2954 .tabbrowser-arrowscrollbox > .scrollbutton-down {
michael@0 2955 -moz-image-region: rect(0, 26px, 40px, 0);
michael@0 2956 }
michael@0 2957
michael@0 2958 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(ltr),
michael@0 2959 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(rtl) {
michael@0 2960 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left@2x.png");
michael@0 2961 }
michael@0 2962
michael@0 2963 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr),
michael@0 2964 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl) {
michael@0 2965 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-right@2x.png");
michael@0 2966 }
michael@0 2967
michael@0 2968 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(ltr):-moz-lwtheme-brighttext,
michael@0 2969 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(rtl):-moz-lwtheme-brighttext {
michael@0 2970 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left-inverted@2x.png");
michael@0 2971 }
michael@0 2972
michael@0 2973 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr):-moz-lwtheme-brighttext,
michael@0 2974 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl):-moz-lwtheme-brighttext {
michael@0 2975 list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-right-inverted@2x.png");
michael@0 2976 }
michael@0 2977
michael@0 2978 .tabbrowser-arrowscrollbox > .scrollbutton-up:hover,
michael@0 2979 .tabbrowser-arrowscrollbox > .scrollbutton-down:hover {
michael@0 2980 -moz-image-region: rect(0, 52px, 40px, 26px);
michael@0 2981 }
michael@0 2982
michael@0 2983 .tabbrowser-arrowscrollbox > .scrollbutton-up:hover:active,
michael@0 2984 .tabbrowser-arrowscrollbox > .scrollbutton-down:hover:active {
michael@0 2985 -moz-image-region: rect(0, 78px, 40px, 52px);
michael@0 2986 }
michael@0 2987
michael@0 2988 .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled] > .toolbarbutton-icon,
michael@0 2989 .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] > .toolbarbutton-icon {
michael@0 2990 -moz-image-region: rect(0, 26px, 40px, 0) !important;
michael@0 2991 }
michael@0 2992
michael@0 2993 .tabbrowser-arrowscrollbox > .scrollbutton-up > .toolbarbutton-icon,
michael@0 2994 .tabbrowser-arrowscrollbox > .scrollbutton-down > .toolbarbutton-icon {
michael@0 2995 width: 13px;
michael@0 2996 }
michael@0 2997 }
michael@0 2998
michael@0 2999 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):-moz-locale-dir(ltr),
michael@0 3000 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):-moz-locale-dir(rtl) {
michael@0 3001 border-width: 0 2px 0 0;
michael@0 3002 border-style: solid;
michael@0 3003 border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill;
michael@0 3004 }
michael@0 3005
michael@0 3006 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):-moz-locale-dir(ltr),
michael@0 3007 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):-moz-locale-dir(rtl) {
michael@0 3008 border-width: 0 0 0 2px;
michael@0 3009 border-style: solid;
michael@0 3010 border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill;
michael@0 3011 }
michael@0 3012
michael@0 3013 /**
michael@0 3014 * Tabstrip & add-on bar toolbar buttons
michael@0 3015 */
michael@0 3016
michael@0 3017 #TabsToolbar .toolbarbutton-1,
michael@0 3018 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
michael@0 3019 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 3020 -moz-appearance: none;
michael@0 3021 margin: 0;
michael@0 3022 /* !important flags needed because of bug 561154: */
michael@0 3023 /* Bug 990390: -moz-any is no longer used in the selector so the !important aren't necessary for that anymore. */
michael@0 3024 padding: 0 !important;
michael@0 3025 border: none !important;
michael@0 3026 border-radius: 0 !important;
michael@0 3027 background: none !important;
michael@0 3028 box-shadow: none !important;
michael@0 3029 }
michael@0 3030
michael@0 3031 #TabsToolbar .toolbarbutton-1:not([type="menu-button"]),
michael@0 3032 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
michael@0 3033 padding: 0 1px;
michael@0 3034 }
michael@0 3035
michael@0 3036 #TabsToolbar .toolbarbutton-1 {
michael@0 3037 margin-bottom: @tabToolbarNavbarOverlap@;
michael@0 3038 }
michael@0 3039
michael@0 3040 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 3041 padding-left: 4px;
michael@0 3042 padding-right: 4px;
michael@0 3043 }
michael@0 3044
michael@0 3045 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):hover,
michael@0 3046 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):hover,
michael@0 3047 #TabsToolbar .toolbarbutton-1:not([type="menu-button"]):not([disabled=true]):not([open]):hover,
michael@0 3048 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover,
michael@0 3049 #TabsToolbar .toolbarbutton-1:not([disabled=true]):not([buttonover]):hover > .toolbarbutton-menubutton-dropmarker {
michael@0 3050 background-image: linear-gradient(transparent, rgba(0,0,0,.15)) !important;
michael@0 3051 }
michael@0 3052
michael@0 3053 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]):hover:active,
michael@0 3054 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]):hover:active,
michael@0 3055 #TabsToolbar .toolbarbutton-1:not([type="menu-button"]):not([disabled=true]):hover:active,
michael@0 3056 #TabsToolbar .toolbarbutton-1[type="menu"][open],
michael@0 3057 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover:active,
michael@0 3058 #TabsToolbar .toolbarbutton-1[open]:not([disabled=true]):hover > .toolbarbutton-menubutton-dropmarker {
michael@0 3059 background-image: linear-gradient(transparent, rgba(0,0,0,.3)) !important;
michael@0 3060 }
michael@0 3061
michael@0 3062 .tabs-newtab-button,
michael@0 3063 #TabsToolbar > #new-tab-button,
michael@0 3064 #TabsToolbar > toolbarpaletteitem > #new-tab-button {
michael@0 3065 list-style-image: url(chrome://browser/skin/tabbrowser/newtab.png);
michael@0 3066 -moz-image-region: rect(0, 18px, 20px, 0);
michael@0 3067 }
michael@0 3068
michael@0 3069 .tabs-newtab-button:-moz-lwtheme-brighttext,
michael@0 3070 #TabsToolbar > #new-tab-button:-moz-lwtheme-brighttext,
michael@0 3071 #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-lwtheme-brighttext {
michael@0 3072 list-style-image: url(chrome://browser/skin/tabbrowser/newtab-inverted.png);
michael@0 3073 }
michael@0 3074
michael@0 3075 .tabs-newtab-button:hover,
michael@0 3076 #TabsToolbar > #new-tab-button:hover {
michael@0 3077 -moz-image-region: rect(0, 36px, 20px, 18px);
michael@0 3078 }
michael@0 3079
michael@0 3080 .tabs-newtab-button:hover:active,
michael@0 3081 #TabsToolbar > #new-tab-button:hover:active {
michael@0 3082 -moz-image-region: rect(0, 54px, 20px, 36px);
michael@0 3083 }
michael@0 3084
michael@0 3085 @media (min-resolution: 2dppx) {
michael@0 3086 .tabs-newtab-button,
michael@0 3087 #TabsToolbar > #new-tab-button,
michael@0 3088 #TabsToolbar > toolbarpaletteitem > #new-tab-button {
michael@0 3089 list-style-image: url(chrome://browser/skin/tabbrowser/newtab@2x.png);
michael@0 3090 -moz-image-region: rect(0, 36px, 40px, 0);
michael@0 3091 }
michael@0 3092
michael@0 3093 .tabs-newtab-button:-moz-lwtheme-brighttext,
michael@0 3094 #TabsToolbar > #new-tab-button:-moz-lwtheme-brighttext,
michael@0 3095 #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-lwtheme-brighttext {
michael@0 3096 list-style-image: url(chrome://browser/skin/tabbrowser/newtab-inverted@2x.png);
michael@0 3097 }
michael@0 3098
michael@0 3099 .tabs-newtab-button:hover,
michael@0 3100 #TabsToolbar > #new-tab-button:hover {
michael@0 3101 -moz-image-region: rect(0, 72px, 40px, 36px);
michael@0 3102 }
michael@0 3103
michael@0 3104 .tabs-newtab-button:hover:active,
michael@0 3105 #TabsToolbar > #new-tab-button:hover:active {
michael@0 3106 -moz-image-region: rect(0, 108px, 40px, 72px);
michael@0 3107 }
michael@0 3108
michael@0 3109 .tabs-newtab-button > .toolbarbutton-icon {
michael@0 3110 width: 40px;
michael@0 3111 }
michael@0 3112
michael@0 3113 #TabsToolbar > #new-tab-button > .toolbarbutton-icon,
michael@0 3114 #TabsToolbar > toolbarpaletteitem > #new-tab-button > .toolbarbutton-icon {
michael@0 3115 width: 18px;
michael@0 3116 }
michael@0 3117 }
michael@0 3118
michael@0 3119 #alltabs-button {
michael@0 3120 list-style-image: url(chrome://browser/skin/tabbrowser/alltabs-box-bkgnd-icon.png);
michael@0 3121 -moz-image-region: rect(0, 17px, 20px, 0);
michael@0 3122 }
michael@0 3123
michael@0 3124 #alltabs-button:-moz-lwtheme-brighttext {
michael@0 3125 list-style-image: url(chrome://browser/skin/tabbrowser/alltabs-box-bkgnd-icon-inverted.png);
michael@0 3126 }
michael@0 3127
michael@0 3128 #alltabs-button:not([disabled="true"]):hover {
michael@0 3129 -moz-image-region: rect(0, 34px, 20px, 17px);
michael@0 3130 }
michael@0 3131
michael@0 3132 #alltabs-button[open="true"]:not([disabled="true"]),
michael@0 3133 #alltabs-button:not([disabled="true"]):hover:active {
michael@0 3134 -moz-image-region: rect(0, 51px, 20px, 34px);
michael@0 3135 }
michael@0 3136
michael@0 3137 @media (min-resolution: 2dppx) {
michael@0 3138 #alltabs-button {
michael@0 3139 list-style-image: url(chrome://browser/skin/tabbrowser/alltabs-box-bkgnd-icon@2x.png);
michael@0 3140 -moz-image-region: rect(0, 34px, 40px, 0);
michael@0 3141 }
michael@0 3142
michael@0 3143 #alltabs-button:-moz-lwtheme-brighttext {
michael@0 3144 list-style-image: url(chrome://browser/skin/tabbrowser/alltabs-box-bkgnd-icon-inverted@2x.png);
michael@0 3145 }
michael@0 3146
michael@0 3147 #alltabs-button:not([disabled="true"]):hover {
michael@0 3148 -moz-image-region: rect(0, 68px, 40px, 34px);
michael@0 3149 }
michael@0 3150
michael@0 3151 #alltabs-button[open="true"]:not([disabled="true"]),
michael@0 3152 #alltabs-button:not([disabled="true"]):hover:active {
michael@0 3153 -moz-image-region: rect(0, 102px, 40px, 68px);
michael@0 3154 }
michael@0 3155
michael@0 3156 #alltabs-button > .toolbarbutton-icon {
michael@0 3157 width: 17px;
michael@0 3158 }
michael@0 3159 }
michael@0 3160
michael@0 3161 #alltabs-button > .toolbarbutton-menu-dropmarker {
michael@0 3162 display: none;
michael@0 3163 }
michael@0 3164
michael@0 3165 #alltabs-button > .toolbarbutton-icon {
michael@0 3166 -moz-margin-end: 2px;
michael@0 3167 }
michael@0 3168
michael@0 3169 /* All Tabs Menupopup */
michael@0 3170 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
michael@0 3171 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
michael@0 3172 }
michael@0 3173
michael@0 3174 @media (min-resolution: 2dppx) {
michael@0 3175 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
michael@0 3176 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon@2x.png");
michael@0 3177 }
michael@0 3178 }
michael@0 3179
michael@0 3180 .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
michael@0 3181 list-style-image: url("chrome://global/skin/icons/loading_16.png") !important;
michael@0 3182 }
michael@0 3183
michael@0 3184 .alltabs-item[tabIsVisible] {
michael@0 3185 /* box-shadow instead of background-color to work around native styling */
michael@0 3186 box-shadow: inset -5px 0 ThreeDShadow;
michael@0 3187 }
michael@0 3188
michael@0 3189 /* Bookmarks toolbar */
michael@0 3190 #PlacesToolbarDropIndicator {
michael@0 3191 list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png);
michael@0 3192 }
michael@0 3193
michael@0 3194 /* Bookmark drag and drop styles */
michael@0 3195
michael@0 3196 .bookmark-item[dragover-into="true"] {
michael@0 3197 background: Highlight !important;
michael@0 3198 color: HighlightText !important;
michael@0 3199 }
michael@0 3200
michael@0 3201 /* rules for menupopup drop indicators */
michael@0 3202 .menupopup-drop-indicator-bar {
michael@0 3203 position: relative;
michael@0 3204 /* these two margins must together compensate the indicator's height */
michael@0 3205 margin-top: -1px;
michael@0 3206 margin-bottom: -1px;
michael@0 3207 }
michael@0 3208
michael@0 3209 .menupopup-drop-indicator {
michael@0 3210 list-style-image: none;
michael@0 3211 height: 2px;
michael@0 3212 -moz-margin-end: -4em;
michael@0 3213 background-color: Highlight;
michael@0 3214 }
michael@0 3215
michael@0 3216 /* Popup Icons */
michael@0 3217 #identity-popup-icon {
michael@0 3218 height: 64px;
michael@0 3219 width: 64px;
michael@0 3220 padding: 0;
michael@0 3221 list-style-image: url("chrome://browser/skin/identity.png");
michael@0 3222 -moz-image-region: rect(0px, 64px, 64px, 0px);
michael@0 3223 }
michael@0 3224
michael@0 3225 #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
michael@0 3226 -moz-image-region: rect(64px, 64px, 128px, 0px);
michael@0 3227 }
michael@0 3228
michael@0 3229 #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
michael@0 3230 -moz-image-region: rect(128px, 64px, 192px, 0px);
michael@0 3231 }
michael@0 3232
michael@0 3233 @media (min-resolution: 2dppx) {
michael@0 3234 #identity-popup-icon {
michael@0 3235 list-style-image: url("chrome://browser/skin/identity@2x.png");
michael@0 3236 -moz-image-region: rect(0px, 128px, 128px, 0px);
michael@0 3237 }
michael@0 3238
michael@0 3239 #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
michael@0 3240 -moz-image-region: rect(128px, 128px, 256px, 0px);
michael@0 3241 }
michael@0 3242
michael@0 3243 #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
michael@0 3244 -moz-image-region: rect(256px, 128px, 384px, 0px);
michael@0 3245 }
michael@0 3246
michael@0 3247 #identity-popup.chromeUI > #identity-popup-container > #identity-popup-icon {
michael@0 3248 list-style-image: url("chrome://branding/content/icon128.png");
michael@0 3249 }
michael@0 3250 }
michael@0 3251
michael@0 3252 /* Popup Body Text */
michael@0 3253 .identity-popup-description {
michael@0 3254 white-space: pre-wrap;
michael@0 3255 -moz-padding-start: 15px;
michael@0 3256 margin: 2px 0 4px;
michael@0 3257 }
michael@0 3258
michael@0 3259 .identity-popup-label {
michael@0 3260 white-space: pre-wrap;
michael@0 3261 -moz-padding-start: 15px;
michael@0 3262 margin: 0;
michael@0 3263 }
michael@0 3264
michael@0 3265 #identity-popup-content-host ,
michael@0 3266 #identity-popup-content-owner {
michael@0 3267 font-weight: bold;
michael@0 3268 max-width: 300px;
michael@0 3269 }
michael@0 3270
michael@0 3271 #identity-popup-content-host ,
michael@0 3272 #identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
michael@0 3273 font-size: 140%;
michael@0 3274 }
michael@0 3275
michael@0 3276 #identity-popup-content-owner {
michael@0 3277 margin-bottom: 0 !important;
michael@0 3278 }
michael@0 3279
michael@0 3280 #identity-popup-content-verifier {
michael@0 3281 margin: 4px 0 2px;
michael@0 3282 }
michael@0 3283
michael@0 3284 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
michael@0 3285 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
michael@0 3286 margin-top: 10px;
michael@0 3287 -moz-margin-start: -24px;
michael@0 3288 }
michael@0 3289
michael@0 3290 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
michael@0 3291 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
michael@0 3292 margin-top: 5px;
michael@0 3293 list-style-image: url("chrome://browser/skin/Secure-Glyph.png");
michael@0 3294 }
michael@0 3295
michael@0 3296 #identity-popup-help-icon {
michael@0 3297 -moz-appearance: none;
michael@0 3298 border: none;
michael@0 3299 margin: 10px 0 0 2px;
michael@0 3300 background: none;
michael@0 3301 min-width: 0;
michael@0 3302 list-style-image: url("chrome://global/skin/icons/question-16.png");
michael@0 3303 cursor: pointer;
michael@0 3304 }
michael@0 3305
michael@0 3306 #identity-popup-help-icon > .button-box > .button-text {
michael@0 3307 display: none;
michael@0 3308 }
michael@0 3309
michael@0 3310 #identity-popup-help-icon > .button-box > .button-icon {
michael@0 3311 height: 16px;
michael@0 3312 width: 16px;
michael@0 3313 }
michael@0 3314
michael@0 3315 #identity-popup-help-icon:focus {
michael@0 3316 @hudButtonFocused@
michael@0 3317 }
michael@0 3318
michael@0 3319 #identity-popup-help-icon:hover:active {
michael@0 3320 @hudButtonPressed@
michael@0 3321 }
michael@0 3322
michael@0 3323 @media (min-resolution: 2dppx) {
michael@0 3324 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
michael@0 3325 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
michael@0 3326 list-style-image: url("chrome://browser/skin/Secure-Glyph@2x.png");
michael@0 3327 width: 24px;
michael@0 3328 }
michael@0 3329
michael@0 3330 #identity-popup-help-icon {
michael@0 3331 list-style-image: url("chrome://global/skin/icons/question-32.png");
michael@0 3332 }
michael@0 3333 }
michael@0 3334
michael@0 3335 #identity-popup {
michael@0 3336 margin-top: 1px;
michael@0 3337 }
michael@0 3338
michael@0 3339 #identity-popup > .panel-arrowcontainer > .panel-arrowcontent {
michael@0 3340 padding: 0;
michael@0 3341 }
michael@0 3342
michael@0 3343 #identity-popup-container {
michael@0 3344 padding: 16px;
michael@0 3345 }
michael@0 3346
michael@0 3347 #identity-popup-button-container {
michael@0 3348 background-color: hsla(210,4%,10%,.07);
michael@0 3349 border-top: 1px solid hsla(210,4%,10%,.12);
michael@0 3350 padding: 16px;
michael@0 3351 margin-top: 5px;
michael@0 3352 }
michael@0 3353
michael@0 3354 #notification-popup-box {
michael@0 3355 position: relative;
michael@0 3356 background-color: #fff;
michael@0 3357 background-clip: padding-box;
michael@0 3358 padding-left: 3px;
michael@0 3359 border-radius: 2px 0 0 2px;
michael@0 3360 border-width: 0 8px 0 0;
michael@0 3361 border-style: solid;
michael@0 3362 border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 fill;
michael@0 3363 -moz-margin-end: -8px;
michael@0 3364 }
michael@0 3365
michael@0 3366 @media (min-resolution: 2dppx) {
michael@0 3367 #notification-popup-box {
michael@0 3368 border-image: url("chrome://browser/skin/urlbar-arrow@2x.png") 0 16 0 0 fill;
michael@0 3369 }
michael@0 3370 }
michael@0 3371
michael@0 3372 @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box {
michael@0 3373 padding-left: 7px;
michael@0 3374 }
michael@0 3375
michael@0 3376 #notification-popup-box:-moz-locale-dir(rtl),
michael@0 3377 .notification-anchor-icon:-moz-locale-dir(rtl) {
michael@0 3378 transform: scaleX(-1);
michael@0 3379 }
michael@0 3380
michael@0 3381 .notification-anchor-icon {
michael@0 3382 width: 16px;
michael@0 3383 height: 16px;
michael@0 3384 margin: 0 2px;
michael@0 3385 }
michael@0 3386
michael@0 3387 .notification-anchor-icon:-moz-focusring {
michael@0 3388 box-shadow: 0 0 2px 1px -moz-mac-focusring inset,
michael@0 3389 0 0 3px 2px -moz-mac-focusring;
michael@0 3390 }
michael@0 3391
michael@0 3392 #social-notification-icon > .toolbarbutton-icon {
michael@0 3393 height: 16px;
michael@0 3394 }
michael@0 3395
michael@0 3396 .default-notification-icon,
michael@0 3397 #default-notification-icon {
michael@0 3398 list-style-image: url(chrome://global/skin/icons/information-16.png);
michael@0 3399 }
michael@0 3400 @media (min-resolution: 2dppx) {
michael@0 3401 .default-notification-icon,
michael@0 3402 #default-notification-icon {
michael@0 3403 list-style-image: url(chrome://global/skin/icons/information-32.png);
michael@0 3404 }
michael@0 3405 }
michael@0 3406
michael@0 3407 .identity-notification-icon,
michael@0 3408 #identity-notification-icon {
michael@0 3409 list-style-image: url(chrome://mozapps/skin/profile/profileicon.png);
michael@0 3410 }
michael@0 3411 /* XXX: need HiDPI version */
michael@0 3412
michael@0 3413 .geo-notification-icon,
michael@0 3414 #geo-notification-icon {
michael@0 3415 list-style-image: url(chrome://browser/skin/Geolocation-16.png);
michael@0 3416 }
michael@0 3417 @media (min-resolution: 2dppx) {
michael@0 3418 .geo-notification-icon,
michael@0 3419 #geo-notification-icon {
michael@0 3420 list-style-image: url(chrome://browser/skin/Geolocation-16@2x.png);
michael@0 3421 }
michael@0 3422 }
michael@0 3423
michael@0 3424
michael@0 3425 #canvas-notification-icon {
michael@0 3426 list-style-image: url(chrome://browser/skin/canvas-popup.svg);
michael@0 3427 }
michael@0 3428
michael@0 3429 .indexedDB-notification-icon,
michael@0 3430 #indexedDB-notification-icon {
michael@0 3431 list-style-image: url(chrome://global/skin/icons/question-16.png);
michael@0 3432 }
michael@0 3433 @media (min-resolution: 2dppx) {
michael@0 3434 .indexedDB-notification-icon,
michael@0 3435 #indexedDB-notification-icon {
michael@0 3436 list-style-image: url(chrome://global/skin/icons/question-32.png);
michael@0 3437 }
michael@0 3438 }
michael@0 3439
michael@0 3440 #addons-notification-icon {
michael@0 3441 list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric-16.png);
michael@0 3442 }
michael@0 3443 @media (min-resolution: 2dppx) {
michael@0 3444 #addons-notification-icon {
michael@0 3445 list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.png);
michael@0 3446 }
michael@0 3447 }
michael@0 3448
michael@0 3449 #password-notification-icon {
michael@0 3450 list-style-image: url(chrome://mozapps/skin/passwordmgr/key-16.png);
michael@0 3451 }
michael@0 3452 @media (min-resolution: 2dppx) {
michael@0 3453 #password-notification-icon {
michael@0 3454 list-style-image: url(chrome://mozapps/skin/passwordmgr/key-16@2x.png);
michael@0 3455 }
michael@0 3456 }
michael@0 3457
michael@0 3458 .webapps-notification-icon,
michael@0 3459 #webapps-notification-icon {
michael@0 3460 list-style-image: url(chrome://global/skin/icons/webapps-16.png);
michael@0 3461 }
michael@0 3462 @media (min-resolution: 2dppx) {
michael@0 3463 .webapps-notification-icon,
michael@0 3464 #webapps-notification-icon {
michael@0 3465 list-style-image: url(chrome://global/skin/icons/webapps-16@2x.png);
michael@0 3466 }
michael@0 3467 }
michael@0 3468
michael@0 3469 #plugins-notification-icon {
michael@0 3470 list-style-image: url(chrome://browser/skin/notification-pluginNormal.png);
michael@0 3471 }
michael@0 3472
michael@0 3473 #plugins-notification-icon.plugin-hidden {
michael@0 3474 list-style-image: url(chrome://browser/skin/notification-pluginAlert.png);
michael@0 3475 }
michael@0 3476
michael@0 3477 #plugins-notification-icon.plugin-blocked {
michael@0 3478 list-style-image: url(chrome://browser/skin/notification-pluginBlocked.png);
michael@0 3479 }
michael@0 3480
michael@0 3481 #plugins-notification-icon {
michael@0 3482 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 3483 }
michael@0 3484
michael@0 3485 #plugins-notification-icon:hover {
michael@0 3486 -moz-image-region: rect(0, 32px, 16px, 16px);
michael@0 3487 }
michael@0 3488
michael@0 3489 #plugins-notification-icon:active {
michael@0 3490 -moz-image-region: rect(0, 48px, 16px, 32px);
michael@0 3491 }
michael@0 3492
michael@0 3493 @media (min-resolution: 2dppx) {
michael@0 3494 #plugins-notification-icon {
michael@0 3495 list-style-image: url(chrome://browser/skin/notification-pluginNormal@2x.png);
michael@0 3496 }
michael@0 3497
michael@0 3498 #plugins-notification-icon.plugin-hidden {
michael@0 3499 list-style-image: url(chrome://browser/skin/notification-pluginAlert@2x.png);
michael@0 3500 }
michael@0 3501
michael@0 3502 #plugins-notification-icon.plugin-blocked {
michael@0 3503 list-style-image: url(chrome://browser/skin/notification-pluginBlocked@2x.png);
michael@0 3504 }
michael@0 3505
michael@0 3506 #plugins-notification-icon {
michael@0 3507 -moz-image-region: rect(0, 32px, 32px, 0);
michael@0 3508 }
michael@0 3509
michael@0 3510 #plugins-notification-icon:hover {
michael@0 3511 -moz-image-region: rect(0, 64px, 32px, 32px);
michael@0 3512 }
michael@0 3513
michael@0 3514 #plugins-notification-icon:active {
michael@0 3515 -moz-image-region: rect(0, 96px, 32px, 64px);
michael@0 3516 }
michael@0 3517 }
michael@0 3518
michael@0 3519 #plugin-install-notification-icon {
michael@0 3520 list-style-image: url(chrome://browser/skin/pluginInstall-16.png);
michael@0 3521 }
michael@0 3522 @media (min-resolution: 2dppx) {
michael@0 3523 #plugin-install-notification-icon {
michael@0 3524 list-style-image: url(chrome://browser/skin/pluginInstall-16@2x.png);
michael@0 3525 }
michael@0 3526 }
michael@0 3527
michael@0 3528 #notification-popup-box[hidden] {
michael@0 3529 /* Override display:none to make the pluginBlockedNotification animation work
michael@0 3530 when showing the notification repeatedly. */
michael@0 3531 display: -moz-box;
michael@0 3532 visibility: collapse;
michael@0 3533 }
michael@0 3534
michael@0 3535 #plugins-notification-icon.plugin-blocked[showing] {
michael@0 3536 animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
michael@0 3537 }
michael@0 3538
michael@0 3539 @keyframes pluginBlockedNotification {
michael@0 3540 from {
michael@0 3541 opacity: 0;
michael@0 3542 }
michael@0 3543 to {
michael@0 3544 opacity: 1;
michael@0 3545 }
michael@0 3546 }
michael@0 3547
michael@0 3548 #mixed-content-blocked-notification-icon {
michael@0 3549 list-style-image: url(chrome://browser/skin/mixed-content-blocked-16.png);
michael@0 3550 }
michael@0 3551 @media (min-resolution: 2dppx) {
michael@0 3552 #mixed-content-blocked-notification-icon {
michael@0 3553 list-style-image: url(chrome://browser/skin/mixed-content-blocked-16@2x.png);
michael@0 3554 }
michael@0 3555 }
michael@0 3556
michael@0 3557 .webRTC-shareDevices-notification-icon,
michael@0 3558 #webRTC-shareDevices-notification-icon {
michael@0 3559 list-style-image: url(chrome://browser/skin/webRTC-shareDevice-16.png);
michael@0 3560 }
michael@0 3561 @media (min-resolution: 2dppx) {
michael@0 3562 .webRTC-shareDevices-notification-icon,
michael@0 3563 #webRTC-shareDevices-notification-icon {
michael@0 3564 list-style-image: url(chrome://browser/skin/webRTC-shareDevice-16@2x.png);
michael@0 3565 }
michael@0 3566 }
michael@0 3567
michael@0 3568 .webRTC-sharingDevices-notification-icon,
michael@0 3569 #webRTC-sharingDevices-notification-icon {
michael@0 3570 list-style-image: url(chrome://browser/skin/webRTC-sharingDevice-16.png);
michael@0 3571 }
michael@0 3572 @media (min-resolution: 2dppx) {
michael@0 3573 .webRTC-sharingDevices-notification-icon,
michael@0 3574 #webRTC-sharingDevices-notification-icon {
michael@0 3575 list-style-image: url(chrome://browser/skin/webRTC-sharingDevice-16@2x.png);
michael@0 3576 }
michael@0 3577 }
michael@0 3578
michael@0 3579 .webRTC-shareMicrophone-notification-icon,
michael@0 3580 #webRTC-shareMicrophone-notification-icon {
michael@0 3581 list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16.png);
michael@0 3582 }
michael@0 3583 @media (min-resolution: 2dppx) {
michael@0 3584 .webRTC-shareMicrophone-notification-icon,
michael@0 3585 #webRTC-shareMicrophone-notification-icon {
michael@0 3586 list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16@2x.png);
michael@0 3587 }
michael@0 3588 }
michael@0 3589
michael@0 3590 .webRTC-sharingMicrophone-notification-icon,
michael@0 3591 #webRTC-sharingMicrophone-notification-icon {
michael@0 3592 list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16.png);
michael@0 3593 }
michael@0 3594 @media (min-resolution: 2dppx) {
michael@0 3595 .webRTC-sharingMicrophone-notification-icon,
michael@0 3596 #webRTC-sharingMicrophone-notification-icon {
michael@0 3597 list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16@2x.png);
michael@0 3598 }
michael@0 3599 }
michael@0 3600
michael@0 3601 .web-notifications-notification-icon,
michael@0 3602 #web-notifications-notification-icon {
michael@0 3603 list-style-image: url(chrome://browser/skin/notification-16.png);
michael@0 3604 }
michael@0 3605 @media (min-resolution: 2dppx) {
michael@0 3606 .web-notifications-notification-icon,
michael@0 3607 #web-notifications-notification-icon {
michael@0 3608 list-style-image: url(chrome://browser/skin/notification-16@2x.png);
michael@0 3609 }
michael@0 3610 }
michael@0 3611
michael@0 3612 .pointerLock-notification-icon,
michael@0 3613 #pointerLock-notification-icon {
michael@0 3614 list-style-image: url(chrome://browser/skin/pointerLock-16.png);
michael@0 3615 }
michael@0 3616 @media (min-resolution: 2dppx) {
michael@0 3617 .pointerLock-notification-icon,
michael@0 3618 #pointerLock-notification-icon {
michael@0 3619 list-style-image: url(chrome://browser/skin/pointerLock-16@2x.png);
michael@0 3620 }
michael@0 3621 }
michael@0 3622
michael@0 3623 .translate-notification-icon,
michael@0 3624 #translate-notification-icon {
michael@0 3625 list-style-image: url(chrome://browser/skin/translation-16.png);
michael@0 3626 -moz-image-region: rect(0px, 16px, 16px, 0px);
michael@0 3627 }
michael@0 3628 @media (min-resolution: 2dppx) {
michael@0 3629 .translate-notification-icon,
michael@0 3630 #translate-notification-icon {
michael@0 3631 list-style-image: url(chrome://browser/skin/translation-16@2x.png);
michael@0 3632 -moz-image-region: rect(0px, 32px, 32px, 0px);
michael@0 3633 }
michael@0 3634 }
michael@0 3635
michael@0 3636 .translated-notification-icon,
michael@0 3637 #translated-notification-icon {
michael@0 3638 list-style-image: url(chrome://browser/skin/translation-16.png);
michael@0 3639 -moz-image-region: rect(0px, 32px, 16px, 16px);
michael@0 3640 }
michael@0 3641 @media (min-resolution: 2dppx) {
michael@0 3642 .translated-notification-icon,
michael@0 3643 #translated-notification-icon {
michael@0 3644 list-style-image: url(chrome://browser/skin/translation-16@2x.png);
michael@0 3645 -moz-image-region: rect(0px, 64px, 32px, 32px);
michael@0 3646 }
michael@0 3647 }
michael@0 3648
michael@0 3649
michael@0 3650 .popup-notification-icon {
michael@0 3651 width: 64px;
michael@0 3652 height: 64px;
michael@0 3653 -moz-margin-end: 10px;
michael@0 3654 }
michael@0 3655
michael@0 3656 .popup-notification-icon[popupid="geolocation"] {
michael@0 3657 list-style-image: url(chrome://browser/skin/Geolocation-64.png);
michael@0 3658 }
michael@0 3659 @media (min-resolution: 2dppx) {
michael@0 3660 .popup-notification-icon[popupid="geolocation"] {
michael@0 3661 list-style-image: url(chrome://browser/skin/Geolocation-64@2x.png);
michael@0 3662 }
michael@0 3663 }
michael@0 3664
michael@0 3665 .popup-notification-icon[popupid="web-notifications"] {
michael@0 3666 list-style-image: url(chrome://browser/skin/notification-64.png);
michael@0 3667 }
michael@0 3668 @media (min-resolution: 2dppx) {
michael@0 3669 .popup-notification-icon[popupid="web-notifications"] {
michael@0 3670 list-style-image: url(chrome://browser/skin/notification-64@2x.png);
michael@0 3671 }
michael@0 3672 }
michael@0 3673
michael@0 3674 .popup-notification-icon[popupid="xpinstall-disabled"],
michael@0 3675 .popup-notification-icon[popupid="addon-progress"],
michael@0 3676 .popup-notification-icon[popupid="addon-install-cancelled"],
michael@0 3677 .popup-notification-icon[popupid="addon-install-blocked"],
michael@0 3678 .popup-notification-icon[popupid="addon-install-failed"],
michael@0 3679 .popup-notification-icon[popupid="addon-install-complete"] {
michael@0 3680 list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.png);
michael@0 3681 width: 32px;
michael@0 3682 height: 32px;
michael@0 3683 }
michael@0 3684
michael@0 3685 .popup-notification-icon[popupid="click-to-play-plugins"] {
michael@0 3686 list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png);
michael@0 3687 }
michael@0 3688
michael@0 3689 .popup-notification-icon[popupid="plugins-not-found"] {
michael@0 3690 list-style-image: url(chrome://browser/skin/pluginInstall-64.png);
michael@0 3691 }
michael@0 3692 @media (min-resolution: 2dppx) {
michael@0 3693 .popup-notification-icon[popupid="plugins-not-found"] {
michael@0 3694 list-style-image: url(chrome://browser/skin/pluginInstall-64\@2x.png);
michael@0 3695 }
michael@0 3696 }
michael@0 3697
michael@0 3698 .addon-progress-description {
michael@0 3699 width: 350px;
michael@0 3700 max-width: 350px;
michael@0 3701 }
michael@0 3702
michael@0 3703 .popup-progress-label,
michael@0 3704 .popup-progress-meter {
michael@0 3705 -moz-margin-start: 0;
michael@0 3706 -moz-margin-end: 0;
michael@0 3707 }
michael@0 3708
michael@0 3709 .popup-progress-cancel {
michael@0 3710 -moz-appearance: none;
michael@0 3711 min-height: 16px;
michael@0 3712 min-width: 16px;
michael@0 3713 max-height: 16px;
michael@0 3714 max-width: 16px;
michael@0 3715 padding: 0;
michael@0 3716 margin: 0 1px 0 1px;
michael@0 3717 list-style-image: url(chrome://mozapps/skin/downloads/buttons.png);
michael@0 3718 -moz-image-region: rect(0px, 16px, 16px, 0px);
michael@0 3719 }
michael@0 3720
michael@0 3721 .popup-progress-cancel:hover {
michael@0 3722 -moz-image-region: rect(0px, 32px, 16px, 16px);
michael@0 3723 }
michael@0 3724
michael@0 3725 .popup-progress-cancel:active {
michael@0 3726 -moz-image-region: rect(0px, 48px, 16px, 32px);
michael@0 3727 }
michael@0 3728
michael@0 3729 .popup-notification-icon[popupid="canvas-permissions-prompt"] {
michael@0 3730 list-style-image: url(chrome://browser/skin/canvas-popup.svg);
michael@0 3731 }
michael@0 3732
michael@0 3733 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
michael@0 3734 .popup-notification-icon[popupid="indexedDB-quota-prompt"],
michael@0 3735 .popup-notification-icon[popupid*="offline-app-requested"],
michael@0 3736 .popup-notification-icon[popupid="offline-app-usage"] {
michael@0 3737 list-style-image: url(chrome://global/skin/icons/question-64.png);
michael@0 3738 }
michael@0 3739
michael@0 3740 .popup-notification-icon[popupid="password-save"],
michael@0 3741 .popup-notification-icon[popupid="password-change"] {
michael@0 3742 list-style-image: url(chrome://mozapps/skin/passwordmgr/key-64.png);
michael@0 3743 }
michael@0 3744
michael@0 3745 .popup-notification-icon[popupid="webapps-install-progress"],
michael@0 3746 .popup-notification-icon[popupid="webapps-install"] {
michael@0 3747 list-style-image: url(chrome://global/skin/icons/webapps-64.png);
michael@0 3748 }
michael@0 3749
michael@0 3750 .popup-notification-icon[popupid="mixed-content-blocked"] {
michael@0 3751 list-style-image: url(chrome://browser/skin/mixed-content-blocked-64.png);
michael@0 3752 }
michael@0 3753 @media (min-resolution: 2dppx) {
michael@0 3754 .popup-notification-icon[popupid="mixed-content-blocked"] {
michael@0 3755 list-style-image: url(chrome://browser/skin/mixed-content-blocked-64@2x.png);
michael@0 3756 }
michael@0 3757 }
michael@0 3758
michael@0 3759 .popup-notification-icon[popupid="pointerLock"] {
michael@0 3760 list-style-image: url(chrome://browser/skin/pointerLock-64.png);
michael@0 3761 }
michael@0 3762 @media (min-resolution: 2dppx) {
michael@0 3763 .popup-notification-icon[popupid="pointerLock"] {
michael@0 3764 list-style-image: url(chrome://browser/skin/pointerLock-64@2x.png);
michael@0 3765 }
michael@0 3766 }
michael@0 3767 #pointerLock-cancel {
michael@0 3768 margin: 0px;
michael@0 3769 }
michael@0 3770
michael@0 3771
michael@0 3772 .popup-notification-icon[popupid="webRTC-sharingDevices"],
michael@0 3773 .popup-notification-icon[popupid="webRTC-shareDevices"] {
michael@0 3774 list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png);
michael@0 3775 }
michael@0 3776 @media (min-resolution: 2dppx) {
michael@0 3777 .popup-notification-icon[popupid="webRTC-sharingDevices"],
michael@0 3778 .popup-notification-icon[popupid="webRTC-shareDevices"] {
michael@0 3779 list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64@2x.png);
michael@0 3780 }
michael@0 3781 }
michael@0 3782
michael@0 3783 .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
michael@0 3784 .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
michael@0 3785 list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64.png);
michael@0 3786 }
michael@0 3787 @media (min-resolution: 2dppx) {
michael@0 3788 .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
michael@0 3789 .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
michael@0 3790 list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64@2x.png);
michael@0 3791 }
michael@0 3792 }
michael@0 3793
michael@0 3794 /* Popup Buttons */
michael@0 3795 #identity-popup-more-info-button {
michael@0 3796 @hudButton@
michael@0 3797 margin: 10px 0 0;
michael@0 3798 min-height: 0px;
michael@0 3799 }
michael@0 3800
michael@0 3801 #identity-popup-more-info-button:focus {
michael@0 3802 @hudButtonFocused@
michael@0 3803 }
michael@0 3804
michael@0 3805 #identity-popup-more-info-button:hover:active {
michael@0 3806 @hudButtonPressed@
michael@0 3807 }
michael@0 3808
michael@0 3809 /* ::::: Keyboard UI Panel ::::: */
michael@0 3810
michael@0 3811 .KUI-panel {
michael@0 3812 -moz-appearance: none;
michael@0 3813 background: rgba(27%,27%,27%,.9) url(KUI-background.png) repeat-x;
michael@0 3814 color: white;
michael@0 3815 border-style: none;
michael@0 3816 border-radius: 20px;
michael@0 3817 }
michael@0 3818
michael@0 3819 .KUI-panel[level="top"] {
michael@0 3820 background-color: rgba(27%,27%,27%,.65);
michael@0 3821 -moz-window-shadow: none;
michael@0 3822 }
michael@0 3823
michael@0 3824 /* Ctrl-Tab */
michael@0 3825
michael@0 3826 #ctrlTab-panel {
michael@0 3827 padding: 20px 10px 10px;
michael@0 3828 text-shadow: 0 0 1px rgb(27%,27%,27%), 0 0 2px rgb(27%,27%,27%);
michael@0 3829 }
michael@0 3830
michael@0 3831 .ctrlTab-favicon[src] {
michael@0 3832 background-color: white;
michael@0 3833 width: 20px;
michael@0 3834 height: 20px;
michael@0 3835 padding: 2px;
michael@0 3836 }
michael@0 3837
michael@0 3838 .ctrlTab-preview-inner > .tabPreview-canvas {
michael@0 3839 box-shadow: 1px 1px 2px rgb(12%,12%,12%);
michael@0 3840 }
michael@0 3841
michael@0 3842 .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
michael@0 3843 margin-bottom: 2px;
michael@0 3844 }
michael@0 3845
michael@0 3846 .ctrlTab-preview-inner {
michael@0 3847 padding-bottom: 10px;
michael@0 3848 }
michael@0 3849
michael@0 3850 #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
michael@0 3851 padding: 10px;
michael@0 3852 background-color: rgba(255,255,255,.2);
michael@0 3853 border-radius: .5em;
michael@0 3854 }
michael@0 3855
michael@0 3856 .ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
michael@0 3857 color: white;
michael@0 3858 background-color: rgba(0,0,0,.6);
michael@0 3859 text-shadow: none;
michael@0 3860 padding: 8px;
michael@0 3861 border: 2px solid white;
michael@0 3862 border-radius: .5em;
michael@0 3863 }
michael@0 3864
michael@0 3865 .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner {
michael@0 3866 margin: -10px -10px 0;
michael@0 3867 }
michael@0 3868
michael@0 3869 #ctrlTab-showAll {
michael@0 3870 margin-top: .5em;
michael@0 3871 }
michael@0 3872
michael@0 3873 /* Sync Panels */
michael@0 3874
michael@0 3875 .sync-panel-icon {
michael@0 3876 height:32px;
michael@0 3877 width: 32px;
michael@0 3878 background: url("chrome://browser/content/abouthome/sync.png") top left no-repeat;
michael@0 3879 }
michael@0 3880
michael@0 3881 @media (min-resolution: 2dppx) {
michael@0 3882 .sync-panel-icon {
michael@0 3883 background: url("chrome://browser/content/abouthome/sync@2x.png") top left no-repeat;
michael@0 3884 background-size: 32px 32px;
michael@0 3885 }
michael@0 3886 }
michael@0 3887
michael@0 3888 .sync-panel-inner {
michael@0 3889 width: 0;
michael@0 3890 padding-left: 10px;
michael@0 3891 }
michael@0 3892
michael@0 3893 .sync-panel-button-box {
michael@0 3894 margin-top: 1em;
michael@0 3895 }
michael@0 3896
michael@0 3897 .sync-panel-button {
michael@0 3898 @hudButton@
michael@0 3899 margin: 0;
michael@0 3900 min-width: 72px;
michael@0 3901 min-height: 22px;
michael@0 3902 }
michael@0 3903
michael@0 3904 .sync-panel-button:hover:active {
michael@0 3905 @hudButtonPressed@
michael@0 3906 }
michael@0 3907
michael@0 3908 .sync-panel-button:-moz-focusring {
michael@0 3909 @hudButtonFocused@
michael@0 3910 }
michael@0 3911
michael@0 3912 #sync-error-panel-title,
michael@0 3913 #sync-start-panel-title {
michael@0 3914 font-size: 120%;
michael@0 3915 font-weight: bold;
michael@0 3916 margin-bottom: 5px;
michael@0 3917 }
michael@0 3918
michael@0 3919 #sync-start-panel-subtitle,
michael@0 3920 #sync-error-panel-subtitle {
michael@0 3921 margin: 0;
michael@0 3922 }
michael@0 3923
michael@0 3924 /* Status panel */
michael@0 3925
michael@0 3926 .statuspanel-label {
michael@0 3927 margin: 0;
michael@0 3928 padding: 2px 4px;
michael@0 3929 background: linear-gradient(#fff, #ddd);
michael@0 3930 border: 1px none #ccc;
michael@0 3931 border-top-style: solid;
michael@0 3932 color: #333;
michael@0 3933 text-shadow: none;
michael@0 3934 }
michael@0 3935
michael@0 3936 .statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
michael@0 3937 .statuspanel-label:-moz-locale-dir(rtl)[mirror] {
michael@0 3938 border-right-style: solid;
michael@0 3939 border-top-right-radius: .3em;
michael@0 3940 margin-right: 1em;
michael@0 3941 }
michael@0 3942
michael@0 3943 .statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
michael@0 3944 .statuspanel-label:-moz-locale-dir(ltr)[mirror] {
michael@0 3945 border-left-style: solid;
michael@0 3946 border-top-left-radius: .3em;
michael@0 3947 margin-left: 1em;
michael@0 3948 }
michael@0 3949
michael@0 3950 /* Lion Fullscreen window styling */
michael@0 3951 @media (-moz-mac-lion-theme) {
michael@0 3952 #navigator-toolbox[inFullscreen]::before {
michael@0 3953 /* Adjust by the full element height of #titlebar, since that element is
michael@0 3954 * not displayed in native full-screen.
michael@0 3955 * Also add the height of the tabs, since we're calculating the
michael@0 3956 * total height of this pseudo-element, not just the top-padding. */
michael@0 3957 height: calc(@tabMinHeight@ + @spaceAboveTabbar@) !important;
michael@0 3958 }
michael@0 3959 }
michael@0 3960
michael@0 3961 #full-screen-warning-message {
michael@0 3962 background-image: url("chrome://browser/skin/fullscreen-darknoise.png");
michael@0 3963 color: white;
michael@0 3964 border-radius: 4px;
michael@0 3965 margin-top: 30px;
michael@0 3966 padding: 30px 50px;
michael@0 3967 box-shadow: 0 0 2px white;
michael@0 3968 }
michael@0 3969
michael@0 3970 #full-screen-warning-container[obscure-browser] {
michael@0 3971 background-color: rgba(0,0,0,0.3);
michael@0 3972 }
michael@0 3973
michael@0 3974 .full-screen-description {
michael@0 3975 font-size: 150%;
michael@0 3976 }
michael@0 3977
michael@0 3978 #full-screen-domain-text {
michael@0 3979 font-size: 300%;
michael@0 3980 }
michael@0 3981
michael@0 3982 .full-screen-approval-button,
michael@0 3983 #full-screen-remember-decision {
michael@0 3984 font-size: 120%;
michael@0 3985 }
michael@0 3986
michael@0 3987 %include ../shared/devtools/responsivedesign.inc.css
michael@0 3988 %include ../shared/devtools/highlighter.inc.css
michael@0 3989 %include ../shared/devtools/commandline.inc.css
michael@0 3990 %include ../shared/plugin-doorhanger.inc.css
michael@0 3991
michael@0 3992 %include downloads/indicator.css
michael@0 3993
michael@0 3994 /* On mac, the popup notification contents are indented by default and so
michael@0 3995 the default closebutton margins from notification.css require adjustment */
michael@0 3996
michael@0 3997 .click-to-play-plugins-notification-description-box > .popup-notification-closebutton {
michael@0 3998 -moz-margin-end: -6px;
michael@0 3999 margin-top: -7px;
michael@0 4000 }
michael@0 4001
michael@0 4002
michael@0 4003
michael@0 4004 .gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
michael@0 4005 color: hsl(210,11%,16%);
michael@0 4006 }
michael@0 4007
michael@0 4008 /* Developer Toolbar */
michael@0 4009
michael@0 4010 #developer-toolbar-closebutton {
michael@0 4011 margin-left: 8px;
michael@0 4012 margin-right: 8px;
michael@0 4013 }
michael@0 4014
michael@0 4015 /* Error counter */
michael@0 4016
michael@0 4017 #developer-toolbar-toolbox-button[error-count]:before {
michael@0 4018 color: #FDF3DE;
michael@0 4019 min-width: 16px;
michael@0 4020 text-shadow: none;
michael@0 4021 background-image: linear-gradient(#B4211B, #8A1915);
michael@0 4022 border-radius: 1px;
michael@0 4023 }
michael@0 4024
michael@0 4025 /* === social toolbar button === */
michael@0 4026
michael@0 4027 #social-toolbar-item > .toolbarbutton-1 {
michael@0 4028 margin-left: 0;
michael@0 4029 margin-right: 0;
michael@0 4030 border-top-left-radius: 0;
michael@0 4031 border-bottom-left-radius: 0;
michael@0 4032 border-top-right-radius: 0;
michael@0 4033 border-bottom-right-radius: 0;
michael@0 4034 }
michael@0 4035
michael@0 4036 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(ltr) {
michael@0 4037 -moz-border-end-width: 0;
michael@0 4038 }
michael@0 4039 #social-toolbar-item > .toolbarbutton-1:last-child:-moz-locale-dir(ltr) {
michael@0 4040 -moz-border-end-width: 1px;
michael@0 4041 }
michael@0 4042 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(rtl) {
michael@0 4043 -moz-border-start-width: 0;
michael@0 4044 }
michael@0 4045 #social-toolbar-item > .toolbarbutton-1:first-child:-moz-locale-dir(rtl) {
michael@0 4046 -moz-border-start-width: 1px;
michael@0 4047 }
michael@0 4048
michael@0 4049 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(ltr):first-child,
michael@0 4050 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(rtl):last-child {
michael@0 4051 margin-left: 4px;
michael@0 4052 border-top-left-radius: 3px;
michael@0 4053 border-bottom-left-radius: 3px;
michael@0 4054 }
michael@0 4055 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(rtl):first-child,
michael@0 4056 #social-toolbar-item > .toolbarbutton-1:-moz-locale-dir(ltr):last-child {
michael@0 4057 margin-right: 4px;
michael@0 4058 border-top-right-radius: 3px;
michael@0 4059 border-bottom-right-radius: 3px;
michael@0 4060 }
michael@0 4061
michael@0 4062 #social-toolbar-item > toolbaritem {
michael@0 4063 margin: 0;
michael@0 4064 }
michael@0 4065
michael@0 4066 #social-provider-button {
michael@0 4067 list-style-image: url(chrome://browser/skin/social/services-16.png);
michael@0 4068 }
michael@0 4069
michael@0 4070 @media (min-resolution: 2dppx) {
michael@0 4071 #social-provider-button {
michael@0 4072 list-style-image: url(chrome://browser/skin/social/services-16@2x.png);
michael@0 4073 }
michael@0 4074 #social-provider-button > .toolbarbutton-icon {
michael@0 4075 width: 16px;
michael@0 4076 }
michael@0 4077 }
michael@0 4078
michael@0 4079 #social-provider-button > .toolbarbutton-menu-dropmarker {
michael@0 4080 display: none;
michael@0 4081 }
michael@0 4082
michael@0 4083 .toolbarbutton-badge-container {
michael@0 4084 margin: 0;
michael@0 4085 padding: 0;
michael@0 4086 position: relative;
michael@0 4087 }
michael@0 4088
michael@0 4089 .toolbarbutton-badge[badge]:not([badge=""]) {
michael@0 4090 /* The |content| property is set in the content stylesheet. */
michael@0 4091 font-size: 9px;
michael@0 4092 font-weight: bold;
michael@0 4093 padding: 0 1px;
michael@0 4094 color: #fff;
michael@0 4095 background-color: rgb(240,61,37);
michael@0 4096 border: 1px solid rgb(216,55,34);
michael@0 4097 border-radius: 2px;
michael@0 4098 box-shadow: 0 1px 0 rgba(0,39,121,0.77);
michael@0 4099 position: absolute;
michael@0 4100 top: 0;
michael@0 4101 right: 0;
michael@0 4102 z-index: 1;
michael@0 4103 }
michael@0 4104
michael@0 4105 .toolbarbutton-badge[badge]:not([badge=""]):-moz-window-inactive {
michael@0 4106 background-color: rgb(230,230,230);
michael@0 4107 box-shadow: none;
michael@0 4108 border: 1px solid rgb(206,206,206);
michael@0 4109 color: rgb(192,192,192);
michael@0 4110 }
michael@0 4111
michael@0 4112 .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl) {
michael@0 4113 left: 0;
michael@0 4114 right: auto;
michael@0 4115 }
michael@0 4116
michael@0 4117 toolbar[mode="icons"] > *|* > .toolbarbutton-badge[badge]:not([badge=""]) {
michael@0 4118 right: -2px;
michael@0 4119 }
michael@0 4120
michael@0 4121 toolbar[mode="icons"] > *|* > .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl) {
michael@0 4122 left: -2px;
michael@0 4123 }
michael@0 4124
michael@0 4125 .popup-notification-icon[popupid="servicesInstall"] {
michael@0 4126 list-style-image: url(chrome://browser/skin/social/services-64.png);
michael@0 4127 }
michael@0 4128 #servicesInstall-notification-icon {
michael@0 4129 list-style-image: url(chrome://browser/skin/social/services-16.png);
michael@0 4130 }
michael@0 4131
michael@0 4132 @media (min-resolution: 2dppx) {
michael@0 4133 .popup-notification-icon[popupid="servicesInstall"] {
michael@0 4134 list-style-image: url(chrome://browser/skin/social/services-64@2x.png);
michael@0 4135 }
michael@0 4136 #servicesInstall-notification-icon {
michael@0 4137 list-style-image: url(chrome://browser/skin/social/services-16@2x.png);
michael@0 4138 }
michael@0 4139 }
michael@0 4140
michael@0 4141 #social-undoactivation-button {
michael@0 4142 -moz-margin-start: 0; /* override default label margin to match description margin */
michael@0 4143 }
michael@0 4144
michael@0 4145 .social-activation-icon {
michael@0 4146 width: auto;
michael@0 4147 height: auto;
michael@0 4148 max-height: 64px;
michael@0 4149 max-width: 64px;
michael@0 4150 }
michael@0 4151
michael@0 4152 #social-activation-message {
michael@0 4153 max-width: 250px;
michael@0 4154 }
michael@0 4155
michael@0 4156 #social-activation-message > label {
michael@0 4157 margin: 0;
michael@0 4158 }
michael@0 4159
michael@0 4160 #social-activation-button {
michael@0 4161 @hudButton@
michael@0 4162 min-height: 0px;
michael@0 4163 }
michael@0 4164
michael@0 4165 #social-activation-button:focus {
michael@0 4166 @hudButtonFocused@
michael@0 4167 }
michael@0 4168
michael@0 4169 #social-activation-button:hover:active {
michael@0 4170 @hudButtonPressed@
michael@0 4171 }
michael@0 4172
michael@0 4173 /* === end of social toolbar button === */
michael@0 4174
michael@0 4175 /* === social toolbar provider menu === */
michael@0 4176
michael@0 4177 .social-statusarea-user {
michael@0 4178 list-style-image:url("chrome://global/skin/icons/information-32.png");
michael@0 4179 }
michael@0 4180
michael@0 4181 .social-statusarea-user-portrait {
michael@0 4182 width: 32px;
michael@0 4183 height: 32px;
michael@0 4184 margin: 4px;
michael@0 4185 -moz-margin-start: 0;
michael@0 4186 }
michael@0 4187
michael@0 4188 .social-panel > .panel-arrowcontainer > .panel-arrowcontent {
michael@0 4189 padding: 0;
michael@0 4190 }
michael@0 4191
michael@0 4192 /* fixup rounded corners for osx panels */
michael@0 4193 .social-panel > .social-panel-frame {
michael@0 4194 border-radius: inherit;
michael@0 4195 }
michael@0 4196
michael@0 4197 #social-share-panel {
michael@0 4198 max-height: 600px;
michael@0 4199 min-height: 100px;
michael@0 4200 max-width: 800px;
michael@0 4201 min-width: 300px;
michael@0 4202 }
michael@0 4203
michael@0 4204 .social-share-frame:-moz-locale-dir(ltr) {
michael@0 4205 border-top-left-radius: 0;
michael@0 4206 border-bottom-left-radius: 0;
michael@0 4207 border-top-right-radius: inherit;
michael@0 4208 border-bottom-right-radius: inherit;
michael@0 4209 }
michael@0 4210
michael@0 4211 .social-share-frame:-moz-locale-dir(rtl) {
michael@0 4212 border-top-left-radius: inherit;
michael@0 4213 border-bottom-left-radius: inherit;
michael@0 4214 border-top-right-radius: 0;
michael@0 4215 border-bottom-right-radius: 0;
michael@0 4216 }
michael@0 4217
michael@0 4218 #social-share-panel > .social-share-toolbar:-moz-locale-dir(ltr) {
michael@0 4219 border-top-left-radius: inherit;
michael@0 4220 border-bottom-left-radius: inherit;
michael@0 4221 }
michael@0 4222
michael@0 4223 #social-share-panel > .social-share-toolbar:-moz-locale-dir(rtl) {
michael@0 4224 border-top-right-radius: inherit;
michael@0 4225 border-bottom-right-radius: inherit;
michael@0 4226 }
michael@0 4227
michael@0 4228 #social-share-provider-buttons:-moz-locale-dir(ltr) {
michael@0 4229 border-top-left-radius: inherit;
michael@0 4230 border-bottom-left-radius: inherit;
michael@0 4231 }
michael@0 4232
michael@0 4233 #social-share-provider-buttons:-moz-locale-dir(rtl) {
michael@0 4234 border-top-right-radius: inherit;
michael@0 4235 border-bottom-right-radius: inherit;
michael@0 4236 }
michael@0 4237
michael@0 4238 /* === end of social toolbar provider menu === */
michael@0 4239
michael@0 4240 %include ../shared/social/chat.inc.css
michael@0 4241
michael@0 4242 .chat-titlebar {
michael@0 4243 background-color: #d9d9d9;
michael@0 4244 background-image: linear-gradient(rgba(255,255,255,.43), rgba(255,255,255,0));
michael@0 4245 }
michael@0 4246
michael@0 4247 .chat-titlebar[selected] {
michael@0 4248 background-color: #f0f0f0;
michael@0 4249 }
michael@0 4250
michael@0 4251 .chatbar-button {
michael@0 4252 background-color: #d9d9d9;
michael@0 4253 background-image: linear-gradient(rgba(255,255,255,.43), rgba(255,255,255,0));
michael@0 4254 border-top-left-radius: @toolbarbuttonCornerRadius@;
michael@0 4255 border-top-right-radius: @toolbarbuttonCornerRadius@;
michael@0 4256 }
michael@0 4257
michael@0 4258 .chatbar-button:hover,
michael@0 4259 .chatbar-button[open="true"] {
michael@0 4260 background-color: #f0f0f0;
michael@0 4261 }
michael@0 4262
michael@0 4263 .chatbar-button[activity]:not([open]) {
michael@0 4264 background-image: radial-gradient(circle farthest-corner at center 2px, rgb(254,254,255) 3%, rgba(210,235,255,0.9) 12%, rgba(148,205,253,0.6) 30%, rgba(148,205,253,0.2) 70%);
michael@0 4265 }
michael@0 4266
michael@0 4267 chatbox {
michael@0 4268 border-top-left-radius: @toolbarbuttonCornerRadius@;
michael@0 4269 border-top-right-radius: @toolbarbuttonCornerRadius@;
michael@0 4270 }
michael@0 4271
michael@0 4272 window > chatbox {
michael@0 4273 border-top-left-radius: @toolbarbuttonCornerRadius@;
michael@0 4274 border-top-right-radius: @toolbarbuttonCornerRadius@;
michael@0 4275 border-bottom-left-radius: @toolbarbuttonCornerRadius@;
michael@0 4276 border-bottom-right-radius: @toolbarbuttonCornerRadius@;
michael@0 4277 }
michael@0 4278
michael@0 4279 /* Customization mode */
michael@0 4280
michael@0 4281 %include ../shared/customizableui/customizeMode.inc.css
michael@0 4282
michael@0 4283 #main-window[customizing] {
michael@0 4284 background-color: rgb(178,178,178);
michael@0 4285 }
michael@0 4286
michael@0 4287 #main-window[tabsintitlebar][customize-entered] > #titlebar,
michael@0 4288 #main-window[privatebrowsingmode=temporary]:not([tabsintitlebar])[customize-entered] > #titlebar,
michael@0 4289 #main-window[customize-entered] > #tab-view-deck {
michael@0 4290 background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"),
michael@0 4291 url("chrome://browser/skin/customizableui/background-noise-toolbar.png"),
michael@0 4292 linear-gradient(to bottom, rgb(233,233,233), rgb(178,178,178) 40px);
michael@0 4293 background-attachment: fixed;
michael@0 4294 }
michael@0 4295
michael@0 4296 #main-window[customize-entered] #browser-bottombox,
michael@0 4297 #main-window[customize-entered] #navigator-toolbox > toolbar:not(#TabsToolbar),
michael@0 4298 #main-window[customize-entered] #customization-container {
michael@0 4299 border: 3px solid hsla(0,0%,0%,.1);
michael@0 4300 border-top-width: 0;
michael@0 4301 background-clip: padding-box;
michael@0 4302 background-origin: padding-box;
michael@0 4303 -moz-border-right-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
michael@0 4304 -moz-border-bottom-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
michael@0 4305 -moz-border-left-colors: hsla(0,0%,0%,.05) hsla(0,0%,0%,.1) hsla(0,0%,0%,.2);
michael@0 4306 }
michael@0 4307
michael@0 4308 #main-window[customize-entered] #customization-container,
michael@0 4309 #main-window[customize-entered] #navigator-toolbox > toolbar:not(#TabsToolbar) {
michael@0 4310 border-bottom-width: 0;
michael@0 4311 }
michael@0 4312
michael@0 4313 #main-window[customize-entered] #TabsToolbar {
michael@0 4314 background-clip: padding-box;
michael@0 4315 border-right: 3px solid transparent;
michael@0 4316 border-left: 3px solid transparent;
michael@0 4317 }
michael@0 4318
michael@0 4319 @media (min-resolution: 2dppx) {
michael@0 4320 #customization-titlebar-visibility-button {
michael@0 4321 list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
michael@0 4322 -moz-image-region: rect(0, 48px, 48px, 0);
michael@0 4323 }
michael@0 4324
michael@0 4325 #customization-titlebar-visibility-button[checked] {
michael@0 4326 -moz-image-region: rect(0, 96px, 48px, 48px);
michael@0 4327 }
michael@0 4328
michael@0 4329 #customization-titlebar-visibility-button > .button-box > .button-icon {
michael@0 4330 width: 24px;
michael@0 4331 }
michael@0 4332
michael@0 4333 .customization-tipPanel-infoBox {
michael@0 4334 background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png);
michael@0 4335 background-size: 25px 25px;
michael@0 4336 }
michael@0 4337
michael@0 4338 .customization-tipPanel-contentImage {
michael@0 4339 list-style-image: url(chrome://browser/skin/customizableui/customize-illustration@2x.png);
michael@0 4340 }
michael@0 4341
michael@0 4342 .customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
michael@0 4343 list-style-image: url(chrome://browser/skin/customizableui/customize-illustration-rtl@2x.png);
michael@0 4344 }
michael@0 4345
michael@0 4346 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
michael@0 4347 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
michael@0 4348 list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip@2x.png");
michael@0 4349 }
michael@0 4350 }
michael@0 4351
michael@0 4352 /* End customization mode */
michael@0 4353
michael@0 4354 .private-browsing-indicator {
michael@0 4355 background-image: url("chrome://browser/skin/privatebrowsing-mask.png");
michael@0 4356 background-repeat: no-repeat;
michael@0 4357 background-size: 100% auto;
michael@0 4358 width: 38px;
michael@0 4359 height: 28px;
michael@0 4360 /**
michael@0 4361 * The private browsing mask graphic has a 3px flare at the top. The distance
michael@0 4362 * we want between the mask and items on either side is 7px, so we use 4px,
michael@0 4363 * since the other 3px is accounted for by the empty space on either side.
michael@0 4364 */
michael@0 4365 margin-left: 4px;
michael@0 4366 margin-right: 4px;
michael@0 4367 }
michael@0 4368
michael@0 4369 #titlebar-secondary-buttonbox > .private-browsing-indicator {
michael@0 4370 position: relative;
michael@0 4371 }
michael@0 4372
michael@0 4373 #main-window[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
michael@0 4374 background-image: url("chrome://browser/skin/privatebrowsing-mask-short.png");
michael@0 4375 height: 20px;
michael@0 4376 }
michael@0 4377
michael@0 4378 #main-window:not([privatebrowsingmode=temporary]) .private-browsing-indicator,
michael@0 4379 #main-window[privatebrowsingmode=temporary][inFullscreen] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator,
michael@0 4380 #main-window[privatebrowsingmode=temporary]:not([inFullscreen]) > #tab-view-deck > #browser-panel > #navigator-toolbox > #TabsToolbar > .private-browsing-indicator {
michael@0 4381 display: none;
michael@0 4382 }
michael@0 4383
michael@0 4384 @media (min-resolution: 2dppx) {
michael@0 4385 .private-browsing-indicator {
michael@0 4386 background-image: url("chrome://browser/skin/privatebrowsing-mask@2x.png");
michael@0 4387 }
michael@0 4388 #main-window[privatebrowsingmode=temporary]:not([tabsintitlebar]) > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > .private-browsing-indicator {
michael@0 4389 background-image: url("chrome://browser/skin/privatebrowsing-mask-short@2x.png");
michael@0 4390 }
michael@0 4391 }
michael@0 4392
michael@0 4393 @media (-moz-mac-lion-theme) {
michael@0 4394 #TabsToolbar > .private-browsing-indicator {
michael@0 4395 transform: translateY(-@spaceAboveTabbar@);
michael@0 4396 /* We offset by 38px for mask graphic, plus 4px to account for the
michael@0 4397 * margin-left, which sums to 42px.
michael@0 4398 */
michael@0 4399 margin-right: -42px;
michael@0 4400 }
michael@0 4401
michael@0 4402 #main-window[privatebrowsingmode=temporary] .titlebar-placeholder[type="fullscreen-button"],
michael@0 4403 #main-window[privatebrowsingmode=temporary] > #titlebar > #titlebar-content > #titlebar-secondary-buttonbox > #titlebar-fullscreen-button {
michael@0 4404 margin-left: 0px;
michael@0 4405 }
michael@0 4406
michael@0 4407 #main-window[privatebrowsingmode=temporary][inFullscreen] .titlebar-placeholder[type="fullscreen-button"] {
michael@0 4408 /* Override display:none for .titlebar-placeholder in fullscreen so we can have consistent
michael@0 4409 position and padding for the private browsing indicator. */
michael@0 4410 display: -moz-box;
michael@0 4411 }
michael@0 4412 }
michael@0 4413
michael@0 4414 #TabsToolbar > .private-browsing-indicator:-moz-locale-dir(rtl) {
michael@0 4415 -moz-box-ordinal-group: 0;
michael@0 4416 }
michael@0 4417
michael@0 4418 %include ../shared/UITour.inc.css
michael@0 4419
michael@0 4420 #UITourTooltipDescription {
michael@0 4421 font-size: 1.18rem;
michael@0 4422 line-height: 2rem;
michael@0 4423 }
michael@0 4424
michael@0 4425 #UITourTooltipClose {
michael@0 4426 -moz-margin-end: -10px;
michael@0 4427 margin-top: -14px;
michael@0 4428 }
michael@0 4429
michael@0 4430 @media (min-resolution: 2dppx) {
michael@0 4431 #UITourTooltipClose > .toolbarbutton-icon {
michael@0 4432 width: 16px;
michael@0 4433 }
michael@0 4434 }

mercurial