/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Only apply to browser.xul documents */
@-moz-document url("chrome://browser/content/browser.xul") {
  /**
   * XXX Due to bug 1228542, anything in this file that overrides a browser style
   * must specify !important. Otherwise the style won't get applied correctly
   * due to the limitations caused by the bug.
   */

  @media (-moz-windows-theme: luna-silver) and (max-resolution: 1dppx) {
    #loop-button {
      list-style-image: url(chrome://loop/skin/toolbar-lunaSilver.png)
    }
  }

  @media (-moz-windows-theme: luna-silver) and (min-resolution: 1.1dppx) {
    #loop-button {
      list-style-image: url(chrome://loop/skin/toolbar-lunaSilver@2x.png)
    }
  }

  #loop-button[state="slideshow"] {
    background: none;
  }

  #loop-button[state="slideshow"] > .toolbarbutton-badge-stack {
    background: var(--toolbarbutton-hover-background) !important;
    background-clip: padding-box !important;
    border-color: var(--toolbarbutton-hover-bordercolor) !important;
    box-shadow: var(--toolbarbutton-hover-boxshadow) !important;
  }
}
