Style Generate Pdf
- Change some style - Fixing the bug to the svg that was not rendered - Change some rem to cm - The Lato font does not render well while Open Sans is correct. Strong and normal weight.
This commit is contained in:
committed by
taitus
parent
667039b127
commit
981e718a48
@@ -542,20 +542,18 @@
|
|||||||
// 11. Poster PDF
|
// 11. Poster PDF
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
@page { margin: 0; }
|
|
||||||
|
|
||||||
.dashboard-poster-pdf {
|
.dashboard-poster-pdf {
|
||||||
.poster-header {
|
|
||||||
background: $brand;
|
|
||||||
color: #fff;
|
|
||||||
padding: $line-height * 2 $line-height $line-height * 2;
|
|
||||||
//padding: rem-calc(320) rem-calc(160) rem-calc(160);
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
|
.poster-header {
|
||||||
|
background: #0300ff;
|
||||||
|
color: #fff;
|
||||||
|
padding: 5cm;
|
||||||
|
text-align: center;
|
||||||
|
height: 60cm;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: rem-calc(250);
|
font-size: 6cm;
|
||||||
line-height: rem-calc(250);
|
line-height: rem-calc(250);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@@ -563,56 +561,108 @@
|
|||||||
p {
|
p {
|
||||||
font-size: rem-calc(80);
|
font-size: rem-calc(80);
|
||||||
line-height: rem-calc(80);
|
line-height: rem-calc(80);
|
||||||
|
font-family: 'Open Sans'; //With Lato not work
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
&.intro {
|
&.intro {
|
||||||
margin: rem-calc(160) auto;
|
margin: rem-calc(160) auto;
|
||||||
max-width: 60%;
|
max-width: 80%;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.proposal_code{
|
||||||
|
font-size: 1.7cm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.proposal-image {
|
.proposal-image {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: rem-calc(2000);
|
max-width: 90%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background: #ff9e00;
|
background: #ff9e00;
|
||||||
content: '';
|
content: '';
|
||||||
height: rem-calc(400);
|
height: rem-calc(420);
|
||||||
left: -120px;
|
left: rem-calc(-130px);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -720px;
|
top: rem-calc(-130px);
|
||||||
width: rem-calc(400);
|
width: rem-calc(420);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
|
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
|
||||||
margin-top: rem-calc(50);
|
//margin-top: rem-calc(-144);
|
||||||
|
margin-top: rem-calc(10);
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
// color: $text-medium;
|
// color: $text-medium;
|
||||||
font-size: rem-calc(80);
|
margin: $line-height 0;
|
||||||
margin-top: rem-calc(80);
|
// margin-left: 10%;
|
||||||
|
// text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .proposal-image {
|
||||||
|
// margin: 0 auto;
|
||||||
|
// max-width: rem-calc(2000);
|
||||||
|
// position: relative;
|
||||||
|
// &::before {
|
||||||
|
// background: #ff9e00;
|
||||||
|
// content: '';
|
||||||
|
// height: rem-calc(400);
|
||||||
|
// left: -120px;
|
||||||
|
// position: absolute;
|
||||||
|
// top: -720px;
|
||||||
|
// width: rem-calc(400);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// img {
|
||||||
|
// box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
|
||||||
|
// margin-top: rem-calc(50);
|
||||||
|
// position: relative;
|
||||||
|
// width: 100%;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// h2 {
|
||||||
|
// // color: $text-medium;
|
||||||
|
// font-size: rem-calc(80);
|
||||||
|
// margin-top: rem-calc(80);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
.poster-content {
|
.poster-content {
|
||||||
margin: 0 auto;
|
margin-top: 20cm;
|
||||||
max-width: rem-calc(2000);
|
|
||||||
|
|
||||||
h2{
|
h2 {
|
||||||
max-width: 60%;
|
font-size: rem-calc(28);
|
||||||
text-align:left;
|
color: $text-medium;
|
||||||
margin-top: rem-calc(100);
|
margin: $line-height 0;
|
||||||
|
margin-left: 10%;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
color: #0300ff;
|
||||||
|
font-size: 4.7cm;
|
||||||
|
margin-bottom: $line-height * 2;
|
||||||
|
margin-top: $line-height * 2;
|
||||||
|
max-width: 80%;
|
||||||
|
display: inline;margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
width:5cm;
|
||||||
|
height:5cm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
color: $brand;
|
color: $brand;
|
||||||
font-size: rem-calc(170);
|
font-size: rem-calc(170);
|
||||||
|
|||||||
@@ -12,9 +12,13 @@
|
|||||||
<%= t("dashboard.poster.index.poster_title") %>
|
<%= t("dashboard.poster.index.poster_title") %>
|
||||||
<br>
|
<br>
|
||||||
<%= t("dashboard.poster.index.poster_subtitle") %>
|
<%= t("dashboard.poster.index.poster_subtitle") %>
|
||||||
|
|
||||||
</h1>
|
</h1>
|
||||||
<p class="intro"><%= t("dashboard.poster.index.intro_text") %></p>
|
|
||||||
<p class="text-center">
|
<p class="intro">
|
||||||
|
<%= t("dashboard.poster.index.intro_text").html_safe %>
|
||||||
|
</p>
|
||||||
|
<p class="text-center proposal_code">
|
||||||
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
<strong><%= t("dashboard.poster.index.proposal_code", code: proposal.code) %></strong>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -28,15 +32,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="poster-content">
|
<div class="poster-content">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="title-quote">"</span>
|
<%= wicked_pdf_image_tag 'quote-before.svg' %>
|
||||||
<%= proposal.title %>
|
<%= proposal.title %>
|
||||||
<span class="title-quote">"</span>
|
<%= wicked_pdf_image_tag 'quote-after.svg' %>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p class="poster-footer"><%= t("dashboard.poster.index.footer") %></p>
|
<p class="poster-footer"><%= t("dashboard.poster.index.footer").html_safe %></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user