Files
edx-platform/lms/static/sass/multicourse/_account.scss

621 lines
11 KiB
SCSS

// plus on button
// border radius on inputs
// Account-Centric (Login/Register)
// =====
// page-level
.view-register, .view-login, .view-passwordreset {
background: $white;
// edx.org - marketing typography
.heading-1, .heading-2, .heading-3, .heading-4, .heading-5, .body-text-emphasized, .body-text, .button-primary, .button-secondary {
display: block;
font-family: $sans-serif;
line-height: lh(1);
}
.heading-2 {
font-size: 25px;
margin: 0 0 $baseline 0;
font-weight: 300;
text-transform: uppercase;
color: $m-blue;
}
.heading-3 {
font-size: 21px;
margin: 0 0 $baseline 0;
font-weight: 300;
color: $m-gray-d2;
}
.heading-4 {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0 !important;
color: $m-blue-s1;
}
.heading-5 {
}
// specific examples - body
.body-text-emphasized {
font-size: 18px;
margin: 0 0 $baseline 0;
font-weight: 300;
color: $m-gray-a1;
font-family: 'Open Sans', sans-serif;
line-height: lh(1.1);
}
.body-text {
font-size: 15px;
margin: 0 0 $baseline 0;
color: $m-gray-a1;
line-height: lh(1);
}
// specific examples - buttons
.button-primary {
@include border-radius(0);
@include linear-gradient($m-blue-s1 5%, $m-blue-d1 95%);
display: inline-block;
padding: $baseline/2 $baseline*2.5;
text-transform: lowercase;
color: $white;
letter-spacing: 0.1rem;
font-weight: 500;
cursor: pointer;
text-align: center;
border: none !important;
text-shadow: none;
letter-spacing: 0;
font-size: 16px;
box-shadow: none !important;
}
.button-secondary {
@include linear-gradient($m-gray 5%, $m-gray-d1 95%);
display: inline-block;
padding: $baseline/2 $baseline*2.5;
text-transform: lowercase;
color: $white;
letter-spacing: 0.1rem;
font-weight: 600;
cursor: pointer;
text-align: center;
border: none !important;
text-shadow: none;
letter-spacing: 0;
font-size: 16px;
box-shadow: 0 !important;
}
// layout
.content-wrapper {
background: $m-gray-l2;
padding-bottom: 0;
}
.container, .introduction {
@include box-sizing(border-box);
@include clearfix;
margin: 0 auto;
width: 960px;
background: $white;
}
.container {
padding: $baseline $baseline ($baseline*2) $baseline;
}
.introduction {
padding: ($baseline*2) $baseline 0 $baseline;
header h1 {
@extend .heading-2;
margin-bottom: $baseline;
padding-bottom: $baseline;
text-align: left;
}
}
}
// shared
.login, .register, .passwordreset, #forgot-password-modal #password-reset {
// reset - horrible, but necessary
p, ol, ul, h1, h2, h3, h4, h5, h6, label, input, textarea {
@extend .body-text;
}
h1, h2, h3, h4, h5, h6 {
letter-spacing: 0;
}
a {
@include transition(color 0.15s ease-in-out, border 0.15s ease-in-out);
&:link, &:visited, &:hover, &:active {
color: $m-blue;
text-decoration: none !important;
font-family: $sans-serif;
}
&:hover, &:active {
border-bottom: 1px dotted $m-blue-l1;
color: $m-blue-l1;
}
}
strong {
font-weight: 600;
}
// basic layout
.content, aside {
@include box-sizing(border-box);
margin: $baseline 0 0 0;
}
.content {
margin-right: ($baseline*2);
width: 600px;
float: left;
}
aside {
width: 280px;
float: left;
p, ol, ul {
font-size: 14px !important;
}
}
// content
.content {
}
// aside
aside {
.cta {
margin: 0 0 ($baseline*2) 0;
&:last-child {
margin-bottom: 0;
}
h3 {
@extend .heading-4;
margin: 0 0 ($baseline/4) 0;
}
}
}
// forms
form {
.instructions {
@extend .body-text-emphasized;
margin-bottom: $baseline;
}
fieldset {
margin: 0;
padding-top: 0;
padding-bottom: $baseline;
}
.list-input {
margin: 0;
padding: 0;
list-style: none;
}
// field groups
.field-group {
@include clearfix();
margin: 0 0 $baseline 0;
.field {
display: block;
float: left;
border-bottom: none;
margin: 0 ($baseline*1.5) 0 0;
padding-bottom: 0;
input, textarea {
width: 100%;
font-weight: 600;
}
}
&:last-child {
margin-bottom: 0;
}
}
// individual fields
.field {
margin: 0 0 $baseline 0;
// elements
label, input, textarea {
@include border-radius(0);
display: block;
height: auto;
font-family: $sans-serif;
font-style: normal;
font-weight: 500;
color: $m-gray-d2;
}
label {
@include transition(color 0.15s ease-in-out);
margin: 0 0 ($baseline/4) 0;
color: tint($black, 20%);
}
.tip {
@include transition(color 0.15s ease-in-out);
display: block;
margin-top: ($baseline/4);
color: tint($m-gray, 50%);
font-size: em(13);
}
input, textarea {
width: 100%;
margin: 0;
padding: ($baseline/2) ($baseline*.75);
&.long {
width: 100%;
}
&.short {
width: 25%;
}
}
textarea.long {
height: ($baseline*5);
}
&:last-child {
margin-bottom: 0;
}
// types - password
// types - select
&.select {
select {
width: 100%;
}
}
// types - checkboxes/radio buttons
&.checkbox {
input[type="checkbox"] {
display: inline-block;
width: auto;
margin-right: ($baseline/4);
}
label {
display: inline-block;
}
}
// states - all
&.disabled, &.submitted {
color: rgba(0,0,0,.25);
label {
cursor: text;
&:after {
margin-left: ($baseline/4);
}
}
textarea, input {
background: $white;
color: rgba(0,0,0,.25);
}
}
// states - focused
&.is-focused {
label {
color: $m-blue-l1;
}
.tip {
color: $m-blue-l1;
}
}
// states - disabled
&.disabled {
label:after {
color: rgba(0,0,0,.35);
content: "(Disabled Currently)";
}
}
&.error {
label {
color: $red;
}
input, textarea {
border-color: tint($red,50%);
}
}
&.required {
label {
font-weight: 600;
a {
font-weight: 600 !important;
}
}
label:after {
margin-left: ($baseline/4);
content: "*";
}
}
}
}
// forms - actions
.form-actions {
@include clearfix();
button[type="submit"] {
@extend .button-primary;
&:disabled, &.is-disabled {
opacity: 0.3;
cursor: default !important;
}
}
.action-primary {
float: left;
width: flex-grid(8,8);
margin-right: flex-gutter(0);
}
.action-secondary {
display: block;
float: right;
width: flex-grid(3,8);
margin: $baseline $baseline 0 0;
font-size: em(14);
text-align: right;
}
&.error {
}
}
// forms - messages/status
.status {
@include box-sizing(border-box);
margin: 0 0 $baseline 0;
border-bottom: 3px solid shade($yellow, 10%);
padding: $baseline $baseline;
background: tint($yellow,20%);
.message-title {
@extend .heading-4;
margin: 0 0 ($baseline/4) 0;
font-size: em(14);
font-weight: 600;
color: $m-gray-d2 !important;
}
.message-copy {
@extend .body-text;
margin: 0 !important;
padding: 0;
list-style: none;
li {
margin: 0 0 ($baseline/4) 0;
}
}
}
.submission-error, .system-error {
@include box-shadow(inset 0 -1px 2px 0 tint($red, 85%));
border-bottom: 3px solid shade($red, 10%);
background: tint($red,95%);
.message-title {
color: shade($red, 10%) !important;
}
.message-copy {
}
}
// misc
.orn-plus {
color: $white;
padding: 0 $baseline/4;
}
#register-form, #login-form, #passwordreset-form {
.status.message {
display: none;
&.is-shown {
display: block;
}
}
}
}
// =====
// login
.view-login {
header.global .nav-courseware .cta-login {
display: none;
}
.introduction {
padding: 0;
header {
height: 120px;
border-bottom: 1px solid $m-gray;
background: transparent url("../images/bg-banner-login.png") 0 0 no-repeat;
}
}
}
// register
.view-register {
.introduction {
padding: 0;
header {
height: 120px;
border-bottom: 1px solid $m-gray;
background: transparent url("../images/bg-banner-register.png") 0 0 no-repeat;
}
}
}
// password reset
.view-passwordreset {
background: $m-gray-l2;
header.global {
h1 {
float: none;
}
}
.introduction {
width: auto;
padding: 0;
header h1 {
margin: 0;
}
}
.content {
margin-top: 0;
}
}
// modal password reset form
#forgot-password-modal {
@include border-radius(2px);
.inner-wrapper {
@include border-radius(2px);
background: $white;
padding-bottom: 0 !important;
}
#password-reset {
padding: $baseline;
header {
margin: 0;
padding: 0;
&:before {
background-image: none;
}
h2 {
@extend .heading-2;
text-align: left;
}
}
.message {
margin: $baseline 0 0 0;
}
fieldset {
margin-bottom: ($baseline/2);
padding: 0;
}
.instructions p {
margin-bottom: ($baseline/4);
}
form {
@include border-radius(0);
@include box-shadow(none);
margin: 0;
border: none;
padding: 0;
.field {
&.text, &.email, &.textarea {
input {
background: #fafafa;
margin-bottom: 0;
}
}
}
.form-actions {
padding: 0 !important;
.action-primary {
float: none;
display: block !important;
width: 100%;
}
}
}
}
.modal-form-error {
@extend .body-text;
@include box-shadow(inset 0 -1px 2px 0 tint($red, 85%));
@include box-sizing(border-box);
margin: $baseline 0 ($baseline/2) 0 !important;
padding: $baseline;
border: none;
border-bottom: 3px solid shade($red, 10%);
background: tint($red,95%);
}
}