Newer
Older
Brian Talbot
committed
// lms - views - user/student dashboard
// ====================
marco
committed
padding: ($baseline*2) 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;
}
}
float: left;
margin-right: flex-gutter();
width: flex-grid(3);
marco
committed
background: transparent;
box-shadow: 0 0 1px $shadow-l1;
Galen Frechette
committed
@include box-sizing(border-box);
marco
committed
border: 1px solid $border-color-2;
border-radius: ($baseline/4) ($baseline/4) 0 0;
Galen Frechette
committed
width: flex-grid(12);
marco
committed
background: $dashboard-profile-color;
Galen Frechette
committed
h1.user-name {
overflow: hidden;
marco
committed
margin: 0px;
padding: ($baseline*.75) ($baseline/2);
color: $base-font-color;
text-transform: none;
text-wrap: nowrap;
text-overflow: ellipsis;
marco
committed
font: 700 1.2em/1.2em $sans-serif;
Galen Frechette
committed
}
.user-info {
@include clearfix;
Galen Frechette
committed
> ul {
@include box-sizing(border-box);
Galen Frechette
committed
margin: 0px;
marco
committed
border: 1px solid $border-color-2;
border-top: none;
border-radius: 0 0 ($baseline/4) ($baseline/4);
padding: $baseline;
Galen Frechette
committed
width: flex-grid(12);
marco
committed
background: $white;
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
&:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
Giulio Gratta
committed
&:hover, &:focus {
Galen Frechette
committed
.title .icon {
opacity: 1.0;
Galen Frechette
committed
}
}
span {
display: block;
}
Galen Frechette
committed
span.title {
marco
committed
color: $gray;
Galen Frechette
committed
font-family: $sans-serif;
font-size: 13px;
marco
committed
text-transform: uppercase;
Galen Frechette
committed
marco
committed
a {
text-transform: none;
Galen Frechette
committed
span.data {
marco
committed
color: $base-font-color;
font-weight: 600;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
.third-party-auth {
color: inherit;
font-weight: inherit;
.control {
float: right;
}
.icon {
margin-top: 4px;
}
.provider {
display: inline;
}
}
Galen Frechette
committed
}
.reverify-status-list {
padding: 0 0 0 ($baseline/2);
margin: ($baseline/4) 0;
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
.status-item {
@extend %t-copy-sub2;
margin-bottom: 7px;
border-bottom: 0;
padding: 0;
[class^="icon-"] {
display: inline-block;
vertical-align: top;
margin: ($baseline/10) ($baseline/4) 0 0;
}
&.is-open [class^="icon-"] {
color: $action-primary-bg;
}
&.is-pending [class^="icon-"] {
color: $warning-color;
}
&.is-approved [class^="icon-"] {
color: $success-color;
}
&.is-denied [class^="icon-"] {
color: $alert-color;
}
.label {
@extend %text-sr;
}
.course-name {
display: inline-block;
vertical-align: top;
width: 80%;
color: inherit;
}
}
}
.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;
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
}
}
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;
display: inline-block;
Galen Frechette
committed
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);
Brian Talbot
committed
@include transition(all 0.15s linear 0s);
overflow: hidden;
position: relative;
Galen Frechette
committed
float: left;
Galen Frechette
committed
height: 100%;
max-height: 100%;
height: 120px;
Brian Talbot
committed
margin: 0px;
border-radius: ($baseline/10);
border: 1px solid $dashboard-course-cover-border;
border-bottom: 4px solid $dashboard-course-cover-border;
padding: ($baseline/10);
Galen Frechette
committed
min-height: 100%;
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
// "enrolled as" status
.sts-enrollment {
position: absolute;
top: 105px;
left: 0;
display: inline-block;
text-align: center;
width: 200px;
.label {
@extend %text-sr;
}
.sts-enrollment-value {
@extend %ui-depth1;
@extend %copy-badge;
border-radius: 0;
padding: ($baseline/4) ($baseline/2) ($baseline/4) ($baseline/2);
}
}
// ====================
Brian Talbot
committed
// CASE: "enrolled as" status - verified
Brian Talbot
committed
&.verified {
Brian Talbot
committed
// changes to cover
.cover {
Brian Talbot
committed
border-color: $verified-color-lvl3;
padding: ($baseline/10);
Brian Talbot
committed
}
// course enrollment status message
.sts-enrollment {
position: absolute;
left: 55px;
Brian Talbot
committed
width: auto;
Brian Talbot
committed
.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;
}
Brian Talbot
committed
// status message
Brian Talbot
committed
.sts-enrollment-value {
padding: ($baseline/4) ($baseline/2) ($baseline/4) $baseline;
background: $verified-color-lvl3;
Brian Talbot
committed
color: tint($verified-color-lvl1, 85%);
Brian Talbot
committed
}
}
}
Brian Talbot
committed
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
// 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;
color: tint($honorcode-color-lvl1, 85%);
}
}
// 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;
color: shade($audit-color-lvl1, 33%);
}
}
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
.actions {
@include clearfix;
list-style: none;
margin: 0;
padding: 0;
}
.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: 2px 0 0 0;
}
// CASE: expandable
&.is-expandable {
.wrapper-tip {
.message-title, .message-copy {
margin-bottom: 0;
}
.message-title .value, .message-copy {
@include transition(color 0.25s ease-in-out 0s);
}
// STATE: hover
&:hover {
cursor: pointer;
.message-title .value, .message-copy, .ui-toggle-expansion {
color: $link-color;
}
}
Brian Talbot
committed
}
Brian Talbot
committed
.wrapper-extended {
@include transition(opacity 0.25s 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;
}
}
}
}
// TYPE: upsell
.message-upsell {
.wrapper-tip {
@include clearfix();
.message-title {
float: left;
}
.ui-toggle-expansion {
@include transition(all 0.25s ease-in-out 0s);
@include transform(rotate(-90deg));
@include transform-origin(50% 50%);
@include font-size(21);
display: inline-block;
vertical-align: middle;
margin-right: ($baseline/4);
}
.message-copy {
float: right;
}
}
.wrapper-extended {
padding: ($baseline/2) 0;
.message-copy {
margin-bottom: $baseline;
}
}
.action-upgrade {
@extend %btn-primary-green;
@include clearfix();
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%);
border-color: #ccc;
.message-copy {
@extend %t-copy-sub1;
margin: 0;
.grade-value {
font-size: 1.2rem;
font-weight: bold;
Brian Talbot
committed
}
Brian Talbot
committed
}
.actions {
.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 {
}
&.course-status-certrendering {
.cta {
margin-top: 2px;
Galen Frechette
committed
}
Brian Talbot
committed
&.course-status-certavailable {
.action-certificate {
.btn {
@extend %btn-inherited-primary;
}
}
Brian Talbot
committed
}
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;
}
// account-related
.user-info {
// status
.status {
.list--nav {
margin: ($baseline/2) 0 0 0;
padding: 0;
}
.nav__item {
@extend %t-weight4;
@include font-size(13);
margin-left: 26px;
}
}
}
// status - language
.status-language {
.icon {
@include font-size(17);
display: inline-block;
vertical-align: middle;
margin-right: ($baseline/4);
color: $black;
.title .icon {
opacity: 0.75; // needed to overcome bad specificity elsewhere
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// status - verification
.status-verification {
.status-title {
margin: 0 0 ($baseline/4) 26px;
}
.status-data {
margin: 0 0 ($baseline/2) 26px;
width: 80%;
}
.status-data-message {
@extend %t-copy-sub1;
@extend %t-weight4;
margin-bottom: ($baseline/2);
}
.list-actions {
@extend %ui-no-list;
.action {
@extend %t-weight4;
display: block;
@include font-size(14);
}
}
.status-note {
@extend %t-copy-sub2;
position: relative;
margin-top: $baseline;
border-top: 1px solid $black-t0;
padding-top: ($baseline/2);
p {
@extend %t-copy-sub2;
}
.deco-arrow {
@include triangle(($baseline/2), $m-gray-d3, up);
position: absolute;
left: 45%;
top: -($baseline/2);
}
}
// CASE: is denied
&.is-denied {
.status-data-message {
color: $error-color;
border-bottom-color: rgba($error-color, 0.25);
}
.status-note {
color: desaturate($error-color, 65%);
border-top-color: rgba($error-color, 0.25);
}
.action-reverify {
@extend %btn-primary-error;
@extend %t-weight4;
display: block;
@include font-size(14);
}
.deco-arrow {
@include triangle(($baseline/2), $error-color, up);
}
}
// CASE: is accepted
&.is-accepted {
.status-data-message {
color: $verified-color-lvl1;
border-bottom-color: $verified-color-lvl4;
}
.status-note {
color: $m-gray-l1;
border-top-color: $verified-color-lvl4;
}