couleurs en canvas et responsive sass
This commit is contained in:
+93
-72
@@ -22,13 +22,18 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button {
|
||||
all: initial;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Public", sans-serif;
|
||||
font-weight: 400;
|
||||
color: rgb(0, 0, 0);
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 1.5vh 1vw;
|
||||
padding: 1.5vh 1vw 2vh 1vw;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -47,7 +52,7 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
#content svg#fill {
|
||||
fill: white;
|
||||
fill: rgb(255, 255, 255);
|
||||
/* mix blend mode est dépendant du stacking context */
|
||||
mix-blend-mode: overlay;
|
||||
opacity: 0.4;
|
||||
@@ -55,43 +60,9 @@ body {
|
||||
#content svg#stroke {
|
||||
position: absolute;
|
||||
fill: none;
|
||||
stroke: black;
|
||||
stroke: rgb(0, 0, 0);
|
||||
stroke-width: 1px;
|
||||
}
|
||||
#content #BG_BG_BG {
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
z-index: -1;
|
||||
opacity: 1;
|
||||
transition: opacity 0.5s ease-in-out;
|
||||
}
|
||||
#content #BG_BG_BG_tmp {
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
z-index: -2;
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
#grain-bg {
|
||||
position: absolute !important;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
#grain-bg > * {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#buttons_container {
|
||||
position: fixed;
|
||||
@@ -100,8 +71,8 @@ body {
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 1.5vh 1vw;
|
||||
height: 4vh;
|
||||
margin: 1.5vh 1vw 2vh 1vw;
|
||||
font-size: 1rem;
|
||||
}
|
||||
#buttons_container .niveau_profondeur {
|
||||
display: flex;
|
||||
@@ -123,17 +94,17 @@ body {
|
||||
font-weight: 400;
|
||||
}
|
||||
#buttons_container .arrow {
|
||||
margin-right: 15px;
|
||||
margin-right: 14px;
|
||||
}
|
||||
#buttons_container .arrow svg {
|
||||
height: 27px;
|
||||
height: 2rem;
|
||||
width: auto;
|
||||
fill: white;
|
||||
stroke: black;
|
||||
fill: rgb(255, 255, 255);
|
||||
stroke: rgb(0, 0, 0);
|
||||
stroke-width: 0;
|
||||
cursor: pointer;
|
||||
margin-top: 4px;
|
||||
transition: fill 0.2s ease-out;
|
||||
transition: fill 0.3s ease-out;
|
||||
}
|
||||
#buttons_container .arrow svg:hover {
|
||||
fill: rgb(110, 110, 110);
|
||||
@@ -143,13 +114,13 @@ body {
|
||||
}
|
||||
#buttons_container .arrow:last-of-type {
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
margin-left: 14px;
|
||||
}
|
||||
#buttons_container .mode {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
background-color: white;
|
||||
background-color: rgb(255, 255, 255);
|
||||
margin: 0;
|
||||
margin-right: 14px;
|
||||
padding: 10px 12px;
|
||||
@@ -157,20 +128,19 @@ body {
|
||||
cursor: pointer;
|
||||
border: solid 0.8px rgb(110, 110, 110);
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
transition: border 0.1s ease-out, color 0.1s ease-out, padding 0.2s ease-out;
|
||||
transition: border 0.1s ease-out, color 0.1s ease-out, padding 0.3s ease-out;
|
||||
font-weight: 300;
|
||||
font-size: 1rem;
|
||||
}
|
||||
#buttons_container .mode svg {
|
||||
height: 28px;
|
||||
height: 2rem;
|
||||
}
|
||||
#buttons_container .mode svg .thick {
|
||||
transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
|
||||
transition: stroke-width 0.3s ease-out, fill 0.3s ease-out, stroke 0.3s ease-out;
|
||||
stroke-width: 0.8;
|
||||
stroke: rgb(110, 110, 110);
|
||||
}
|
||||
#buttons_container .mode svg .thin {
|
||||
transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
|
||||
transition: stroke-width 0.3s ease-out, fill 0.3s ease-out, stroke 0.3s ease-out;
|
||||
stroke-width: 0.5;
|
||||
stroke: rgb(110, 110, 110);
|
||||
}
|
||||
@@ -182,14 +152,13 @@ body {
|
||||
width: auto;
|
||||
transition: max-width 0.4s ease-out, margin-left 0.4s ease-out, margin-right 0.4s ease-out;
|
||||
max-width: 0px;
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
margin: 0px 5px 0px 10px;
|
||||
max-width: 200px;
|
||||
}
|
||||
#buttons_container .mode .mode_container p {
|
||||
white-space: nowrap;
|
||||
height: fit-content;
|
||||
margin-bottom: 3px;
|
||||
margin-bottom: 1.5px;
|
||||
}
|
||||
#buttons_container .mode.active {
|
||||
padding: 10px 12px !important;
|
||||
@@ -210,8 +179,7 @@ body {
|
||||
}
|
||||
#buttons_container .mode.active .mode_container {
|
||||
max-width: 200px !important;
|
||||
margin-left: 10px !important;
|
||||
margin-right: 5px !important;
|
||||
margin: 0px 5px 0px 10px !important;
|
||||
}
|
||||
#buttons_container .mode:hover {
|
||||
padding: 10px 12px !important;
|
||||
@@ -226,57 +194,60 @@ body {
|
||||
}
|
||||
#buttons_container .mode:hover .mode_container {
|
||||
max-width: 200px !important;
|
||||
margin-left: 10px !important;
|
||||
margin-right: 5px !important;
|
||||
margin: 0px 5px 0px 10px !important;
|
||||
}
|
||||
#buttons_container .mode.collapsed {
|
||||
padding: 10px 7px;
|
||||
padding: 10px 10px;
|
||||
}
|
||||
#buttons_container .mode.collapsed .mode_container {
|
||||
max-width: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
#buttons_container .mode:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#global_nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: 1.5vh 1vw;
|
||||
margin: 1.5vh 1vw 2vh 1vw;
|
||||
z-index: 1;
|
||||
font-size: 1rem;
|
||||
}
|
||||
#global_nav h1 {
|
||||
font-family: "Ortica";
|
||||
font-size: 1.7em;
|
||||
margin-bottom: 17px;
|
||||
margin-left: 5px;
|
||||
margin: 0px 0px 17px 5px;
|
||||
}
|
||||
#global_nav #menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
#global_nav #menu #search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
#global_nav #menu #search input[type=search] {
|
||||
height: 34px;
|
||||
height: 2rem;
|
||||
width: 10vw;
|
||||
padding-left: 13px;
|
||||
padding-right: 30px;
|
||||
padding-bottom: 2px;
|
||||
padding-bottom: 1px;
|
||||
font-family: "Public";
|
||||
font-size: 1em;
|
||||
font-weight: 300;
|
||||
border-radius: 20px;
|
||||
border: solid rgb(110, 110, 110) 1.2px;
|
||||
color: rgb(110, 110, 110);
|
||||
transition: color 0.2s ease-out;
|
||||
background-color: rgb(255, 255, 255);
|
||||
transition: color 0.3s ease-out;
|
||||
}
|
||||
#global_nav #menu #search input[type=search]:hover {
|
||||
color: rgb(50, 50, 50);
|
||||
}
|
||||
#global_nav #menu #search input[type=search]:active {
|
||||
color: black;
|
||||
color: rgb(0, 0, 0);
|
||||
}
|
||||
#global_nav #menu #search button {
|
||||
background: none;
|
||||
@@ -284,11 +255,11 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
#global_nav #menu #search button svg {
|
||||
margin-top: 3px;
|
||||
margin-top: 5px;
|
||||
margin-left: -45px;
|
||||
height: 24px;
|
||||
height: 1.3rem;
|
||||
fill: rgb(110, 110, 110);
|
||||
transition: fill 0.2s ease-out;
|
||||
transition: fill 0.3s ease-out;
|
||||
}
|
||||
#global_nav #menu #search button svg:hover {
|
||||
fill: rgb(50, 50, 50);
|
||||
@@ -302,11 +273,61 @@ body {
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
#global_nav #menu .menu_item svg {
|
||||
height: 24px;
|
||||
margin-right: -5px;
|
||||
width: 1.3rem;
|
||||
height: 1.3rem;
|
||||
margin-right: 3px;
|
||||
fill: rgb(0, 0, 0);
|
||||
}
|
||||
#global_nav #menu .menu_item:hover {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1440px) {
|
||||
#buttons_container, #global_nav {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
#buttons_container .arrow svg {
|
||||
height: 1.2rem;
|
||||
}
|
||||
#buttons_container .mode {
|
||||
padding: 8px 10px 8px 7px;
|
||||
}
|
||||
#buttons_container .mode svg {
|
||||
height: 1.2rem;
|
||||
}
|
||||
#buttons_container .mode .mode_container {
|
||||
margin: 0px 3px 0px 5px;
|
||||
}
|
||||
#buttons_container .mode.active {
|
||||
padding: 8px 10px 8px 7px !important;
|
||||
}
|
||||
#buttons_container .mode.active .mode_container {
|
||||
margin: 0px 3px 0px 5px !important;
|
||||
}
|
||||
#buttons_container .mode:hover {
|
||||
padding: 8px 10px 8px 7px !important;
|
||||
}
|
||||
#buttons_container .mode:hover .mode_container {
|
||||
margin: 0px 3px 0px 5px !important;
|
||||
}
|
||||
#buttons_container .mode.collapsed {
|
||||
padding: 8px 2px;
|
||||
}
|
||||
#global_nav h1 {
|
||||
margin: 0px 0px 8px 5px;
|
||||
}
|
||||
#global_nav #menu #search input[type=search] {
|
||||
height: 1.5rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
#global_nav #menu #search button svg {
|
||||
margin-left: -23px;
|
||||
width: 1rem;
|
||||
}
|
||||
#global_nav #menu .menu_item svg {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=styles.css.map */
|
||||
|
||||
Reference in New Issue
Block a user