modifs couleurs etc

This commit is contained in:
Valentin
2024-03-25 23:22:38 +01:00
parent 6af420e9bb
commit 66bd5cb3d9
8 changed files with 733 additions and 341 deletions
+221 -86
View File
@@ -179,6 +179,7 @@ body {
overflow-x: hidden;
color: #0e1229;
background-color: #f5f5f5;
transition: background-color 0.4s ease-out;
}
body header {
position: fixed;
@@ -189,11 +190,12 @@ body header {
}
body header #nav-container {
height: 7vh;
background-color: #f5f5f5;
padding: 0 3vw;
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f5f5f5;
transition: background-color 0.4s ease-out;
}
body header #nav-container h1 {
cursor: pointer;
@@ -211,7 +213,7 @@ body header nav {
display: flex;
align-items: center;
opacity: 0;
transition: opacity 0.4s ease-out, top 0.7s ease-out;
transition: opacity 0.4s ease-out, top 0.7s ease-out, background-color 0.4s ease-out;
}
body header nav #crossMenu {
position: absolute;
@@ -253,6 +255,11 @@ body header:after {
width: 100%;
height: 4vh;
background: linear-gradient(to bottom, #f5f5f5, #f5f5f500);
opacity: 1;
transition: opacity 0.4s ease-out;
}
body header.plain_bg:after {
opacity: 0;
}
body main {
position: relative;
@@ -274,7 +281,7 @@ body main .content h2 a, body main .content p a, body main .content ul a {
transition: text-underline-offset 0.4s ease-out;
}
body main .content h2 a:hover, body main .content p a:hover, body main .content ul a:hover {
text-underline-offset: 0.15em;
text-underline-offset: 0.15em !important;
}
body main .content .projet-card {
cursor: pointer;
@@ -331,6 +338,9 @@ body main #index-content {
flex-direction: column;
align-items: center;
}
body main #index-content .animateText {
text-decoration: underline 1px;
}
body main #index-content #loader-index {
position: absolute;
height: 80vh;
@@ -362,14 +372,10 @@ body main #index-content #main-p-index #culturelle {
font-weight: bold;
font-style: italic;
}
body main #index-content #main-p-index #logicielslibres {
font-family: Rumeur, sans-serif;
font-weight: bold;
}
body main #index-content #extrait-projets > div {
max-height: 0vh;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(2, 1fr);
gap: 0px 20px;
align-items: flex-start;
}
@@ -433,7 +439,7 @@ body main #index-content #second-p-index #projets {
body main #index-content #commanditaires-grid {
width: 85vw;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(2, 1fr);
gap: 25px 40px;
align-items: center;
}
@@ -472,28 +478,45 @@ body main #projets-index #filter-index {
text-align: center;
width: 100%;
margin-bottom: 30px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
body main #projets-index #filter-index .filter-button {
cursor: pointer;
filter: grayscale(1);
opacity: 0.4;
transition: opacity 0.4s ease-out;
padding: 0.25rem 0.75rem;
border-radius: 1rem;
font-size: 0.95em;
min-height: 1.25em;
display: inline-block;
transition: opacity 0.4s ease-out, filter 0.4s ease-out;
}
body main #projets-index #filter-index .filter-button:hover {
filter: grayscale(0) !important;
opacity: 1 !important;
}
body main #projets-index #filter-index p {
margin-bottom: 0;
margin-bottom: 1rem;
}
body main #projets-index #filter-index #publique-filter {
font-family: PlayfairDisplay, serif;
font-style: italic;
background-color: #ffaeab;
}
body main #projets-index #filter-index #sociale-filter {
font-family: ManifontGrotesk, sans-serif;
font-weight: bold;
font-style: italic;
background-color: #71ff94;
}
body main #projets-index #filter-index #culturelle-filter {
font-family: Avara, serif;
font-weight: bold;
font-style: italic;
background-color: #feff74;
}
body main #projets-index hr {
width: 66%;
@@ -561,31 +584,18 @@ body main #reader #header-project {
position: fixed;
height: 6vh;
width: 100%;
background-color: #f5f5f5;
top: -9vh;
top: -4vh;
transition: top 0.4s ease-out;
}
body main #reader #header-project .info-project-publique span {
font-family: PlayfairDisplay, serif;
font-style: italic;
}
body main #reader #header-project .info-project-sociale span {
font-family: ManifontGrotesk, sans-serif;
font-weight: bold;
font-style: italic;
}
body main #reader #header-project .info-project-culturelle span {
font-family: Avara, serif;
font-weight: bold;
font-style: italic;
}
body main #reader #header-project h2 {
margin: 0;
overflow: hidden;
position: absolute;
width: 80%;
width: 100%;
height: 100%;
padding: 3px 0;
margin-top: 1.8vh;
margin-left: 3vw;
padding-top: 1.8vh;
padding-left: 3vw;
font-size: 1.2em;
}
body main #reader #header-project h2 span {
@@ -598,6 +608,29 @@ body main #reader #header-project h2 .scrollText:after {
padding-left: 20px;
white-space: nowrap;
}
body main #reader #header-project h2.info-project-publique {
background: linear-gradient(to bottom, #ffaeab, #ffaeab 60%, rgba(255, 174, 171, 0));
}
body main #reader #header-project h2.info-project-publique span {
font-family: PlayfairDisplay, serif;
font-style: italic;
}
body main #reader #header-project h2.info-project-sociale {
background: linear-gradient(to bottom, #71ff94, #71ff94 60%, rgba(113, 255, 148, 0));
}
body main #reader #header-project h2.info-project-sociale span {
font-family: ManifontGrotesk, sans-serif;
font-weight: bold;
font-style: italic;
}
body main #reader #header-project h2.info-project-culturelle {
background: linear-gradient(to bottom, #feff74, #feff74 60%, rgba(254, 255, 116, 0));
}
body main #reader #header-project h2.info-project-culturelle span {
font-family: Avara, serif;
font-weight: bold;
font-style: italic;
}
body main #reader #header-project #gradient-long-title {
position: absolute;
height: 4vh;
@@ -606,14 +639,6 @@ body main #reader #header-project #gradient-long-title {
right: 16.5%;
background: linear-gradient(to left, #f5f5f5, #f5f5f500);
}
body main #reader #header-project:after {
position: absolute;
top: 6vh;
content: "";
height: 4vh;
width: 100%;
background: linear-gradient(#f5f5f5, rgba(245, 245, 245, 0));
}
body main #reader #header-project + a {
z-index: 2;
}
@@ -624,13 +649,54 @@ body main #reader #close-project {
width: calc(25px - 5px);
height: calc(23px - 5px);
}
body main #reader #cover-image-mobile {
body main #reader figure#cover-image-mobile {
margin-top: -2vh;
margin-bottom: 2vh;
}
body main #reader #cover-image {
body main #reader figure#cover-image {
display: none;
}
body main #reader figure#cover-image-mobile,
body main #reader figure#cover-image {
position: relative;
margin-top: 3vh;
}
body main #reader figure#cover-image-mobile img,
body main #reader figure#cover-image img {
filter: grayscale(0);
transition: filter 0.4s ease-out;
mix-blend-mode: normal;
}
body main #reader figure#cover-image-mobile:hover img,
body main #reader figure#cover-image:hover img {
filter: grayscale(1);
mix-blend-mode: darken;
}
body main #reader figure#cover-image-mobile::before,
body main #reader figure#cover-image::before {
position: absolute;
content: "";
height: 100%;
width: 100%;
opacity: 0;
transition: opacity 0.4s ease-out;
}
body main #reader figure#cover-image-mobile:hover::before,
body main #reader figure#cover-image:hover::before {
opacity: 1;
}
body main #reader figure#cover-image-mobile.sociale:hover::before,
body main #reader figure#cover-image.sociale:hover::before {
background-color: #71ff94;
}
body main #reader figure#cover-image-mobile.culturelle:hover::before,
body main #reader figure#cover-image.culturelle:hover::before {
background-color: #feff74;
}
body main #reader figure#cover-image-mobile.publique:hover::before,
body main #reader figure#cover-image.publique:hover::before {
background-color: #ffaeab;
}
body main #reader #info-project {
align-self: flex-start;
}
@@ -664,8 +730,38 @@ body main #reader #project-description {
margin-top: 2.2vh;
}
body main #reader #project-images-grid figure {
position: relative;
margin-top: 3vh;
}
body main #reader #project-images-grid figure img {
filter: grayscale(0);
transition: filter 0.4s ease-out;
mix-blend-mode: normal;
}
body main #reader #project-images-grid figure:hover img {
filter: grayscale(1);
mix-blend-mode: darken;
}
body main #reader #project-images-grid figure::before {
position: absolute;
content: "";
height: 100%;
width: 100%;
opacity: 0;
transition: opacity 0.4s ease-out;
}
body main #reader #project-images-grid figure:hover::before {
opacity: 1;
}
body main #reader #project-images-grid figure:hover.sociale::before {
background-color: #71ff94;
}
body main #reader #project-images-grid figure:hover.publique::before {
background-color: #ffaeab;
}
body main #reader #project-images-grid figure:hover.culturelle::before {
background-color: #feff74;
}
body main #reader hr {
margin-bottom: 2vh;
width: 66%;
@@ -688,12 +784,15 @@ body main #reader #related-pages h3 {
margin-top: 2vh;
}
body main #reader #related-pages #related-grid {
margin-bottom: 5vh;
width: 80%;
}
body main #reader #related-pages #related-grid .card-displayed {
margin-top: 1.5vh;
}
body main #reader #related-pages p {
margin-top: 3vh;
margin-bottom: 5vh;
}
body main #reader .swiper {
position: fixed;
top: 0;
@@ -721,8 +820,8 @@ body main #reader .swiper .swiper-wrapper .swiper-slide {
justify-content: center;
}
body main #reader .swiper .swiper-wrapper .swiper-slide img {
max-height: 100%;
max-width: 100%;
max-height: 90%;
max-width: 90%;
object-fit: cover;
}
body main #reader .swiper .swiper-button-next, body main #reader .swiper .swiper-button-prev {
@@ -769,22 +868,6 @@ body footer p a {
body header nav {
height: 100vh;
}
body .content .card-displayed figure a figcaption {
opacity: 0;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
padding: 10px;
background: #0e1229;
color: #f5f5f5;
font-size: 0.75em;
border-radius: 0 0 10px 10px;
}
body .card-displayed:hover figure a figcaption {
opacity: 1;
}
body main #index-content {
min-height: 80vh;
display: flex;
@@ -792,12 +875,12 @@ body footer p a {
justify-content: center;
}
body main #index-content #extrait-projets > div {
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: repeat(2, 1fr);
}
body main #index-content #extrait-projets > div div:last-of-type {
overflow-x: hidden;
text-align: right;
grid-column-end: span 4;
grid-column-end: span 2;
}
body main #index-content #extrait-projets > div div:last-of-type p {
display: inline-block;
@@ -811,13 +894,13 @@ body footer p a {
}
body main #index-content #commanditaires-grid {
width: auto;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
grid-template-columns: repeat(5, 1fr);
}
body main #projets-index {
width: auto;
}
body main #projets-index #filter-index {
display: flex;
justify-content: start;
flex-direction: row;
max-width: 100%;
}
@@ -831,15 +914,13 @@ body footer p a {
body main #projets-index .projets-grid {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-columns: repeat(3, 1fr);
gap: 0 10px;
align-items: start;
}
body main #projets-index .projets-grid > div {
width: 100%;
}
body main #reader #header-project h2 {
margin-top: 1vh;
}
body main #reader #close-project {
width: 12px;
height: 10px;
@@ -869,7 +950,7 @@ body footer p a {
body main #reader #project-images-grid {
width: auto;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1em;
}
body main #reader #project-images-grid figure {
@@ -885,19 +966,22 @@ body footer p a {
body main #reader #project-images-grid figure:last-child:nth-child(odd) {
grid-column: span 2;
}
body main #reader #related-grid {
body main #reader #related-pages #related-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: repeat(3, 1fr);
width: auto !important;
grid-column-gap: 10%;
margin-bottom: 6vh !important;
}
body main #reader #related-grid .card-displayed {
body main #reader #related-pages #related-grid .card-displayed {
margin-top: 2vh !important;
width: 100%;
}
body main #reader #related-grid .card-displayed figure {
body main #reader #related-pages #related-grid .card-displayed figure {
min-height: 80px !important;
min-width: 15vw;
}
body main #reader #related-pages p {
margin-top: 3vh;
margin-bottom: 6vh !important;
}
body main #reader .swiper .swiper-button-next, body main #reader .swiper .swiper-button-prev {
bottom: unset;
@@ -928,11 +1012,11 @@ body footer p a {
display: none;
}
body header nav {
background-color: #f5f5f5;
position: relative;
top: 0;
opacity: 1;
height: 7vh;
background-color: #f5f5f5;
justify-content: center;
}
body header nav #crossMenu {
@@ -989,18 +1073,52 @@ body footer p a {
justify-content: center;
margin-top: calc(7vh + 2vh + 30px);
}
body main #index-content > #extrait-projets figure a figcaption {
background-color: #0e1229;
color: #f5f5f5;
}
body main .content {
width: 65vw;
padding: 0;
}
body main .content .card-displayed figure a figcaption {
opacity: 0;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
box-sizing: border-box;
padding: 10px;
color: #0e1229;
font-size: 0.75em;
border-radius: 0 0 10px 10px;
}
body main .content .culturelle-card figure a figcaption {
background-color: #feff74;
}
body main .content .sociale-card figure a figcaption {
background-color: #71ff94;
}
body main .content .publique-card figure a figcaption {
background-color: #ffaeab;
}
body main .card-displayed:hover figure a figcaption {
opacity: 1;
}
body main #index-content #extrait-projets > div {
grid-template-columns: repeat(4, 1fr);
}
body main #index-content #extrait-projets > div div:last-of-type {
grid-column-end: span 4;
}
body main #index-content #commanditaires-grid {
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-columns: repeat(8, 1fr);
}
body main #projets-index {
width: 65vw;
}
body main #projets-index #filter-index .filter-button:hover {
opacity: 1 !important;
body main #projets-index .projets-grid {
grid-template-columns: repeat(4, 1fr);
}
body main #text-content .text-item {
width: 70%;
@@ -1017,30 +1135,37 @@ body footer p a {
}
body main #reader {
margin-top: -10vh;
width: 40vw;
width: 60vw;
}
body main #reader #header-project {
width: 100%;
}
body main #reader #header-project h2 {
width: 35vw;
margin-left: 29.5vw;
width: 100%;
padding: 0;
}
body main #reader #header-project h2 span {
padding-left: 20vw;
padding-top: 1.4vh;
height: 1.25em;
padding-top: 5px;
}
body main #reader #header-project #gradient-long-title {
right: 34.2vw;
}
body main #reader #cover-image {
width: 66.666%;
box-sizing: border-box;
margin: 0 10vw;
}
body main #reader #info-project {
width: 100%;
box-sizing: border-box;
padding: 0 10vw;
margin-top: 2vh;
margin-bottom: 4vh;
}
body main #reader #info-project h2 {
min-width: 100%;
min-width: 95%;
border-right: solid 1px rgba(0, 0, 0, 0.4);
margin-top: 0;
margin-bottom: 1vh;
@@ -1054,17 +1179,18 @@ body footer p a {
body main #reader #close-project {
width: 25px;
height: 23px;
top: 6vh;
top: calc(4vh + 11.5px);
right: calc(30vw - 25px - 2vw);
transform: scale(1, 1);
transition: top 0.4s ease-out, right 0.4s ease-out, transform 0.4s ease-out;
}
body main #reader .scrolled-cross {
top: 1.4vh !important;
right: 30vw !important;
right: 20vw !important;
transform: scale(0.7, 0.7) !important;
}
body main #reader #project-description {
padding: 0 10vw;
align-self: flex-start;
}
body main #reader #project-images-grid {
@@ -1081,11 +1207,15 @@ body footer p a {
margin-top: 0;
}
body main #reader #related-pages #related-grid {
width: 100%;
grid-column-gap: 3%;
}
body main #reader #related-pages #related-grid div figure {
min-width: 10vw;
}
body main #reader #related-pages p {
align-self: flex-end;
}
body footer {
height: 4vh;
width: auto;
@@ -1110,7 +1240,12 @@ body footer p a {
height: 54px;
}
body main #projets-index .projets-grid {
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
column-gap: 2em;
grid-template-columns: repeat(4, 1fr);
}
body main #reader #related-pages {
padding: 0 10vw;
box-sizing: border-box;
}
}