Layout adjustments, basic responsive behaviour.

This commit is contained in:
Paulo Reis 2017-03-06 15:52:38 +00:00
parent 33bebf1821
commit a5ce23f237

View file

@ -11,6 +11,9 @@
@rfp-rp-blue-darker: shade(@rfp-rp-blue, 65%); @rfp-rp-blue-darker: shade(@rfp-rp-blue, 65%);
@rfp-rp-blue-darkest: shade(@rfp-rp-blue, 75%); @rfp-rp-blue-darkest: shade(@rfp-rp-blue, 75%);
@rfp-card-shadow: 0 0 30px 5px rgba(0, 0, 0, .3);
@rfp-border-radius: 5px;
.rfp-main { .rfp-main {
background-color: @rfp-rp-blue-dark; background-color: @rfp-rp-blue-dark;
color: #FFF; color: #FFF;
@ -22,22 +25,24 @@
margin-bottom: 2em; margin-bottom: 2em;
color: inherit; color: inherit;
} }
.rfp-h1-main { .rfp-h1-masthead {
color: #505050; color: #FFF;
margin-bottom: 1em;
} }
.rfp-h2 { .rfp-h2 {
font-size: @rfp-h2-size; font-size: @rfp-h2-size;
margin-bottom: 2em; margin-bottom: 2em;
color: inherit; color: inherit;
.rfp-section-feature-alt & {
color: @rfp-rp-blue-dark;
}
} }
.rfp-h3 { .rfp-h3 {
font-size: @rfp-h3-size; font-size: @rfp-h3-size;
margin-bottom: 2em; margin-bottom: 2em;
color: inherit; color: inherit;
} }
.rfp-h3-cta {
margin-top: 0;
margin-bottom: 40px;
}
.rfp-lead { .rfp-lead {
font-size: @rfp-lead-size; font-size: @rfp-lead-size;
margin-bottom: 2em; margin-bottom: 2em;
@ -46,8 +51,15 @@
margin-right: auto; margin-right: auto;
font-weight: 300; font-weight: 300;
} }
.rfp-lead-cta {
margin-top: 0;
margin-bottom: 40px;
}
.rfp-lead-strong { .rfp-lead-strong {
font-weight: 700; font-weight: 700;
.rfp-section-masthead & {
margin-bottom: 0;
}
} }
.rfp-p { .rfp-p {
margin-bottom: 2em; margin-bottom: 2em;
@ -72,29 +84,33 @@
} }
// Sections // Sections
.rfp-section { .rfp-section {
padding: 60px; padding: 30px;
text-align: center; text-align: center;
@media (min-width: @screen-sm-min) {
padding: 60px;
}
} }
.rfp-section-masthead { .rfp-section-masthead {
background-image: linear-gradient(to right, fade(#FFF, 90%), fade(#FFF, 90%)), url(/img/feature-page/full-editor.png); color: #FFF;
//color: @rfp-sl-red;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
color: #505050;
} }
.rfp-section-blockquote { .rfp-section-blockquote {
position: relative;
padding-top: 30px; padding-top: 30px;
padding-bottom: 30px; padding-bottom: 30px;
background-color: @rfp-sl-red; background-color: @rfp-sl-red;
box-shadow: @rfp-card-shadow;
} }
.rfp-section-feature { .rfp-section-feature {
color: #FFF; color: @rfp-rp-blue-dark;
background-color: @rfp-rp-blue-light;
text-align: left; text-align: left;
} }
.rfp-section-feature-alt { .rfp-section-feature-alt {
color: #FFF;
background-color: transparent;
text-align: right; text-align: right;
color: @rfp-rp-blue-dark;
background-color: @rfp-rp-blue-light;
} }
.rfp-section-testimonials { .rfp-section-testimonials {
background-color: @rfp-rp-blue-darkest; background-color: @rfp-rp-blue-darkest;
@ -103,24 +119,39 @@
background-color: @rfp-rp-blue-darker; background-color: @rfp-rp-blue-darker;
} }
// Elements // Elements
.rfp-screenshot-masthead {
max-width: 100%;
box-shadow: @rfp-card-shadow;
margin-bottom: 2em;
}
.rfp-quote-section { .rfp-quote-section {
display: flex;
@media (min-width: @screen-sm-min) {
display: flex;
}
} }
.rfp-quote { .rfp-quote {
display: flex; display: block;
flex-direction: column; width: 100%;
justify-content: space-between;
flex: 0 0 50%;
font-size: @rfp-lead-size;
background-color: #FFF;
color: @rfp-rp-blue-dark;
margin-right: 20px;
padding: 20px 40px; padding: 20px 40px;
border-left: 0; border-left: 0;
max-width: 30em; max-width: 30em;
font-size: @rfp-lead-size; font-size: @rfp-lead-size;
quotes: "\201C" "\201D"; quotes: "\201C" "\201D";
// Override weird Boostrap default. box-shadow: @rfp-card-shadow;
border-radius: @rfp-border-radius;
font-size: @rfp-lead-size;
background-color: #FFF;
color: @rfp-rp-blue-dark;
@media (min-width: @screen-sm-min) {
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 0 1 50%;
margin-right: 20px;
// Override weird Boostrap default.
}
p { p {
display: block; display: block;
} }
@ -178,7 +209,26 @@
flex: 0 0 30%; flex: 0 0 30%;
} }
} }
.rfp-quote-person-photo { .rfp-quoted-person-name {
margin: 0;
}
.rfp-quoted-person-link {
margin: 0;
font-size: .8em;
&:hover,
&:focus {
text-decoration: none;
cursor: pointer;
}
.rfp-quote-main & {
color: #FFF;
&:hover,
&:focus {
color: #FFF;
}
}
}
.rfp-quoted-person-photo {
border-radius: 3em; border-radius: 3em;
width: 6em; width: 6em;
margin-bottom: 20px; margin-bottom: 20px;
@ -193,12 +243,15 @@
padding: 40px; padding: 40px;
background-color: #FFF; background-color: #FFF;
color: @rfp-rp-blue-dark; color: @rfp-rp-blue-dark;
box-shadow: @rfp-card-shadow;
border-radius: @rfp-border-radius;
} }
.rfp-cta { .rfp-cta {
display: inline-block; display: inline-block;
background-color: @rfp-sl-red; background-color: @rfp-sl-red;
color: #FFF; color: #FFF;
font-size: @rfp-h3-size; font-size: @rfp-h3-size;
border-radius: @rfp-border-radius;
padding: .75em 1.5em; padding: .75em 1.5em;
&:hover, &:hover,
&:focus { &:focus {
@ -217,7 +270,7 @@
.rfp-cta-main { .rfp-cta-main {
display: block; display: block;
transition: transform 0.25s; transition: transform 0.25s;
transform: translate(0, 0, 0); transform: translate(0, 0);
} }
.rfp-cta-extra { .rfp-cta-extra {
display: block; display: block;