_dashboard.scss 30.1 KB
Newer Older
1 2 3
// lms - views - user/student dashboard
// ====================

4
// Table of Contents
5 6
// * +Dashboard - Sidebar
// * +Dashboard - Course Listing
7 8
// * +Dashboard - Course Item
// * +Misc - Uncategorized
9 10 11 12
// * +Dashboard - Banner


// +Dashboard - Sidebar
13
// ====================
Matthew Mongeau committed
14
.dashboard {
15
  @include clearfix();
16
  padding: ($baseline*2) 0 $baseline 0;
Matthew Mongeau committed
17

18 19 20 21 22
  .wrapper-find-courses {
    @include float(right);
    @include margin-left(flex-gutter());
    width: flex-grid(3);

23 24 25 26 27 28 29 30 31 32 33 34
    .course-advertise {
      @include clearfix();
      box-sizing: border-box;
      padding: $baseline;
      border: 1px solid $border-color-l3;
      .advertise-message {
        @include font-size(12);
        color: $gray-d4;
        margin-bottom: $baseline;
      }
      .ad-link {
        @include text-align(center);
35
        .btn-neutral {
36 37 38 39 40
          padding-bottom: 12px;
          padding-top: 12px;
        }
        a {
          @include font-size(16);
41
          @include line-height(17);
42 43 44 45 46 47 48 49 50 51 52 53 54 55
          padding: $baseline * 0.5;
          border: 1px solid $blue;
          color: $blue;
          text-decoration: none;
          display: block;
          &:hover,
          &:focus,
          &:active {
            color: $white;
            background-color: $blue;
          }
          span {
            @include margin-left($baseline*0.25);
          }
56 57 58
          .icon {
            @include margin-right($baseline*0.25);
          }
59 60
        }
      }
61 62 63
    }
  }

64
  .profile-sidebar {
65
    background: transparent;
66
    @include float(right);
67
    @include margin-left(flex-gutter());
68
    width: flex-grid(3);
69
    margin-top: ($baseline*2);
70 71

    .user-info {
72
      @include clearfix();
73

74 75
      > ul {
        @include box-sizing(border-box);
76 77
        @include clearfix();
        margin: 0;
78
        padding: 0;
79
        width: flex-grid(12);
Matthew Mongeau committed
80

81
        li {
82
          @include clearfix();
83
          border-bottom: 1px dotted $border-color-2;
84
          list-style: none;
85
          margin-bottom: ($baseline*0.75);
86
          padding-bottom: 17px;
87

88
          &:hover, &:focus {
89
            .title .icon {
90
              opacity: 1.0;
91 92
            }
          }
Matthew Mongeau committed
93

94 95
          span {
            display: block;
96
            margin-bottom: ($baseline/4);
97 98
          }

99
          span.title {
100
            @extend %t-title6;
101
            @extend %t-strong;
102

103 104
            a {
              text-transform: none;
Matthew Mongeau committed
105 106
            }
          }
107

108 109 110 111
          span.copy {
            @extend %t-copy-sub1;
          }

112
          span.data {
113 114
            color: $base-font-color;
            font-weight: 600;
115 116 117
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
118 119 120 121

            .third-party-auth {
              color: inherit;
              font-weight: inherit;
122
            }
123

124
          }
Matthew Mongeau committed
125
        }
126 127 128 129 130 131 132

        li.order-history {
          span a {
            font-size: 13px;
            line-height: 20px;
          }
        }
133 134 135 136 137 138 139 140 141 142 143

        .heads-up {
          .title {
            display: inline;
          }

          .copy {
            @extend %t-copy-sub2;
            display: inline;
          }
        }
Matthew Mongeau committed
144
      }
145 146

      .reverify-status-list {
147 148
        padding: 0 0 0 ($baseline/2);
        margin: ($baseline/4) 0;
149 150 151 152 153 154 155

        .status-item {
          @extend %t-copy-sub2;
          margin-bottom: 7px;
          border-bottom: 0;
          padding: 0;

156
          .icon {
157 158 159 160 161
            display: inline-block;
            vertical-align: top;
            margin: ($baseline/10) ($baseline/4) 0 0;
          }

162
          &.is-open .icon {
163 164 165
            color: $action-primary-bg;
          }

166
          &.is-pending .icon {
167 168 169
            color: $warning-color;
          }

170
          &.is-approved .icon {
171 172 173
            color: $success-color;
          }

174
          &.is-denied .icon {
175 176 177 178 179 180 181 182
            color: $alert-color;
          }

          .label {
            @extend %text-sr;
          }

          .course-name {
183
            @include line-height(12);
184 185 186 187 188 189 190
            display: inline-block;
            vertical-align: top;
            width: 80%;
            color: inherit;
          }
        }
      }
191

192 193
      // status
      .status {
194

195 196 197 198 199
        @include clearfix();
        box-sizing: border-box;
        padding: $baseline;
        border: 1px solid $border-color-l3;

200 201 202
        .list--nav {
          margin: ($baseline/2) 0 0 0;
          padding: 0;
203 204
        }

205 206 207 208
        .nav__item {
          @extend %t-weight4;
          @include font-size(13);
          margin-left: 26px;
209 210 211
        }
      }
    }
Matthew Mongeau committed
212
  }
213
}
Matthew Mongeau committed
214

tasawernawaz committed
215
// CASE: empty dashboard
216
    .empty-dashboard-message {
tasawernawaz committed
217 218
      border: 3px solid $gray-l4;
      background: $gray-l6;
219
      padding: ($baseline*2) 0;
220 221 222
      text-align: center;

      p {
tasawernawaz committed
223
        @include font-size(24);
224
        color: $lighter-base-font-color;
225
        margin-bottom: $baseline;
226
        text-shadow: 0 1px rgba(255,255,255, 0.6);
227
      }
228

229
      a {
tasawernawaz committed
230 231
        background-color: $blue;
        border: 1px solid $blue;
232
        box-shadow: 0 1px 8px 0 $shadow-l1;
233
        @include box-sizing(border-box);
tasawernawaz committed
234
        color: $white;
235
        font-family: $sans-serif;
236
        display: inline-block;
237
        letter-spacing: 1px;
tasawernawaz committed
238 239 240
        margin-top: ($baseline/4);
        margin-left: ($baseline/4);
        padding: 15px 20px;
241

242
        &:hover, &:focus {
tasawernawaz committed
243
          background: $blue-l2;
244
          text-decoration: none;
Matthew Mongeau committed
245 246 247
        }
      }
    }
248

tasawernawaz committed
249 250 251 252 253 254 255
// +Dashboard - Course Listing
// ====================
.dashboard {

  .my-courses {
    @include float(left);
    margin: 0;
256
    margin-bottom: $baseline * 2;
tasawernawaz committed
257 258 259 260 261 262 263 264 265 266 267 268
    width: flex-grid(9);


    .wrapper-header-courses {
      border-bottom: 4px solid $border-color-l4;
      margin-bottom: $baseline;

      .header-courses {
        @extend %t-title5;
        @include padding-right($baseline/2);
      }
    }
269

270 271
    // UI: course list
    .listing-courses {
272
      @extend %ui-no-list;
273 274

      .course-item {
275 276
        margin-bottom: $baseline;
        padding-bottom: $baseline;
277

278
        .course-container {
279
          border: 2px solid $border-color-l4;
280 281
          border-radius: 3px;
        }
282

283 284 285 286 287
        &:last-child {
          margin-bottom: 0;
          border-bottom: none;
          padding-bottom: 0;
        }
288
      }
289
    }
290 291
  }
}
292

293
// +Dashboard - Course
294
// ====================
295 296
.dashboard .my-courses {

297 298 299 300
  &:focus {
    outline: none;
  }

301 302 303 304 305 306 307 308 309
  // UI: individual course item
  .course {
    @include box-sizing(box);
    @include transition(all 0.15s linear 0s);
    @include clearfix();
    @extend %ui-depth2;
    margin: ($baseline/2);

    .details {
310
      @include clearfix();
311

312 313 314 315
      .wrapper-course-image {
        @include float(left);
        @include margin-right(flex-gutter());
        width: flex-grid(3);
316

317 318 319 320 321 322
        .cover {
          @include box-sizing(border-box);
          @include transition(all 0.15s linear 0s);
          @include float(left);
          overflow: hidden;
          position: relative;
323 324
          max-height: 120px;
          border-radius: ($baseline/5);
325 326 327
          border: 1px solid $dashboard-course-cover-border;
          border-bottom: 4px solid $dashboard-course-cover-border;

328
          .course-image {
329
            width: 100%;
330
          }
331 332
        }

333 334
        // "enrolled as" status
        .sts-enrollment {
335
          @include float(left);
336 337 338 339 340
          width: 100%;
          position: relative;
          bottom: 15px;
          display: inline-block;
          text-align: center;
341

342 343 344
          .label {
            @extend %text-sr;
          }
345

346 347 348 349 350
          .deco-graphic {
            position: absolute;
            top: -5px;
            @include right(0);
          }
351

352 353 354 355 356 357 358 359 360
          .sts-enrollment-value {
            @extend %ui-depth1;
            @extend %copy-badge;
            @extend %t-demi-strong;
            font-size: 0.6em;
            line-height: 1.5em;
            border-radius: 0;
            padding: 1px ($baseline/4);
            color: white;
361 362
          }
        }
363
      }
364

365 366 367 368 369 370
      .wrapper-course-details {
        display: block;
        @include float(left);
        width: flex-grid(9);
        padding: 0;
      }
371

372
      .course-title {
373

374 375 376 377 378 379 380 381
        a, span {
          @extend %t-title3;
          @extend %t-light;
          display: inline-block;
          margin-bottom: ($baseline/2);

          &:hover, &:focus {
            text-decoration: none;
382 383
          }
        }
384 385 386 387 388 389 390 391 392 393 394 395 396 397
      }

      .course-info {
        display: block;
        @include float(left);
        width: flex-grid(4);
        padding: 0;
        margin-top: ($baseline/2);

        [class*="info-"] {
          color: $gray-d1;
          @extend %t-title6;
          display: inline-block;
        }
398

399 400
        .info-date-block {
          @extend %t-title7;
401
          color: $gray; // WCAG 2.0 AA compliant
402 403
          display: block;
        }
404
      }
405

406 407 408 409 410 411 412
      .wrapper-course-actions {
        display: block;
        @include float(right);
        width: flex-grid(8);
        padding: 0;
        margin-top: ($baseline/2);
      }
413

414
      .course-actions {
415

416 417 418 419 420 421 422 423 424 425
        // UI: course item actions
        .action {
          @include box-sizing(border-box);
          @include margin-right($baseline/2);
          @include float(right);
          min-width: ($baseline*2);
          color: $gray-l1;
          border-radius: 3px;
          padding: 12px;
          border: 1px solid $white;
426 427
          text-align: center;

428 429 430 431
          &:hover, &:focus {
            color: $gray-d3;
            border: 1px solid $gray-l4;
          }
432

433 434 435 436
          // STATE: is-disabled
          &.is-disabled {
            color: $gray-l4;
          }
437

438
          // TYPE: facebook share
439
          &.action-facebook {
440
            color: $facebook-blue;
441 442
          }

443 444 445 446 447
          // TYPE: twitter share
          &.action-twitter {
            color: $twitter-blue;
          }
        }
448

449 450 451 452 453
        // UI: general actions dropdown layout
        .wrapper-action-more {
          display: inline-block;
          position: relative;
          @include float(right);
454

455 456 457 458 459 460 461 462 463 464
          .action-more {
            @include font-size(14);
            box-shadow: none;
            background: $white;
            background-image: none;
            color: $gray;
            line-height: 16px;
            text-shadow: none;
          }

465 466 467 468 469 470
          .actions-dropdown {
            @extend %ui-no-list;
            @extend %ui-depth1;
            display: none;
            position: absolute;
            top: ($baseline*2);
471
            @include right(19px);
472 473
            pointer-events: none;
            min-width: ($baseline*7);
474

475 476 477 478
            &.is-visible {
              display: block;
              pointer-events: auto;
            }
479

480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
            .actions-dropdown-list {
              @extend %ui-no-list;
              @include box-sizing(border-box);
              display: table;
              box-shadow: 0 1px 1px $shadow-l1;
              position: relative;
              width: 100%;
              border-radius: 3px;
              margin: ($baseline/4) 0 0 0;
              border: 1px solid $gray-l3;
              padding: ($baseline/4) ($baseline/2);
              background: $white;

              // ui triangle/nub
              &:after,
              &:before {
                bottom: 100%;
497
                @include right(6px);
498 499 500 501 502 503
                border: solid transparent;
                content: " ";
                height: 0;
                width: 0;
                position: absolute;
                pointer-events: none;
504 505
              }

506 507 508 509 510 511
              &:after {
                border-color: $transparent;
                border-bottom-color: $white;
                border-width: 6px;
                @include margin-right(1px);
              }
512

513 514 515 516 517 518
              &:before {
                border-color: $transparent;
                border-bottom-color: $gray-l3;
                border-width: 7px;
              }
            }
519

520 521 522 523
            .actions-item {
              @extend %t-title7;
              display: block;
              margin: 0;
524

525 526 527 528 529 530 531 532 533 534
              &.is-hidden {
                display: none;
              }

              .action {
                @include margin-right(0);

                &:hover, &:focus {
                  border: 1px solid transparent;
                 }
535 536 537 538
              }
            }
          }
        }
539
      }
540

541 542 543 544 545
      .course-status {
        background: $yellow;
        border: 1px solid $border-color-2;
        box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
        margin-top: 17px;
546
        @include margin-right(flex-gutter());
547 548 549 550
        padding: ($baseline/4);
        width: flex-grid(8);
        @include float(left);
        @include box-sizing(border-box);
551

552 553 554 555 556
        p {
          color: $lighter-base-font-color;
          font-style: italic;
          letter-spacing: 1px;
          text-align: center;
557
        }
558
      }
559

560 561 562
      .course-status-completed {
        background: $gray-l3;
        color: $very-light-text;
563

564 565
        p {
          color: $gray-d4;
566

567 568
          span {
            font-weight: bold;
569 570
          }
        }
571
      }
572

573
      .enter-course {
574
        @extend %btn-pl-white-base;
575
        @include float(right);
576

577
        &.archived {
578
          @extend %btn-pl-default-base;
579
        }
580
      }
581
    }
582

583
    // ====================
584

585 586 587
    // UI: messages
    .wrapper-messages-primary {
      @include clearfix();
588

589 590 591 592
      .messages-list {
        margin: 0;
        padding: 0;
      }
593

594 595 596 597 598
      .message {
        @extend %ui-depth1;
        border-radius: 3px;
        display: none;
        margin: $baseline 0 ($baseline/2) 0;
599
        padding: ($baseline/2) $baseline;
600
        border-top: 1px solid $gray-l4;
601
        color: $base-font-color; // Overrides the normal white color in this one case
602

603 604
        // STATE: shown
        &.is-shown {
605
          @include clearfix();
606
          display: block;
607 608
        }

609 610
        a {
          font-family: $sans-serif;
611 612
        }

613 614
        strong {
          font-weight: 700;
615

616 617 618 619
          a {
            font-weight: 700;
          }
        }
620

621 622 623 624 625
        .actions {
          @include clearfix();
          list-style: none;
          margin: 0;
          padding: 0;
626 627
        }

628 629 630 631 632 633 634
        .message-title,
        .message-copy .title {
          @extend %t-title6;
          @extend %t-weight4;
          line-height: 1em;
          margin-bottom: ($baseline/4);
        }
635

636 637 638 639
        .message-copy,
        .message-copy .copy {
          @extend %t-copy-sub1;
          margin: 2px 0 0 0;
640 641
        }

642 643
        // CASE: expandable
        &.is-expandable {
644

645
          .wrapper-tip {
646

647 648
            .message-title, .message-copy {
              margin-bottom: 0;
649
              display: inline-block;
650 651 652 653 654 655 656 657 658 659 660 661 662 663
            }

            .message-title .value, .message-copy {
              @include transition(color $tmg-f2 ease-in-out 0s);
            }

            // STATE: hover
            &:hover {
              cursor: pointer;

              .message-title .value, .message-copy, .ui-toggle-expansion {
                color: $link-color;
              }
            }
664 665
          }

666 667 668 669
          .wrapper-extended {
            @include transition(opacity $tmg-f2 ease-in-out 0);
            display: none;
            opacity: 0.0;
670
          }
671
        }
672

673 674
        // STATE: is expanded
        &.is-expanded {
675

676 677 678
          .ui-toggle-expansion {
            @include rtl {
              @include transform(rotate(-90deg));
679 680
            }

681 682
            @include ltr {
              @include transform(rotate(90deg));
683
            }
684 685 686 687 688 689
            @include transform-origin(50% 50%);
          }

          .wrapper-extended {
            display: block;
            opacity: 1.0;
690 691
          }
        }
692

693
        // TYPE: upsell
694
        &.message-upsell {
695

696 697
          .wrapper-tip {
            @include clearfix();
698

699
            .message-title {
700
              @include float(left);
701
            }
702

703 704
            .ui-toggle-expansion {
              @include transition(all $tmg-f2 ease-in-out 0s);
705
              @include font-size(18);
706 707
              display: inline-block;
              vertical-align: middle;
708
              @include margin-right($baseline/4);
709
            }
710

711
            .message-copy {
712
              @include float(right);
713 714
            }
          }
715

716
          .wrapper-extended {
717
            padding: ($baseline/4) 0;
718

719
            .message-copy {
720 721 722 723 724 725
              width: flex-grid(9, 12);
              display: inline-block;

              .message-copy-bold{
                font-weight: 600;
              }
726 727
            }
          }
728

729 730 731 732 733
          .action-upgrade-container{
            @include float(right);
            display: inline-block;
            margin-top: ($baseline/2);
          }
734 735 736 737
          .action-upgrade {
            @extend %btn-primary-green;
            @include clearfix();
            position: relative;
738 739
            @include left($baseline/2);
            @include padding(($baseline * 0.4), 0, ($baseline * 0.4), ($baseline * 0.75));
740 741 742 743

            .action-upgrade-icon{
              @include float(left);
              display: inline;
744

745 746 747 748 749 750 751 752 753
              @include margin-right($baseline*0.4);
              margin-top: ($baseline/4);
              background: url('#{$static-path}/images/icon-sm-verified.png') no-repeat;
              background-position: -($baseline*0.3);
              background-color: white;

              width: ($baseline*0.8);
              height: ($baseline*0.7);
            }
754 755 756
            .deco-graphic {
              position: absolute;
              top: -($baseline/4);
757
              @include left(-($baseline*0.75));
758 759
              width: ($baseline*2);
            }
760

761 762 763
            span {
              color: $white; // nasty but needed override for poor <span> styling
            }
764

765 766 767 768 769 770 771 772
            .copy, .copy-sub {
              display: inline-block;
              vertical-align: middle;
            }

            .copy {
              @extend %t-action3;
              @extend %t-weight4;
773
              @include margin-right($baseline);
774 775 776 777 778 779 780
            }

            .copy-sub {
              @extend %t-action4;
              opacity: 0.875;
            }
          }
781 782
        }

783
        // TYPE: status
784
        &.message-status {
785 786 787 788 789
          border-color: $gray-l4;

          .wrapper-message-primary {
            @include clearfix();
          }
790

791 792 793 794
          .message-copy {
            @extend %t-copy-sub1;
            margin: 0;
          }
795

796 797 798 799
          .credit-action {
            .credit-btn {
              @extend %btn-pl-yellow-base;
              @include float(right);
800
              @include margin-right(5px);
801 802 803 804 805
              background-image: none ;
              text-shadow: none;
              box-shadow: none;
              text-transform: none;
            }
806
          }
807

808
          .actions {
809

810
            .action {
811
              @include float(left);
812
              @include margin(0, 15px, 0, 0);
813

814
              .btn {
815 816 817 818 819
                display: inline-block;
              }

              .btn {
                @include box-sizing(border-box);
820
                @include float(left);
821 822 823 824 825 826 827 828 829 830
                border-radius: 3px;
                font: normal 0.8rem/1.2rem $sans-serif;
                letter-spacing: 1px;
                padding: 6px 12px;
                text-align: center;

                &.disabled {
                  cursor: default !important;

                  &:hover, &:focus {
831
                    @include background-image(linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100% ));
832 833 834 835
                    background: #eee;
                  }
                }
              }
836

837
              .btn {
838
                @include float(left);
839 840 841 842 843 844
                font: normal 0.8rem/1.2rem $sans-serif;
                letter-spacing: 1px;
                padding: 6px 12px;
                text-align: center;
              }
            }
845 846
          }

847 848 849
          .exam-registration-number {
            font-family: $sans-serif;
            font-size: 18px;
850

851 852
            a {
              font-family: $sans-serif;
853 854 855
            }
          }

856
          &.exam-register {
857

858 859 860 861
            .message-copy {
              margin-top: ($baseline/4);
              width: 55%;
            }
862 863
          }

864 865 866 867
          &.exam-schedule {
            .exam-button {
              margin-top: ($baseline/4);
            }
868 869
          }

870 871
          .exam-button {
            @include button(simple, $pink);
872
            @include float(right);
873 874
            margin-top: 0;
          }
875

876 877 878
          .contact-button {
            @include button(simple, $pink);
          }
879

880 881 882 883 884 885 886
          .button {
            display: inline-block;
            margin-top: ($baseline/2);
            padding: 9px 18px 10px;
            font-size: 13px;
            font-weight: bold;
            letter-spacing: 0;
887

888 889 890
            &:hover, &:focus {
              text-decoration: none;
            }
891 892
          }

893

894
          &.course-status-certrendering {
895

896
            .btn {
897 898 899
              margin-top: 2px;
            }
          }
900

901
          &.course-status-certavailable {
902

903 904 905 906 907
            .message-copy {
              width: flex-grid(6, 12);
              position: relative;
              @include float(left);
            }
908

909 910
            .actions-primary {
              @include float(right);
911

912 913 914 915
              .action {
                @include margin(0, 0, ($baseline/2), ($baseline*.75));
                float: none;
                text-align: center;
916

917 918 919
                &:last-child {
                  margin-bottom: 0;
                }
920

921 922 923 924
                .btn {
                  float: none;
                }
              }
925

926 927 928 929 930 931 932 933
              .action-certificate .btn {
                @extend %btn-inherited-primary;
                @include box-sizing(border-box);
                float: none;
                border-radius: 3px;
                display: block;
                @include padding(7px, ($baseline*.75), 7px, ($baseline*.75));
                text-align: center;
934

935 936 937 938
                a:link, a:visited {
                  color: #fff;
                }
              }
939

940 941 942 943 944 945
              .action-share .btn {
                display: inline;
                letter-spacing: 0;
              }
            }
          }
946

947 948 949 950
          .actions-secondary {
            margin-top: ($baseline/2);
            border-top: 1px solid $gray-l4;
            padding-top: ($baseline/2);
951

952 953 954 955 956
            .action-share {
              @include float(right);
              margin: 0;
            }
          }
957

958 959 960 961 962
          .certificate-explanation {
            @extend %t-copy-sub1;
            margin-top: ($baseline/2);
            border-top: 1px solid $gray-l4;
            padding-top: ($baseline/2);
963 964
          }

965 966
          .verification-reminder {
            width: flex-grid(8, 12);
967
            @include float(left);
968
            position: relative;
969 970
          }

971 972
          .verification-cta {
            width: flex-grid(4, 12);
973
            @include float(left);
974 975
            position: relative;

976
            .btn {
977
              @extend %btn-pl-green-base;
978 979
              @include float(right);
            }
980 981 982
          }
        }

983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022
        &.message-related-programs {
          background: none;
          border: none;
          margin-top: ($baseline/4);
          padding-bottom: 0;

          .related-programs-preface {
            @include float(left);
            font-weight: bold;
          }

          ul {
            display: inline;
            padding: 0;
            margin: 0;
          }

          li {
            @include float(left);
            display: inline;
            padding: 0 0.5em;
            border-right: 1px solid;

            .category-icon {
              @include float(left);
              @include margin-right($baseline/4);
              margin-top: ($baseline/10);
              background-color: transparent;
              background-size: 100%;
              width: ($baseline*0.7);
              height: ($baseline*0.7);
            }
          }

          // Remove separator from last list item.
          li:last-child {
            border: 0;
          }
        }

1023
        // TYPE: pre-requisites
1024 1025
        .prerequisites {
          @include clearfix;
1026

1027 1028 1029 1030 1031 1032
          .tip {
            font-family: $sans-serif;
            font-size: 1em;
            color: $lighter-base-font-color;
            margin-top: ($baseline/2);
          }
1033
        }
1034
      }
1035
    }
1036

1037
    // ====================
1038

1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049
    // CASE: "enrolled as" status - professional ed
    &.professional {

      // changes to cover
      .wrapper-course-image .cover {
        border-color: $professional-color-lvl3;
        padding: ($baseline/10);
      }

      // course enrollment status message
      .sts-enrollment {
1050 1051
        .label {
          @extend %text-sr;
1052 1053
        }

1054
        // status message
1055
        .sts-enrollment-value {
1056
          background: $professional-color-lvl3;
1057
        }
1058
      }
1059
    }
1060

1061 1062
    // CASE: "enrolled as" status - verified
    &.verified {
1063

1064 1065 1066 1067
      // changes to cover
      .wrapper-course-image .cover {
        border-color: $verified-color-lvl1;
        padding: ($baseline/10);
1068
      }
1069

1070 1071 1072 1073
      // course enrollment status message
      .sts-enrollment {
        .label {
          @extend %text-sr;
1074
        }
1075

1076 1077 1078 1079 1080 1081 1082
        .deco-graphic {
          @extend %ui-depth3;
          width: 40px;
          position: absolute;
          top: -5px;
          @include right(0);
        }
1083

1084 1085 1086
        // status message
        .sts-enrollment-value {
          background: $verified-color-lvl1;
1087
        }
1088
      }
1089
    }
1090

1091 1092
    // CASE: "enrolled as" status - honor code
    &.honor {
1093

1094 1095 1096 1097 1098
      // changes to cover
      .wrapper-course-image .cover {
        border-color: $honorcode-color-lvl2;
        padding: ($baseline/10);
      }
1099

1100 1101 1102
      // status message
      .sts-enrollment-value {
        background: $honorcode-color-lvl1;
1103
      }
1104
    }
1105

1106 1107
    // CASE: "enrolled as" status - auditing
    &.audit {
1108

1109 1110 1111 1112 1113
      // changes to cover
      .wrapper-course-image .cover {
        border-color: $audit-color-lvl2;
        padding: ($baseline/10);
      }
1114

1115 1116 1117
      // status message
      .sts-enrollment-value {
        background: $audit-color-lvl1;
1118 1119
      }
    }
Matthew Mongeau committed
1120
  }
1121
}
1122

1123
// +Misc - Uncategorized
1124
// ====================
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134
// status - language
.status-language {

  .icon {
    @include font-size(17);
    display: inline-block;
    vertical-align: middle;
    margin-right: ($baseline/4);
    color: $black;
  }
1135

1136 1137 1138 1139
  .title .icon {
    opacity: 0.75; // needed to overcome bad specificity elsewhere
  }
}
1140

1141 1142
// status - verification
.status-verification {
1143

1144
  .status-title {
1145
    margin: 0 0 ($baseline/4) 0;
1146 1147
  }

1148
  .status-data {
1149
    margin: 0 0 ($baseline/2) 0;
1150
  }
1151

1152 1153 1154 1155 1156
  .status-data-message {
    @extend %t-copy-sub1;
    @extend %t-weight4;
    margin-bottom: ($baseline/2);
  }
1157

1158 1159
  .list-actions {
    @extend %ui-no-list;
1160

1161
    .action {
1162
      @extend %t-weight4;
1163 1164
      display: block;
      @include font-size(14);
1165
    }
1166
  }
1167

1168 1169 1170 1171
  .status-note {
    @extend %t-copy-sub2;
    position: relative;
    p {
1172 1173 1174
      @extend %t-copy-sub2;
    }

1175 1176 1177
    .deco-arrow {
      @include triangle(($baseline/2), $m-gray-d3, up);
      position: absolute;
1178
      @include left(45%);
1179
      top: -6px;
1180 1181
    }
  }
1182

1183 1184
  // CASE: is denied
  &.is-denied {
1185
    border-top: 3px solid $red !important;
1186

1187 1188 1189 1190
    .status-data-message {
      color: $error-color;
      border-bottom-color: rgba($error-color, 0.25);
    }
1191

1192 1193 1194 1195 1196 1197
    .action-reverify {
      @extend %btn-primary-error;
      @extend %t-weight4;
      display: block;
      @include font-size(14);
    }
1198

1199 1200 1201 1202
    .btn-reverify {
      margin-top: ($baseline/2);
    }

1203 1204 1205 1206
    .deco-arrow {
      @include triangle(($baseline/2), $error-color, up);
    }
  }
1207

1208 1209
  // CASE: is accepted
  &.is-accepted {
1210
    border-top: 3px solid $green !important;
1211

1212 1213 1214
    .status-data-message {
      color: $verified-color-lvl1;
      border-bottom-color: $verified-color-lvl4;
1215 1216
    }

1217 1218
    .deco-arrow {
      @include triangle(($baseline/2), $verified-color-lvl4, up);
1219 1220 1221
    }
  }

1222 1223
  // CASE: is pending
  &.is-pending {
1224

1225 1226 1227
    .status-data-message {
      color: $m-gray-d3;
      border-bottom-color: $m-gray-l4;
1228 1229
    }
  }
1230 1231 1232 1233
}

// status - verification
.status--verification {
1234

1235 1236 1237 1238
  .data {
    white-space: normal !important;
    text-overflow: no !important;
    overflow: visible !important;
1239 1240
  }

1241
  .list--nav {
1242
    @include margin-left(26px);
1243 1244
  }

1245 1246
  // STATE: is denied
  &.is-denied {
1247

1248 1249
    .data {
      color: $error-color !important;
1250 1251
    }
  }
1252 1253 1254 1255
}

// message
.msg {
1256
  @include margin(($baseline/2), 0, ($baseline/2), 26px);
1257
}
1258

1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269
.msg__title {
  @extend %hd-lv5;
  color: $lighter-base-font-color;
}

.msg__copy {
  @extend %copy-metadata;
  color: $lighter-base-font-color;

  p {
    @extend %t-copy;
1270
  }
1271 1272 1273 1274 1275 1276 1277
}
 p.course-block{
  border-style: solid;
  border-color: #E3DC86;
  padding: ($baseline/4);
  border-width: 1px;
  background: #FDFBE4;
1278

1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297
}
.enter-course-blocked{

  @include box-sizing(border-box);
  @include float(left);
  display: block;
  font: normal 15px/1.6rem $sans-serif;
  letter-spacing: 0;
  padding: 6px 32px 7px;
  text-align: center;
  margin-top: 16px;
  opacity:0.5;
  background:#808080;
  border:0;
  color:white;
  box-shadow:none;

  &.archived {
    @include button(simple, $button-archive-color);
1298 1299
    font: normal 15px/1.6rem $sans-serif;
    padding: 6px 32px 7px;
1300 1301 1302

    &:hover, &:focus {
      text-decoration: none;
1303
    }
1304
  }
1305
}
1306

1307 1308 1309
a.disable-look{
  color: #808080;
}
1310

1311 1312 1313
a.fade-cover{
  @extend .cover;
  opacity: 0.5;
1314
}
1315

1316

1317
// +Dashboard - Banner
1318
// ====================
1319
.dashboard-banner {
1320

1321 1322 1323
  &:empty {
    display: none;
  }
1324

1325 1326
  .wrapper-msg {
    padding-bottom: 0;
1327

1328 1329 1330 1331 1332
    .msg {
      @include clearfix();
      font-family: $sans-serif;
      padding-bottom: $baseline;
      border-bottom: thin solid $gray;
1333

1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344
      &.title {
        @extend %t-title5;
        @extend %t-weight4;
        font-family: $f-sans-serif;

        // Overriding Platform h2 styles
        text-transform: none;
        letter-spacing: 0;
      }

      &.has-actions {
1345

1346 1347
        .donate-content {
          width: flex-grid(8, 12);
1348 1349
        }

1350 1351 1352 1353
        .donate-actions {
          width: flex-grid(4, 12);
          vertical-align: bottom;
          display: inline-block;
1354

1355 1356 1357 1358
          .monetary-symbol {
            vertical-align: middle;
            color: $white;
            font-weight: 600;
1359 1360
          }

1361 1362 1363 1364 1365 1366
          .amount {
            height: 40px;
            width: 80px;
            vertical-align: middle;
            text-align: left;
            border: 2px solid $white;
1367

1368 1369
            &.validation-error {
              border: 2px solid $error-color;
1370
            }
1371
          }
1372

1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383
          .action-donate {
            @extend %btn-primary-blue;
            vertical-align: middle;
            padding-top: ($baseline/2);
            padding-bottom: ($baseline/2);
            text-shadow: none;
            text-transform: none;
            letter-spacing: 0;
            color: $white;
            font-weight: 600;
          }
1384

1385 1386
          .donation-error-msg {
            padding: ($baseline/2) 0;
1387 1388 1389
          }
        }
      }
1390 1391 1392
    }
  }
}
1393