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

79 lines
1.2 KiB
SCSS
Raw Normal View History

2026-05-14 17:22:34 +02:00
@media screen and (max-width: 1000px) {
2026-06-02 16:04:58 +02:00
* {
--slider-height: 50vh;
}
2026-05-14 17:22:34 +02:00
body {
background-color: red;
}
.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;
top: -0.7vw;
margin-top: var(--body-margin);
line-height: 0.75;
2026-05-14 17:22:34 +02:00
}
.project-index :has(.selected) {
}
.fix {
display: block;
}
.project-toggler.grid {
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));
}
main:has(ul li.selected) {
2026-06-02 16:04:58 +02:00
top: var(--slider-height);
2026-06-02 11:38:01 +02:00
}
nav.filter-menu {
position: absolute;
top: 0;
margin-top: calc(var(--line-height-S) * 2);
}
ul.projects-index {
top: calc(var(--line-height-S) * 5);
position: absolute;
}
.fix:hover + .toggle {
display: none;
}
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-05-14 17:22:34 +02:00
}