_survey-page.scss 2.78 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
// full-page course survey styles

.view-survey {

  .container {
    padding: ($baseline*1.5) 0;
  }

  .content-primary {
    @include float(left);
    @include margin-right(flex-gutter());
    width: flex-grid(9,12);
  }

  .content-supplementary {
    @include float(left);
    width: flex-grid(3,12);
    margin-top: ($baseline*2);
  }

  .header-survey {

    .title {
      @extend %t-title4;
      @extend %t-weight4;
      margin-bottom: $baseline;
      border-bottom: 1px solid $gray-l4;
      padding-bottom: ($baseline/2);
    }

    .course-info {
      @extend %t-title;
      padding-bottom: ($baseline/4);
    }

    .course-org,
    .course-number {
      @extend %t-title8;
      display: inline-block;
      text-transform: uppercase;
      color: $gray-l1;
    }

    .course-org {
      @include margin-right($baseline/4);
    }

    .course-name {
      @extend %t-title5;
      display: block;
    }
  }

  // reset nasty LMS default styles
  form {

    h1, h2 {
      text-align: inherit;
      letter-spacing: inherit;
      text-transform: inherit;
    }
  }

  .instructions {
    margin-bottom: $baseline;
    font-style: italic;
    @extend %t-copy-base;
  }

  .message.submission-error {
    display: block;
    margin-bottom: ($baseline);
    border-top: 3px solid $error-color;
    @include padding( ($baseline), ($baseline*1.5), ($baseline*1.5), ($baseline*1.5) );
    background-color: tint($error-color,85%);

    .message-title {
      @extend %t-title5;
      @extend %t-weight4;
      margin-bottom: ($baseline/2);
      color: $error-color;
    }

    .message-copy {
      @extend %ui-no-list;
      line-height: 1.3;

      .error-item {
        margin-bottom: ($baseline/3);
      }
    }

    &.is-hidden {
      display: none;
    }
  }

  .list-input {
    @extend %ui-no-list;

    .field {
      margin-bottom: $baseline;

      &.required label:after {
        content: "*";
        @include margin-left($baseline/4);
      }

      .tip {
        @extend %t-copy-sub2;
        display: block;
        margin-top: ($baseline/4);
        color: $gray;
      }

      &.is-focused {

        .tip {
          color: $base-font-color;
        }
      }
    }
  }

  .action-primary {
    @extend %m-btn-primary;
    @extend %t-copy-base;
    @include padding-left($baseline*2);
  }

  .action-cancel {
    @extend %t-copy-sub1;
    @include margin-left($baseline);
  }

  // override basic label styles
  label {
    @extend %t-copy-base;
    @extend %t-weight4;
    display: block;
    font-style: normal;
  }

  // override basic form input styles
  button, input, select, textarea {
    @extend %t-copy-sub1;
  }

  .bit {
    margin-bottom: $baseline;

    .title {
      @extend %t-title7;
      @extend %t-weight4;
    }

    p {
      @extend %t-copy-sub1;
      color: $gray;
    }
  }
}