| | |
| | | |
| | | (function calcNavHeight(){ |
| | | const nav = elem('.nav_header'); |
| | | const navHeight = nav.offsetHeight; |
| | | const docContent = elem('main'); |
| | | docContent.style.paddingTop = `${navHeight + 20}px`; |
| | | return navHeight + 20; |
| | | const navHeight = nav.offsetHeight + 25; |
| | | const docContent = elem('main'); |
| | | docContent.style.paddingTop = `${navHeight}px`; |
| | | return navHeight; |
| | | })(); |
| | | |
| | | (function markInlineCodeTags(){ |
| | |
| | | |
| | | aside |
| | | position: sticky |
| | | top: 7rem |
| | | top: 5rem |
| | | max-height: 84vh |
| | | overflow-y: auto |
| | | padding-bottom: 2rem |
| | | h3 |
| | | position: relative |
| | | ul |
| | |
| | | display: grid |
| | | grid-template-columns: 10rem 1fr 1fr |
| | | grid-gap: 1rem |
| | | padding: 1rem 1.5rem !important |
| | | padding: 0 1.5rem !important |
| | | align-items: center |
| | | background-color: var(--bg) |
| | | &_header |
| | |
| | | width: 100% |
| | | background-color: var(--bg) |
| | | z-index: 999999 |
| | | border-bottom: 1px solid var(--border-color) |
| | | |
| | | &_body |
| | | display: flex |
| | | &-link |
| | |
| | | --text: var(--dark) |
| | | --theme: #20c997 |
| | | --font: 'Metropolis', sans-serif |
| | | --border-color: #eee |
| | | &::after |
| | | content: "" |
| | | height: 15vh |
| | | position: fixed |
| | | bottom: 0 |
| | | width: 100vw |
| | | z-index: 9999 |
| | | background: linear-gradient(to top, var(--bg), transparent) |
| | | |
| | | @media (prefers-color-scheme: dark) |
| | | html |
| | | * |
| | | box-shadow: none !important |
| | | @media (prefers-color-scheme: dark) |
| | | --bg: var(--dark) |
| | | --text: var(--light) |
| | | --accent: var(--bubble) |
| | | --overlay: var(--bubble) |
| | | --border-color: transparent |
| | | * |
| | | box-shadow: none !important |
| | | &::after |
| | | background: linear-gradient(to top, var(--bg), transparent) |
| | | |
| | | %narrow |
| | | max-width: 750px |