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

/* ===== toolbarbutton.css ==============================================
  == Styles used by XUL toolbarbutton elements.
  ======================================================================= */

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

/* ::::: ツールバーボタン ::::: */

toolbarbutton {
  -moz-box-align: center;
  -moz-box-pack: center;
  font: message-box;
  color: rgb(0, 0, 0);
  padding: 1px 2px;
  margin: 0;
  border: 1px solid transparent;
}

.toolbarbutton-icon[label]:not([label=""]),
.toolbarbutton-icon[type="menu"] {
  -moz-margin-end: 2px;
}

.toolbarbutton-text {
  text-align: center;
  margin: 0 !important;
}

/* ..... フォーカスが入るツールバーボタン ..... */

toolbarbutton.tabbable {
  -moz-user-focus: normal !important;
  outline: 1px dotted transparent;
  outline-offset: -2px;
}

toolbarbutton.tabbable:focus {
  outline-color: rgb(0, 0, 0);
}

toolbarbutton[buttonover="true"],
toolbarbutton:hover:not([disabled="true"]) {
  border-top-color: rgb(238, 240, 243);
  border-right-color: rgb(134, 146, 158);
  border-bottom-color: rgb(134, 146, 158);
  border-left-color: rgb(238, 240, 243);
}

toolbarbutton[open="true"],
toolbarbutton[open="true"]:hover,
toolbarbutton:hover:active:not([disabled="true"]) {
  padding-top: 2px;
  padding-bottom: 0;
  -moz-padding-start: 3px;
  -moz-padding-end: 1px;
  border-top-color: rgb(134, 146, 158);
  border-right-color: rgb(238, 240, 243);
  border-bottom-color: rgb(238, 240, 243);
  border-left-color: rgb(134, 146, 158);
}

toolbarbutton[disabled="true"] {
  color: rgb(147, 153, 171);
  border-color: transparent;
}

/* lightweight themes用スタイル */
toolbarbutton:-moz-lwtheme[disabled="true"] {
  color: rgb(123, 138, 152);
  text-shadow: 1px 1px rgb(226, 231, 235);
}

toolbarbutton[checked="true"] {
  color: rgb(239, 241, 244);
  background-color: rgb(140, 154, 168);
  border-top-color: rgb(69, 76, 85) !important;
  border-right-color: rgb(125, 132, 141) !important;
  border-bottom-color: rgb(125, 132, 141) !important;
  border-left-color: rgb(69, 76, 85) !important;
}

toolbarbutton[checked="true"]:hover:active {
  padding: 1px 2px;
}

toolbarbutton[checked="true"][disabled="true"] {
  color: rgb(199, 208, 217) !important;
  text-shadow: none; /* lightweight themes用スタイル */
}

/* ..... lightweight themes用スタイル ..... */

toolbarbutton:-moz-lwtheme {
  text-shadow: none;
}

toolbarbutton:-moz-lwtheme:not([checked="true"]):not([disabled="true"]) {
  color: inherit;
  text-shadow: inherit;
}

/* ::::: ツールバーボタン メニュー ::::: */

.toolbarbutton-menu-dropmarker {
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow.png");
  padding: 0;
  margin-top: 1px; /* Bug 491218参照 */
  border-width: 0 !important;
}

.toolbarbutton-menu-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.png");
}

/* ::::: ツールバーボタン メニューボタン ::::: */

toolbarbutton[type="menu-button"] {
  -moz-box-align: stretch;
  -moz-box-orient: horizontal !important;
}

toolbarbutton[type="menu-button"],
toolbarbutton[type="menu-button"]:hover,
toolbarbutton[type="menu-button"]:hover:active,
toolbarbutton[type="menu-button"][open="true"],
toolbarbutton[type="menu-button"][disabled="true"] {
  padding: 0 !important;
  border-style: none;
}

.toolbarbutton-menubutton-button {
  -moz-box-align: center;
  -moz-box-pack: center;
  -moz-box-orient: vertical;
  font: inherit;
}

/* ::::: toolbarbutton badged ::::: */

.toolbarbutton-badge-container > .toolbarbutton-icon[label]:not([label=""]) {
  -moz-margin-end: 0;
}

.toolbarbutton-badge[badge=""] {
  display: none;
}

.toolbarbutton-badge {
  background-color: #d90000;
}

.toolbarbutton-badge::after {
  /* The |content| property is set in the content stylesheet. */
  font-size: 10px;
  font-weight: bold;
  padding: 1px 2px 2px;
  color: #fff;
  background-color: inherit;
  border-radius: 2px;
  box-shadow: 0 1px 0 hsla(0, 100%, 100%, .2) inset,
              0 -1px 0 hsla(0, 0%, 0%, .1) inset,
              0 1px 0 hsla(206, 50%, 10%, .2);
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 10px;
  line-height: 10px;
  text-align: center;
}

.toolbarbutton-badge:-moz-locale-dir(rtl)::after {
  left: -2px;
  right: auto;
}

.toolbarbutton-badge-container {
  position: relative;
}

/* ..... ドロップマーカ ..... */

.toolbarbutton-menubutton-dropmarker {
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow.png");
  padding: 2px;
  border-width: 0 !important;
}

.toolbarbutton-menubutton-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.png");
}
<commit_msg>Add more PM28 toolbarbutton fixes<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/. */

/* ===== toolbarbutton.css =====================================================
  == Styles used by the XUL button element.
  ======================================================================= */

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

/* ::::: toolbarbutton ::::: */

toolbarbutton {
  -moz-box-align: center;
  -moz-box-pack: center;
  font: message-box;
  color: rgb(0, 0, 0);
  padding: 1px 2px;
  margin: 0;
  border: 1px solid transparent;
}

.toolbarbutton-icon[label]:not([label=""]),
.toolbarbutton-icon[type="menu"] {
  -moz-margin-end: 2px;
}

.toolbarbutton-text {
  text-align: center;
  margin: 0 !important;
}

/* ..... フォーカスが入るツールバーボタン ..... */

toolbarbutton.tabbable {
  -moz-user-focus: normal !important;
  outline: 1px dotted transparent;
  outline-offset: -2px;
}

toolbarbutton.tabbable:focus {
  outline-color: rgb(0, 0, 0);
}

toolbarbutton[buttonover="true"],
toolbarbutton:hover:not([disabled="true"]) {
  border-top-color: rgb(238, 240, 243);
  border-right-color: rgb(134, 146, 158);
  border-bottom-color: rgb(134, 146, 158);
  border-left-color: rgb(238, 240, 243);
}

toolbarbutton[open="true"],
toolbarbutton[open="true"]:hover,
toolbarbutton:hover:active:not([disabled="true"]) {
  padding-top: 2px;
  padding-bottom: 0;
  -moz-padding-start: 3px;
  -moz-padding-end: 1px;
  border-top-color: rgb(134, 146, 158);
  border-right-color: rgb(238, 240, 243);
  border-bottom-color: rgb(238, 240, 243);
  border-left-color: rgb(134, 146, 158);
}

toolbarbutton[disabled="true"] {
  color: rgb(147, 153, 171);
  border-color: transparent;
}

/* lightweight themes用スタイル */
toolbarbutton:-moz-lwtheme[disabled="true"] {
  color: rgb(123, 138, 152);
  text-shadow: 1px 1px rgb(226, 231, 235);
}

toolbarbutton[checked="true"] {
  color: rgb(239, 241, 244);
  background-color: rgb(140, 154, 168);
  border-top-color: rgb(69, 76, 85) !important;
  border-right-color: rgb(125, 132, 141) !important;
  border-bottom-color: rgb(125, 132, 141) !important;
  border-left-color: rgb(69, 76, 85) !important;
}

toolbarbutton[checked="true"]:hover:active {
  padding: 1px 2px;
}

toolbarbutton[checked="true"][disabled="true"] {
  color: rgb(199, 208, 217) !important;
  text-shadow: none; /* lightweight themes用スタイル */
}

/* ..... lightweight themes用スタイル ..... */

toolbarbutton:-moz-lwtheme {
  text-shadow: none;
}

toolbarbutton:-moz-lwtheme:not([checked="true"]):not([disabled="true"]) {
  color: inherit;
  text-shadow: inherit;
}

/* ::::: toolbarbutton menu ::::: */

.toolbarbutton-menu-dropmarker {
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow.png");
  padding: 0;
  margin-top: 1px; /* Bug 491218参照 */
  border-width: 0 !important;
}

.toolbarbutton-menu-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.png");
}

/* ::::: toolbarbutton menu-button ::::: */

toolbarbutton[type="menu-button"] {
  -moz-box-align: stretch;
  -moz-box-orient: horizontal !important;
}

toolbarbutton[type="menu-button"],
toolbarbutton[type="menu-button"]:hover,
toolbarbutton[type="menu-button"]:hover:active,
toolbarbutton[type="menu-button"][open="true"],
toolbarbutton[type="menu-button"][disabled="true"] {
  padding: 0 !important;
  border-style: none;
}

.toolbarbutton-menubutton-button {
  -moz-box-align: center;
  -moz-box-pack: center;
  -moz-box-orient: vertical;
  font: inherit;
}

/* ::::: toolbarbutton badged ::::: */

.toolbarbutton-badge-container > .toolbarbutton-icon[label]:not([label=""]),
.toolbarbutton-badge-stack > .toolbarbutton-icon[label]:not([label=""]) {
  -moz-margin-end: 0;
}

.toolbarbutton-badge[badge=""] {
  display: none;
}

.toolbarbutton-badge {
  background-color: #d90000;
}

.toolbarbutton-badge::after {
  /* The |content| property is set in the content stylesheet. */
  font-size: 10px;
  font-weight: bold;
  padding: 1px 2px 2px;
  color: #fff;
  background-color: inherit;
  border-radius: 2px;
  box-shadow: 0 1px 0 hsla(0, 100%, 100%, .2) inset,
              0 -1px 0 hsla(0, 0%, 0%, .1) inset,
              0 1px 0 hsla(206, 50%, 10%, .2);
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 10px;
  line-height: 10px;
  text-align: center;
}

.toolbarbutton-badge:-moz-locale-dir(rtl)::after {
  left: -2px;
  right: auto;
}

.toolbarbutton-badge-container {
  position: relative;
}

/* .......... dropmarker .......... */

.toolbarbutton-menubutton-dropmarker {
  background-color: transparent !important;
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow.png");
  padding: 2px;
  border-width: 0 !important;
}

.toolbarbutton-menubutton-dropmarker[disabled="true"] {
  list-style-image: url("chrome://global/skin/button/tbmenu-arrow-dis.png");
}

{'fraction_non_alphanumeric': 0.20614737685222267, 'fraction_numerical': 0.048658390068081696, 'mean_word_length': 4.189090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2746386', 'n_tokens_mistral': 4086, 'n_tokens_neox': 3585, 'n_words': 709}