From ab035a0ebbf64708b8aba80147f2a5ff327964fe Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Wed, 22 Oct 2014 09:06:28 -0400 Subject: [PATCH] ECOM-531 updating grid column counts in media queries and added some more classes to style against instead of elements --- lms/static/sass/views/_login-register.scss | 56 ++++++++++++++----- .../student_account/access.underscore | 2 +- .../student_account/password_reset.underscore | 4 +- 3 files changed, 44 insertions(+), 18 deletions(-) diff --git a/lms/static/sass/views/_login-register.scss b/lms/static/sass/views/_login-register.scss index b5b3c6e7b1..5640d1fe62 100644 --- a/lms/static/sass/views/_login-register.scss +++ b/lms/static/sass/views/_login-register.scss @@ -7,6 +7,7 @@ .login-register { @include box-sizing(border-box); @include outer-container; + $grid-columns: 4; background: white; width: 100%; @@ -34,7 +35,7 @@ -webkit-text-fill-color: #333; } - header { + .header { @include outer-container; border-bottom: 1px solid $gray-l4; width: 100%; @@ -45,6 +46,7 @@ @include box-sizing(border-box); @include span-columns(4); @include font-size(35); + padding: 0 10px; font-family: $sans-serif; font-weight: $font-semibold; text-align: left; @@ -56,20 +58,20 @@ @include box-sizing(border-box); @include span-columns(4); @include font-size(24); + padding: 0 10px; font-family: $sans-serif; font-weight: $font-regular; } } .form-toggle { - margin: 0 10px; + margin: 0; } .form-type { - padding-top: 25px; - padding-bottom: 25px; @include box-sizing(border-box); @include span-columns(4); + padding: 25px 10px; &:first-of-type { border-bottom: 1px solid $gray-l4; @@ -83,7 +85,7 @@ padding-top: 25px; } - .form-label { + %bold-label { @include font-size(16); font-family: $sans-serif; font-weight: $font-semibold; @@ -91,10 +93,18 @@ text-transform: none; } + .form-label { + @extend %bold-label; + padding: 0 0 0 5px; + } + + .action-label { + @extend %bold-label; + } + .form-field { - width: calc( 100% - 20px ); + width: 100%; margin: 0 0 $baseline 0; - padding-left: 10px; /** FROM _accounts.scss - start **/ label, @@ -122,7 +132,13 @@ .field-link { position: relative; - float: right + float: right; + color: $link-color-d1; + font-weight: $font-regular; + text-decoration: none !important; // needed but nasty + font-family: $sans-serif; + font-size: 0.8em; + padding-top: 7px; } input, @@ -161,7 +177,6 @@ width: 100%; } - .input-inline { display: inline; } @@ -176,27 +191,38 @@ .action-primary { @extend %m-btn-primary; - width: calc( 100% - 20px ); - margin-left: 10px; + width: 100%; text-transform: none; } @include media( $tablet ) { - header h1, - header p, + $grid-columns: 8; + + .headline, + .tagline, .form-type { @include span-columns(6); @include shift(1); } + + .form-toggle { + margin-right: 5px; + } } @include media( $desktop ) { - header h1, - header p, + $grid-columns: 12; + + .headline, + .tagline, .form-type { @include span-columns(6); @include shift(3); } + + .form-toggle { + margin-right: 10px; + } } } diff --git a/lms/templates/student_account/access.underscore b/lms/templates/student_account/access.underscore index 981a1dc5fa..182473077a 100644 --- a/lms/templates/student_account/access.underscore +++ b/lms/templates/student_account/access.underscore @@ -1,4 +1,4 @@ -
+ diff --git a/lms/templates/student_account/password_reset.underscore b/lms/templates/student_account/password_reset.underscore index 62674d8e88..61359b0340 100644 --- a/lms/templates/student_account/password_reset.underscore +++ b/lms/templates/student_account/password_reset.underscore @@ -1,10 +1,10 @@ -
+

Password assistance

+

Please enter your email address below and we will send you instructions for setting a new password.

-

Please enter your email address below and we will send you instructions for setting a new password.