.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 { align-items: center; background-color: var(--bgcolor-nav); display: flex; flex-direction: row; flex-grow: 1; flex-shrink: 0; justify-content: space-between; min-height: 4.6rem; overflow-y: auto; padding: .2rem 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 { align-items: stretch; flex-direction: column; justify-content: space-between; } } nav a, nav button { --bgcolor-accent: transparent; --border-color: transparent; border-radius: 0; color: inherit; font-weight: bold; padding: 1rem; } @media (orientation: landscape) { nav a, nav button { padding: 2rem 0; } nav .spacer { flex-grow: 1; } nav button:last-child { margin-bottom: .4rem; } } @media (orientation: portrait) { nav .spacer { display: none; } } .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 { 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; font-size: 2.1rem; line-height: 1.285714285714286; margin-bottom: 0; margin-top: 2rem; 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); display: block; font-size: 1.1rem; line-height: 1.36363636; 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; }