ldc-legaulois/resources/sass/fo/pages/commitments.scss
Vincent Crochard 324f0ce79f Update 20240829
2024-08-29 12:24:47 +02:00

500 lines
No EOL
11 KiB
SCSS
Executable file

#commitments-navigation-wrapper {
position: fixed;
z-index: 5;
right: .5rem;
bottom: .5rem;
@include media-breakpoint-up(md) {
top: 35%;
right: 1rem;
bottom: auto;
#commitments-navigation {
display: flex !important;
}
}
button {
width: 3rem;
height: 3rem;
padding: .3rem !important;
background-color: $color-danger;
transform: rotate(90deg);
transition: .3s;
/* stylelint-disable-next-line selector-no-qualifying-type */
&.collapsed {
background-color: $color-success;
transform: rotate(0deg);
}
}
&,
a {
transition: .15s !important;
}
a {
width: 3rem;
.img-fluid {
height: 100%;
}
}
.collapse,
.collapsing {
display: flex;
}
.collapse:not(.show) {
display: none !important;
}
}
#commitments-paragraph-with-visual,
#commitments-simple-flex-items,
#commitments-complex-flex-items,
#commitments-arrows-list,
#commitments-tabs-texts,
#commitments-duo-title-text,
#commitments-banner-text,
#commitments-banner-text-complex-items,
#commitments-hgroup-list,
#commitments-visual-with-cards,
#commitments-paragraph-with-visual-complex-flex-items,
#commitments-other {
margin-bottom: -2rem;
}
#commitments-simple-flex-items .card {
max-width: 20rem;
}
#commitments-complex-flex-items {
.title-image {
width: 5rem;
}
.card {
max-width: 13rem;
.img-fluid {
height: 5rem;
}
}
}
#commitments-arrows-list {
padding-bottom: 12rem;
@include media-breakpoint-up(md) {
padding-bottom: 5rem;
}
@include media-breakpoint-up(xl) {
padding-bottom: 2rem;
}
.row {
width: 390px;
@include media-breakpoint-up(md) {
width: 500px;
}
@include media-breakpoint-up(xl) {
width: 100%;
}
}
.card-wrapper {
height: 8rem;
.card {
width: 50%;
max-width: 8rem;
}
@include media-breakpoint-up(xl) {
&:nth-child(1),
&:nth-child(2),
&:nth-child(3),
&:nth-child(4),
&:nth-child(5) {
height: initial !important;
.card {
width: 100% !important;
max-width: initial !important;
&-img-top {
width: auto !important;
}
}
}
}
&:nth-child(1) {
&::after {
position: absolute;
top: 30%;
right: 0;
width: 196px;
height: 96px;
background-image: url('@/images/commitments/commitment-1/arrow-mobile-1.svg');
background-repeat: no-repeat;
background-size: contain;
content: "";
}
h5 {
width: 8rem;
}
@include media-breakpoint-up(md) {
height: initial !important;
.card {
width: 50%;
max-width: 15rem;
}
}
@include media-breakpoint-up(xl) {
&::after {
top: 22%;
right: auto;
left: 100%;
width: 72px;
height: 82px;
background-image: url('@/images/commitments/commitment-1/arrow-desktop-1.svg');
}
}
@include media-breakpoint-up(xxl) {
&::after {
left: 92%;
}
}
}
&:nth-child(2) {
&::after {
position: absolute;
top: 40%;
left: 0;
width: 241px;
height: 85px;
background-image: url('@/images/commitments/commitment-1/arrow-mobile-2.svg');
background-repeat: no-repeat;
background-size: contain;
content: "";
}
.card {
margin-right: 2rem;
}
@include media-breakpoint-up(md) {
&::after {
top: 25%;
}
.card {
margin-right: 18%;
}
}
@include media-breakpoint-up(xl) {
margin-top: 7rem;
&::after {
width: 144px;
height: 28px;
background-image: url('@/images/commitments/commitment-1/arrow-desktop-2.svg');
inset: auto auto 100% 70%;
}
}
}
&:nth-child(3) {
&::after {
position: absolute;
top: 40%;
left: 11rem;
width: 151px;
height: 59px;
background-image: url('@/images/commitments/commitment-1/arrow-mobile-3.svg');
background-repeat: no-repeat;
background-size: contain;
content: "";
}
.card {
max-width: 12rem;
margin-top: -2rem;
.card-img-top {
padding: 0 2rem;
}
}
@include media-breakpoint-up(md) {
&::after {
top: 35%;
left: 12rem;
}
}
@include media-breakpoint-up(xl) {
margin-top: 5rem;
&::after {
top: -2rem;
left: 12rem;
width: 118px;
height: 40px;
background-image: url('@/images/commitments/commitment-1/arrow-desktop-3.svg');
}
.card .card-img-top {
width: 50% !important;
padding: 0;
}
}
@include media-breakpoint-up(xxl) {
&::after {
left: 14rem;
}
.card .card-img-top {
width: 40% !important;
margin-right: 2rem;
}
}
}
&:nth-child(4) {
&::after {
position: absolute;
top: 50%;
left: 2rem;
width: 213px;
height: 54px;
background-image: url('@/images/commitments/commitment-1/arrow-mobile-4.svg');
background-repeat: no-repeat;
background-size: contain;
content: "";
}
.card {
margin-top: 4rem;
}
@include media-breakpoint-up(md) {
&::after {
left: 4rem;
}
.card {
max-width: 10rem;
&-img-top {
position: absolute;
top: -5rem;
left: -3rem;
padding-right: 2rem;
}
}
}
@include media-breakpoint-up(xl) {
margin-top: 5rem;
&::after {
top: -1rem;
left: 10rem;
width: 155px;
height: 53px;
background-image: url('@/images/commitments/commitment-1/arrow-desktop-4.svg');
transform: rotate(6deg);
}
.card {
margin-top: 1rem;
margin-left: 3rem;
.card-img-top {
top: -4.5rem;
left: -2.5rem;
padding-right: 0;
}
}
}
}
&:nth-child(5) {
@include media-breakpoint-up(md) {
height: initial !important;
.card {
width: 100%;
max-width: 100%;
&-img-top {
width: initial;
}
}
}
@include media-breakpoint-up(xl) {
margin-top: 8rem;
}
}
}
}
#commitments-keys-list {
h4 div,
.rounded-pill {
display: inline-block;
width: 2rem;
height: 2rem;
}
p {
width: calc(100% - 2rem);
}
}
#commitments-tabs-texts {
.tab-content {
margin-top: -1rem;
.img-fluid {
height: 3.5rem;
}
}
.fade:not(.show) {
opacity: 1 !important;
}
.tab-content>.tab-pane {
display: block;
}
@include media-breakpoint-up(sm) {
.fade:not(.show) {
opacity: 0 !important;
}
.tab-content>.tab-pane:not(.show) {
display: none;
}
}
}
#commitments-hgroup-list {
max-width: 60rem;
}
#commitments-banner-text {
img {
min-width: 100%;
min-height: 100%;
}
hgroup {
max-width: 40rem;
}
}
#commitments-banner-text-complex-items {
.text-custom-placement {
z-index: 1;
transform: translateY(5rem);
}
~#commitments-complex-flex-items .container {
padding-top: 6rem !important;
}
}
#commitments-paragraph-with-visual,
#paragraph-with-visual-complex-flex-items,
#commitments-paragraph-with-visual-complex-flex-items {
.pictogram {
top: -3rem;
left: -2rem;
width: 8rem;
&-reversed {
top: -3rem;
right: -2rem;
left: auto;
width: 8rem;
}
}
.rotate-right {
max-width: 30rem;
}
ul {
margin: 0;
}
.card-text-part {
padding: 1rem;
margin-top: 1rem;
background-color: $color-tertiary;
}
.custom-card {
bottom: -2rem;
left: -2rem;
@include media-breakpoint-up(md) {
position: absolute;
}
>h6 {
top: -1rem;
}
>img {
top: -2.5rem;
left: -2rem;
}
}
}
#commitments-visual-with-cards .custom-card {
.position-absolute {
top: -1rem;
left: -1rem;
}
img {
width: 4rem;
height: 4rem;
}
}
#commitments-cards {
h4 {
padding-right: 5rem;
}
.custom-card .position-absolute {
top: -1.5rem;
right: 0;
@include media-breakpoint-up(md) {
right: -1.5rem;
}
}
}