ajouts des éléments de l'ui globale
This commit is contained in:
+214
-59
@@ -1,4 +1,9 @@
|
||||
/* mix blend mode est dépendant du stacking context */
|
||||
$global_margins: 1.5vh 1vw;
|
||||
|
||||
$buttons_border_width: 1.2px;
|
||||
|
||||
$grey_inactive: rgb(110, 110, 110);
|
||||
$grey_hover: rgb(50, 50, 50);
|
||||
|
||||
@font-face {
|
||||
font-family: 'Public';
|
||||
@@ -14,6 +19,12 @@
|
||||
src: url('assets/fonts/PublicSans-Light.ttf') format('TrueType');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Ortica';
|
||||
font-style: bold;
|
||||
font-weight: 300;
|
||||
src: url('assets/fonts/Ortica-Bold.woff2') format('woff2');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -30,8 +41,12 @@ body {
|
||||
|
||||
|
||||
|
||||
|
||||
#content {
|
||||
padding: $global_margins;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
@@ -40,8 +55,8 @@ body {
|
||||
z-index: 1;
|
||||
|
||||
svg {
|
||||
width: 30%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
height: 50%;
|
||||
path {
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -49,8 +64,9 @@ body {
|
||||
|
||||
svg#fill {
|
||||
fill: white;
|
||||
/* mix blend mode est dépendant du stacking context */
|
||||
mix-blend-mode: overlay;
|
||||
opacity: 0.6;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
svg#stroke {
|
||||
@@ -59,66 +75,13 @@ body {
|
||||
stroke: black;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
|
||||
#buttons_container {
|
||||
position: absolute;
|
||||
bottom: 5vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
.mode {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
margin: 0px 10px;
|
||||
padding: 7px 15px;
|
||||
padding-left: 10px;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
border: solid 0.8px rgba(0, 0, 0, 0.5);
|
||||
transition: border 0.4s ease-in-out;
|
||||
font-weight: 300;
|
||||
font-size: 1rem;
|
||||
svg {
|
||||
width: 28px;
|
||||
height: auto;
|
||||
margin-right: 10px;
|
||||
.thick {
|
||||
transition: stroke-width 0.2s ease-in-out;
|
||||
stroke-width: 0.8;
|
||||
stroke: black;
|
||||
}
|
||||
.thin {
|
||||
transition: stroke-width 0.2s ease-in-out;
|
||||
stroke-width: 0.5;
|
||||
stroke: black;
|
||||
}
|
||||
}
|
||||
p {
|
||||
height: fit-content;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
.mode.active {
|
||||
font-weight: 400;
|
||||
border: solid 1.2px rgba(0, 0, 0, 1);
|
||||
svg .thick {
|
||||
stroke-width: 1.2;
|
||||
stroke: black;
|
||||
}
|
||||
svg .thin {
|
||||
stroke-width: 0.6;
|
||||
stroke: black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#BG_BG_BG {
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
@@ -131,6 +94,8 @@ body {
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
@@ -150,4 +115,194 @@ body {
|
||||
|
||||
#grain-bg > * {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
#buttons_container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: $global_margins;
|
||||
height: 4vh;
|
||||
.niveau_profondeur {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
margin-right: 30px;
|
||||
width: 5vw;
|
||||
p {
|
||||
font-weight: 300;
|
||||
cursor: pointer;
|
||||
}
|
||||
p.selected {
|
||||
font-weight: 400;
|
||||
text-decoration: underline;
|
||||
}
|
||||
p:hover {
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
.arrow {
|
||||
margin-right: 15px;
|
||||
svg {
|
||||
height: 27px;
|
||||
width: auto;
|
||||
fill: white;
|
||||
stroke: black;
|
||||
stroke-width: 0;
|
||||
cursor: pointer;
|
||||
margin-top: 4px;
|
||||
transition: fill 0.2s ease-out;
|
||||
}
|
||||
svg:hover {
|
||||
fill: $grey_inactive;
|
||||
}
|
||||
svg:active {
|
||||
fill: $grey_hover;
|
||||
}
|
||||
}
|
||||
.arrow:last-of-type {
|
||||
margin-right: 0;
|
||||
margin-left: 12px;
|
||||
}
|
||||
.mode {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
margin: 0;
|
||||
margin-right: 14px;
|
||||
padding: 7px 15px;
|
||||
padding-left: 10px;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
border: solid 0.8px $grey_inactive;
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
transition: border 0.1s ease-out, color 0.1s ease-out;
|
||||
font-weight: 300;
|
||||
font-size: 1rem;
|
||||
svg {
|
||||
width: 28px;
|
||||
height: auto;
|
||||
margin-right: 10px;
|
||||
.thick {
|
||||
transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
|
||||
stroke-width: 0.8;
|
||||
stroke: $grey_inactive;
|
||||
}
|
||||
.thin {
|
||||
transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
|
||||
stroke-width: 0.5;
|
||||
stroke: $grey_inactive;
|
||||
}
|
||||
.circle-fill {
|
||||
fill: $grey_inactive;
|
||||
}
|
||||
}
|
||||
p {
|
||||
height: fit-content;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
.mode.active {
|
||||
font-weight: 400;
|
||||
border: solid $buttons_border_width rgba(0, 0, 0, 1);
|
||||
color: rgba(0, 0, 0, 1);
|
||||
svg .thick {
|
||||
stroke-width: 1.2;
|
||||
stroke: rgba(0, 0, 0, 1);
|
||||
}
|
||||
svg .thin {
|
||||
stroke-width: 0.6;
|
||||
stroke: rgba(0, 0, 0, 1);
|
||||
}
|
||||
svg .circle-fill {
|
||||
fill: rgba(0, 0, 0, 1);
|
||||
}
|
||||
}
|
||||
.mode:hover {
|
||||
color: $grey_hover;
|
||||
border-color: $grey_hover;
|
||||
svg .thick, svg .thin {
|
||||
stroke: $grey_hover;
|
||||
}
|
||||
svg .circle-fill {
|
||||
fill: $grey_hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#global_nav {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: $global_margins;
|
||||
z-index: 1;
|
||||
h1 {
|
||||
font-family: 'Ortica';
|
||||
font-size: 1.7em;
|
||||
margin-bottom: 10px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
#menu {
|
||||
display: flex;
|
||||
#search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
input[type="search"] {
|
||||
height: 34px;
|
||||
width: 10vw;
|
||||
padding-left: 13px;
|
||||
padding-right: 30px;
|
||||
padding-bottom: 2px;
|
||||
font-family: 'Public';
|
||||
font-size: 1em;
|
||||
font-weight: 300;
|
||||
border-radius: 20px;
|
||||
border: solid $grey_inactive $buttons_border_width;
|
||||
color: $grey_inactive;
|
||||
transition: color 0.2s ease-out;
|
||||
}
|
||||
input[type="search"]:hover {
|
||||
color: $grey_hover;
|
||||
}
|
||||
input[type="search"]:active {
|
||||
color: black;
|
||||
}
|
||||
button {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
svg {
|
||||
margin-top: 3px;
|
||||
margin-left: -45px;
|
||||
height: 24px;
|
||||
fill: $grey_inactive;
|
||||
transition: fill 0.2s ease-out;
|
||||
}
|
||||
svg:hover {
|
||||
fill: $grey_hover;
|
||||
}
|
||||
}
|
||||
}
|
||||
.menu_item {
|
||||
font-weight: 300;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
margin: 0 10px;
|
||||
padding-bottom: 2px;
|
||||
svg {
|
||||
height: 24px;
|
||||
margin-right: -5px;
|
||||
}
|
||||
}
|
||||
.menu_item:hover {
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user