hic-et-nunc/assets/css/src/_mobile.scss

144 lines
2.4 KiB
SCSS
Raw Normal View History

2026-05-14 17:22:34 +02:00
@media screen and (max-width: 1000px) {
2026-06-03 15:50:27 +02:00
:root {
2026-06-02 16:04:58 +02:00
--slider-height: 50vh;
2026-06-03 15:50:27 +02:00
--font-size-XL: 12.5vw;
--font-size-L: 1.5rem;
--font-size-S: 0.75rem;
2026-06-02 16:04:58 +02:00
}
2026-05-14 17:22:34 +02:00
body {
}
.project-slideshow {
position: fixed;
top: 0;
width: 100vw;
left: 0;
margin: 0;
2026-06-02 16:04:58 +02:00
height: var(--slider-height);
2026-05-14 17:22:34 +02:00
}
.project-slideshow img {
width: 100%;
height: 100%;
object-fit: cover;
}
.main-title {
2026-06-02 16:04:58 +02:00
font-size: var(--font-size-XL);
line-break: strict;
left: -0.65vw;
position: relative;
2026-06-03 15:50:27 +02:00
top: var(--main-title-top);
2026-06-02 16:04:58 +02:00
margin-top: var(--body-margin);
line-height: 0.75;
2026-05-14 17:22:34 +02:00
}
.project-index :has(.selected) {
}
2026-06-03 15:50:27 +02:00
.project-toggler.grid {
grid-template-columns: 2fr 2fr 1fr;
width: 100%;
2026-05-14 17:22:34 +02:00
}
2026-06-03 15:50:27 +02:00
.fix {
2026-05-14 17:22:34 +02:00
display: block;
}
2026-06-02 11:38:01 +02:00
main {
position: fixed;
top: 0;
bottom: 0;
overflow: auto;
width: calc(100% - var(--body-margin));
2026-06-03 15:50:27 +02:00
padding-top: var(--font-size-XL);
2026-06-02 11:38:01 +02:00
}
main:has(ul li.selected) {
2026-06-02 16:04:58 +02:00
top: var(--slider-height);
2026-06-03 15:50:27 +02:00
padding-top: 0;
2026-06-02 11:38:01 +02:00
}
nav.filter-menu {
2026-06-03 15:50:27 +02:00
position: sticky;
2026-06-02 11:38:01 +02:00
top: 0;
2026-06-03 15:50:27 +02:00
padding-top: var(--line-height-S);
margin: 0;
width: 100%;
}
nav.filter-menu:has(+ ul li.selected) {
2026-06-02 11:38:01 +02:00
}
ul.projects-index {
2026-06-03 15:50:27 +02:00
padding-top: var(--line-height-S);
2026-06-02 11:38:01 +02:00
position: absolute;
2026-06-03 15:50:27 +02:00
width: calc(100vw - (var(--body-margin) * 3));
overflow: auto;
padding-bottom: var(--font-size-XL);
}
.selected .fix:hover + .toggle {
display: block;
2026-06-02 11:38:01 +02:00
}
.fix:hover + .toggle {
display: none;
}
2026-06-02 16:04:58 +02:00
2026-06-03 15:50:27 +02:00
.selected .fix:hover .slide-number {
display: block;
}
2026-06-02 16:04:58 +02:00
.slide-number {
position: fixed;
top: var(--slider-height);
margin-top: calc(-2 * (var(--line-height-S)));
right: var(--body-margin);
}
2026-06-03 15:50:27 +02:00
.main-menu {
display: none;
}
.mobile-menu {
display: flex;
}
.close-mobile-menu {
position: fixed;
bottom: 0;
width: 100%;
left: 0;
font-size: var(--font-size-XL);
display: flex;
justify-content: center;
}
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;
}
}
@media (max-width: 687px) {
[data-template="infos"] div {
padding-right: var(--body-margin);
width: calc(100% - var(--body-margin));
}
2026-05-14 17:22:34 +02:00
}