<commit_before>/*
 * Copyright (C) 2019 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * This file started as modified copy of skin.css generated by tinymce's skin tool
 * (see https://github.com/tinymce/oxide for details). Then I diffed it with
 * the tinymce/skins/ui/oxide/skin.css file and deleted anything that was unique
 * or that I though I might eventually have to change (mostly colors).
 * See ./skin.css for the full css file that's being kept for reference.
 *
 * Where the colors are left hard-coded, they are different from the default skin,
 * and are what came out of the skin builder when the canvas theme colors were used.
 * I didn't find any of those elements in the RCE, so I didn't want to guess what it
 * should look like.
 */
.root {
  background-color: var(--canvasBackgroundColor);
}

:global {
  /* not part of the skin, but necessary to properly size the RCE's textarea */
  .rce-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
  }

  .tox,
  .tox *:not(svg) {
    color: inherit;
    font-family: inherit;
  }

  /* fix RTL. tinyMCE tries to do this in its default theme but it's base style is too specific so when it does it, it isn't specific enough to override the base */
  [dir='rtl'] .tox :not(svg) {
    direction: rtl;
  }

  .tox:not(.tox-tinymce-inline) .tox-editor-header {
    background-color: var(--canvasBackgroundColor);
  }

  .tox.tox-tinymce .screenreader-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    transform: translatez(0);
  }

  .tox-tinymce-aux {
    font-family: var(--canvasFontFamily);
  }
  /* z-index must be greater than the InstUI Modal/Tray ones */
  .tox.tox-tinymce-aux {
    z-index: 10000;
  }
  .tox .tox-button {
    background-color: var(--canvasPrimaryButtonBackground);
    font-family: var(--canvasFontFamily);
    font-weight: var(--canvasButtonFontWeight);
    font-size: var(--canvasButtonFontSize);
    color: var(--canvasPrimaryButtonColor);
    border-color: var(--canvasPrimaryButtonBorderColor);
    line-height: calc(var(--canvasButtonLineHeight) - 2px);
    padding: var(--canvasButtonPadding);
  }
  .tox .tox-button[disabled] {
    opacity: 0.5;
    border-color: inherit;
    color: inherit;
  }
  .tox .tox-button:focus:not(:disabled) {
    background-color: var(--canvasPrimaryButtonBackground);
    color: var(--canvasPrimaryButtonColor);
    border-color: var(--canvasBackgroundColor);
    box-shadow: var(--canvasFocusBoxShadow);
  }
  .tox .tox-button:hover:not(:disabled) {
    background-color: var(--canvasPrimaryButtonHoverBackground);
    color: var(--canvasPrimaryButtonHoverColor);
  }
  .tox .tox-button:active:not(:disabled) {
    background-color: var(--canvasPrimaryButtonBackground);
    border-color: var(--canvasPrimaryButtonBorderColor);
    color: var(--canvasPrimaryButtonColor);
  }<commit_msg>fix for button with wrong color on theme<commit_after>/*
 * Copyright (C) 2019 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * This file started as modified copy of skin.css generated by tinymce's skin tool
 * (see https://github.com/tinymce/oxide for details). Then I diffed it with
 * the tinymce/skins/ui/oxide/skin.css file and deleted anything that was unique
 * or that I though I might eventually have to change (mostly colors).
 * See ./skin.css for the full css file that's being kept for reference.
 *
 * Where the colors are left hard-coded, they are different from the default skin,
 * and are what came out of the skin builder when the canvas theme colors were used.
 * I didn't find any of those elements in the RCE, so I didn't want to guess what it
 * should look like.
 */
.root {
  background-color: var(--canvasBackgroundColor);
}

:global {
  /* not part of the skin, but necessary to properly size the RCE's textarea */
  .rce-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
  }

  .tox,
  .tox *:not(svg) {
    color: inherit;
    font-family: inherit;
  }

  /* fix RTL. tinyMCE tries to do this in its default theme but it's base style is too specific so when it does it, it isn't specific enough to override the base */
  [dir='rtl'] .tox :not(svg) {
    direction: rtl;
  }

  .tox:not(.tox-tinymce-inline) .tox-editor-header {
    background-color: var(--canvasBackgroundColor);
  }

  .tox.tox-tinymce .screenreader-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    transform: translatez(0);
  }

  .tox-tinymce-aux {
    font-family: var(--canvasFontFamily);
  }
  /* z-index must be greater than the InstUI Modal/Tray ones */
  .tox.tox-tinymce-aux {
    z-index: 10000;
  }
  .tox .tox-button {
    background-color: var(--canvasPrimaryButtonHoverBackground);
    font-family: var(--canvasFontFamily);
    font-weight: var(--canvasButtonFontWeight);
    font-size: var(--canvasButtonFontSize);
    color: var(--canvasPrimaryButtonColor);
    border-color: var(--canvasPrimaryButtonBorderColor);
    line-height: calc(var(--canvasButtonLineHeight) - 2px);
    padding: var(--canvasButtonPadding);
  }
  .tox .tox-button[disabled] {
    opacity: 0.5;
    border-color: inherit;
    color: inherit;
  }
  .tox .tox-button:focus:not(:disabled) {
    background-color: var(--canvasPrimaryButtonBackground);
    color: var(--canvasPrimaryButtonColor);
    border-color: var(--canvasBackgroundColor);
    box-shadow: var(--canvasFocusBoxShadow);
  }
  .tox .tox-button:hover:not(:disabled) {
    background-color: var(--canvasPrimaryButtonHoverBackground);
    color: var(--canvasPrimaryButtonHoverColor);
  }
  .tox .tox-button:active:not(:disabled) {
    background-color: var(--canvasPrimaryButtonBackground);
    border-color: var(--canvasPrimaryButtonBorderColor);
    color: var(--canvasPrimaryButtonColor);
  }
{'fraction_non_alphanumeric': 0.11191135734072022, 'fraction_numerical': 0.007202216066481994, 'mean_word_length': 3.3343337334933976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4729974', 'n_tokens_mistral': 2298, 'n_tokens_neox': 2160, 'n_words': 749}