forked from nostr/nostrweb
184 lines
3.0 KiB
CSS
184 lines
3.0 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;
|
|
width: 100%;
|
|
}
|
|
main .content {
|
|
height: 1px;
|
|
padding-bottom: 10rem;
|
|
}
|
|
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 h1 {
|
|
padding: 0;
|
|
}
|
|
|
|
.hero {
|
|
--extra-space: calc(var(--profileimg-size) + var(--gap-half));
|
|
padding: var(--gap-half);
|
|
}
|
|
.hero-title {
|
|
align-items: baseline;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--gap-half);
|
|
justify-content: end;
|
|
max-width: var(--content-width);
|
|
}
|
|
.hero-title h1 {
|
|
flex-grow: 1;
|
|
margin-bottom: 0;
|
|
padding-left: var(--extra-space);
|
|
}
|
|
.hero-title button {
|
|
line-height: 1;
|
|
}
|
|
|
|
.hero p {
|
|
max-width: calc(var(--content-width) - var(--extra-space));
|
|
padding-left: var(--extra-space);
|
|
}
|
|
|
|
.hero .hero-npub {
|
|
color: var(--color-accent);
|
|
font-size: 1.1rem;
|
|
display: block;
|
|
max-width: 100%;
|
|
overflow: clip;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
@media (min-width: 54ch) {
|
|
.hero .hero-npub {
|
|
padding-left: var(--extra-space);
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.hero footer {
|
|
padding-left: var(--extra-space);
|
|
}
|
|
|
|
.hero footer a {
|
|
text-decoration: none;
|
|
}
|