_gradebook.scss 6.01 KB
Newer Older
1 2 3
$cell-border-color: #e1e1e1;
$table-border-color: #c8c8c8;

4
.no-select {
5 6 7 8 9 10
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
11 12
}

13 14 15
div.gradebook-wrapper {
  section.gradebook-content {
    @extend .content;
16

17 18
    display: block;
    width: 100%;
19

20
    @include clearfix();
21

22
    .student-search {
23
      padding: 0 $baseline 0 ($baseline*0.75);
24 25 26
    }

    .student-search-field {
27 28 29 30 31 32 33 34 35
      width: 100%;
      height: 27px;
      padding: 0 ($baseline*0.75) 0 35px;

      @include box-sizing(border-box);

      border-radius: 13px;
      border: 1px solid $table-border-color;
      background: url('#{$static-path}/images/search-icon.png') no-repeat 9px center $gray-l6;
36
      font-family: $font-family-sans-serif;
37
      font-size: 11px;
38
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) inset;
39

40
      @include transition(border-color 0.15s linear 0s);
41 42 43 44 45 46 47 48 49

      &::-webkit-input-placeholder,
      &::-moz-input-placeholder {
        font-style: italic;
      }

      &:focus {
        border-color: #1d9dd9;
      }
50 51
    }

Tom Giannattasio committed
52
    .student-table {
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
      float: left;
      width: 24%;
      border-radius: 3px 0 0 3px;
      color: #3c3c3c;

      th {
        height: 50px;
      }

      tr:first-child td {
        border-top: 1px solid $table-border-color;
        border-radius: ($baseline/4) 0 0 0;
      }

      tr:last-child td {
        border-bottom: 1px solid $table-border-color;
        border-radius: 0 0 0 ($baseline/4);
      }

      td {
        height: 50px;
        padding-left: $baseline;
        border-bottom: 1px solid $cell-border-color;
        border-left: 1px solid $table-border-color;
        background: $gray-l5;
        font-size: 13px;
        line-height: 50px;
      }

      tr:nth-child(odd) td {
        background-color: #fbfbfb;
      }
    }

    .grade-book-footer {
      position: relative;
      top: 15px;
      width: 100%;
      border: 0;
      box-shadow: 0;
      text-align: center;
      display: inline-block;
    }

    .grades {
      position: relative;
      float: left;
      width: 76%;
      overflow-x: auto;
      overflow-y: hidden;

      .left-shadow,
      .right-shadow {
        @extend %ui-depth4;

        position: absolute;
        top: 0;
        width: 20px;
        pointer-events: none;
      }

      .left-shadow {
        left: 0;
        background-image: -webkit-gradient(linear, left, $shadow-l1, $transparent 20%), -webkit-gradient(linear, left, $shadow-l1, $transparent);
117 118 119 120
        background-image: -webkit-linear-gradient(left, $shadow-l1, $transparent 20%), -webkit-linear-gradient(left, $shadow-l1, $transparent);
        background-image: -moz-linear-gradient(left, $shadow-l1, $transparent 20%), -moz-linear-gradient(left, $shadow-l1, $transparent);
        background-image: -ms-linear-gradient(left, $shadow-l1, $transparent 20%), -ms-linear-gradient(left, $shadow-l1, $transparent);
        background-image: -o-linear-gradient(left, $shadow-l1, $transparent 20%), -o-linear-gradient(left, $shadow-l1, $transparent);
121 122 123 124 125
      }

      .right-shadow {
        right: 0;
        background-image: -webkit-gradient(linear, right, $shadow-l1, $transparent 20%), -webkit-gradient(linear, right, $shadow-l1, $transparent);
126 127 128 129
        background-image: -webkit-linear-gradient(right, $shadow-l1, $transparent 20%), -webkit-linear-gradient(right, $shadow-l1, $transparent);
        background-image: -moz-linear-gradient(right, $shadow-l1, $transparent 20%), -moz-linear-gradient(right, $shadow-l1, $transparent);
        background-image: -ms-linear-gradient(right, $shadow-l1, $transparent 20%), -ms-linear-gradient(right, $shadow-l1, $transparent);
        background-image: -o-linear-gradient(right, $shadow-l1, $transparent 20%), -o-linear-gradient(right, $shadow-l1, $transparent);
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
      }
    }

    .grade-table {
      position: absolute;
      top: 0;
      left: 0;
      width: 1000px;
      cursor: move;

      @include transition(none);
      @include user-select(none);

      td,
      th {
        width: 50px;
        text-align: center;
      }

      thead th {
        position: relative;
        height: 50px;

        @include linear-gradient(top, $cell-border-color, #ddd);

        font-size: 10px;
        line-height: 10px;
        font-weight: bold;
        text-align: center;
159
        box-shadow: 0 1px 0 $table-border-color inset, 0 2px 0 rgba(255, 255, 255, 0.7) inset;
160 161 162 163
        border-left: 1px solid $gray-l3;

        &:first-child {
          border-radius: 5px 0 0 0;
164
          box-shadow: 1px 1px 0 $table-border-color inset, 1px 2px 0 rgba(255, 255, 255, 0.7) inset;
165 166 167 168 169
          border-left: none;
        }

        &:last-child {
          border-radius: 0 3px 0 0;
170
          box-shadow: -1px 1px 0 $table-border-color inset, -1px 2px 0 rgba(255, 255, 255, 0.7) inset;
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
        }

        .assignment {
          margin: 9px 0;
        }

        .type,
        .number,
        .max {
          display: block;
        }

        .max {
          height: 12px;

          @include linear-gradient(top, #c6c6c6, #bababa);

          font-size: 9px;
          line-height: 12px;
          color: $white;
        }
      }

      tr {
        border-right: 1px solid $table-border-color;
      }

      tr:first-child td {
        border-top: 1px solid $table-border-color;
      }

      tr:last-child td {
        border-bottom: 1px solid $table-border-color;
      }

      td {
        height: 50px;
        border-bottom: 1px solid $cell-border-color;
        background: #f3f3f3;
        font-size: 13px;
        line-height: 50px;
        border-left: 1px solid $cell-border-color;
      }

      tr:nth-child(odd) td {
        background-color: #fbfbfb;
      }
    }
Tom Giannattasio committed
219

220 221 222 223
    h1 {
      @extend .top-header;
    }
  }
224

225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
  .student-table tr:hover td,
  .grade-table tr:hover td,
  .student-table tr:focus td,
  .grade-table tr:focus td,
  .student-table tr.highlight td,
  .grade-table tr.highlight td {
    border-color: #74b7d6;

    @include linear-gradient(#8ed6f7, #76cbf4);

    color: #333;

    a {
      color: #333;
    }
  }
Tom Giannattasio committed
241 242 243
}