Fixed home slideshow + new version page infos
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
This commit is contained in:
parent
9a615bd92d
commit
6bfd9ae262
22 changed files with 755 additions and 603 deletions
|
|
@ -30,26 +30,6 @@
|
|||
font-stretch: normal;
|
||||
}
|
||||
|
||||
:root {
|
||||
--main-font: "neue-haas-grotesk-display", sans-serif;
|
||||
--font-size-S: 0.9rem;
|
||||
--font-size-L: 1.6rem;
|
||||
--font-size-XL: 11vw;
|
||||
--line-height-S: calc(var(--font-size-S) * 1.2);
|
||||
--text-color: black;
|
||||
--bg-color: white;
|
||||
--body-margin: 0.6rem;
|
||||
--nav-margin: 1rem;
|
||||
--apparition-duration: 0.3s;
|
||||
--disparition-duration: 0.3s;
|
||||
--indentation: 2rem;
|
||||
--low-opacity: 0.2;
|
||||
--half-screen: 50vw;
|
||||
--index-width: 40rem;
|
||||
--close-cursor: url(/assets/images/close-cursor.png), crosshair;
|
||||
--main-title-top: -0.7vw;
|
||||
--mix-blend-color: white;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--main-font);
|
||||
|
|
@ -63,20 +43,10 @@ body {
|
|||
bottom: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
grid-template-columns: 8;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
|
|
@ -95,239 +65,6 @@ ul {
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
[data-template="infos"] p:first-of-type {
|
||||
margin-top: var(--line-height-S);
|
||||
}
|
||||
|
||||
#slideshow {
|
||||
inset: 0;
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
button#mobile-menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* PROJECT SLIDESHOW */
|
||||
|
||||
.project-slideshow {
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
right: 0;
|
||||
position: absolute;
|
||||
|
||||
picture img,
|
||||
video.slide {
|
||||
max-width: 100%;
|
||||
max-height: calc(100vh - var(--body-margin) * 2);
|
||||
vertical-align: bottom;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
picture {
|
||||
inset: 0;
|
||||
}
|
||||
|
||||
.project-slideshow-container {
|
||||
display: block;
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
background-color: white;
|
||||
top: var(--body-margin);
|
||||
right: var(--body-margin);
|
||||
bottom: var(--body-margin);
|
||||
left: calc(var(--index-width) + var(--body-margin));
|
||||
.closer {
|
||||
inset: 0;
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
button.prev {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
border: none;
|
||||
cursor: w-resize;
|
||||
z-index: 1;
|
||||
width: 50%;
|
||||
left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
button.next {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
border: none;
|
||||
cursor: e-resize;
|
||||
z-index: 1;
|
||||
width: 50%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* PROJECT TOGGLE */
|
||||
|
||||
.fix {
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
/*! margin-top: var(--line-height-S); */
|
||||
display: grid;
|
||||
grid-template-columns: var(--index-width) auto;
|
||||
pointer-events: none;
|
||||
mix-blend-mode: difference;
|
||||
}
|
||||
|
||||
.toggle {
|
||||
display: none;
|
||||
p {
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
width: calc(3 / 6 * var(--index-width) - var(--body-margin));
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.fix:hover + .toggle {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.fix .date {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.closer {
|
||||
cursor: var(--close-cursor);
|
||||
}
|
||||
|
||||
.projects-index:has(.selected) {
|
||||
.project:not(.selected) {
|
||||
opacity: var(--low-opacity);
|
||||
pointer-events: none;
|
||||
.fix:hover + .toggle .project-slideshow-container {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PROJECT SLIDESHOW
|
||||
|
||||
.toggle .project-slideshow-container {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fix:hover + .toggle .project-slideshow-container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.selected .toggle .project-slideshow-container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
// -------
|
||||
|
||||
.project:not(.selected):hover {
|
||||
opacity: 1;
|
||||
.toggle {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.project > .toggle > .close-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.selected {
|
||||
opacity: 1;
|
||||
.toggle {
|
||||
display: grid;
|
||||
grid-template-columns:
|
||||
calc(3 / 6 * var(--index-width) - var(--body-margin))
|
||||
calc(3 / 6 * var(--index-width));
|
||||
gap: var(--body-margin);
|
||||
p {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.slide-number {
|
||||
display: block;
|
||||
}
|
||||
.project-description {
|
||||
display: block;
|
||||
}
|
||||
.toggle > .close-button {
|
||||
display: block;
|
||||
min-height: calc(var(--line-height-S) * 2);
|
||||
margin-bottom: calc(-1 * var(--line-height-S));
|
||||
}
|
||||
}
|
||||
|
||||
.slide-number {
|
||||
text-align: right;
|
||||
display: none;
|
||||
padding-right: var(--body-margin);
|
||||
color: var(--mix-blend-color);
|
||||
}
|
||||
|
||||
.project-toggler.grid {
|
||||
display: grid;
|
||||
grid-template-columns:
|
||||
calc(3 / 6 * var(--index-width) - var(--body-margin))
|
||||
calc(2 / 6 * var(--index-width) - var(--body-margin)) calc(
|
||||
1 / 6 * var(--index-width) - var(--body-margin)
|
||||
);
|
||||
gap: var(--body-margin);
|
||||
pointer-events: all;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
.project-toggler span {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.project-description {
|
||||
margin-bottom: var(--line-height-S);
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* INFOS */
|
||||
|
||||
[data-template="infos"] {
|
||||
div {
|
||||
padding-right: var(--body-margin);
|
||||
}
|
||||
main {
|
||||
position: relative;
|
||||
padding-top: calc(var(--line-height-S) + 0.35rem);
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-bottom: var(--font-size-XL);
|
||||
overflow: auto;
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#mobile-menu {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.main-infos {
|
||||
max-width: 100%;
|
||||
width: 660px;
|
||||
}
|
||||
.secondary-infos {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue