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

303 lines
4.5 KiB
SCSS
Raw Normal View History

@import "constants";
@import "colors";
@import "mixins";
@import "placeholders";
2017-01-03 14:53:56 +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 {
2023-01-05 09:48:46 +01:00
max-width: 25rem;
@media (max-width: $landing-breakpoint) {
margin: auto;
}
}
2017-01-02 18:07:04 +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
.features-panel {
2021-09-20 15:04:24 +02:00
background-color: $blue-france-500;
}
.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 {
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;
}
.landing {
.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: var(--text-action-high-blue-france);
font-size: 2rem;
line-height: 2rem;
font-weight: 600;
}
.number-label {
max-width: 10rem;
margin: auto;
font-weight: 600;
font-size: 1.25rem;
line-height: 1.5rem;
color: var(--text-label-grey);
}
.number-label-third {
max-width: 13rem;
}
2023-01-05 10:04:53 +01:00
}
$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;
}
.role-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%;
}
}
2018-02-28 19:08:34 +01:00
.role-administrations-image {
text-align: right;
@media (max-width: $users-breakpoint) {
text-align: center;
margin-bottom: 45px;
}
}
2018-11-08 14:49:53 +01:00
.role-more-info-image {
text-align: left;
@media (max-width: $users-breakpoint) {
text-align: center;
margin-bottom: 45px;
}
}
2018-02-28 19:08:34 +01:00
.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;
2022-01-26 16:56:03 +01:00
font-size: 22px;
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;
}
&:active,
&:focus {
outline: 3px solid #FFFFFF;
}
}