<commit_before>/*
 * Copyright (C) 2015 - 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/>.
 */

@mixin mode-visibility($edit, $disp, $igno) {
  .editing {
    display: $edit;
  }
  .displaying {
    display: $disp;
  }
  .ignoring {
    display: $igno;
  }
}

// unfortunately, we used the same class name as bootstrap's .container, need to reset it's effects
@mixin revert_bootstrap_container {
  margin-left: 0;
  margin-right: 0;
  width: auto;
}

.rubric_container {
  margin-top: 20px;
  tr.criterion .links {
    position: absolute;
    bottom: 0;
    right: 0;
    display: none;
  }
  &.editing {
    tr.criterion .links {
      display: inline-block;
      i {
        visibility: hidden;
      }
    }
    td.rating:hover, td.criterion_description:hover, .links a:focus {
      i {
        visibility: visible;
      }
    }
    label[for=rubric-title] {
      font-weight: bold;
    }
  }
  .rubric_table {
    border-collapse: collapse;
    //for some reason, chrome puts a scrollbar on the table in the extended gradebook if it is 100%
    width: 99.9%;
    page-break-inside: avoid;
  }
  thead th {
    background-color: #ccc;
  }
  td, th {
    border: 1px solid #aaa;
    padding: 2px 5px;
  }
  .rubric_title {
    background-color: #ccc;
    border-top: 1px solid #aaa;
    border-left: 1px solid #aaa;
    border-right: 1px solid #aaa;
    padding: 5px;
    margin-right: 1px;
    font-weight: bold;
  }
  .has-assessments-warning {
    font-size: 0.8em;
    font-weight: normal;
  }
  tr.criterion td.criterion_description {
    // :max-width 150px
    .container {
      @include revert_bootstrap_container;
      position: relative;
      font-size: 0.9em;
    }
    .learning_outcome_flag, .threshold {
      display: none;
    }
    .long_description_holder {
      font-size: 0.8em;
      display: block;
      &.empty {
        display: none;
      }
    }
    .assessment-comments {
      @include fontSize(10px);<commit_msg>update rubric table title background/border color with variables<commit_after>/*
 * Copyright (C) 2015 - 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/>.
 */

@mixin mode-visibility($edit, $disp, $igno) {
  .editing {
    display: $edit;
  }
  .displaying {
    display: $disp;
  }
  .ignoring {
    display: $igno;
  }
}

// unfortunately, we used the same class name as bootstrap's .container, need to reset it's effects
@mixin revert_bootstrap_container {
  margin-left: 0;
  margin-right: 0;
  width: auto;
}

.rubric_container {
  margin-top: 20px;
  tr.criterion .links {
    position: absolute;
    bottom: 0;
    right: 0;
    display: none;
  }
  &.editing {
    tr.criterion .links {
      display: inline-block;
      i {
        visibility: hidden;
      }
    }
    td.rating:hover, td.criterion_description:hover, .links a:focus {
      i {
        visibility: visible;
      }
    }
    label[for=rubric-title] {
      font-weight: bold;
    }
  }
  .rubric_table {
    border-collapse: collapse;
    //for some reason, chrome puts a scrollbar on the table in the extended gradebook if it is 100%
    width: 99.9%;
    page-break-inside: avoid;
  }
  thead th {
    background-color: $ic-color-medium-light;
  }
  td, th {
    border: 1px solid $ic-border-color;
    padding: 2px 5px;
  }
  .rubric_title {
    background-color: $ic-color-medium-light;
    border-top: 1px solid $ic-border-color;
    border-left: 1px solid $ic-border-color;
    border-right: 1px solid $ic-border-color;
    padding: 5px;
    margin-right: 1px;
    font-weight: bold;
  }
  .has-assessments-warning {
    font-size: 0.8em;
    font-weight: normal;
  }
  tr.criterion td.criterion_description {
    // :max-width 150px
    .container {
      @include revert_bootstrap_container;
      position: relative;
      font-size: 0.9em;
    }
    .learning_outcome_flag, .threshold {
      display: none;
    }
    .long_description_holder {
      font-size: 0.8em;
      display: block;
      &.empty {
        display: none;
      }
    }
    .assessment-comments {
      @include fontSize(10px);
{'fraction_non_alphanumeric': 0.10437582875544611, 'fraction_numerical': 0.013638946770221634, 'mean_word_length': 2.550773369199731, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6190323', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1688, 'n_words': 530}