Newer
Older
Brian Talbot
committed
// lms - views - user/student dashboard
// ====================
padding: 60px 0 0 0;
.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;
float: left;
margin-right: flex-gutter();
width: flex-grid(3);
@include background-image($dashboard-profile-header-image);
background-color: $dashboard-profile-header-color;
border: 1px solid $border-color-2;
border-radius: 4px;
Galen Frechette
committed
@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;
}
Galen Frechette
committed
}
.user-info {
@include clearfix;
padding: 0px 10px;
Galen Frechette
committed
> ul {
background: $dashboard-profile-color;
border: 1px solid $border-color-2;
Galen Frechette
committed
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);
Galen Frechette
committed
margin: 0px;
padding: 20px 10px 10px;
width: flex-grid(12);
Galen Frechette
committed
li {
border-bottom: 1px dotted $border-color-2;
Galen Frechette
committed
list-style: none;
margin-bottom: 15px;
padding-bottom: 17px;
Galen Frechette
committed
Giulio Gratta
committed
&:hover, &:focus {
Galen Frechette
committed
.title .icon {
opacity: 1.0;
Galen Frechette
committed
}
}
span {
display: block;
}
Galen Frechette
committed
span.title {
color: $lighter-base-font-color;
font-family: $sans-serif;
font-size: 13px;
Galen Frechette
committed
Galen Frechette
committed
.icon {
background-size: cover;
float: left;
height: 19px;
margin: 0 6px 0 0;
Galen Frechette
committed
opacity: 0.6;
@include transition(all 0.15s linear 0s);
Galen Frechette
committed
width: 19px;
&.email-icon {
@include background-image(url('../images/portal-icons/email-icon.png'));
Galen Frechette
committed
}
Bridger Maxwell
committed
&.name-icon {
@include background-image(url('../images/portal-icons/course-info-icon.png'));
}
Galen Frechette
committed
&.location-icon {
@include background-image(url('../images/portal-icons/home-icon.png'));
Galen Frechette
committed
}
Galen Frechette
committed
&.language-icon {
@include background-image(url('../images/portal-icons/language-icon.png'));
}
Galen Frechette
committed
span.data {
color: $lighter-base-font-color;
font-weight: 700;
margin-left: 26px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
Galen Frechette
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;
Giulio Gratta
committed
&:hover, &:focus {
background: $lighter-base-font-color;
background: $link-color;
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
}
}
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 {
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;
}
}
// ====================
Brian Talbot
committed
// course listings
Galen Frechette
committed
.my-courses {
Galen Frechette
committed
> header {
border-bottom: 1px solid $border-color-2;
margin-bottom: 30px;
Galen Frechette
committed
}
.empty-dashboard-message {
padding: 60px 0px;
text-align: center;
p {
color: $lighter-base-font-color;
font-style: italic;
Galen Frechette
committed
margin-bottom: 20px;
text-shadow: 0 1px rgba(255,255,255, 0.6);
Galen Frechette
committed
}
Galen Frechette
committed
a {
background: rgb(240,240,240);
@include background-image($button-bg-image);
background-color: $button-bg-color;
border: 1px solid $border-color-2;
border-radius: 4px;
box-shadow: 0 1px 8px 0 rgba(0,0,0, 0.1);
Galen Frechette
committed
@include box-sizing(border-box);
color: $base-font-color;
font-family: $sans-serif;
Galen Frechette
committed
@include inline-block;
letter-spacing: 1px;
margin-left: 5px;
padding: 5px 10px;
text-shadow: 0 1px rgba(255,255,255, 0.6);
Giulio Gratta
committed
&:hover, &:focus {
text-decoration: none;
// ====================
Brian Talbot
committed
// UI: course list
.listing-courses {
Brian Talbot
committed
@extend %ui-no-list;
Brian Talbot
committed
.course-item {
margin-bottom: ($baseline*2.5);
border-bottom: 4px solid $border-color-l4;
padding-bottom: ($baseline*2.5);
Galen Frechette
committed
Brian Talbot
committed
&:last-child {
margin-bottom: 0;
border-bottom: none;
padding-bottom: 0;
}
Galen Frechette
committed
}
Brian Talbot
committed
}
// ====================
Brian Talbot
committed
// UI: individual course item
.course {
@include box-sizing(box);
@include transition(all 0.15s linear 0s);
@include clearfix();
Brian Talbot
committed
@extend %ui-depth2;
Brian Talbot
committed
position: relative;
Galen Frechette
committed
Galen Frechette
committed
@include box-sizing(border-box);
Galen Frechette
committed
float: left;
Galen Frechette
committed
height: 100%;
max-height: 100%;
Galen Frechette
committed
margin: 0px;
Galen Frechette
committed
overflow: hidden;
Galen Frechette
committed
position: relative;
@include transition(all 0.15s linear 0s);
height: 120px;
Galen Frechette
committed
Galen Frechette
committed
}
}
.info {
@include clearfix;
padding: 0 10px 0 230px;
Galen Frechette
committed
> hgroup {
Galen Frechette
committed
width: 100%;
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;
Galen Frechette
committed
}
.date-block {
position: absolute;
top: 0;
right: 0;
font-family: $sans-serif;
font-size: 13px;
font-style: italic;
color: $lighter-base-font-color;
}
Galen Frechette
committed
display: block;
margin-bottom: 10px;
font-family: $sans-serif;
font-size: 34px;
line-height: 42px;
font-weight: 300;
Galen Frechette
committed
Giulio Gratta
committed
&:hover, &:focus {
text-decoration: none;
Galen Frechette
committed
}
}
Galen Frechette
committed
.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;
margin-right: flex-gutter();
Galen Frechette
committed
padding: 5px;
width: flex-grid(8);
float: left;
@include box-sizing(border-box);
Galen Frechette
committed
p {
color: $lighter-base-font-color;
Galen Frechette
committed
letter-spacing: 1px;
text-align: center;
}
}
Brian Talbot
committed
.course-status-completed {
background: #ccc;
color: $very-light-text;
Brian Talbot
committed
p {
color: #222;
Brian Talbot
committed
span {
font-weight: bold;
}
}
}
.enter-course {
@include button(simple, $button-color);
@include box-sizing(border-box);
border-radius: 3px;
display: block;
float: left;
font: normal 15px/1.6rem $sans-serif;
letter-spacing: 0;
padding: 6px 32px 7px;
text-align: center;
margin-top: 16px;
Galen Frechette
committed
@include button(simple, $button-archive-color);
font: normal 15px/1.6rem $sans-serif;
padding: 6px 32px 7px;
Galen Frechette
committed
Giulio Gratta
committed
&:hover, &:focus {
text-decoration: none;
}
Brian Talbot
committed
Giulio Gratta
committed
&:hover, &:focus {
text-decoration: none;
Brian Talbot
committed
}
}
}
Brian Talbot
committed
// ====================
Brian Talbot
committed
// STATE: course mode - verified
&.verified {
Brian Talbot
committed
@extend %ui-depth2;
position: relative;
.cover {
border-radius: ($baseline/10);
border: 1px solid $verified-color-lvl3;
border-bottom: 4px solid $verified-color-lvl3;
padding: ($baseline/10);
Brian Talbot
committed
}
// course enrollment status message
.sts-enrollment {
display: inline-block;
position: absolute;
top: 105px;
left: 55px;
bottom: ($baseline/2);
Brian Talbot
committed
text-align: center;
.label {
Brian Talbot
committed
@extend %text-sr;
Brian Talbot
committed
}
.deco-graphic {
Brian Talbot
committed
@extend %ui-depth3;
Brian Talbot
committed
width: 40px;
position: absolute;
left: -30px;
top: -10px;
}
.sts-enrollment-value {
Brian Talbot
committed
@extend %ui-depth1;
@extend %copy-badge;
Brian Talbot
committed
border-radius: 0;
padding: ($baseline/4) ($baseline/2) ($baseline/4) $baseline;
background: $verified-color-lvl3;
color: $white;
Brian Talbot
committed
}
}
}
Brian Talbot
committed
}
// ====================
// UI: message
.message {
@include clearfix;
border-radius: 3px;
Brian Talbot
committed
display: none;
z-index: 10;
margin: $baseline 0 ($baseline/2) 0;
padding: ($baseline*0.75) $baseline;
font-family: $sans-serif;
Brian Talbot
committed
background: tint($yellow,70%);
Brian Talbot
committed
border: 1px solid #ccc;
// STATE: shown
&.is-shown {
display: block;
}
a {
font-family: $sans-serif;
}
strong {
font-weight: 700;
Brian Talbot
committed
Brian Talbot
committed
a {
font-weight: 700;
Brian Talbot
committed
}
}
Brian Talbot
committed
.message-title,
.message-copy .title {
@extend %t-title5;
@extend %t-weight4;
margin-bottom: ($baseline/4);
}
.message-copy,
.message-copy .copy {
@extend %t-copy-sub1;
margin: 0;
}
// CASE: has actions
&.has-actions {
@include clearfix();
.message-copy {
float: left;
width: 50%;
margin-right: 5%;
Brian Talbot
committed
}
Brian Talbot
committed
.message-actions {
@extend %ui-no-list;
float: right;
width: 40%;
text-align: right;
}
}
}
// TYPE: upsell
.message-upsell {
background: $verified-color-lvl5;
.action-upgrade {
@extend %btn-primary-green;
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
@include clearfix();
span {
color: $white; // nasty but needed override for poor <span> styling
}
.copy {
@extend %t-action3;
@extend %t-weight4;
display: block;
margin-bottom: ($baseline/4);
}
.copy-sub {
@extend %t-action4;
display: block;
opacity: 0.875;
}
}
}
// TYPE: status
.message-status {
background: tint($yellow,70%);
border-color: #ccc;
.message-copy {
font-family: $sans-serif;
font-size: 13px;
margin: 0;
.grade-value {
font-size: 1.2rem;
font-weight: bold;
Brian Talbot
committed
}
Brian Talbot
committed
}
.actions {
@include clearfix;
list-style: none;
Brian Talbot
committed
padding: 0;
.action {
float: left;
margin: 0 15px 0 0;
Brian Talbot
committed
.btn, .cta {
display: inline-block;
}
.btn {
@include box-sizing(border-box);
border-radius: 3px;
Brian Talbot
committed
float: left;
font: normal 0.8rem/1.2rem $sans-serif;
letter-spacing: 1px;
padding: 6px 12px;
text-align: center;
&.disabled {
cursor: default !important;
Giulio Gratta
committed
&:hover, &:focus {
Brian Talbot
committed
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;
Brian Talbot
committed
a {
font-family: $sans-serif;
}
}
&.exam-register {
Brian Talbot
committed
.message-copy {
margin-top: 5px;
Brian Talbot
committed
width: 55%;
}
}
&.exam-schedule {
.exam-button {
margin-top: 5px;
}
}
Brian Talbot
committed
.exam-button {
@include button(simple, $pink);
margin-top: 0;
float: right;
Brian Talbot
committed
}
Brian Talbot
committed
.contact-button {
@include button(simple, $pink);
Brian Talbot
committed
}
.button {
Brian Talbot
committed
display: inline-block;
margin-top: 10px;
padding: 9px 18px 10px;
font-size: 13px;
Brian Talbot
committed
font-weight: bold;
letter-spacing: 0;
Giulio Gratta
committed
&:hover, &:focus {
text-decoration: none;
}
}
Brian Talbot
committed
&.course-status-processing {
}
&.course-status-certnotavailable {
// background: #fee8d6;
}
&.course-status-certrendering {
// background: #d9e7db;
.cta {
margin-top: 2px;
Galen Frechette
committed
}
Brian Talbot
committed
&.course-status-certavailable {
// background: #d9e7db;
}
display: block;
color: $lighter-base-font-color;
text-decoration: underline;
font-size: .8em;
margin-top: 32px;
Giulio Gratta
committed
&:hover, &:focus {
a.email-settings {
@extend a.unenroll;
margin-right: 10px;
}