Commit 40170dbf by Frances Botsford

adjust platform web cert print style to look like web rendering; fix signatory layouts

parent 416ab258
...@@ -309,6 +309,7 @@ ...@@ -309,6 +309,7 @@
.signatory-credentials { .signatory-credentials {
.role, .organization { .role, .organization {
white-space: pre-line;
display: block; display: block;
} }
} }
......
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
.signatory-signature { .signatory-signature {
display: block; display: block;
max-width: 100%; max-width: 100%;
height: rem(100); max-height: rem(100);
padding: spacing-vertical(small) spacing-horizontal(small); padding: spacing-vertical(small) spacing-horizontal(small);
} }
} }
......
...@@ -72,12 +72,14 @@ ...@@ -72,12 +72,14 @@
} }
body { body {
margin: spacing-vertical(base) spacing-vertical(mid-small) 0 spacing-vertical(mid-small) !important; height: auto;
margin: spacing-vertical(mid-large) spacing-vertical(mid-small) 0 spacing-vertical(mid-small) !important;
padding: 0; padding: 0;
} }
.wrapper-view { .wrapper-view {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
} }
...@@ -178,8 +180,8 @@ ...@@ -178,8 +180,8 @@
} }
.copy-micro { .copy-micro {
font-size: font-size(x-small); font-size: font-size(xx-small);
line-height: line-height(small); line-height: line-height(x-small);
} }
// accomplishment // accomplishment
...@@ -204,46 +206,57 @@ ...@@ -204,46 +206,57 @@
border: none !important; border: none !important;
} }
.wrapper-statement-and-signatories {
border-bottom: rem(2) solid palette(grayscale-cool, x-light);
}
.accomplishment-statement { .accomplishment-statement {
@extend %print-rendering-section; @extend %print-rendering-section;
@include text-align(left); width: span(8);
margin: 0 auto;
} }
.accomplishment-course,
.accomplishment-recipient,
.accomplishment-summary, .accomplishment-summary,
.accomplishment-statement-detail { .accomplishment-statement-detail {
width: 100% !important; margin-bottom: spacing-vertical(mid-small);
margin-left: 0;
margin-right: 0;
} }
.wrapper-statement-and-signatories { .wrapper-orgs::after {
@include span(8 first); display: none;
} }
.accomplishment-orgs { .accomplishment-orgs {
@include span(4 last); margin-bottom: 0 !important;
margin-bottom: 0;
border-bottom: none !important; border-bottom: none !important;
padding-bottom: 0 !important; padding-bottom: 0 !important;
.wrapper-organization { .wrapper-organization {
@include gallery(2 of 4); height: rem(48);
margin-top: spacing-vertical(mid-small) !important;
margin-bottom: spacing-vertical(mid-small) !important; margin-bottom: spacing-vertical(mid-small) !important;
} }
.organization-logo {
max-width: 100%;
max-height: 80%;
}
} }
.accomplishment-signatories { .accomplishment-signatories {
@extend %print-rendering-section; @extend %print-rendering-section;
@include span(12 last); @include span(12 last);
.signatory { .signatory-credentials {
@include gallery(3); font-size: 8pt;
line-height: 1.3;
} }
.signatory-signature { .signatory-signature {
// height: rem(60) !important; height: spacing-vertical(small);
max-width: 100%;
margin-top: 0;
padding-top: 0 !important;
padding-bottom: 0 !important;
} }
.signatory-name { .signatory-name {
...@@ -264,7 +277,7 @@ ...@@ -264,7 +277,7 @@
} }
} }
.wrapper-accomplishment-metadata { .layout-accomplishment .wrapper-accomplishment-metadata {
margin-bottom: 0; margin-bottom: 0;
} }
......
...@@ -51,7 +51,7 @@ course_mode_class = course_mode if course_mode else '' ...@@ -51,7 +51,7 @@ course_mode_class = course_mode if course_mode else ''
<h4 class="signatory-name hd-5">${signatory['name']}</h4> <h4 class="signatory-name hd-5">${signatory['name']}</h4>
<p class="signatory-credentials copy copy-micro"> <p class="signatory-credentials copy copy-micro">
<span class="role">${signatory['title']|linebreaks}</span> <span class="role">${signatory['title']}</span>
<span class="organization">${signatory['organization']}</span> <span class="organization">${signatory['organization']}</span>
</p> </p>
</div> </div>
...@@ -69,7 +69,7 @@ course_mode_class = course_mode if course_mode else '' ...@@ -69,7 +69,7 @@ course_mode_class = course_mode if course_mode else ''
<ul class="wrapper-orgs list-orgs"> <ul class="wrapper-orgs list-orgs">
<li class="wrapper-organization"> <li class="wrapper-organization">
<div class="organization organization-edX"> <div class="organization organization-edX">
<img class="organization-logo" src="${static.url('/static/certificates/images/logo-edx.png')}" alt="${platform_name}"> <img class="organization-logo" src="${logo_src}" alt="${platform_name}">
</div> </div>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment