You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.2 KiB
CSS
133 lines
2.2 KiB
CSS
.root {
|
|
display: flex;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
flex-direction: column;
|
|
}
|
|
@media (orientation: landscape) {
|
|
.root {
|
|
flex-direction: row-reverse;
|
|
}
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
height: 100%;
|
|
overflow: clip;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
aside {
|
|
z-index: 4;
|
|
}
|
|
|
|
nav {
|
|
background-color: var(--bgcolor-nav);
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
justify-content: space-between;
|
|
overflow-y: auto;
|
|
padding: 0 1.5rem;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
@supports (padding: max(0px)) {
|
|
nav {
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
}
|
|
@media (orientation: landscape) {
|
|
nav {
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
nav a,
|
|
nav button {
|
|
--bgcolor-accent: transparent;
|
|
--border-color: transparent;
|
|
border-radius: 0;
|
|
padding: 1rem;
|
|
}
|
|
@media (orientation: landscape) {
|
|
nav a,
|
|
nav button {
|
|
padding: 2rem 0;
|
|
}
|
|
}
|
|
|
|
.view {
|
|
background-color: var(--bgcolor);
|
|
display: flex;
|
|
flex-direction: column;
|
|
left: 0;
|
|
min-height: 100%;
|
|
opacity: 1;
|
|
overflow-x: clip;
|
|
position: absolute;
|
|
top: 0;
|
|
transform: translateX(0);
|
|
transition: transform .3s cubic-bezier(.465,.183,.153,.946);
|
|
width: 100%;
|
|
will-change: transform;
|
|
z-index: 2;
|
|
}
|
|
@media (orientation: landscape) {
|
|
.view {
|
|
transition: opacity .3s cubic-bezier(.465,.183,.153,.946);
|
|
}
|
|
}
|
|
.view.view-next {
|
|
z-index: 3;
|
|
}
|
|
.view.view-prev {
|
|
z-index: 1;
|
|
}
|
|
@media (orientation: portrait) {
|
|
.view.view-next {
|
|
transform: translateX(100%);
|
|
}
|
|
.view.view-prev {
|
|
transform: translateX(-20%);
|
|
}
|
|
}
|
|
@media (orientation: landscape) {
|
|
.view.view-next,
|
|
.view.view-next {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
margin-inline: auto;
|
|
overflow-y: auto;
|
|
padding: var(--gap-half) 0 0 0;
|
|
width: 100%;
|
|
}
|
|
main .content {
|
|
height: 1px;
|
|
}
|
|
nav .content {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
nav a {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.content > header {
|
|
padding: 3rem 3rem 3rem calc(var(--profileimg-size) + var(--gap));
|
|
}
|