From e5cede572aaadc95a5ec893d3ce6c14cbd8310b1 Mon Sep 17 00:00:00 2001 From: Frances Botsford Date: Mon, 26 Aug 2013 18:36:56 -0400 Subject: [PATCH 1/3] fixing up some styling on vcerts --- common/templates/course_modes/choose.html | 14 +- lms/static/sass/base/_mixins.scss | 4 +- lms/static/sass/views/_verification.scss | 171 ++++++++++++++++-- .../verify_student/photo_verification.html | 18 +- .../verify_student/show_requirements.html | 109 +++++------ 5 files changed, 214 insertions(+), 102 deletions(-) diff --git a/common/templates/course_modes/choose.html b/common/templates/course_modes/choose.html index 679a32ae9c..ad46dab2c5 100644 --- a/common/templates/course_modes/choose.html +++ b/common/templates/course_modes/choose.html @@ -54,7 +54,6 @@

Sign up as a verified student and work toward a Certificate of Achievement.

-
Select your contribution for this course: @@ -78,7 +77,7 @@
-

+

Why do I have to pay? What if I don't meet all the requirements?

@@ -87,6 +86,10 @@
Why do I have to pay?
Your payment helps cover the costs of verification. As a non-profit, edX keeps these costs as low as possible, Your payment will also help edX with our mission to provide quality education to anyone.
+
I'd like to pay more than the minimum. Is my contribution tax deductible?
+
Please check with your tax advisor to determine whether your contribution is tax deductible.
+ + % if "honor" in modes:
What if I can't afford it?
If you cannot afford the minimum payment, you can always work towards a free Honor Code Certificate of Achievement for this course. @@ -102,13 +105,10 @@
% endif -
I'd like to pay more than the minimum. Is my contribution tax deductible?
-
Please check with your tax advisor to determine whether your contribution is tax deductible.
- % if "honor" in modes:
What if I don't meet all of the requirements for financial assistance but I still want to work toward a certificate?
If you don't have a webcam, credit or debit card or acceptable ID, you can opt to simply audit this course, or select to work towards a free Honor Code Certificate of Achievement for this course by checking the box below. Then click the Select Certificate button to complete registration. We won't ask you to verify your identity. -

+

% endif @@ -125,7 +125,7 @@

- To register for a Verified Certificate of Achievement option, you will need a webcam, a credit or debit card, and an ID. View requirements + To register for a Verified Certificate of Achievement option, you will need a webcam, a credit or debit card, and an ID. View requirements

% endif diff --git a/lms/static/sass/base/_mixins.scss b/lms/static/sass/base/_mixins.scss index 8ee4559e36..3dd7cb42a2 100644 --- a/lms/static/sass/base/_mixins.scss +++ b/lms/static/sass/base/_mixins.scss @@ -4,13 +4,13 @@ // mixins - font sizing @mixin font-size($sizeValue: 16){ font-size: $sizeValue + px; - font-size: ($sizeValue/10) + rem; + // font-size: ($sizeValue/10) + rem; } // mixins - line height @mixin line-height($fontSize: auto){ line-height: ($fontSize*1.48) + px; - line-height: (($fontSize/10)*1.48) + rem; + // line-height: (($fontSize/10)*1.48) + rem; } // image-replacement hidden text diff --git a/lms/static/sass/views/_verification.scss b/lms/static/sass/views/_verification.scss index fdb2fe36bf..01c37f5892 100644 --- a/lms/static/sass/views/_verification.scss +++ b/lms/static/sass/views/_verification.scss @@ -16,17 +16,19 @@ body.register.verification { input { font-style: normal; font-weight: 400; + margin-right: ($baseline/5); } - label { font-style: normal; font-family: 'Open Sans', sans-serif; font-weight: 400; } + + .faq { - font-size: 12px; + @extend .t-copy-sub2; label { font-size: 12px; @@ -60,17 +62,18 @@ body.register.verification { } .tip { + @extend .t-copy-sub2; @include transition(color 0.15s ease-in-out 0s); display: block; margin-top: ($baseline/4); color: $lighter-base-font-color; - font-size: em(13); } .page-header { .title { - @include font-size(18); + @include font-size(28); + @include line-height(28); margin-bottom: $baseline; border-bottom: 1px solid #ccc; padding-bottom: 20px; @@ -81,9 +84,9 @@ body.register.verification { } .title { - @extend .t-title9; + @extend .t-title5; margin-bottom: ($baseline/2); - font-weight: bold; + font-weight: 300; } @@ -124,10 +127,16 @@ body.register.verification { margin-bottom: 0; padding: 0; - a { + a, input { + background: none; + border: none; + box-shadow: none; color: $very-light-text; display: block; padding: ($baseline*.75) $baseline; + text-transform: none; + text-shadow: none; + letter-spacing: 0; &:hover { text-decoration: none; @@ -159,24 +168,39 @@ body.register.verification { } - .progress, - .steps { + .progress { @include clearfix; + position: relative; margin-bottom: $baseline; + border-bottom: 1px solid #ccc; + padding-bottom: $baseline; ol { margin: 0; padding: 0; } + .progress-step { + @extend .t-copy-sub1; + position: relative; + z-index: 200; display: inline-block; width: 15%; - padding: ($baseline/2) $baseline; + padding: ($baseline/2) 0; text-align: center; - font-size: 12px; color: #ccc; &.current { + color: #000; + + .number { + border: 4px solid #000; + color: #000; + } + } + + + &.done { color: #008801; .number { @@ -186,6 +210,8 @@ body.register.verification { } } + + .number { height: 2em; width: 2em; @@ -193,11 +219,38 @@ body.register.verification { margin: 0 auto ($baseline/2); border: 4px solid #ddd; border-radius: 20px; + background-color: #fff; line-height: 2em; text-align: center; color: #ccc; } + .mini { + height: .5em; + width: .5em; + margin-bottom: 1.5em; + } + + .progress-line, + .progress-line-done { + position: absolute; + top: 26%; + left: 8%; + height: 2px; + width: 100%; + display: inline-block; + background-color: #ddd; + } + + .progress-line-done { + width: 20%; + background-color: #008801; + } + + } + + .support { + margin-top: ($baseline*2); } @@ -219,13 +272,13 @@ body.register.verification { border-top: 2px solid #ddd; p { + @extend .t-copy-base; position: relative; top: -$baseline; width: 40px; margin: 0 auto; padding: 0 $baseline; background-color: #fff; - font-size: 24px; color: #aaa; text-align: center; } @@ -267,7 +320,8 @@ body.register.verification { } .title { - @extend .t-title7; + @extend .t-title4; + font-weight: bold; } .m-btn-primary { @@ -293,7 +347,7 @@ body.register.verification { width: 32%; p { - font-size: 14px; + @extend .t-copy-sub1; } } } @@ -301,16 +355,89 @@ body.register.verification { // requirements page &.requirements { - .req { - width: 30%; + + .section-head .title { + @extend .t-title4; display: inline-block; - margin-right: $baseline; + margin: ($baseline/4) 0; + } + + .reqs { + margin: $baseline; + } + + .req { + width: 27%; + display: inline-block; + margin-right: 1%; + border: 1px solid #ddd; + padding: $baseline 2%; text-align: center; vertical-align: top; + + // for placement only + .placeholder-art { + height: 150px; + width: 150px; + margin: $baseline auto; + background-color: #eee; + + i { + font-size: 24px; + } + } + } .next-step { float: right; + + .tip { + margin-top: $baseline; + } + + } + + hr { + margin: ($baseline*2); + } + + .steps-section { + + .section-head { + margin-bottom: ($baseline); + } + + .step { + width: 60%; + margin-left: 3%; + padding: ($baseline) ($baseline*1.5); + + .step-title { + @extend .t-title5; + font-weight: bold; + } + + .number { + @extend .t-title6; + height: 2em; + width: 2em; + display: inline-block; + margin: 0 ($baseline/2) 0 0; + border: 3px solid #000; + border-radius: 30px; + font-weight: bold; + line-height: 2em; + text-align: center; + color: #000; + } + + .copy { + @extend .t-copy-base; + margin-left: 65px; + } + } + } } @@ -369,9 +496,13 @@ body.register.verification { display: block; background-color: $blue; color: $white; - padding: ($baseline*.25) ($baseline*.5); border: none; + i { + padding: ($baseline*.25) ($baseline*.5); + display: block; + } + &:hover { } @@ -439,6 +570,10 @@ body.register.verification { .next-step { width: 45%; float: right; + + .tip { + margin-top: $baseline; + } } .support { diff --git a/lms/templates/verify_student/photo_verification.html b/lms/templates/verify_student/photo_verification.html index 8346b05917..b78d539c67 100644 --- a/lms/templates/verify_student/photo_verification.html +++ b/lms/templates/verify_student/photo_verification.html @@ -171,19 +171,23 @@

You are registering for ${course_name} (ID Verified)

+
-

Your Progress

+
+

Your Progress

+
+
    -
  1. Current: Step 1 Take Your Photo
  2. -
  3. Step 2 ID Photo
  4. -
  5. Step 3 Review
  6. -
  7. Step 4 Payment
  8. -
  9. Finished Confirmation
  10. +
  11. Intro
  12. +
  13. Current Step: 1 Take Photo
  14. +
  15. 2 Take ID Photo
  16. +
  17. 3 Confirm Submission
  18. +
  19. 4 Make Payment
  20. +
  21. Confirmation
-