modifs couleurs etc
This commit is contained in:
@@ -22,10 +22,6 @@
|
||||
font-family: Syne, sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
@mixin logiciels-libres-font {
|
||||
font-family: Rumeur, sans-serif;
|
||||
font-weight: bold;
|
||||
}
|
||||
@mixin commanditaires-font {
|
||||
font-family: Moche, sans-serif;
|
||||
font-weight: bold;
|
||||
@@ -60,6 +56,13 @@
|
||||
$mainColor: #0e1229;
|
||||
$mainColorSoft: #1f2429;
|
||||
$bgColor: #f5f5f5;
|
||||
|
||||
$color_publique: #ffaeab;
|
||||
$color_sociale: #71ff94;
|
||||
$color_culturelle: #feff74;
|
||||
$color_commanditaire: #fabbde;
|
||||
$color_figureslibres: #82f8ee;
|
||||
$color_projets: #4bffc9;
|
||||
// colors - gradient
|
||||
$bgGradientToBottom: linear-gradient(to bottom, #{$bgColor}, #{$bgColor}00);
|
||||
$bgGradientToLeft: linear-gradient(to left, #{$bgColor}, #{$bgColor}00);
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
overflow-x: hidden;
|
||||
color: $mainColor;
|
||||
background-color: $bgColor;
|
||||
@include transition-ease-out(background-color);
|
||||
header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
@@ -40,11 +41,12 @@
|
||||
box-sizing: border-box;
|
||||
#nav-container {
|
||||
height: $navHeight;
|
||||
background-color: $bgColor;
|
||||
padding: 0 $bodyMarginMobile;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: $bgColor;
|
||||
@include transition-ease-out(background-color);
|
||||
h1 {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -62,7 +64,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
@include transition-ease-out(opacity, top 0.7s);
|
||||
@include transition-ease-out(opacity, top 0.7s, background-color);
|
||||
#crossMenu {
|
||||
position: absolute;
|
||||
top: 2vh;
|
||||
@@ -104,7 +106,12 @@
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: $navGradientHeightMobile;
|
||||
background: $bgGradientToBottom
|
||||
background: $bgGradientToBottom;
|
||||
opacity: 1;
|
||||
@include transition-ease-out(opacity);
|
||||
}
|
||||
header.plain_bg:after {
|
||||
opacity: 0;
|
||||
}
|
||||
main {
|
||||
position: relative;
|
||||
@@ -123,7 +130,7 @@
|
||||
@include transition-ease-out(text-underline-offset);
|
||||
}
|
||||
a:hover {
|
||||
text-underline-offset: 0.15em;
|
||||
text-underline-offset: 0.15em !important;
|
||||
}
|
||||
}
|
||||
.projet-card {
|
||||
@@ -177,6 +184,9 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
.animateText {
|
||||
text-decoration: underline 1px;
|
||||
}
|
||||
#loader-index {
|
||||
position: absolute;
|
||||
height: 80vh;
|
||||
@@ -203,15 +213,12 @@
|
||||
#culturelle {
|
||||
@include culturelle-font;
|
||||
}
|
||||
#logicielslibres {
|
||||
@include logiciels-libres-font;
|
||||
}
|
||||
}
|
||||
#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;
|
||||
div {
|
||||
@@ -273,7 +280,7 @@
|
||||
#commanditaires-grid {
|
||||
width: 85vw;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 25px 40px;
|
||||
align-items: center;
|
||||
img {
|
||||
@@ -312,22 +319,39 @@
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
margin-bottom: $sectionSpacing;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.filter-button {
|
||||
cursor: pointer;
|
||||
filter: grayscale(1);
|
||||
opacity: $transparency;
|
||||
@include transition-ease-out(opacity);
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 1rem;
|
||||
font-size: $smallSize;
|
||||
min-height: $currentLineHeight;
|
||||
display: inline-block;
|
||||
@include transition-ease-out(opacity, filter);
|
||||
}
|
||||
.filter-button:hover {
|
||||
filter: grayscale(0) !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#publique-filter {
|
||||
@include publique-font;
|
||||
background-color: $color_publique;
|
||||
}
|
||||
#sociale-filter {
|
||||
@include sociale-font;
|
||||
background-color: $color_sociale;
|
||||
}
|
||||
#culturelle-filter {
|
||||
@include culturelle-font;
|
||||
background-color: $color_culturelle;
|
||||
}
|
||||
}
|
||||
hr {
|
||||
@@ -396,31 +420,18 @@
|
||||
position: fixed;
|
||||
height: 6vh;
|
||||
width: 100%;
|
||||
background-color: $bgColor;
|
||||
top: -9vh;
|
||||
// background-color: $bgColor;
|
||||
top: -4vh;
|
||||
@include transition-ease-out(top);
|
||||
.info-project-publique {
|
||||
span {
|
||||
@include publique-font;
|
||||
}
|
||||
}
|
||||
.info-project-sociale {
|
||||
span {
|
||||
@include sociale-font;
|
||||
}
|
||||
}
|
||||
.info-project-culturelle {
|
||||
span {
|
||||
@include culturelle-font;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
width: 80%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 3px 0;
|
||||
margin-top: 1.8vh;
|
||||
margin-left: $bodyMarginMobile;
|
||||
padding-top: 1.8vh;
|
||||
padding-left: $bodyMarginMobile;
|
||||
font-size: $currentSize;
|
||||
span {
|
||||
transform: translate(0, 0);
|
||||
@@ -433,6 +444,24 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
h2.info-project-publique {
|
||||
background: linear-gradient(to bottom, $color_publique, $color_publique 60%, rgba($color_publique, 0));
|
||||
span {
|
||||
@include publique-font;
|
||||
}
|
||||
}
|
||||
h2.info-project-sociale {
|
||||
background: linear-gradient(to bottom, $color_sociale, $color_sociale 60%, rgba($color_sociale, 0));
|
||||
span {
|
||||
@include sociale-font;
|
||||
}
|
||||
}
|
||||
h2.info-project-culturelle {
|
||||
background: linear-gradient(to bottom, $color_culturelle, $color_culturelle 60%, rgba($color_culturelle, 0));
|
||||
span {
|
||||
@include culturelle-font;
|
||||
}
|
||||
}
|
||||
#gradient-long-title {
|
||||
position: absolute;
|
||||
height: 4vh;
|
||||
@@ -442,14 +471,6 @@
|
||||
background: $bgGradientToLeft;
|
||||
}
|
||||
}
|
||||
#header-project:after {
|
||||
position: absolute;
|
||||
top: 6vh;
|
||||
content: '';
|
||||
height: 4vh;
|
||||
width: 100%;
|
||||
background: linear-gradient($bgColor, rgba($bgColor, 0));
|
||||
}
|
||||
#header-project + a {
|
||||
z-index: 2;
|
||||
}
|
||||
@@ -460,13 +481,53 @@
|
||||
width: calc(#{$pictoSmallWidth} - 5px);
|
||||
height: calc(#{$pictoSmallHeight} - 5px);
|
||||
}
|
||||
#cover-image-mobile {
|
||||
figure#cover-image-mobile {
|
||||
margin-top: -2vh;
|
||||
margin-bottom: 2vh;
|
||||
}
|
||||
#cover-image {
|
||||
figure#cover-image {
|
||||
display: none;
|
||||
}
|
||||
figure#cover-image-mobile,
|
||||
figure#cover-image {
|
||||
position: relative;
|
||||
margin-top: 3vh;
|
||||
img {
|
||||
filter: grayscale(0);
|
||||
@include transition-ease-out(filter);
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
}
|
||||
figure#cover-image-mobile:hover img,
|
||||
figure#cover-image:hover img {
|
||||
filter: grayscale(1);
|
||||
mix-blend-mode: darken;
|
||||
}
|
||||
figure#cover-image-mobile::before,
|
||||
figure#cover-image::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
@include transition-ease-out(opacity);
|
||||
}
|
||||
figure#cover-image-mobile:hover::before,
|
||||
figure#cover-image:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
figure#cover-image-mobile.sociale:hover::before,
|
||||
figure#cover-image.sociale:hover::before {
|
||||
background-color: $color_sociale;
|
||||
}
|
||||
figure#cover-image-mobile.culturelle:hover::before,
|
||||
figure#cover-image.culturelle:hover::before {
|
||||
background-color: $color_culturelle;
|
||||
}
|
||||
figure#cover-image-mobile.publique:hover::before,
|
||||
figure#cover-image.publique:hover::before {
|
||||
background-color: $color_publique;
|
||||
}
|
||||
#info-project {
|
||||
align-self: flex-start;
|
||||
h2 {
|
||||
@@ -502,7 +563,37 @@
|
||||
}
|
||||
#project-images-grid {
|
||||
figure {
|
||||
position: relative;
|
||||
margin-top: 3vh;
|
||||
img {
|
||||
filter: grayscale(0);
|
||||
@include transition-ease-out(filter);
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
}
|
||||
figure:hover img {
|
||||
filter: grayscale(1);
|
||||
mix-blend-mode: darken;
|
||||
}
|
||||
figure::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
opacity: 0;
|
||||
@include transition-ease-out(opacity);
|
||||
}
|
||||
figure:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
figure:hover.sociale::before {
|
||||
background-color: $color_sociale;
|
||||
}
|
||||
figure:hover.publique::before {
|
||||
background-color: $color_publique;
|
||||
}
|
||||
figure:hover.culturelle::before {
|
||||
background-color: $color_culturelle;
|
||||
}
|
||||
}
|
||||
hr {
|
||||
@@ -526,12 +617,15 @@
|
||||
margin-top: 2vh;
|
||||
}
|
||||
#related-grid {
|
||||
margin-bottom: 5vh;
|
||||
width: 80%;
|
||||
.card-displayed {
|
||||
margin-top: 1.5vh;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin-top: 3vh;
|
||||
margin-bottom: 5vh;
|
||||
}
|
||||
}
|
||||
.swiper {
|
||||
position: fixed;
|
||||
@@ -557,8 +651,8 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
img {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 90%;
|
||||
max-width: 90%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
@@ -614,24 +708,6 @@
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
.content {
|
||||
.card-displayed figure a figcaption {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
background: $mainColor;
|
||||
color: $bgColor;
|
||||
font-size: $tinySize;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
}
|
||||
.card-displayed:hover figure a figcaption {
|
||||
opacity: 1;
|
||||
}
|
||||
main {
|
||||
#index-content {
|
||||
min-height: 80vh;
|
||||
@@ -640,11 +716,11 @@
|
||||
justify-content: center;
|
||||
#extrait-projets {
|
||||
>div {
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
div:last-of-type {
|
||||
overflow-x: hidden;
|
||||
text-align: right;
|
||||
grid-column-end: span 4;
|
||||
grid-column-end: span 2;
|
||||
p {
|
||||
display: inline-block;
|
||||
.picto {
|
||||
@@ -660,13 +736,13 @@
|
||||
}
|
||||
#commanditaires-grid {
|
||||
width: auto;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
}
|
||||
}
|
||||
#projets-index {
|
||||
width: auto;
|
||||
#filter-index {
|
||||
display: flex;
|
||||
justify-content: start;
|
||||
flex-direction: row;
|
||||
max-width: 100%;
|
||||
p:last-of-type {
|
||||
@@ -680,19 +756,15 @@
|
||||
.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;
|
||||
>div {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
#reader {
|
||||
#header-project {
|
||||
h2 {
|
||||
margin-top: 1vh;
|
||||
}
|
||||
}
|
||||
#close-project {
|
||||
width: $pictoInlineWidth;
|
||||
height: $pictoInlineHeight;
|
||||
@@ -722,7 +794,7 @@
|
||||
#project-images-grid {
|
||||
width: auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-gap: 1em;
|
||||
figure {
|
||||
margin-top: 0;
|
||||
@@ -738,19 +810,24 @@
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
#related-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
width: auto !important;
|
||||
grid-column-gap: 10%;
|
||||
margin-bottom: 6vh !important;
|
||||
.card-displayed {
|
||||
margin-top: 2vh !important;
|
||||
figure {
|
||||
min-height: 80px !important;
|
||||
min-width: 15vw;
|
||||
#related-pages {
|
||||
#related-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
width: auto !important;
|
||||
grid-column-gap: 10%;
|
||||
.card-displayed {
|
||||
margin-top: 2vh !important;
|
||||
width: 100%;
|
||||
figure {
|
||||
min-height: 80px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin-top: 3vh;
|
||||
margin-bottom: 6vh !important;
|
||||
}
|
||||
}
|
||||
.swiper {
|
||||
.swiper-button-next, .swiper-button-prev {
|
||||
@@ -789,11 +866,11 @@
|
||||
display: none;
|
||||
}
|
||||
nav {
|
||||
background-color: $bgColor;
|
||||
position: relative;
|
||||
top: 0;
|
||||
opacity: 1;
|
||||
height: $navHeight;
|
||||
background-color: $bgColor;
|
||||
justify-content: center;
|
||||
#crossMenu {
|
||||
display: none;
|
||||
@@ -850,25 +927,61 @@
|
||||
header:after {
|
||||
height: $navGradientHeightDesktop;
|
||||
}
|
||||
|
||||
main {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: calc(#{$navHeight} + #{$navGradientHeightDesktop} + #{$sectionSpacing});
|
||||
.content {
|
||||
width: $bodyWidth;
|
||||
padding: 0;
|
||||
|
||||
#index-content > #extrait-projets figure a figcaption {
|
||||
background-color: $mainColor;
|
||||
color: $bgColor;
|
||||
}
|
||||
.content {
|
||||
width: $bodyWidth;
|
||||
padding: 0;
|
||||
.card-displayed figure a figcaption {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
color: $mainColor;
|
||||
font-size: $tinySize;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
.culturelle-card figure a figcaption {
|
||||
background-color: $color_culturelle;
|
||||
}
|
||||
.sociale-card figure a figcaption {
|
||||
background-color: $color_sociale;
|
||||
}
|
||||
.publique-card figure a figcaption {
|
||||
background-color: $color_publique;
|
||||
}
|
||||
}
|
||||
.card-displayed:hover figure a figcaption {
|
||||
opacity: 1;
|
||||
}
|
||||
#index-content {
|
||||
#extrait-projets {
|
||||
>div {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
div:last-of-type {
|
||||
grid-column-end: span 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
#commanditaires-grid {
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
||||
grid-template-columns: repeat(8, 1fr);
|
||||
}
|
||||
}
|
||||
#projets-index {
|
||||
width: $bodyWidth;
|
||||
#filter-index {
|
||||
.filter-button:hover {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.projets-grid {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
#text-content {
|
||||
@@ -888,28 +1001,35 @@
|
||||
}
|
||||
#reader {
|
||||
margin-top: -10vh;
|
||||
width: 40vw;
|
||||
width: 60vw;
|
||||
#header-project {
|
||||
width: 100%;
|
||||
h2 {
|
||||
width: 35vw;
|
||||
margin-left: 29.5vw;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
span {
|
||||
padding-left: 20vw;
|
||||
padding-top: 1.4vh;
|
||||
height: $currentLineHeight;
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
||||
#gradient-long-title {
|
||||
right: 34.2vw;
|
||||
}
|
||||
}
|
||||
#cover-image {
|
||||
width: 66.666%;
|
||||
box-sizing: border-box;
|
||||
margin: 0 10vw;
|
||||
}
|
||||
#info-project {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 0 10vw;
|
||||
margin-top: 2vh;
|
||||
margin-bottom: 4vh;
|
||||
h2 {
|
||||
min-width: 100%;
|
||||
min-width: 95%;
|
||||
border-right: solid 1px rgba(0, 0, 0, $transparency);
|
||||
margin-top: 0;
|
||||
margin-bottom: 1vh;
|
||||
@@ -926,17 +1046,18 @@
|
||||
#close-project {
|
||||
width: $pictoSmallWidth;
|
||||
height: $pictoSmallHeight;
|
||||
top: 6vh;
|
||||
top: calc(4vh + $pictoSmallHeight / 2);
|
||||
right: calc(30vw - #{$pictoSmallWidth} - 2vw);
|
||||
transform: scale(1, 1);
|
||||
@include transition-ease-out(top, right, transform);
|
||||
}
|
||||
.scrolled-cross {
|
||||
top: 1.4vh !important;
|
||||
right: 30vw !important;
|
||||
right: 20vw !important;
|
||||
transform: scale(0.7, 0.7) !important;
|
||||
}
|
||||
#project-description {
|
||||
padding: 0 10vw;
|
||||
align-self: flex-start;
|
||||
}
|
||||
#project-images-grid {
|
||||
@@ -954,11 +1075,15 @@
|
||||
margin-top: 0;
|
||||
}
|
||||
#related-grid {
|
||||
width: 100%;
|
||||
grid-column-gap: 3%;
|
||||
div figure {
|
||||
min-width: 10vw;
|
||||
}
|
||||
}
|
||||
p {
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -995,7 +1120,14 @@
|
||||
}
|
||||
#projets-index {
|
||||
.projets-grid {
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
||||
column-gap: 2em;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
#reader {
|
||||
#related-pages {
|
||||
padding: 0 10vw;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user