hic-et-nunc/assets/css/style.css
Camilledenoray 0badd67b46
All checks were successful
Deploy / Deploy to Production (push) Successful in 3s
Project-closer+css images projects
2026-06-05 12:13:02 +02:00

764 lines
No EOL
15 KiB
CSS

@import url("https://p.typekit.net/p.css?s=1&k=wdg5nfi&ht=tk&f=39496.39497&a=95222337&app=typekit&e=css");
button {
border: none;
padding: 0;
margin: 0;
text-align: inherit;
font: inherit;
cursor: pointer;
background-color: transparent;
color: inherit;
}
nav li {
list-style: none;
}
@font-face {
font-family: "neue-haas-grotesk-display";
src: url("https://use.typekit.net/af/174ae3/00000000000000007735bb5a/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("woff2"), url("https://use.typekit.net/af/174ae3/00000000000000007735bb5a/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("woff"), url("https://use.typekit.net/af/174ae3/00000000000000007735bb5a/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("opentype");
font-display: auto;
font-style: normal;
font-weight: 500;
font-stretch: normal;
}
@font-face {
font-family: "neue-haas-grotesk-display";
src: url("https://use.typekit.net/af/db1ce7/00000000000000007735bb5e/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("woff2"), url("https://use.typekit.net/af/db1ce7/00000000000000007735bb5e/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("woff"), url("https://use.typekit.net/af/db1ce7/00000000000000007735bb5e/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=i5&v=3") format("opentype");
font-display: auto;
font-style: italic;
font-weight: 500;
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);
font-size: var(--font-size-S);
line-height: var(--line-height-S);
margin: var(--body-margin);
top: 0;
position: absolute;
left: 0;
right: 0;
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;
width: -moz-fit-content;
width: fit-content;
max-width: 100%;
}
p + p {
/*! text-indent: var(--indentation); */
}
ul {
list-style: none;
margin: 0;
padding: 0;
margin: 0;
}
[data-template=infos] p:first-of-type {
margin-top: var(--line-height-S);
}
#slideshow {
inset: 0;
position: absolute;
z-index: 0;
}
nav.filter-menu {
display: flex;
flex-wrap: wrap;
opacity: 1;
position: relative;
font-size: var(--font-size-L);
pointer-events: all;
-moz-column-gap: calc(2 * var(--body-margin));
column-gap: calc(2 * var(--body-margin));
margin: calc(4 * var(--line-height-S)) 0 var(--line-height-S) 0;
width: calc(var(--index-width) - var(--body-margin));
line-height: normal;
}
nav.filter-menu a {
text-decoration: 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;
}
.project-slideshow picture img {
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));
}
.project-slideshow-container .all-projects-closer {
inset: 0;
display: block;
position: absolute;
width: auto;
}
.mix-blend-bg.all-projects-closer {
width: var(--index-width);
cursor: var(--close-cursor);
display: none;
}
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;
}
.fix:hover + .toggle {
display: block;
}
.fix .date {
text-align: right;
}
.toggle p {
z-index: 1;
position: relative;
width: calc(0.5 * var(--index-width) - var(--body-margin));
display: none;
}
.project-closer {
display: none;
}
.selected .project-closer {
display: block;
}
.unselected {
opacity: var(--low-opacity);
pointer-events: none;
}
.unselected:hover {
opacity: 1;
}
.unselected:hover .toggle {
display: none;
}
.selected {
opacity: 1;
}
.selected .toggle {
display: grid;
grid-template-columns: calc(0.5 * var(--index-width) - var(--body-margin)) calc(0.5 * var(--index-width));
gap: var(--body-margin);
}
.selected .toggle p {
display: block;
}
.unselected .toggle {
display: none;
}
.slide-number {
text-align: right;
display: none;
padding-right: var(--body-margin);
color: var(--mix-blend-color);
}
.selected .slide-number {
display: block;
}
.project-toggler.grid {
display: grid;
grid-template-columns: calc(0.5 * var(--index-width) - var(--body-margin)) calc(0.3333333333 * var(--index-width) - var(--body-margin)) calc(0.1666666667 * var(--index-width) - var(--body-margin));
gap: var(--body-margin);
pointer-events: all;
padding-bottom: var(--line-height-S);
cursor: inherit;
}
.project-toggler span {
cursor: pointer;
}
.project-description {
margin-bottom: var(--line-height-S);
display: none;
}
.selected .project-description {
display: block;
}
.project-toggler.closer {
cursor: var(--close-cursor);
display: none;
}
.selected .project-toggler.closer {
display: block;
}
.all-projects-closer {
position: fixed;
height: 100%;
width: var(--index-width);
cursor: var(--close-cursor);
display: none;
}
.selected + .all-projects-closer {
display: block;
}
.unselected + .all-projects-closer {
display: block;
}
/* INFOS */
[data-template=infos] div {
padding-right: var(--body-margin);
}
[data-template=infos] main {
position: absolute;
top: calc(var(--line-height-S) + 0.35rem);
display: flex;
flex-wrap: wrap;
bottom: auto;
padding-bottom: var(--font-size-XL);
}
[data-template=infos] .main-infos {
max-width: 100%;
width: 660px;
}
[data-template=infos] .secondary-infos {
max-width: 100%;
}
nav.main-menu {
width: calc(100% - var(--body-margin) * 2);
opacity: 0;
transition-duration: var(--disparition-duration);
transition-property: opacity;
position: absolute;
pointer-events: none;
z-index: 2;
/*! margin: var(--margin-XL); */
top: 0;
font-size: var(--font-size-XL);
padding-bottom: 4rem;
}
nav.main-menu ul {
margin-top: var(--line-height-S);
padding: 0;
font-size: var(--font-size-L);
z-index: 2;
position: absolute;
}
nav.main-menu ul li {
float: left;
color: var(--text-color);
}
nav.main-menu ul li a {
list-style: none;
text-decoration: none;
text-transform: initial;
cursor: pointer;
}
.title-nav {
font-size: var(--font-size-XL);
line-break: strict;
left: -0.65vw;
position: relative;
top: var(--main-title-top);
margin-top: var(--body-margin);
line-height: 0.75;
}
.title-nav a {
text-decoration: none;
padding-bottom: var(--nav-margin);
}
.title-nav-mobile {
display: none;
}
.main-title {
font-size: var(--font-size-S);
top: var(--body-margin);
cursor: pointer;
width: -moz-fit-content;
width: fit-content;
position: fixed;
}
header {
width: 100%;
position: fixed;
z-index: 2;
height: auto;
overflow: visible;
}
.main-title a {
text-decoration: none;
}
.main-title:hover ~ nav {
opacity: 1;
transition-duration: var(--apparition-duration);
transition-property: opacity;
pointer-events: all;
z-index: 1;
}
header:hover ~ main {
opacity: var(--low-opacity);
transition-duration: var(--apparition-duration);
}
main {
transition-duration: var(--disparition-duration);
transition-property: opacity;
}
.main-title:hover {
opacity: 0;
transition-duration: var(--apparition-duration);
}
.main-title:has(+ nav:hover) {
opacity: 0;
transition-duration: var(--apparition-duration);
}
nav.main-menu:hover {
opacity: 1;
position: absolute;
pointer-events: all;
z-index: 1;
}
[data-template=home] nav li .nav-item-home {
text-decoration: underline;
}
[data-template=index] nav li .nav-item-projects {
text-decoration: underline;
}
[data-template=infos] nav li .nav-item-about {
text-decoration: underline;
}
/* SPECIFIC TO HOME */
[data-template=home] .main-title {
font-size: var(--font-size-XL);
line-break: strict;
left: -0.65vw;
position: relative;
top: var(--main-title-top);
margin-top: var(--body-margin);
line-height: 0.75;
}
[data-template=home] .main-title a {
color: transparent;
}
[data-template=home] header {
mix-blend-mode: difference;
}
[data-template=home] .main-title span {
color: var(--mix-blend-color);
}
@media (min-width: 1500px) {
:root {
--main-title-top: -0.4vw;
}
}
/* MOBILE-MENU */
.mobile-menu {
display: none;
position: fixed;
bottom: var(--body-margin);
width: 100%;
left: 0;
box-sizing: border-box;
justify-content: center;
}
.toggle-mobile-menu {
position: fixed;
bottom: 0;
width: 100%;
left: 0;
font-size: var(--font-size-XL);
display: flex;
justify-content: center;
line-height: normal;
}
[data-template=home] .toggle-mobile-menu {
color: var(--mix-blend-color);
}
.toggle-mobile-menu[command=close] {
color: var(--text-color);
}
.mobile-menu button {
pointer-events: all;
}
.mobile-menu button:has(+ dialog:open) {
display: none;
}
dialog#mobile-menu-content:open {
padding: 0;
border: none;
display: flex;
justify-content: center;
align-items: center;
overflow: visible;
}
dialog#mobile-menu-content::backdrop {
background-color: var(--bg-color);
opacity: calc(1 - var(--low-opacity));
}
#mobile-menu-content ul {
margin-top: 0;
display: flex;
text-align: center;
}
#mobile-menu-content .title-nav {
position: fixed;
padding: var(--body-margin);
}
#home-slideshow {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#home-slideshow .slide {
display: none;
width: 100%;
height: 100%;
}
#home-slideshow .slide.active {
display: block;
}
#home-slideshow .slide.portrait-pair.active {
display: flex;
}
#home-slideshow .slide > picture,
#home-slideshow .slide > video {
width: 100%;
height: 100%;
}
#home-slideshow .slide.portrait-pair > picture {
width: 50%;
height: 100%;
}
#home-slideshow img,
#home-slideshow video {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
#home-slideshow .main-infos {
width: calc(0.75 * var(--index-width));
position: relative;
float: left;
}
.skills {
width: calc(0.5 * var(--index-width));
position: relative;
float: left;
}
.clients {
width: calc(0.5 * var(--index-width));
position: relative;
float: left;
}
.projects-index summary {
cursor: pointer;
}
.projects-index li.filtered-out {
display: none;
}
@media screen and (max-width: 1000px) {
:root {
--slider-height: 50vh;
--font-size-XL: 12.5vw;
--font-size-L: 1.5rem;
--font-size-S: 0.75rem;
}
.project-slideshow-container {
position: fixed;
top: 0;
width: 100vw;
left: 0;
margin: 0;
height: var(--slider-height);
}
.project-slideshow-container button.all-projects-closer {
display: none;
}
.project-slideshow {
inset: 0;
width: auto;
height: auto;
}
.project-slideshow picture {
inset: 0;
position: absolute;
}
.project-slideshow picture img {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.main-title {
font-size: var(--font-size-XL);
line-break: strict;
left: -0.65vw;
position: relative;
top: var(--main-title-top);
margin-top: var(--body-margin);
line-height: 0.75;
}
.project-toggler.grid {
grid-template-columns: 2fr 2fr 1fr;
width: 100%;
}
.fix {
display: block;
}
main {
position: fixed;
top: 0;
bottom: 0;
overflow: auto;
width: calc(100% - var(--body-margin));
padding-top: var(--font-size-XL);
}
main:has(nav li.selected) {
top: var(--slider-height);
padding-top: 0;
}
nav.filter-menu {
position: sticky;
top: 0;
padding-top: var(--line-height-S);
margin: 0;
width: 100%;
}
nav.projects-index {
padding-top: var(--line-height-S);
position: absolute;
width: calc(100vw - var(--body-margin) * 3);
overflow: auto;
padding-bottom: var(--font-size-XL);
}
.selected .fix:hover + .toggle {
display: block;
}
.fix:hover + .toggle {
display: none;
}
.selected .fix:hover .slide-number {
display: block;
}
.slide-number {
position: fixed;
top: var(--slider-height);
margin-top: calc(-2 * (var(--line-height-S)));
left: var(--body-margin);
padding-right: 0;
}
.main-menu {
display: none;
}
.mobile-menu {
display: flex;
}
.mobile-menu ul {
font-size: var(--font-size-L);
}
.mobile-menu ul a {
text-decoration: none;
}
header:hover ~ main {
opacity: 1;
transition-duration: 0;
}
.main-title:hover {
opacity: 1;
transition-duration: 0;
}
.main-title:has(+ nav:hover) {
opacity: 1;
transition-duration: 0;
}
#home-slideshow img:not(.slide.active img) {
display: none;
}
.project-toggler.closer {
position: fixed;
top: var(--slider-height);
margin-top: calc(-2.3 * (var(--line-height-S)));
right: var(--body-margin);
font-size: var(--font-size-L);
cursor: pointer;
mix-blend-mode: difference;
}
.project-toggler.closer::before {
content: "Fermer";
color: var(--mix-blend-color);
}
.selected .toggle {
display: block;
}
.mix-blend-bg {
inset: 0;
background-color: white;
width: auto;
z-index: -1;
height: var(--slider-height);
}
}
@media (max-width: 687px) {
[data-template=infos] div {
padding-right: var(--body-margin);
width: calc(100% - var(--body-margin));
}
}/*# sourceMappingURL=style.css.map */