Skip to content
Snippets Groups Projects
_dashboard.scss 27.3 KiB
Newer Older
// lms - views - user/student dashboard
// ====================

Matthew Mongeau's avatar
wip
Matthew Mongeau committed
.dashboard {
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

  .profile-sidebar {
    background: transparent;
    @include float(left);
    @include margin-right(flex-gutter());
    width: flex-grid(3);
    background: transparent;
    box-shadow: 0 0 1px $shadow-l1;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

    header.profile {
      border: 1px solid $border-color-2;
      border-radius: ($baseline/4) ($baseline/4) 0 0;
      h1.user-name {
        overflow: hidden;
        margin: 0;
        padding: ($baseline*0.75) ($baseline/2);
        text-wrap: nowrap;
        text-overflow: ellipsis;
        border: 1px solid $border-color-2;
        border-top: none;
        border-radius: 0 0 ($baseline/4) ($baseline/4);
        padding: $baseline;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

          border-bottom: 1px dotted $border-color-2;
          &:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
          }

Matthew Mongeau's avatar
wip
Matthew Mongeau committed

Matthew Mongeau's avatar
wip
Matthew Mongeau committed
            }
          }
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;

            .third-party-auth {
              color: inherit;
              font-weight: inherit;
            .auth-provider {
              width: flex-grid(12);
              display: block;
              margin-top: ($baseline/4);

              .status {
                width: flex-grid(1);
                display: inline-block;
                color: $gray-l2;

                width: flex-grid(9);
                display: inline-block;
              }

              .control {
                width: flex-grid(2);
                display: inline-block;
                text-align: right;

                a:link, a:visited {
                  @extend %t-copy-sub2;
                }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
        }

        li.order-history {
          span a {
            font-size: 13px;
            line-height: 20px;
          }
        }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
      }
        padding: 0 0 0 ($baseline/2);
        margin: ($baseline/4) 0;

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

            display: inline-block;
            vertical-align: top;
            margin: ($baseline/10) ($baseline/4) 0 0;
          }

            color: $alert-color;
          }

          .label {
            @extend %text-sr;
          }

          .course-name {
            @include line-height(12);
            display: inline-block;
            vertical-align: top;
            width: 80%;
            color: inherit;
          }
        }
      }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
    }

    .news-carousel {
      margin: 30px 10px 0;
      border: 1px solid $border-color-2;
      background: $dashboard-profile-color;
      box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);

      * {
        font-family: $sans-serif;
      }

      header {
        height: 50px;
      }

      .page-dots {
        float: right;
        margin: 18px 15px 0 0;

        li {
          float: left;
          margin-left: 6px;
        }
      }

      .page-dot {
        display: block;
        width: 11px;
        height: 11px;
        border-radius: 11px;
        background: $dot-color;
          background: $lighter-base-font-color;
          background: $link-color;
        font-size: 15px;
        line-height: 48px;
        font-weight: 700;
        text-transform: uppercase;
      }

      .pages {
        position: relative;
      }

      .page {
        display: none;
        position: absolute;
        top: 0;
        left: 0;

        &:first-child {
          display: block;
        }
      }

      section {
        padding: 0 10px;
      }

      .news-image {
        height: 180px;
          width: 100%;
          border: 1px solid $border-color-1;
        }
      }

      h5 {
        margin-bottom: 8px;

        a {
          font-size: 16px;
          font-weight: 700;
        }
      }

      .excerpt {
        font-size: 13px;
        padding-bottom: 40px;
      }
    }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
  }

    width: flex-grid(9);
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

      border-bottom: 1px solid $border-color-2;
      text-align: center;

      p {
        color: $lighter-base-font-color;
        font-style: italic;
        text-shadow: 0 1px rgba(255,255,255, 0.6);
        @include background-image($button-bg-image);
        background-color: $button-bg-color;
        border: 1px solid $border-color-2;
        @include box-sizing(border-box);
        color: $base-font-color;
        font-family: $sans-serif;
        display: inline-block;
        padding: 5px 10px;
        text-shadow: 0 1px rgba(255,255,255, 0.6);

          color: $link-color;
          text-decoration: none;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
        }
      }
    }

      .course-item {
        margin-bottom: ($baseline*2.5);
        border-bottom: 4px solid $border-color-l4;
        padding-bottom: ($baseline*2.5);
        &:last-child {
          margin-bottom: 0;
          border-bottom: none;
          padding-bottom: 0;
        }
    // UI: individual course item
    .course {
      @include box-sizing(box);
      @include transition(all 0.15s linear 0s);
      @include clearfix();
        @include transition(all 0.15s linear 0s);
        overflow: hidden;
        position: relative;
        border-radius: ($baseline/10);
        border: 1px solid $dashboard-course-cover-border;
        border-bottom: 4px solid $dashboard-course-cover-border;
        padding: ($baseline/10);
        @include padding(0, 10px, 0, 230px);
            color: $lighter-base-font-color;
            font-family: $sans-serif;
            font-size: 16px;
            font-weight: 400;
            margin: 0 0 6px;
            text-transform: none;
            letter-spacing: 0;
          .date-block {
            position: absolute;
            top: 0;
            font-family: $sans-serif;
            font-size: 13px;
            font-style: italic;
            color: $lighter-base-font-color;
          }
          h3 a, h3 span {
            font-family: $sans-serif;
            font-size: 34px;
            line-height: 42px;
            font-weight: 300;
          border: 1px solid $border-color-2;
          box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
          margin-top: 17px;
          margin-right: flex-gutter();
          width: flex-grid(8);
          float: left;
          @include box-sizing(border-box);
          color: $very-light-text;
          @include button(simple, $button-color);
          @include float(left);
          font: normal 15px/1.6rem $sans-serif;
          letter-spacing: 0;
          padding: 6px 32px 7px;
          text-align: center;
          margin-top: 16px;
            @include button(simple, $button-archive-color);
            font: normal 15px/1.6rem $sans-serif;
            padding: 6px 32px 7px;
      .prerequisites {
        @include clearfix;

        .tip {
          font-family: $sans-serif;
          font-size: 1em;
          color: $lighter-base-font-color;
          margin-top: ($baseline/2);
        }
      }

      // "enrolled as" status
      .sts-enrollment {
        position: absolute;
        top: 105px;
        @include left(0);
        display: inline-block;
        text-align: center;
        width: 200px;

        .label {
          @extend %text-sr;
        }

        .deco-graphic {
          position: absolute;
          top: -5px;
          right: -8px;
        }

        .sts-enrollment-value {
          @extend %ui-depth1;
          @extend %copy-badge;
          font-size: 0.6em;
          line-height: 1.5em;
          font-weight: 600;
          padding: 1px ($baseline/2);
          color: white;
      // CASE: "enrolled as" status - professional ed
      &.professional {

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

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

          // status message
          .sts-enrollment-value {
            background: $professional-color-lvl3;
          }
        }
      }

        }

        // course enrollment status message
        .sts-enrollment {
          .label {

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

        // changes to cover
        .cover {
          border-color: $honorcode-color-lvl2;
          padding: ($baseline/10);
        }

        // status message
        .sts-enrollment-value {
          background: $honorcode-color-lvl1;
        }
      }

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

        // changes to cover
        .cover {
          border-color: $audit-color-lvl2;
          padding: ($baseline/10);
        }

        // status message
        .sts-enrollment-value {
          background: $audit-color-lvl1;
        }
      }
    // ====================

    // UI: message
    .message {
      margin: $baseline 0 ($baseline/2) 0;
      font-family: $sans-serif;
        font-family: $sans-serif;
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .message-title,
      .message-copy .title {
        margin-bottom: ($baseline/4);
      }

      .message-copy,
      .message-copy .copy {
        @extend %t-copy-sub1;
      // CASE: expandable
      &.is-expandable {
        .wrapper-tip {

          .message-title, .message-copy {
            margin-bottom: 0;
          }

          .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 {
          @include transition(opacity $tmg-f2 ease-in-out 0);
          display: none;
          opacity: 0.0;
        }

        // STATE: is expanded
        &.is-expanded {

          .ui-toggle-expansion {
            @include transform(rotate(0));
            @include transform-origin(50% 50%);
          }

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

      .wrapper-tip {
        @include clearfix();

        .message-title {
          float: left;
        }

          @include transition(all $tmg-f2 ease-in-out 0s);
          @include transform-origin(50% 50%);
          @include font-size(21);
          display: inline-block;
          vertical-align: middle;
          margin-right: ($baseline/4);

          @include rtl {
            @include transform(rotate(90deg));
          }

          @include ltr {
            @include transform(rotate(-90deg));
          }
        .message-copy {
          float: right;
        }
      }

      .wrapper-extended {
        padding: ($baseline/2) 0;

        .message-copy {
          margin-bottom: $baseline;
        }
      }
        position: relative;
        left: ($baseline/2);
        padding: 8px $baseline 8px ($baseline*2);

        .deco-graphic {
          position: absolute;
          top: -($baseline/4);
          left: -($baseline*0.75);
          width: ($baseline*2);
        }

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

        .copy, .copy-sub {
          display: inline-block;
          vertical-align: middle;
        }

        .copy {
          @extend %t-action3;
          @extend %t-weight4;
          margin-right: $baseline;
        }

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

    // TYPE: status
    .message-status {
      background: tint($yellow,70%);
        @extend %t-copy-sub1;
        margin: 0;

        .grade-value {
          font-size: 1.2rem;
          font-weight: bold;

          .btn, .cta {
            display: inline-block;
          }

          .btn {
            @include box-sizing(border-box);
            float: left;
            font: normal 0.8rem/1.2rem $sans-serif;
            letter-spacing: 1px;
            padding: 6px 12px;
            text-align: center;

            &.disabled {
              cursor: default !important;

                background: #eee;
                background-image: -webkit-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%);
                background-image: -moz-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%);
                background-image: -ms-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%);
                background-image: -o-linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%);
                background-image: linear-gradient(top, #EEE 0%, #C2C2C2 50%, #ABABAB 50%, #B0B0B0 100%);
              }
            }
          }

          .cta {
            float: left;
            font: normal 0.8rem/1.2rem $sans-serif;
            letter-spacing: 1px;
            padding: 6px 12px;
            text-align: center;
          }
        }
      }

      .exam-registration-number {
        font-family: $sans-serif;
        font-size: 18px;
      .exam-button {
        @include button(simple, $pink);
        margin-top: 0;
        float: right;
        @include button(simple, $pink);
        padding: 9px 18px 10px;
        font-size: 13px;
      &.course-status-processing {

      }

      &.course-status-certnotavailable {
      }

      &.course-status-certrendering {

        .cta {
          margin-top: 2px;
        background-color: $gray-l5;
        border: 0;
        .message-copy {
          width: flex-grid(6, 12);
          position: relative;
          float: left;
        }
        .actions {
          width: flex-grid(6, 12);
          position: relative;
          @include float(right);

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

            &:last-child {
              margin-bottom: 0;
            }

            .btn {
              float: none;
            }
          }

          .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;

            a:link, a:visited {
              color: #fff;
            }
          }

          .action-share .btn {
            display: inline;
            letter-spacing: 0;

      .verification-reminder {
        width: flex-grid(8, 12);
        position: relative;
        float: left;
      }

      .verification-cta {
        width: flex-grid(4, 12);
        position: relative;
        float: left;

        .cta {
          @include button(simple, $green-d1);
          @include box-sizing(border-box);
          @include float(right);
          border-radius: 3px;
          display: block;
          font: normal 15px/1.6rem $sans-serif;
          letter-spacing: 0;
          padding: 6px 32px 7px;
          text-align: center;
        }
      }
      font-style: italic;
      color: $lighter-base-font-color;
      text-decoration: underline;
      font-size: .8em;

    a.email-settings {
      @extend a.unenroll;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
  }