2024-09-22 21:32:01 +02:00
|
|
|
@media (prefers-reduced-motion: reduce),
|
|
|
|
(max-height: 649px), (max-width: 649px) {
|
|
|
|
|
2024-09-25 18:44:09 +02:00
|
|
|
html {
|
|
|
|
--side: 0px;
|
|
|
|
--half: 0px;
|
|
|
|
--nhalf: 0px;
|
|
|
|
}
|
|
|
|
|
2024-09-22 21:32:01 +02:00
|
|
|
/* LAYOUT */
|
|
|
|
|
|
|
|
body {
|
|
|
|
display: grid;
|
|
|
|
grid-template: "menu" 5em "body" 1fr;
|
|
|
|
/* height: 100vh; height: 100dvh; */
|
|
|
|
/* width: 100vw; width: 100dvw; */
|
|
|
|
}
|
|
|
|
|
|
|
|
#face-menu { grid-area: menu; }
|
|
|
|
#outer { grid-area: body; }
|
|
|
|
|
|
|
|
#outer {
|
|
|
|
position: relative;
|
|
|
|
height: 90%;
|
|
|
|
width: 90%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#outer::after {
|
|
|
|
content: ' ';
|
|
|
|
position: absolute;
|
|
|
|
inset: 0;
|
|
|
|
box-shadow: 0 0 40px hsl(var(--shadow-hsl) / 40%);
|
|
|
|
mix-blend-mode: multiply;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* not really a cube any more. but */
|
|
|
|
#cube, #cube > section {
|
|
|
|
position: absolute;
|
|
|
|
inset: 0;
|
|
|
|
}
|
|
|
|
#cube > section { overflow: auto; }
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
html { --shadow-hsl: 60deg 100% 96%; }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* BACKGROUND FIXES */
|
|
|
|
|
|
|
|
@media (max-width: 649px) {
|
|
|
|
#cube #hello {
|
|
|
|
background-size: auto 80%, auto, auto;
|
|
|
|
background-position: bottom -20% right 60%, center, center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-height: 649px) {
|
|
|
|
#cube #hello {
|
|
|
|
background-size: auto 80%, auto, auto;
|
|
|
|
background-position: bottom right, center, center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 649px) {
|
|
|
|
#cube #activities {
|
|
|
|
background-size: auto 30%, auto, auto;
|
|
|
|
background-position: bottom left 70%, center, center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#cube #six {
|
|
|
|
background-position: bottom left 70%, center, center;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 649px) {
|
|
|
|
#cube #six {
|
|
|
|
background-size: auto 100%, auto, auto;
|
|
|
|
background-position: bottom left 70%, center, center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-height: 649px) {
|
|
|
|
#cube #six {
|
|
|
|
background-size: cover;
|
|
|
|
background-position: top 15% center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* TRANSITIONS */
|
|
|
|
|
|
|
|
#face-menu :checked + label {
|
|
|
|
background: hsl(var(--menu-bg-hsl));
|
|
|
|
}
|
|
|
|
#face-menu label {
|
|
|
|
transition: background 0.1s ease-in;
|
|
|
|
}
|
|
|
|
|
2024-09-26 02:21:00 +02:00
|
|
|
#cube > :is(section[data-state=entering], #a) {
|
|
|
|
z-index: 1;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#cube > :is(section[data-state=active], #a) {
|
2024-09-22 21:32:01 +02:00
|
|
|
z-index: 1;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.1s ease-in;
|
|
|
|
}
|
|
|
|
|
2024-09-26 02:21:00 +02:00
|
|
|
#cube > :is(section[data-state=leaving], #a) {
|
2024-09-22 21:32:01 +02:00
|
|
|
z-index: -1;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0s 0.1s ease-in;
|
|
|
|
}
|
2024-09-26 02:21:00 +02:00
|
|
|
|
|
|
|
#cube > :is(section[data-state=hidden], #a) {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-09-22 21:32:01 +02:00
|
|
|
|
|
|
|
}
|