drupal-erable/web/themes/erabletheme/scss/_fullpage.scss

270 lines
6.2 KiB
SCSS
Raw Normal View History

2023-12-13 15:08:55 +01:00
.fullpage {
margin-bottom: 10vh;
2023-12-13 15:08:55 +01:00
margin-top: -3vh;
padding-top: 3vh;
@include beige_gradient();
2023-12-17 16:49:23 +01:00
position: relative;
2023-12-13 15:08:55 +01:00
> h2 {
@include main_title();
2023-12-17 16:49:23 +01:00
margin-top: 5vh;
2023-12-13 15:08:55 +01:00
margin-bottom: 7vh;
2023-12-17 16:49:23 +01:00
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
2023-12-13 15:08:55 +01:00
}
.fullpage_content {
> h2 {
@include main_title();
2023-12-17 16:49:23 +01:00
margin-top: 5vh;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
2023-12-13 15:08:55 +01:00
}
.sous_titre {
@include main_text_content();
font-size: $l_font_size;
2023-12-13 15:08:55 +01:00
padding: 0 $x_margin;
}
p {
@include main_text_content();
padding: 0 $x_margin;
margin-bottom: 2rem;
}
p:first-of-type {
margin-top: 7vh;
}
.liens_fixed > div > div, .file_fixed > div > div {
2023-12-13 15:08:55 +01:00
padding: 0 $x_margin;
text-align: right;
margin: 2rem 0;
@include fluo_button();
a {
display: inline-block;
}
@media (min-width: $breakpoint_desktop) {
margin-bottom: 0 !important;
margin: 0;
position: fixed;
right: 0;
bottom: 10vh;
> div {
height: 3vh;
}
2023-12-17 16:49:23 +01:00
a {
max-width: calc(25vw - $x_margin * 2);
}
}
}
.file_fixed span:last-of-type {
display: none;
2023-12-13 15:08:55 +01:00
}
}
.views-row {
margin-bottom: 8vh;
}
@media (min-width: $breakpoint_tablet) {
margin-top: 10vh;
padding-top: 0;
width: 75vw;
margin-left: 12.5vw;
}
@media (min-width: $breakpoint_desktop) {
width: 50vw;
margin-left: 25vw;
}
2023-12-13 15:08:55 +01:00
}
2023-12-17 16:49:23 +01:00
.ornements_top_over {
position: absolute;
width: 100vw;
height: 30vh;
right: -55vw;
top: -5vh;
z-index: 0;
> div {
position: absolute;
background-repeat: no-repeat;
background-size: contain;
width: 100%;
height: 100%;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_4.png);
top: -3vh;
right: 5vw;
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_5.png);
right: -13vw;
}
> div:nth-of-type(3) {
background-image: url(../assets/formes/forme_3.png);
top: 4vh;
right: -8vw;
}
@media (min-width: $breakpoint_tablet) {
left: -40vw;
top: -10vw;
> div {
transform: scaleX(-1);
left: -55vw;
}
> div:first-of-type {
display: none;
}
> div:nth-of-type(2) {
display: none;
}
}
@media (min-width: $breakpoint_desktop) {
> div:nth-of-type(3) {
transform: scaleX(-1) rotate(-25deg);
top: -25vh;
}
}
}
.ornements_top_under {
display: none;
position: absolute;
width: 100vw;
height: 30vh;
left: -30vw;
top: 0vw;
> div {
position: absolute;
background-repeat: no-repeat;
background-size: contain;
width: 100%;
height: 100%;
transform: scaleX(-1);
}
> div:first-of-type {
background-image: url(../assets/formes/forme_4.png);
top: -3vh;
left: -45vw;
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_5.png);
left: -60vw;
}
@media (min-width: $breakpoint_tablet) {
display: block;
}
@media (min-width: $breakpoint_desktop) {
> div:first-of-type {
top: 1vh;
left: -50vw;
}
> div:nth-of-type(2) {
top: 6vh;
left: -56.5vw;
}
}
}
.ornements_bottom_over {
position: absolute;
width: 100vw;
height: 30vh;
left: -30vw;
bottom: -20vh;
> div {
position: absolute;
background-repeat: no-repeat;
background-size: contain;
width: 100%;
height: 100%;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_1.png);
left: 8vw;
bottom: -4vh;
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_2.png);
bottom: -15vh;
left: -3vw;
}
@media (min-width: $breakpoint_tablet) {
left: unset;
right: -8vw;
bottom: -25vh;
> div {
transform: scaleX(-1);
}
> div:nth-of-type(2) {
left: 18vw;
bottom: -11vh;
}
}
@media (min-width: $breakpoint_desktop) {
> div:first-of-type {
bottom: 6vh;
left: 20vw;
}
> div:nth-of-type(2) {
bottom: -9vh;
left: 25vw;
}
}
}
.fullpage.actus {
2023-12-17 16:49:23 +01:00
.ornements_top_over, .ornements_top_under {
top: -12vh;
}
.ornements_bottom_over {
bottom: -28vh;
> div:nth-of-type(2) {
bottom: -10vh;
left: -7vh;
}
}
@media (min-width: $breakpoint_tablet) {
width: auto;
margin-left: $x_margin;
margin-right: $x_margin;
.actus_list {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: $breakpoint_desktop) {
.actus_list {
grid-template-columns: repeat(3, 1fr);
}
2023-12-17 16:49:23 +01:00
.ornements_top_over {
> div:nth-of-type(3) {
top: -28vh;
}
}
.ornements_bottom_over {
> div:first-of-type {
bottom: 0vh;
left: -3vw;
}
> div:nth-of-type(2) {
left: 6vh;
}
}
}
2023-12-17 16:49:23 +01:00
}