overleaf/services/web/public/stylesheets/app/review-features-page.less

461 lines
9 KiB
Text
Raw Normal View History

2017-03-03 12:15:48 -05:00
@rfp-h1-size: 2.442em;
@rfp-h2-size: 1.953em;
@rfp-h3-size: 1.563em;
@rfp-lead-size: 1.25em;
@rfp-sl-red: @red;
@rfp-rp-blue: @rp-type-blue;
@rfp-rp-blue-light: #F8F9FD;
@rfp-rp-blue-dark: shade(@rfp-rp-blue, 50%);
@rfp-rp-blue-darker: shade(@rfp-rp-blue, 65%);
@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;
2017-03-08 10:53:46 -05:00
@rfp-header-height: 80px;
@rfp-header-height-collapsed: 50px;
2017-03-03 12:15:48 -05:00
.rfp-main {
background-color: @content-alt-bg-color;
2017-03-03 12:15:48 -05:00
font-size: 18px;
2017-03-08 11:55:05 -05:00
min-width: 240px;
2017-03-03 12:15:48 -05:00
}
2017-03-08 10:53:46 -05:00
2017-03-03 12:15:48 -05:00
// Typographical scale and basics.
.rfp-h1 {
2017-03-08 11:55:05 -05:00
font-size: @rfp-h2-size;
2017-03-08 07:25:03 -05:00
margin-bottom: 1.6em;
2017-03-03 12:15:48 -05:00
color: inherit;
2017-03-08 11:55:05 -05:00
@media (min-width: @screen-xs-min) {
font-size: @rfp-h1-size;
}
2017-03-03 12:15:48 -05:00
}
.rfp-h1-masthead {
color: #FFF;
margin-bottom: 1em;
2017-03-03 12:15:48 -05:00
}
.rfp-h2 {
font-size: @rfp-h2-size;
2017-03-08 07:25:03 -05:00
margin-bottom: 1.6em;
2017-03-03 12:15:48 -05:00
color: inherit;
}
.rfp-h3 {
font-size: @rfp-h3-size;
2017-03-08 07:25:03 -05:00
margin-bottom: 1.6em;
2017-03-03 12:15:48 -05:00
color: inherit;
}
.rfp-h3-cta {
margin-top: 0;
margin-bottom: 40px;
}
2017-03-03 12:15:48 -05:00
.rfp-lead {
2017-03-08 07:25:03 -05:00
margin-bottom: 1.6em;
2017-03-03 12:15:48 -05:00
max-width: 30em;
margin-left: auto;
margin-right: auto;
2017-03-08 11:55:05 -05:00
@media (min-width: @screen-xs-min) {
font-size: @rfp-lead-size;
}
2017-03-03 12:15:48 -05:00
}
.rfp-lead-cta {
margin-top: 0;
margin-bottom: 40px;
}
2017-03-03 12:15:48 -05:00
.rfp-lead-strong {
font-weight: 700;
.rfp-section-masthead & {
margin-bottom: 0;
}
2017-03-03 12:15:48 -05:00
}
.rfp-p {
2017-03-08 07:25:03 -05:00
margin-bottom: 1.6em;
2017-03-03 12:15:48 -05:00
max-width: 30em;
margin-left: auto;
margin-right: auto;
.rfp-section-feature & {
margin-left: initial;
}
.rfp-section-feature-alt & {
margin-left: auto;
margin-right: initial;
}
}
2017-03-08 07:25:03 -05:00
.rfp-highlight {
2017-03-03 12:15:48 -05:00
font-weight: 700;
}
// Sections
2017-03-08 10:53:46 -05:00
.rfp-header {
position: fixed;
top: 0;
width: 100%;
z-index: 2;
height: @rfp-header-height;
transition: height .2s;
background-color: fade(@rfp-rp-blue-darkest, 90%);
2017-04-19 12:00:43 -04:00
padding: 15px 20px;
2017-03-08 11:55:05 -05:00
min-width: 320px;
@media (min-width: @screen-xs-min) {
padding-left: 30px;
padding-right: 30px;
}
2017-03-08 10:53:46 -05:00
@media (min-width: @screen-sm-min) {
padding-left: 60px;
padding-right: 60px;
}
.rfp-main-header-collapsed & {
height: @rfp-header-height-collapsed;
2017-04-19 12:00:43 -04:00
padding-top: 10px;
padding-bottom: 10px;
2017-03-08 10:53:46 -05:00
}
}
.rfp-header-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
max-width: @container-large-desktop;
height: 100%;
margin: auto;
}
2017-04-19 12:00:43 -04:00
.rfp-header-logo-container,
2017-03-08 10:53:46 -05:00
.rfp-header-logo {
2017-04-19 12:00:43 -04:00
height: 100%;
2017-03-08 10:53:46 -05:00
}
2017-03-03 12:15:48 -05:00
.rfp-section {
padding: 30px;
2017-03-03 12:15:48 -05:00
text-align: center;
2017-03-08 07:25:03 -05:00
overflow: hidden;
2017-03-08 11:55:05 -05:00
@media (min-width: @screen-xs-min) {
padding: 30px;
}
@media (min-width: @screen-sm-min) {
padding: 60px;
}
2017-03-03 12:15:48 -05:00
}
.rfp-section-masthead {
color: #FFF;
2017-03-03 12:15:48 -05:00
background-size: cover;
background-position: center;
2017-03-06 11:47:10 -05:00
background-color: @rfp-rp-blue-darker;
2017-03-08 10:53:46 -05:00
padding-top: @rfp-header-height;
.rfp-lead {
opacity: 0;
transition: opacity 0.8s ease;
}
&.rfp-section-masthead-in {
.rfp-lead {
opacity: 1;
}
}
2017-03-03 12:15:48 -05:00
}
.rfp-section-blockquote {
position: relative;
2017-03-03 12:15:48 -05:00
padding-top: 30px;
padding-bottom: 30px;
background-color: @brand-secondary;
box-shadow: @rfp-card-shadow;
2017-03-03 12:15:48 -05:00
}
.rfp-section-feature {
2017-03-08 07:32:19 -05:00
display: block;
2017-03-03 12:15:48 -05:00
text-align: left;
2017-03-08 07:32:19 -05:00
@media (min-width: @screen-sm-min) {
.rfp-section-wrapper {
display: flex;
align-items: center;
}
2017-03-08 07:32:19 -05:00
}
2017-03-03 12:15:48 -05:00
}
.rfp-feature-description-container,
.rfp-feature-video-container {
flex: 0 0 50%;
}
2017-03-08 07:25:03 -05:00
.rfp-feature-description-container {
2017-03-08 07:32:19 -05:00
@media (min-width: @screen-sm-min) {
padding-right: 1em;
.rfp-section-feature-alt & {
padding-right: 0;
padding-left: 1em;
}
2017-03-08 07:25:03 -05:00
}
}
.rfp-feature-video-container {
2017-03-08 07:32:19 -05:00
@media (min-width: @screen-sm-min) {
padding-left: 1em;
.rfp-section-feature-alt & {
padding-left: 0;
padding-right: 1em;
order: -1;
}
2017-03-08 07:25:03 -05:00
}
}
2017-03-03 12:15:48 -05:00
.rfp-section-feature-alt {
color: #FFF;
background-color: @ol-blue-gray-5;
2017-03-08 07:32:19 -05:00
@media (min-width: @screen-sm-min) {
text-align: right;
}
2017-03-03 12:15:48 -05:00
}
.rfp-section-feature-white {
background: #ffffff;
}
2017-03-03 12:15:48 -05:00
.rfp-section-testimonials {
background-color: @rfp-rp-blue-darkest;
}
.rfp-section-final {
background-color: @rfp-rp-blue-darker;
}
.rfp-section-wrapper {
max-width: @container-large-desktop;
2017-03-08 10:53:46 -05:00
margin: 0 auto;
}
2017-03-03 12:15:48 -05:00
// Elements
2017-03-08 08:54:46 -05:00
.rfp-h1-masthead-portion {
display: inline-block;
transform: translate(150px, 0);
opacity: 0;
transition: transform 0.8s ease 0s, opacity 0.8s ease 0s;
&:nth-child(2) {
transition-delay: 0.5s, 0.5s;
}
&:nth-child(3) {
transition-delay: 0.5s, 0.5s;
}
&:nth-child(4) {
transition-delay: 1s, 1s;
}
&:nth-child(5) {
transition-delay: 1s, 1s;
}
.rfp-section-masthead-in & {
transform: translate(0, 0);
opacity: 1;
}
}
.rfp-video {
max-width: 100%;
box-shadow: @rfp-card-shadow;
2017-03-06 11:47:10 -05:00
border-radius: @rfp-border-radius;
}
.rfp-video-masthead {
2017-03-08 11:55:05 -05:00
width: 270px;
height: 163px;
margin-bottom: 2em;
2017-03-08 08:54:46 -05:00
transform: translate(0, 100px);
opacity: 0;
transition: transform 0.8s ease 1s, opacity 0.8s ease 1s;
box-shadow: none;
max-width: none;
2017-03-08 11:55:05 -05:00
@media (min-width: @screen-xs-min) {
width: 400px;
height: 241px;
}
@media (min-width: 600px) {
width: 525px;
height: 316px;
}
@media (min-width: @screen-sm-min) {
width: 633px;
height: 381px;
}
@media (min-width: @screen-sm-min) {
width: 697px;
height: 420px;
}
2017-03-08 08:54:46 -05:00
.rfp-section-masthead-in & {
transform: translate(0, 0);
opacity: 1;
box-shadow: @rfp-card-shadow;
2017-03-08 08:54:46 -05:00
}
}
.rfp-video-anim {
transition: transform 0.8s ease, opacity 0.8s ease;
transform: translate(100%, 0);
opacity: 0;
}
.rfp-video-anim-alt {
transform: translate(-100%, 0);
}
.rfp-video-anim-in {
transform: translate(0, 0);
opacity: 1;
}
2017-03-03 12:15:48 -05:00
.rfp-quote-section {
2017-03-08 12:14:35 -05:00
@media (min-width: @screen-md-min) {
display: flex;
}
2017-03-03 12:15:48 -05:00
}
.rfp-quote {
display: block;
width: 100%;
2017-03-03 12:15:48 -05:00
padding: 20px 40px;
border-left: 0;
max-width: 30em;
font-size: @rfp-lead-size;
quotes: "\201C" "\201D";
box-shadow: @rfp-card-shadow;
border-radius: @rfp-border-radius;
background-color: #FFF;
color: @rfp-rp-blue-dark;
2017-03-08 11:55:05 -05:00
font-size: 1em;
2017-03-08 12:14:35 -05:00
margin: 0 auto 20px;
2017-03-08 11:55:05 -05:00
@media (min-width: @screen-xs-min) {
font-size: @rfp-lead-size;
}
2017-03-06 11:47:10 -05:00
2017-03-08 12:14:35 -05:00
@media (min-width: @screen-md-min) {
display: flex;
flex-direction: column;
justify-content: space-between;
flex: 0 1 50%;
margin-right: 20px;
}
2017-03-08 12:14:35 -05:00
// Override weird Boostrap default.
2017-03-03 12:15:48 -05:00
p {
display: block;
}
&:last-of-type {
2017-03-08 12:14:35 -05:00
@media (min-width: @screen-md-min) {
margin-right: 0;
}
2017-03-03 12:15:48 -05:00
}
&::before {
content: none;
}
}
.rfp-quote-main {
color: #ffffff;
2017-03-06 11:47:10 -05:00
display: block;
2017-03-03 12:15:48 -05:00
max-width: none;
border-left: 0;
margin: 0 auto;
padding: 0;
quotes: "\201C" "\201D";
font-size: @rfp-lead-size;
2017-03-08 12:14:35 -05:00
@media (min-width: @screen-md-min) {
2017-03-06 11:47:10 -05:00
display: flex;
}
2017-03-03 12:15:48 -05:00
// Override weird Boostrap default.
p {
display: block;
}
&::before {
content: none;
}
}
.rfp-quoted-text {
position: relative;
display: inline-block;
font-family: @font-family-serif;
font-style: italic;
text-align: left;
margin: 0 0 40px 0;
&::before {
content: open-quote;
display: block;
position: absolute;
font-family: @font-family-serif;
font-size: @rfp-lead-size;
line-height: inherit;
color: inherit;
left: -0.75em;
}
.rfp-quote-main & {
2017-03-08 12:14:35 -05:00
@media (min-width: @screen-md-min) {
2017-03-06 11:47:10 -05:00
flex: 1 1 70%;
margin: auto 40px auto auto;
}
2017-03-03 12:15:48 -05:00
}
}
.rfp-quoted-person {
display: inline-block;
font-size: .8em;
.rfp-quote-main & {
display: flex;
align-items: center;
2017-03-06 11:47:10 -05:00
justify-content: center;
2017-03-03 12:15:48 -05:00
flex: 0 0 30%;
}
}
.rfp-quoted-person-name {
margin: 0;
}
2017-03-08 12:14:35 -05:00
.rfp-quoted-person-affil {
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 {
2017-03-03 12:15:48 -05:00
border-radius: 3em;
width: 6em;
margin-bottom: 20px;
.rfp-quote-main & {
margin-bottom: 0;
margin-right: 20px;
}
}
2017-03-08 07:25:03 -05:00
.rfp-users {
display: flex;
flex-wrap: wrap;
margin: 0 1em 2em;
@media (min-width: @screen-md-min) {
flex-wrap: nowrap;
align-items: center;
}
}
.rfp-user-container {
flex: 0 0 100%;
padding: 10px;
@media (min-width: @screen-xs-min) {
flex-basis: 50%;
}
@media (min-width: @screen-md-min) {
flex-basis: 25%;
padding: 20px;
}
}
.rfp-user-logo {
max-width: 100%;
}
2017-03-03 12:15:48 -05:00
.rfp-cta-container {
max-width: 40em;
margin: 0 auto;
padding: 40px;
background-color: #FFF;
color: @rfp-rp-blue-dark;
box-shadow: @rfp-card-shadow;
border-radius: @rfp-border-radius;
2017-03-03 12:15:48 -05:00
}
2017-03-08 10:53:46 -05:00
.rfp-cta-header {
font-size: 1em;
padding: .2em 1em;
}
2017-03-03 12:15:48 -05:00
.rfp-cta-main {
display: block;
transition: transform 0.25s;
transform: translate(0, 0);
2017-03-03 12:15:48 -05:00
}
.rfp-cta-extra {
display: block;
position: absolute;
left: 50%;
text-transform: uppercase;
transition: opacity 0.25s, transform 0.25s;
transform: translate(-50%, 100%);
opacity: 0;
font-size: 0.5em;
}