<commit_before>/* 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/. */

/* ::::: Appmenu button ::::: */

#appmenu-button {
  -moz-appearance: none !important;
  background-clip: padding-box !important;
  border-radius: 0 0 4px 4px !important;
  border: 1px solid !important;
  border-top: none !important;
  color: white !important;
  text-shadow: 0 0 1px rgba(0,0,0,.7),
               0 1px 1.5px rgba(0,0,0,.5) !important;
  font-weight: bold !important;
  padding: 0 1.5em .05em !important;
  margin: 0 0 2px !important;
}

#appmenu-button > .button-box {
  border-style: none !important;
  padding: 0 !important;
}

#appmenu-button > .button-box > .button-icon,
#appmenu-button > .button-box > .button-menu-dropmarker {
  display: none !important;
}

@media (-moz-windows-classic) {
  #appmenu-button {
    margin-bottom: 1px !important;
  }
}

@media (-moz-windows-default-theme) {
  #main-window[sizemode="normal"] #appmenu-button {
    margin-bottom: 5px !important;
  }
}

#appmenu-button:hover:active,
#appmenu-button[open] {
  border-radius: 0 !important;
}

/* Default style */
#appmenu-button {
  background-image: linear-gradient(rgb(247,182,82), rgb(215,98,10) 95%) !important;
  border-color: rgba(83,42,6,.9) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 0 0 1px rgba(255,255,255,.25) inset !important;
}
#appmenu-button:hover:not(:active):not([open]) {
  background-image: radial-gradient(farthest-side at bottom, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
                    radial-gradient(farthest-side at bottom, rgb(236,133,0), rgba(255,229,172,0)),
                    linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
  border-color: rgba(83,42,6,.9) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset,
              0 0 2px 1px rgba(250,234,169,.7) inset,
              0 -1px 0 rgba(250,234,169,.5) inset !important;
}
#appmenu-button:hover:active,
#appmenu-button[open] {
  background-image: linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
  box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
              0 1px 1px rgba(0,0,0,.2) inset !important;
}

@media not all and (-moz-windows-classic) {
  #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
    margin-top: 1px !important;
  }

  #appmenu-button {
    border-width: 2px !important;
    -moz-border-left-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    -moz-border-right-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    margin-bottom: 1px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
                0 0 2px 1px rgba(255,255,255,.25) inset !important;
  }

  #main-window[privatebrowsingmode=temporary] #appmenu-button {
    -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
    -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
    -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
  }

  #appmenu-popup {
    margin-top: -1px !important;
    -moz-margin-start: 1px !important;
  }
}

/* ::::: Others ::::: */

#titlebar-buttonbox {
  -moz-appearance: -moz-window-button-box !important;
}

#main-window[sizemode="maximized"] #titlebar-buttonbox {
  -moz-appearance: -moz-window-button-box-maximized !important;
}

#main-window[sizemode="maximized"] #titlebar {
  padding-top: 7px !important;
}

#main-window[sizemode="maximized"] #TabsToolbar {
  padding-top: 3px !important;
}

@media not all and (-moz-windows-compositor) {
  @media (-moz-windows-default-theme) {
    #main-window {
      background-color: rgb(185,209,234) !important;
    }
    #main-window:-moz-window-inactive {
      background-color: rgb(215,228,242) !important;
    }

    #toolbar-menubar:not([autohide=true]),
    #TabsToolbar[tabsontop=true],
    #navigator-toolbox[tabsontop=false] > toolbar:not(#toolbar-menubar) {
      -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag") !important;
      background-color: transparent !important;
    }
    #toolbar-menubar[autohide=true] {
      background-color: transparent !important;
    }
  }
}

@media (-moz-windows-compositor) {
  #main-window {
    -moz-appearance: -moz-win-borderless-glass !important;
    background: transparent !important;<commit_msg>Fix title bar look under MS Windows (#122)<commit_after>/* 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/. */

/* ::::: Appmenu button ::::: */

#appmenu-button {
  -moz-appearance: none !important;
  background-clip: padding-box !important;
  border-radius: 0 0 4px 4px !important;
  border: 1px solid !important;
  border-top: none !important;
  color: white !important;
  text-shadow: 0 0 1px rgba(0,0,0,.7),
               0 1px 1.5px rgba(0,0,0,.5) !important;
  font-weight: bold !important;
  padding: 0 1.5em .05em !important;
  margin: 0 0 2px !important;
}

#appmenu-button > .button-box {
  border-style: none !important;
  padding: 0 !important;
}

#appmenu-button > .button-box > .button-icon,
#appmenu-button > .button-box > .button-menu-dropmarker {
  display: none !important;
}

@media (-moz-windows-classic) {
  #appmenu-button {
    margin-bottom: 1px !important;
  }
}

@media (-moz-windows-default-theme) {
  #main-window[sizemode="normal"] #appmenu-button {
    margin-bottom: 5px !important;
  }
}

#appmenu-button:hover:active,
#appmenu-button[open] {
  border-radius: 0 !important;
}

/* Default style */
#appmenu-button {
  background-image: linear-gradient(rgb(247,182,82), rgb(215,98,10) 95%) !important;
  border-color: rgba(83,42,6,.9) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 0 0 1px rgba(255,255,255,.25) inset !important;
}
#appmenu-button:hover:not(:active):not([open]) {
  background-image: radial-gradient(farthest-side at bottom, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
                    radial-gradient(farthest-side at bottom, rgb(236,133,0), rgba(255,229,172,0)),
                    linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
  border-color: rgba(83,42,6,.9) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset,
              0 0 2px 1px rgba(250,234,169,.7) inset,
              0 -1px 0 rgba(250,234,169,.5) inset !important;
}
#appmenu-button:hover:active,
#appmenu-button[open] {
  background-image: linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
  box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
              0 1px 1px rgba(0,0,0,.2) inset !important;
}

@media not all and (-moz-windows-classic) {
  #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
    margin-top: 1px !important;
  }

  #appmenu-button {
    border-width: 2px !important;
    -moz-border-left-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    -moz-border-right-colors: rgba(255,255,255,.5) rgba(83,42,6,.9) !important;
    margin-bottom: 1px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
                0 0 2px 1px rgba(255,255,255,.25) inset !important;
  }

  #main-window[privatebrowsingmode=temporary] #appmenu-button {
    -moz-border-left-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
    -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
    -moz-border-right-colors: rgba(255,255,255,.5) rgba(43,8,65,.9) !important;
  }

  #appmenu-popup {
    margin-top: -1px !important;
    -moz-margin-start: 1px !important;
  }
}

/* ::::: Titlebar ::::: */

#main-window[sizemode="normal"] > #titlebar {
  -moz-appearance: -moz-window-titlebar !important;
}

#main-window[sizemode="maximized"] > #titlebar {
  -moz-appearance: -moz-window-titlebar-maximized !important;
}

@media (-moz-windows-classic) {
  #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
    margin-top: 4px !important;
  }
}

#titlebar-buttonbox {
  -moz-appearance: -moz-window-button-box !important;
}

#main-window[sizemode="maximized"] #titlebar-buttonbox {
  -moz-appearance: -moz-window-button-box-maximized !important;
}

.titlebar-placeholder[type="appmenu-button"] {
  margin-left: 4px !important;
}

.titlebar-placeholder[type="caption-buttons"] {
  margin-left: 22px !important; /* additional space for Aero Snap */
}

#main-window[sizemode="maximized"] #titlebar {
  padding-top: 7px !important;
}

/* ::::: Others ::::: */

#main-window[sizemode="maximized"] #TabsToolbar {
  padding-top: 3px !important;
}

#navigator-toolbox[tabsontop=true],
#TabsToolbar[tabsontop=true] {
  background-color: transparent !important;
}

@media not all and (-moz-windows-compositor) {
  @media (-moz-windows-default-theme) {
    #main-window {
      background-color: rgb(185,209,234) !important;
    }
    #main-window:-moz-window-inactive {
      background-color: rgb(215,228,242) !important;
    }

    #toolbar-menubar:not([autohide=true]),
    #TabsToolbar[tabsontop=true],
    #navigator-toolbox[tabsontop=false] > toolbar:not(#toolbar-menubar) {
      -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag") !important;
      background-color: transparent !important;
    }
    #toolbar-menubar[autohide=true] {
      background-color: transparent !important;
    }
  }
}

@media (-moz-windows-compositor) {
  #main-window {
    -moz-appearance: -moz-win-borderless-glass !important;
    background: transparent !important;
{'fraction_non_alphanumeric': 0.17256726684199877, 'fraction_numerical': 0.07535909366781307, 'mean_word_length': 3.7602311025517574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4729509', 'n_tokens_mistral': 4257, 'n_tokens_neox': 3631, 'n_words': 690}