demarches-normaliennes/app/assets/stylesheets/new_design/landing.scss

440 lines
6.6 KiB
SCSS
Raw Normal View History

@import "constants";
@import "colors";
@import "mixins";
@import "placeholders";
2017-01-03 14:53:56 +01:00
.landing {
background-color: #FFFFFF;
}
2016-01-29 10:52:06 +01:00
.landing-panel {
@include vertical-padding(60px);
}
2017-01-02 18:07:04 +01:00
$landing-breakpoint: 1040px;
.hero-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
@media (max-width: $landing-breakpoint) {
justify-content: center;
}
}
.hero-text {
max-width: 500px;
@media (max-width: $landing-breakpoint) {
margin: auto;
}
}
2017-01-02 18:07:04 +01:00
.hero-tagline {
2018-02-28 19:23:53 +01:00
font-size: 40px;
margin-bottom: 0px;
}
2017-01-02 18:07:04 +01:00
.hero-tagline-em {
color: $blue;
2018-02-28 19:23:53 +01:00
font-size: 40px;
font-style: normal;
font-weight: bold;
}
2016-01-29 10:52:06 +01:00
.hero-illustration {
max-width: 500px;
img {
max-width: 100%;
}
@media (max-width: 1030px) {
margin: auto;
}
2017-01-02 18:07:04 +01:00
}
2016-01-29 10:52:06 +01:00
.landing-panel-title {
width: 100%;
font-size: 30px;
font-weight: normal;
text-align: center;
margin-bottom: 40px;
margin-top: 0;
}
.features-panel {
background-color: $blue;
}
.features-panel-title {
color: #FFFFFF;
}
.features {
@extend %horizontal-list;
width: 100%;
align-items: baseline;
justify-content: space-between;
@media (max-width: $landing-breakpoint) {
justify-content: center;
}
}
.feature {
@extend %horizontal-list-item;
2018-02-01 08:56:06 +01:00
width: 260px;
@media (max-width: $landing-breakpoint) {
margin: 15px 20px;
}
}
.feature-text {
color: #FFFFFF;
font-size: 20px;
2018-02-01 08:56:06 +01:00
text-align: center;
}
.feature-text-em {
font-weight: bold;
font-style: normal;
}
.feature-image {
display: block;
margin: 0 auto;
margin-bottom: 24px;
}
.quotes {
@extend %horizontal-list;
width: 100%;
justify-content: space-between;
2018-02-01 15:07:45 +01:00
margin-bottom: 30px;
@media (max-width: $landing-breakpoint) {
justify-content: center;
}
}
.quote {
@extend %horizontal-list-item;
max-width: 500px;
2018-02-01 15:07:45 +01:00
width: 100%;
background-color: #FFFFFF;
box-shadow: 0 4px 16px 0 rgba(153, 153, 153, 0.2);
padding: 24px;
display: flex;
justify-content: flex-start;
align-items: flex-start;
@media (max-width: $landing-breakpoint) {
margin: 15px 0;
}
}
.quote-quotation-mark {
margin-top: 12px;
}
.quote-content {
font-size: 18px;
margin-bottom: 24px;
}
.quote-content-wrapper {
margin-left: 20px;
width: 100%;
}
.quote-author {
font-size: 14px;
}
.quote-author-name {
font-weight: bold;
}
2018-07-06 13:49:53 +02:00
.usagers-panel,
.numbers-panel {
background-color: $light-grey;
}
.numbers {
@extend %horizontal-list;
justify-content: space-around;
width: 100%;
}
.number {
@extend %horizontal-list-item;
width: 320px;
text-align: center;
@media (max-width: $landing-breakpoint) {
margin-bottom: 15px;
}
}
.number-value {
color: $blue;
font-weight: bold;
font-size: 36px;
}
.number-label {
font-weight: bold;
font-size: 20px;
}
$users-breakpoint: 950px;
.users {
@extend %horizontal-list;
justify-content: space-between;
width: 100%;
&:first-of-type {
margin-bottom: 45px;
}
@media (max-width: $users-breakpoint) {
justify-content: space-around;
&:first-of-type {
margin-bottom: 0;
}
}
}
.user {
@extend %horizontal-list-item;
width: 170px;
&:hover {
opacity: 0.6;
}
@media (max-width: $users-breakpoint) {
margin: 0 15px 15px;
}
}
.user-image {
width: 170px;
}
2018-02-28 19:08:34 +01:00
.role-image {
height: 180px;
}
.cta-role-title {
font-size: 30px;
font-weight: bold;
margin-top: 13px;
}
.cta-role-explanation {
font-size: 30px;
margin-bottom: 10px;
}
.cta-panel {
background-color: $blue;
color: #FFFFFF;
}
2018-02-28 19:08:34 +01:00
.role-panel-wrapper,
.cta-panel-wrapper {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
2018-02-28 19:08:34 +01:00
.role-administrations-panel {
flex-direction: row-reverse;
@media (max-width: $users-breakpoint) {
flex-direction: row;
}
}
.role-panel-70,
.role-panel-30 {
display: inline-block;
}
.role-panel-70 {
width: 70%;
@media (max-width: $users-breakpoint) {
width: 100%;
}
}
.role-panel-30 {
width: 30%;
@media (max-width: $users-breakpoint) {
width: 100%;
}
}
.cta-panel-title {
font-size: 24px;
font-weight: bold;
margin-top: 13px;
}
.cta-panel-explanation {
font-size: 24px;
margin-bottom: 10px;
}
2018-02-28 19:08:34 +01:00
.role-panel-title {
font-size: 30px;
font-weight: bold;
line-height: 36px;
margin-bottom: 15px;
2018-02-28 19:08:34 +01:00
}
.role-panel-explanation {
font-size: 24px;
margin-bottom: 10px;
}
.role-administrations-image {
text-align: right;
@media (max-width: $users-breakpoint) {
text-align: center;
margin-bottom: 45px;
}
}
.role-usagers-image {
@media (max-width: $users-breakpoint) {
text-align: center;
margin-bottom: 45px;
}
}
$cta-panel-button-border-size: 2px;
@mixin cta-panel-button {
2018-02-28 19:08:34 +01:00
@include horizontal-padding(40px);
@include vertical-padding(15px);
display: block;
border-radius: 100px;
font-size: 24px;
text-align: center;
cursor: pointer;
margin-top: 20px;
}
.cta-panel-button-white {
@include cta-panel-button;
2018-02-28 19:08:34 +01:00
border: $cta-panel-button-border-size solid #FFFFFF;
color: #FFFFFF;
&:hover {
color: #FFFFFF;
text-decoration: none;
background-color: rgba(255, 255, 255, 0.2);
}
&:focus {
color: #FFFFFF;
text-decoration: none;
}
}
2018-02-28 19:08:34 +01:00
2018-08-27 10:58:08 +02:00
.cta-panel-button-blue {
@include cta-panel-button;
2018-08-27 10:58:08 +02:00
border: $cta-panel-button-border-size solid $light-blue;
color: $light-blue;
&:hover {
2018-08-27 10:58:08 +02:00
color: #FFFFFF;
background-color: $light-blue;
text-decoration: none;
2018-08-27 10:58:08 +02:00
&:focus {
color: #FFFFFF;
}
}
&:focus {
2018-08-27 10:58:08 +02:00
color: $light-blue;
text-decoration: none;
}
}
2018-02-28 19:08:34 +01:00
@mixin role-button {
@include horizontal-padding(30px);
display: inline-block;
border-radius: 100px;
font-size: 20px;
text-align: center;
cursor: pointer;
margin-top: 20px;
line-height: 50px;
}
.role-panel-button-primary {
@include role-button;
background-color: $blue;
color: #FFFFFF;
&:hover {
color: #FFFFFF;
text-decoration: none;
background-color: $light-blue;
}
&:focus {
color: #FFFFFF;
text-decoration: none;
}
}
.role-panel-button-secondary {
@include role-button;
border: $cta-panel-button-border-size solid $blue;
line-height: 50px - 2 * $cta-panel-button-border-size;
color: $blue;
margin-left: 10px;
@media (max-width: $users-breakpoint) {
margin-left: 0px;
}
&:hover {
color: $light-blue;
border: $cta-panel-button-border-size solid $light-blue;
text-decoration: none;
}
&:focus {
color: $light-blue;
text-decoration: none;
}
}
.tour-de-france-banner {
padding-top: 15px;
padding-bottom: 15px;
background-color: $blue;
color: #FFFFFF;
text-align: center;
a {
color: #FFFFFF;
text-decoration: underline;
}
}