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

Matthew Mongeau's avatar
wip
Matthew Mongeau committed
.dashboard {
  @include clearfix;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

  .dashboard-banner {
    background: $yellow;
    border: 1px solid rgb(200,200,200);
    box-shadow: 0 1px 0 0 rgba(255,255,255, 0.6);
    padding: 10px;
    margin-bottom: 30px;

    &:empty {
      display: none;
      background-color: #FFF;
    }

    h2 {
      margin-bottom: 0;
    }

    p {
      margin-bottom: 0;
    }
  }

  .profile-sidebar {
    background: transparent;
    margin-right: flex-gutter();
    width: flex-grid(3);
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

    header.profile {
      @include background-image($dashboard-profile-header-image);
      background-color: $dashboard-profile-header-color;
      border: 1px solid $border-color-2;
      @include box-sizing(border-box);
      width: flex-grid(12);

      h1.user-name {
        color: $base-font-color;
        font: 700 1.2em/1.2em $sans-serif;
        margin: 0px;
        overflow: hidden;
        padding: 15px 10px 17px;
        text-wrap: nowrap;
        text-overflow: ellipsis;
        text-transform: none;
      }
        background: $dashboard-profile-color;
        border: 1px solid $border-color-2;
        border-top: none;
        //@include border-bottom-radius(4px);
        @include box-sizing(border-box);
        box-shadow: inset 0 0 3px 0 rgba(0,0,0, 0.15);
        @include clearfix;
        margin: 0px;
        padding: 20px 10px 10px;
        width: flex-grid(12);
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

          @include clearfix;
          border-bottom: 1px dotted $border-color-2;
          margin-bottom: 15px;
          padding-bottom: 17px;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed

          span.title {
            color: $lighter-base-font-color;
            font-family: $sans-serif;
            .icon {
              background-size: cover;
              float: left;
              height: 19px;
              @include transition(all 0.15s linear 0s);
              width: 19px;

              &.email-icon {
                @include background-image(url('../images/portal-icons/email-icon.png'));
              &.name-icon {
                @include background-image(url('../images/portal-icons/course-info-icon.png'));
              }
              &.location-icon {
                @include background-image(url('../images/portal-icons/home-icon.png'));
              &.language-icon {
                @include background-image(url('../images/portal-icons/language-icon.png'));
              }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
            }
          }

          span.data {
            color: $lighter-base-font-color;
            font-weight: 700;
            margin-left: 26px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
        }
      }
    }

    .news-carousel {
      @include clearfix;
      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 {
        @include clearfix;
        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;
        }
      }

      h4 {
        float: left;
        margin-left: 15px;
        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;
        margin-bottom: 15px;

        img {
          width: 100%;
          border: 1px solid $border-color-1;
        }
      }

      h5 {
        margin-bottom: 8px;
        margin-left: 5px;

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

      .excerpt {
        margin-left: 5px;
        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;
        box-shadow: 0 1px 8px 0 rgba(0,0,0, 0.1);
        @include box-sizing(border-box);
        color: $base-font-color;
        font-family: $sans-serif;
        @include inline-block;
        letter-spacing: 1px;
        margin-left: 5px;
        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);
        @include clearfix;
        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;
            right: 0;
            font-family: $sans-serif;
            font-size: 13px;
            font-style: italic;
            color: $lighter-base-font-color;
          }
          h3 a, h3 span {
            display: block;
            margin-bottom: 10px;
            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);
        .course-status-completed {
          background: #ccc;
          color: $very-light-text;
          @include button(simple, $button-color);
          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;
        position: relative;

        .cover {
          border-radius: ($baseline/10);
          border: 1px solid $verified-color-lvl3;
          border-bottom: 4px solid $verified-color-lvl3;
          padding: ($baseline/10);
        }

        // course enrollment status message
        .sts-enrollment {
          display: inline-block;
          position: absolute;
          top: 105px;
          left: 55px;
          bottom: ($baseline/2);
            width: 40px;
            position: absolute;
            left: -30px;
            top: -10px;
          }

          .sts-enrollment-value {
            border-radius: 0;
            padding: ($baseline/4) ($baseline/2) ($baseline/4) $baseline;
            background: $verified-color-lvl3;
      font-family: $sans-serif;
        font-family: $sans-serif;
        font-size: 13px;

          .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;
        .message-copy {
          margin-top: 5px;
      .exam-button {
        @include button(simple, $pink);
        margin-top: 0;
        float: right;
        @include button(simple, $pink);
        padding: 9px 18px 10px;
        font-size: 13px;
      &.is-shown {
        display: block;
      }

      &.course-status-processing {

      }

      &.course-status-certnotavailable {
        // background: #fee8d6;
      }

      &.course-status-certrendering {
        // background: #d9e7db;

        .cta {
          margin-top: 2px;

      &.course-status-certavailable {
        // background: #d9e7db;
      }
    a.unenroll {
      float: right;
      font-style: italic;
      color: $lighter-base-font-color;
      text-decoration: underline;
      font-size: .8em;

    a.email-settings {
      @extend a.unenroll;
      margin-right: 10px;
    }
Matthew Mongeau's avatar
wip
Matthew Mongeau committed
  }
}