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

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

/* ::::: menupopup ::::: */

menupopup,
panel {
  /*
  -moz-appearance: menupopup;
  */
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25);
  min-width: 1px;
  color: MenuText;
}

panel {
  -moz-appearance: menupopup;
}

menupopup {
  background-color: Menu;
}

/* ::::: arrow panel ::::: */

panel[type="arrow"] {
  transition: opacity 300ms;
  -moz-appearance: none;
}

panel[type="arrow"][side="top"],
panel[type="arrow"][side="bottom"] {
  margin-left: -16px;
  margin-right: -16px;
}

panel[type="arrow"][side="left"],
panel[type="arrow"][side="right"] {
  margin-top: -16px;
  margin-bottom: -16px;
}

.panel-arrowcontent {
  padding: 10px;
  color: -moz-DialogText;
  background: -moz-Dialog;
  border: 1px solid ThreeDShadow;
}

.panel-arrow[side="top"],
.panel-arrow[side="bottom"] {
  list-style-image: url("chrome://global/skin/icons/panelarrow-vertical.svg");
  position: relative;
  margin-left: 6px;
  margin-right: 6px;
}

.panel-arrow[side="top"] {
  margin-bottom: -1px;
}

.panel-arrow[side="bottom"] {
  transform: scaleY(-1);
  margin-top: -1px;
}

.panel-arrow[side="left"],
.panel-arrow[side="right"] {
  list-style-image: url("chrome://global/skin/icons/panelarrow-horizontal.svg");
  position: relative;
  margin-top: 6px;
  margin-bottom: 6px;
}

.panel-arrow[side="left"] {
  margin-right: -1px;
}

.panel-arrow[side="right"] {
  transform: scaleX(-1);
  margin-left: -1px;
}

/* ::::: tooltip ::::: */

tooltip {
  -moz-appearance: tooltip;
  margin-top: 21px;
  /* GTK hardcodes this to 4px */
  padding: 4px;
  max-width: 40em;<commit_msg>Add shadow and transition for panels<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/. */

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

/* ::::: menupopup ::::: */

menupopup,
panel {
  /*
  -moz-appearance: menupopup;
  */
  min-width: 1px;
  color: MenuText;
}

panel {
  -moz-appearance: menupopup;
}

menupopup {
  background-color: Menu;
  box-shadow: 0 0 1px 1px rgba(0,0,0,.25);
}

/* ::::: arrow panel ::::: */

panel[type="arrow"] {
  transition: opacity 300ms;
  -moz-appearance: none;
}

.panel-arrowcontainer[panelopen] {
  transition-duration: 200ms, 150ms;
  transition-property: opacity, transform;
  transition-timing-function: ease-out;
}

.panel-arrowcontainer:not([panelopen]) {
  opacity: 0;
}

.panel-arrowcontainer:not([panelopen])[side="top"] {
  transform: translateY(-20px);
}

.panel-arrowcontainer:not([panelopen])[side="bottom"] {
  transform: translateY(20px);
}

.panel-arrowcontainer:not([panelopen])[side="left"] {
  transform: translateX(-20px);
}

.panel-arrowcontainer:not([panelopen])[side="right"] {
  transform: translateX(20px);
}

panel[type="arrow"][side="top"],
panel[type="arrow"][side="bottom"] {
  margin-left: -30px;
  margin-right: -30px;
}

panel[type="arrow"][side="left"],
panel[type="arrow"][side="right"] {
  margin-top: -30px;
  margin-bottom: -30px;
}

.panel-arrowcontent {
  padding: 10px;
  color: -moz-DialogText;
  background: -moz-Dialog;
  border: 1px solid ThreeDShadow;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,.5);
  margin: 5px 3px;
}

.panel-arrow[side="top"],
.panel-arrow[side="bottom"] {
  list-style-image: url("chrome://global/skin/icons/panelarrow-vertical.svg");
  position: relative;
  margin-left: 20px;
  margin-right: 20px;
}

.panel-arrow[side="top"] {
  margin-bottom: -6px;
}

.panel-arrow[side="bottom"] {
  transform: scaleY(-1);
  margin-top: -6px;
}

.panel-arrow[side="left"],
.panel-arrow[side="right"] {
  list-style-image: url("chrome://global/skin/icons/panelarrow-horizontal.svg");
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

.panel-arrow[side="left"] {
  margin-right: -4px;
}

.panel-arrow[side="right"] {
  transform: scaleX(-1);
  margin-left: -4px;
}

/* ::::: tooltip ::::: */

tooltip {
  -moz-appearance: tooltip;
  margin-top: 21px;
  /* GTK hardcodes this to 4px */
  padding: 4px;
  max-width: 40em;
{'fraction_non_alphanumeric': 0.19464609800362975, 'fraction_numerical': 0.02676950998185118, 'mean_word_length': 4.004540295119183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '7461465', 'n_tokens_mistral': 1780, 'n_tokens_neox': 1674, 'n_words': 321}