parallax ornements + modifs d'après kanboard

This commit is contained in:
Valentin
2023-12-20 06:48:35 +01:00
parent 34164911b4
commit 7a93f85fd3
13 changed files with 723 additions and 25 deletions

View File

@@ -4,11 +4,12 @@
}
.retour_actus {
padding-top: 3vh;
font-size: $sm_font_size;
font-weight: 800;
color: $teal;
padding-left: $x_margin;
cursor: pointer;
a {
font-size: $sm_font_size;
font-weight: 800;
color: $teal;
}
}
.article_meta {
padding-left: $x_margin;

View File

@@ -0,0 +1,61 @@
.login, .user {
width: 100vw;
height: 50vh;
@include beige_gradient();
padding-top: 15vh;
> h2 {
@include sous_titre_alt();
text-align: center;
}
> div {
height: 100%;
> div:not(.hidden) {
// height: 100%;
margin-top: 5vh !important;
display: flex;
align-items: center;
justify-content: center;
form {
font-family: 'Marianne', sans-serif;
.form-item {
margin: 1.8rem 0;
.form-checkbox {
width: 1rem;
height: 1rem;
-webkit-appearance: auto;
}
.form-required {
font-weight: 800;
padding-right: 1rem;
}
.description {
margin-top: 0.3rem;
}
}
input {
border: solid 1px $teal;
}
.button {
font-family: 'Marianne', sans-serif;
font-weight: 800;
border: solid 1px $teal;
background-color: white;
cursor: pointer;
}
.button:hover {
background-color: rgba(255, 255, 255, 0.6);
}
}
}
}
}
.user {
.contextual-region > div {
display: flex;
font-family: 'Marianne', sans-serif;
> h4 {
padding-right: 0.5rem;
}
}
}

View File

@@ -6,12 +6,14 @@
right: -55vw;
top: -5vh;
z-index: 0;
transition: left 0.05s ease, top 0.05s ease;
> div {
position: absolute;
background-repeat: no-repeat;
background-size: contain;
width: 100%;
height: 100%;
transition: left 0.05s ease, top 0.05s ease;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_4.png);
@@ -29,7 +31,7 @@
}
@media (min-width: $breakpoint_tablet) {
left: -40vw;
top: -10vw;
top: -16vw;
> div {
transform: scaleX(-1);
left: -55vw;
@@ -50,12 +52,14 @@
}
.ornements_top_under {
pointer-events: none;
display: none;
position: absolute;
width: 100vw;
height: 30vh;
left: -30vw;
top: 0vw;
transition: left 0.05s ease, top 0.05s ease;
> div {
position: absolute;
background-repeat: no-repeat;
@@ -63,6 +67,7 @@
width: 100%;
height: 100%;
transform: scaleX(-1);
transition: left 0.05s ease, top 0.05s ease;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_4.png);
@@ -248,10 +253,10 @@
}
.ornements_presentation_left {
pointer-events: none;
position: absolute !important;
height: 20vh;
width: 20vw;
// background-color: red;
bottom: 0;
left: 0;
z-index: 0;
@@ -296,6 +301,7 @@
}
.ornements_presentation_right {
pointer-events: none;
position: absolute !important;
height: 20vh;
width: 20vw;
@@ -313,12 +319,113 @@
> div:first-of-type {
background-image: url(../assets/formes/forme_1.png);
transform: rotate(-90deg);
bottom: -3vh;
right: -6vw;
right: -15vw;
bottom: -6vh;
@media (min-width: $breakpoint_tablet) {
bottom: -3vh;
right: -6vw;
}
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_2.png);
bottom: -12vh;
right: -12vw;
}
}
.ornements_consultation_left {
pointer-events: none;
position: absolute !important;
height: 20vh;
width: 30vw;
bottom: -8vh;
left: 0;
z-index: 0;
overflow: hidden;
> div {
background-repeat: no-repeat;
background-size: contain;
position: absolute;
width: 100%;
height: 100%;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_4.png);
transform: rotate(180deg);
width: 200%;
height: 120%;
left: -30vw;
bottom: -10vh;
@media (min-width: $breakpoint_desktop) {
transform: rotate(0deg);
bottom: unset;
top: -5vh;
left: 0;
width: 60%;
}
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_5.png);
transform: rotate(180deg);
left: -12vw;
@media (min-width: $breakpoint_desktop) {
left: -20vw;
top: -5vh;
}
}
@media (min-width: $breakpoint_desktop) {
top:0;
}
}
.ornements_consultation_right {
pointer-events: none;
position: absolute !important;
height: 20vh;
width: 30vw;
bottom: -8vh;
right: 0;
z-index: 0;
overflow: hidden;
> div {
background-repeat: no-repeat;
background-size: contain;
position: absolute;
width: 100%;
height: 100%;
}
> div:first-of-type {
background-image: url(../assets/formes/forme_1.png);
transform: rotate(-90deg);
width: 80%;
height: 80%;
right: -8vw;
bottom: -2vh;
@media (min-width: $breakpoint_desktop) {
right: -3vw;
bottom: 6vh;
transform: rotate(180deg);
}
}
> div:nth-of-type(2) {
background-image: url(../assets/formes/forme_3.png);
transform: rotate(180deg);
right: -4vw;
width: 100%;
@media (min-width: $breakpoint_tablet) {
width: 30%;
bottom: 3vh;
}
@media (min-width: $breakpoint_desktop) {
transform: none;
right: -4vw;
width: 60%;
}
}
@media (min-width: $breakpoint_desktop) {
bottom: unset;
top: 0;
right: 0;
}
}