| | |
| | | @import "./syntax.scss"; |
| | | @import "./callouts.scss"; |
| | | @use "./syntax.scss"; |
| | | @use "./callouts.scss"; |
| | | @use "./variables.scss" as *; |
| | | |
| | | html { |
| | | scroll-behavior: smooth; |
| | | & footer > p { |
| | | text-align: center !important; |
| | | } |
| | | } |
| | | |
| | | body { |
| | |
| | | a { |
| | | font-weight: 600; |
| | | text-decoration: none; |
| | | transition: all 0.2s ease; |
| | | transition: color 0.2s ease; |
| | | color: var(--secondary); |
| | | |
| | | &:hover { |
| | |
| | | } |
| | | } |
| | | |
| | | .desktop-only { |
| | | display: initial; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | display: none; |
| | | } |
| | | } |
| | | |
| | | .mobile-only { |
| | | display: none; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | display: initial; |
| | | } |
| | | } |
| | | |
| | | .page { |
| | | margin: 6rem 35vw 6rem 20vw; |
| | | max-width: 1000px; |
| | | position: relative; |
| | | |
| | | & .left, & .right { |
| | | position: fixed; |
| | | height: 100vh; |
| | | overflow-y: scroll; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | flex-direction: column; |
| | | top: 0; |
| | | gap: 2rem; |
| | | padding: 6rem; |
| | | } |
| | | |
| | | & .left { |
| | | left: 0; |
| | | padding-left: 10vw; |
| | | width: 20vw; |
| | | } |
| | | |
| | | & .right { |
| | | right: 0; |
| | | padding-right: 10vw; |
| | | width: 35vw; |
| | | } |
| | | |
| | | @media all and (max-width: 1200px) { |
| | | margin: 25px 5vw; |
| | | & .left, & .right { |
| | | padding: 0; |
| | | height: initial; |
| | | max-width: none; |
| | | position: initial; |
| | | } |
| | | @media all and (max-width: $fullPageWidth) { |
| | | margin: 0 5vw; |
| | | } |
| | | |
| | | & p { |
| | |
| | | & > h1 { |
| | | font-size: 2rem; |
| | | } |
| | | |
| | | // darkmode diagrams |
| | | & svg { |
| | | stroke: var(--dark); |
| | | } |
| | | |
| | | & ul:has(input[type='checkbox']) { |
| | | list-style-type: none; |
| | | padding-left: 0; |
| | | } |
| | | } |
| | | |
| | | & > #quartz-body { |
| | | width: 100%; |
| | | display: flex; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | & .left, & .right { |
| | | flex: 1; |
| | | width: calc(calc(100vw - $pageWidth) / 2); |
| | | @media all and (max-width: $fullPageWidth) { |
| | | width: initial; |
| | | } |
| | | } |
| | | |
| | | & .left-inner, & .right-inner { |
| | | display: flex; |
| | | flex-direction: column; |
| | | gap: 2rem; |
| | | top: 0; |
| | | width: $sidePanelWidth; |
| | | margin-top: $topSpacing; |
| | | box-sizing: border-box; |
| | | padding: 0 4rem; |
| | | position: fixed; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | position: initial; |
| | | flex-direction: row; |
| | | padding: 0; |
| | | width: initial; |
| | | margin-top: 4rem; |
| | | } |
| | | } |
| | | |
| | | & .left-inner { |
| | | left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth); |
| | | @media all and (max-width: $fullPageWidth) { |
| | | gap: 1rem; |
| | | align-items: center; |
| | | } |
| | | } |
| | | |
| | | & .right-inner { |
| | | right: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth); |
| | | & > * { |
| | | @media all and (max-width: $fullPageWidth) { |
| | | flex: 1; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | & .page-header { |
| | | width: $pageWidth; |
| | | margin: $topSpacing auto 0 auto; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | width: initial; |
| | | margin-top: 2rem; |
| | | } |
| | | } |
| | | |
| | | & .center, & footer { |
| | | width: $pageWidth; |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | @media all and (max-width: $fullPageWidth) { |
| | | width: initial; |
| | | margin-left: 0; |
| | | margin-right: 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | input[type="checkbox"] { |
| | | transform: translateY(2px); |
| | | color: var(--secondary); |
| | | border-color: var(--lightgray); |
| | | background-color: var(--light); |
| | | } |
| | | |
| | | blockquote { |
| | |
| | | } |
| | | |
| | | h1, h2, h3, h4, h5, h6 { |
| | | &[id] > a { |
| | | &[id] > a[href^="#"] { |
| | | margin: 0 0.5rem; |
| | | opacity: 0; |
| | | transition: opacity 0.2s ease; |
| | |
| | | font-family: var(--codeFont); |
| | | padding: 0.5rem; |
| | | border-radius: 5px; |
| | | overflow-x: scroll; |
| | | overflow-x: auto; |
| | | border: 1px solid var(--lightgray); |
| | | |
| | | & > code { |
| | |
| | | .spacer { |
| | | flex: 1 1 auto; |
| | | } |
| | | |
| | | ul.overflow, ol.overflow { |
| | | height: 400px; |
| | | overflow-y: scroll; |
| | | |
| | | & > li:last-of-type { |
| | | margin-bottom: 50px; |
| | | } |
| | | |
| | | &:after { |
| | | pointer-events: none; |
| | | content: ''; |
| | | width: 100%; |
| | | height: 50px; |
| | | position: absolute; |
| | | left: 0; |
| | | bottom: 0; |
| | | background: linear-gradient(transparent 0px, var(--light)); |
| | | } |
| | | } |