_courseware.scss 15 KB
Newer Older
1 2 3 4
// lms - base courseware styling
// ====================
// NOTE: this file is deprecated, and we should not continue to add to this file. Use other partials as appropriate.

5 6 7 8 9
html {
  height: 100%;
  max-height: 100%;
}

10
html.video-fullscreen {
11 12
  overflow: hidden;

13
  body {
14 15 16 17
    overflow: hidden;
  }
}

18
.wrap-instructor-info {
19 20
  @extend %ui-print-excluded;

21 22
  margin: ($baseline/2) ($baseline/4) 0 0;
  overflow: hidden;
23

24 25 26 27 28 29 30 31
  &.studio-view {
    position: relative;
    top: -($baseline/2);
    margin: 0;
  }

  .instructor-info-action {
    @extend %t-copy-sub2;
32
    @include float(right);
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    margin-left: ($baseline/2);
    padding: ($baseline/4) ($baseline/2);
    border-radius: ($baseline/4);
    background-color: $shadow-l2;
    text-align: right;
    text-transform: uppercase;
    color: $lighter-base-font-color;

    &:hover {
      background-color: $link-hover;
      color: $white;
    }
  }
}

48 49 50 51 52 53 54 55 56 57 58 59
.content-wrapper {

  .container-footer {
    margin: 0 auto;
    max-width: grid-width(12);
    min-width: 760px;
    color: $gray;
    text-align: $bi-app-right;
  }
}

.content-wrapper {
60

61 62 63 64 65 66 67 68 69 70
  .course-license, .xblock-license {
    @include text-align(right);
    @extend %t-title7;
    display: block;
    width: auto;
    padding: ($baseline/4) 0;

    span {
      color: inherit;
    }
71 72

    a:link, a:visited {
73
      color: $gray;
74 75 76 77 78
    }
    a:active, a:hover {
      color: $link-hover;
    }

79 80 81 82 83 84
    .license-label,
    .license-value,
    .license-actions {
      display: inline-block;
      vertical-align: middle;
      margin-bottom: 0;
85 86
    }

87 88
    i {
      font-style: normal;
89 90
    }

91 92
    img {
      display: inline;
93 94
    }
  }
95
}
96

97
// TO-DO should this be content wrapper?
98 99
div.course-wrapper {
  position: relative;
100

101 102
  section.course-content {
    @extend .content;
103
    padding: ($baseline*2);
104
    line-height: 1.6;
105 106 107
    h1 {
      margin: 0 0 lh();
    }
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
    div.timed-exam {
      h3 {
        margin-bottom: 12px;
        font-size: 22px;
        font-weight: 600;
      }
      h1 {
        margin-bottom: ($baseline/2);
        font-size: 26px;
        font-weight: 600;
      }
      h4 {
        margin: 20px 0;
        font-weight: 600;
        b.success {
          color: #2B8048;
        }
        b.success {
          color: #2B8048;
        }
        b.failure {
          color: #CB4765;
        }
      }
      p {
        color: #797676;
        strong {
          font-weight: 600;
        }
      }
      button.gated-sequence {
        background-color: transparent;
        border-bottom: none;
        box-shadow: none;
        text-align: left;
143
        width: 100%;
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
        &:hover {
          background-color: transparent;
        }
      }
      button.gated-sequence > a {
        color: #147ABA;
      }
      span.proctored-exam-code {
        margin-top: 5px;
        font-size: 1.3em;
      }
      .gated-sequence {
        color: #147ABA;
        font-weight: 600;
        a.start-timed-exam {
          cursor: pointer;
          color: #147ABA;
          font-weight: 600;
          position: relative;
          top: ($baseline/10);
          i.fa-arrow-circle-right {
            font-size: $baseline;
          }
        }
      }
      .proctored-exam-select-code {
        margin-left: 30px;
      }
      background-color: #F2F4F5;
      padding: 30px;
      font-size: 16px;
      box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .1);
      border: 1px solid #ddd;
      &.critical-time {
        border-left: 4px solid #b30101 !important;
        margin: 0 auto;
      }
      &.success {
        border-left: 4px solid #22B557 !important;
        margin: 0 auto;
      }
      &.success-top-bar {
        border-top: 4px solid #22B557 !important;
        margin: 0 auto;
      }
189 190 191 192
      &.success-left-bar {
        border-left: 4px solid #22B557 !important;
        margin: 0 auto;
      }
193 194 195 196
      &.message-top-bar {
        border-top: 4px solid #FAB95C !important;
        margin: 0 auto;
      }
197 198 199 200
      &.message-left-bar {
        border-left: 4px solid #FAB95C !important;
        margin: 0 auto;
      }
201 202 203 204 205
      &.failure {
        border-left: 4px solid #C93B34 !important;
        margin: 0 auto;
      }
    }
206

207 208 209 210 211 212
    div.proctored-exam {
      @extend .timed-exam;
      .proctored-exam-message {
        border-top: ($baseline/10) solid rgb(207, 216, 220);
        padding-top: 25px;
      }
213 214 215 216 217 218
      // specialized padding override just for the entrance page
      &.entrance {
        button.gated-sequence {
          padding: 0 ($baseline*5) 0 ($baseline*2.5);
        }
      }
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
      button {
        background: #126F9A;
        color: $white;
        font-size: 16px;
        padding: 16px 30px;
        margin-bottom: 10px;
        font-weight: 200;
        border: none;
        &:hover {
          background-color: #035E88;
        }
      }
      hr {
        border-bottom: 1px solid rgb(207, 216, 220);
      }
      .gated-sequence {
        border-bottom: 2px solid rgb(207, 216, 220);
Muhammad Shoaib committed
236
        padding: 22px ($baseline*5) 15px 50px;
237 238 239 240 241 242 243
        position: relative;
        span {
          .fa {
            position: absolute;
            font-size: 22px;
            left: 0;
            top: $baseline;
244
            color: rgb(206, 216, 220);
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
          }
        }
        .start-timed-exam {
          margin-bottom:($baseline/2);
          display: block;
        }
        p {
          color: rgb(63, 58, 59);
          strong {
            font-weight: 600;
          }
        }
        > .fa {
          position: absolute;
          right: 35px;
          top: 50%;
          font-size: 30px;
          margin-top: -15px;
263 264 265
          &.fa-arrow-circle-right {
            top: 30%;
          }
266 267 268 269 270 271 272
        }
        &:last-child {
          > .fa {
            color: rgb(206, 216, 220);
          }
          border-bottom: none;
        }
273 274 275 276 277 278
        &:last-child {
          > .practice-exam {
            color: #147ABA;
          }
          border-bottom: none;
        }
279 280
      }
    }
Muhammad Shoaib committed
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
    .proctored-exam-skip-confirm-wrapper {
      border-left: ($baseline/4) solid $red;
      padding: $baseline ($baseline*1.5);;
      background-color: rgb(242, 244, 245);

      .msg-title {
        @extend %t-title5;
        @extend %t-strong;
      }

      .msg-content {
        color: $gray-l1;

        strong {
          @extend %t-strong;
        }
      }

      .proctored-exam-skip-actions {
        @include float(right);
        margin-top: $baseline;
      }

      .btn {
        @extend %t-strong;
        transition: color $tmg-f3 ease-in-out 0s,border-color
        $tmg-f3 ease-in-out 0s,background
        $tmg-f3 ease-in-out 0s,box-shadow
        $tmg-f3 ease-in-out 0s;;

        // Display: inline, side-by-side
        display: inline-block;
        border-style: solid;
        border-radius: 3px;
        border-width: 1px;

        // Display: block, one button per line, full width
        &.block {
            display: block;
            width: 100%;
        }

        // STATE: is disabled
        &:disabled,
        &.is-disabled {
          pointer-events: none;
          outline: none;
          cursor: default;
        }
      }

      .btn-base {
        @extend %t-copy-base;
        padding: $baseline/2 $baseline;
      }
      // ----------------------------
      // #DEFAULT
      // ----------------------------
      .btn-default {
        border-color: rgb(0, 121, 188);
        background: $white-t1;
        color: rgb(0, 121, 188);;

        // STATE: hover and focus
        &:hover,
        &.is-hovered,
        &:focus,
        &.is-focused {
          background: rgb(0, 121, 188);
          color: $white;
          box-shadow: none;
          text-shadow: none;
        }

        // STATE: is pressed or active
        &:active,
        &.is-pressed,
        &.is-active {
          border-color: $m-blue-d5;
          background: $m-blue-d5;
          box-shadow: none;
          text-shadow: none;
        }

        // STATE: is disabled
        &:disabled,
        &.is-disabled {
          border-color: $m-gray-d1;
          background: $white-t1;
          color: $m-gray-d3;
        }
      }
      // ----------------------------
      // #PRIMARY
      // ----------------------------
      .btn-primary {
        border-color: rgb(0, 121, 188);
        background: rgb(0, 121, 188);
        color: $white;
        box-shadow: none;
        text-shadow: none;

        // STATE: hover and focus
        &:hover,
        &.is-hovered,
        &:focus,
        &.is-focused {
          border-color: $m-blue-d5;
          background: $m-blue-d5;
          box-shadow: none;
          text-shadow: none;
        }

        // STATE: is pressed or active
        &:active,
        &.is-pressed,
        &.is-active {
          border-color: rgb(0, 121, 188);
          background: rgb(0, 121, 188);
          box-shadow: none;
          text-shadow: none;
        }

        // STATE: is disabled
        &:disabled,
        &.is-disabled {
          border-color: $m-gray-d1;
          background: $white-t1;
          color: $m-gray-d3;
        }
      }
    }
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467
    .footer-sequence {
      padding: 30px 0px 20px 0px;
      border-bottom: ($baseline/10) solid #CFD9DD;
      hr {
        border-bottom: 1px solid rgb(207, 216, 220);
      }
      .clearfix {
        clear: both;
      }
      h4 {
        margin-bottom: 12px;
        font-size: 22px;
        font-weight: 400;
      }
      span {
        margin-bottom: 10px;
        display: inline-block;
        font-weight: 600;
      }
      p.proctored-exam-option {
        float: left;
        width: 80%;
        margin-bottom: 25px;

      }
      a.contest-review {
        float: right;
        font-size: 12px;
        margin: 0;
        width: 20%;
        text-align: right;
      }
      p {
        margin-bottom: ($baseline/20);
        color: #797676;
      }
      .proctored-exam-instruction{
        padding: ($baseline/2) 0;
        border-bottom: 2px solid rgb(207, 216, 220);
      }
    }
    .border-b-0 {
      border-bottom: none;
    }
    .padding-b-0 {
      padding-bottom: ($baseline/20);
    }
    .faq-proctoring-exam {
      @extend .footer-sequence;
      border-bottom : none;
      a.footer-link {
        display: block;
        padding: 10px 0px 10px 0px;
      }
    }
468 469 470 471
    p {
      margin-bottom: lh();
    }

472 473 474 475 476 477 478 479
    .sequential-status-message {
      margin-bottom: $baseline;
      background-color: $gray-l5;
      padding: ($baseline * 0.75);
      border-radius: 3px;
      @include font-size(13);
    }

480 481
    ul {
      li {
482
        margin-bottom: lh(0.5);
483 484 485 486 487 488 489 490 491 492 493 494
      }
    }

    div#seq_content {
      h1 {
        background: none;
        margin-bottom: lh();
        padding-bottom: 0;
        border-bottom: none;
      }
    }

495
    .vert-mod {
496 497
      padding: 0;
      margin: 0;
498
      line-height: 1.4;
499
      list-style: none;
500

501
      > div {
502 503 504 505 506 507 508 509
        .collapsible {
          header {
            margin-bottom: 0;
            padding-bottom: 0;
            font-size: 16px;
          }
        }

510 511
        header {
          @extend h1.top-header;
512
          border-radius: 0 4px 0 0;
513
          margin-bottom: -16px;
514
          border-bottom: 0;
515 516 517

          h1 {
            margin: 0;
518
            font-size: 1em;
519 520 521 522
          }

          h2 {
            float: right;
523
            margin: 12px 0 0;
524 525 526
            text-align: right;
            padding-right: 0;
            border-right: 0;
527
            font-size: em(14, 24);
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
          }
        }

        &:last-child {
          border-bottom: none;
          margin-bottom: 0;
          padding-bottom: 0;
        }

        .histogram {
          width: 200px;
          height: 150px;
        }

        ul {
          list-style: disc outside none;
          padding-left: 1em;
545

Brittany Cheng committed
546 547 548 549
          &.discussion-errors {
            list-style: none;
            padding-left: 2em;
          }
Brittany Cheng committed
550 551 552 553

          &.admin-actions {
            list-style: none;
          }
554 555
        }

556 557 558 559
        nav.sequence-nav ul li.prev {
          left: 4px;
        }

560 561
        nav.sequence-bottom {
          ul {
562 563
            list-style: none;
            padding: 0;
564 565 566
          }
        }
      }
567 568 569 570 571 572 573 574 575 576 577 578 579

      .vert > .xblock-student_view {
        @extend .clearfix;
        border-bottom: 1px solid #ddd;
        margin-bottom: ($baseline*0.75);
        padding: 0 0 15px;
      }

      .vert > .xblock-student_view.is-hidden {
          display: none;
          border-bottom: 0px;
          margin-bottom: 0px;
      }
580 581
    }

582
    section.xblock-student_view-wrapper div.vert-mod > div {
583 584 585
      border-bottom: none;
    }

586 587 588 589 590 591 592 593
    section.tutorials {
      h2 {
        margin-bottom: lh();
      }

      ul {
        margin: 0;
        @include clearfix();
594
        padding: 0;
595
        list-style: none;
596 597 598 599 600 601

        li {
          width: flex-grid(3, 9);
          float: left;
          margin-right: flex-gutter(9);
          margin-bottom: lh();
602
          line-height: lh();
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618

          &:nth-child(3n) {
            margin-right: 0;
          }

          &:nth-child(3n+1) {
            clear: both;
          }

          a {
            font-weight: bold;
          }
        }
      }
    }

619 620
    div.staff_actions {
      p.error {
621
        color: $error-color
622 623 624
      }
      p.success {
        color: $success-color;
625
      }
626 627
    }

628
    div.staff_info {
629
      display: none;
630 631
      @include clearfix();
      white-space: pre-wrap;
632
      border-top: 1px solid $gray-l3;
633 634 635 636
      padding-top: lh();
      margin-top: lh();
      line-height: lh();
      font-family: Consolas, "Lucida Console", Monaco, "Courier New", Courier, monospace;
637 638 639 640

      // Debugging content is always in English, therefore it's never RTL
      direction: ltr;
      text-align: left;
641 642 643 644
    }

    div.ui-tabs {
      border: 0;
645
      border-radius: 0;
646 647 648 649 650 651
      margin: 0;
      padding: 0;

      .ui-tabs-nav {
        background: none;
        border: 0;
652
        margin-bottom: lh(0.5);
653 654 655
      }

      .ui-tabs-panel {
656
        border-radius: 0;
657 658 659
        padding: 0;
      }
    }
660 661

    @media print {
662
      padding: 4mm 2mm 0;
663
      background: transparent !important;
664
    }
665 666 667
  }

  &.closed {
668
    div.course-index {
669 670 671 672 673
      width: flex-grid(.6);
      overflow: hidden;

      header#open_close_accordion {
        a {
674
          background-image: url('#{$static-path}/images/slide-right-icon.png');
675 676 677
        }
      }

678
      .accordion {
679 680 681 682
        visibility: hidden;
        width: 10px;
        padding: 0;

683 684 685
        nav {
          white-space: pre;
          overflow: hidden;
686 687 688 689 690 691 692 693
        }
      }
    }

    section.course-content {
      width: flex-grid(11.5) + flex-gutter();
    }
  }
694 695 696

  @media print {
    border: 0;
697
    background: transparent !important;
698
  }
699
}
700 701

.xmodule_VideoModule {
702
  margin-bottom: ($baseline*1.5);
703 704 705

}

706
textarea.short-form-response {
707 708 709 710 711
  height: 200px;
  padding: ($baseline/4);
  margin-top: ($baseline/4);
  margin-bottom: ($baseline/4);
  width: 100%;
712
}
713

Victor Shnayder committed
714
section.self-assessment {
715 716 717 718 719 720
  textarea.hint {
    height: 100px;
    padding: ($baseline/4);
    margin-top: ($baseline/4);
    margin-bottom: ($baseline/4);
  }
721

722 723 724 725
  div {
    margin-top: ($baseline/4);
    margin-bottom: ($baseline/4);
  }
Victor Shnayder committed
726

727 728 729 730
  .error {
    font-size: 14px;
    font-weight: bold;
  }
731
}
Victor Shnayder committed
732 733

section.foldit {
734 735 736 737 738 739 740 741 742 743 744
  table {
    margin-top: ($baseline/2);
  }
  th {
    text-align: center;
  }
  td {
    padding-left: ($baseline/4);
    padding-right: ($baseline/4);

  }
745
}