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

.lock_date {
  color: #444;
  padding-#{direction(left)}: 20px;
  font-weight: bold;
}

#submit_assignment {
  .submission_comment_textarea {
    width: 300px;
    height: 20px;
    padding: 4px 6px;
    &.focus_or_content {
      width: 100%;
      height: 72px;
    }
  }
}

#point_change_warning {
  margin-top: 15px;
  margin-bottom: 0px;
  display: none;
}

#edit_assignment_form {
  margin: 0;
  .advanced-togglable-true {
    margin-top: 18px;
    border-top: 1px solid #ccc;
    padding-top: 18px;
  }
  .advanced-togglable-false {
    margin-top: 18px;
  }
  #group_category_selector,
  #assignment_peer_reviews_fields {
    margin-bottom: 0;
  }
  .frozen-description {
    padding: 15px;
    overflow-y: auto;
    height: 200px;
    border: 1px solid #AAA;
    resize: vertical;
  }
  .explanation {
    font-size: 0.8em;
    color: #888;
  }
}

#assignment_turnitin_settings {
  min-width: 400px;
  label {
    width: 95%;
  }
  .js-exclude-small-matches-options {
    margin-#{direction(left)}: 21px;
    input[type="radio"] {
      margin-top: 13px;
    }
  }
}

#assignment_show {
  .assignment-title {
    margin-bottom: $ic-sp * 2;

    @include breakpoint(desktop) {
      display: flex;
      align-items: center;
    }
  }
  .title-content {
    box-sizing: border-box;

    @include breakpoint(desktop) {
      flex: 1;
      min-width: 1px;
    }

    .title {
      margin: 0 0 $ic-sp;
      line-height: $ic-label-line-height;
      word-wrap: break-word;
      hyphens: auto;

      @include breakpoint(desktop) {
        margin: 0;
      }
    }
  }
  .assignment-buttons {
    @include breakpoint(desktop) {
      padding-#{direction(left)}: $ic-sp * 1.5;
      text-align: direction(right);
      .Button,
      .btn,
      .ui-button {
        margin: 0.125rem; // Add small margin in case buttons stack
      }
    }
  }
  .undo-main-margins {
    margin-#{direction(left)}: -1em;
    margin-#{direction(right)}: -1em;
    margin-bottom: -1em;
  }
  .student-assignment-overview {
    list-style: none;
    box-sizing: border-box;
    border-top: 1px solid $ic-border-light;
    border-bottom: 1px solid $ic-border-light;
    padding: $ic-sp 0;
    margin: direction-sides(0 0 ($ic-sp * 1.5) 0);
    li {
      display: inline-block;
    }
    .title {
      font-weight: bold;
      padding-#{direction(right)}: 0.5em;
    }
    .value {
      padding-#{direction(right)}: 2.0em;
    }
  }
  .form-horizontal.display-only .control-group {
    margin-bottom: 0;
  }
  .description.student-version {
    min-height: 260px;
  }
  .description.teacher-version {
    padding: 15px;
    overflow-y: auto;
    border: 1px solid #AAA;
    border-radius: 4px;
    resize: vertical;
  }
  .control-group {
    .control-label {
      font-weight: bold;
    }
    .controls .value {
      display: block;
      padding-top: 5px;
    }
  }
}

.control-group {
  .controls-url {
    padding-top: 5px;
    word-wrap: break-word;
  }
}

.omit-from-final-warning {
  padding: 12px;
  border-width: 1px;
  margin: 5px;
}

#assignment-draft-state {
  padding: 10px;
  line-height: 33px;
}

#sequence_footer.module-sequence-footer {
  padding-top: 0px;
}

#sidebar_content {
  .details {
    border: none;
    padding: 0;
    h2 {
      margin: 0;
    }
    .header {
      font-size: 1.2em;
      font-weight: bold;
      margin-top: 2px;
    }
    .content {
      padding-#{direction(left)}: 5px;
      h3 {
        @include fontSize(11px);
        font-weight: bold;
        margin-bottom: 0;
      }
      .module {
        padding-top: 10px;
      }
      .late {
        color: $ic-color-danger;
        font-weight: bold;
      }
      .unstyled_list {
        margin: 5px 10px 0;
      }
      .comments {
        @include fontSize(11px);
        max-height: 300px;
        overflow: auto;
        .comment {
          margin-#{direction(left)}: 10px;
          .signature {
            color: #888888;
            font-size: 0.8em;
            text-align: direction(right);
          }
        }
      }
    }
  }
}
