| | |
| | | @use "./custom.scss"; |
| | | @use "./syntax.scss"; |
| | | @use "./callouts.scss"; |
| | | @use "./variables.scss" as *; |
| | | |
| | | html { |
| | | scroll-behavior: smooth; |
| | | -webkit-text-size-adjust: none; |
| | | text-size-adjust: none; |
| | | } |
| | | |
| | | body { |
| | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | p, ul, text, a, tr, td, li, ol, ul, .katex, .math { |
| | | p, |
| | | ul, |
| | | text, |
| | | a, |
| | | tr, |
| | | td, |
| | | li, |
| | | ol, |
| | | ul, |
| | | .katex, |
| | | .math { |
| | | color: var(--darkgray); |
| | | fill: var(--darkgray); |
| | | overflow-wrap: anywhere; |
| | | hyphens: auto; |
| | | } |
| | | |
| | | .math { |
| | |
| | | margin: 0 5vw; |
| | | } |
| | | |
| | | & p { |
| | | overflow-wrap: anywhere; |
| | | } |
| | | |
| | | & article { |
| | | & > h1 { |
| | | font-size: 2rem; |
| | | } |
| | | |
| | | & li:has(> input[type='checkbox']) { |
| | | & li:has(> input[type="checkbox"]) { |
| | | list-style-type: none; |
| | | padding-left: 0; |
| | | margin-left: -1.4rem; |
| | |
| | | flex-direction: row; |
| | | padding: 0; |
| | | width: initial; |
| | | margin-top: 4rem; |
| | | margin-top: 2rem; |
| | | } |
| | | } |
| | | |
| | | & .sidebar.left { |
| | | left: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth); |
| | | @media all and (max-width: $fullPageWidth) { |
| | | gap: 1rem; |
| | | gap: 0rem; |
| | | align-items: center; |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | & .center, & footer { |
| | | & .center, |
| | | & footer { |
| | | width: $pageWidth; |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | h1, h2, h3, h4, h5, h6 { |
| | | h1, |
| | | h2, |
| | | h3, |
| | | h4, |
| | | h5, |
| | | h6 { |
| | | &[id] > a[href^="#"] { |
| | | margin: 0 0.5rem; |
| | | opacity: 0; |
| | |
| | | font-family: var(--codeFont); |
| | | user-select: none; |
| | | } |
| | | |
| | | &[id]:hover > a { |
| | | opacity: 1; |
| | | } |
| | | } |
| | | |
| | | // typography improvements |
| | | h1 { |
| | | font-size: 1.75rem; |
| | | margin-top: 2.75rem; |
| | | } |
| | | |
| | | h2 { |
| | | font-size: 1.4rem; |
| | | margin-top: 2.4rem; |
| | | } |
| | | |
| | | h3 { |
| | | font-size: 1.12rem; |
| | | margin-top: 2.12rem; |
| | | } |
| | | |
| | | h4, |
| | | h5, |
| | | h6 { |
| | | font-size: 1rem; |
| | | margin-top: 2rem; |
| | | } |
| | | |
| | | div[data-rehype-pretty-code-fragment] { |
| | | line-height: 1.5rem; |
| | | line-height: 1.6rem; |
| | | position: relative; |
| | | |
| | | & > div[data-rehype-pretty-code-title] { |
| | |
| | | } |
| | | } |
| | | |
| | | &[data-line-numbers-max-digits='2'] > [data-line]::before { |
| | | &[data-line-numbers-max-digits="2"] > [data-line]::before { |
| | | width: 2rem; |
| | | } |
| | | |
| | | &[data-line-numbers-max-digits='3'] > [data-line]::before { |
| | | |
| | | &[data-line-numbers-max-digits="3"] > [data-line]::before { |
| | | width: 3rem; |
| | | } |
| | | } |
| | |
| | | background: var(--lightgray); |
| | | } |
| | | |
| | | tbody, li, p { |
| | | line-height: 1.5rem; |
| | | tbody, |
| | | li, |
| | | p { |
| | | line-height: 1.6rem; |
| | | } |
| | | |
| | | table { |
| | |
| | | border-collapse: collapse; |
| | | } |
| | | |
| | | td, th { |
| | | td, |
| | | th { |
| | | padding: 0.2rem 1rem; |
| | | border: 1px solid var(--gray); |
| | | } |
| | |
| | | background-color: var(--lightgray); |
| | | } |
| | | |
| | | audio, video { |
| | | audio, |
| | | video { |
| | | width: 100%; |
| | | border-radius: 5px; |
| | | } |
| | |
| | | flex: 1 1 auto; |
| | | } |
| | | |
| | | ul.overflow, ol.overflow { |
| | | ul.overflow, |
| | | ol.overflow { |
| | | height: 400px; |
| | | overflow-y: scroll; |
| | | |
| | |
| | | |
| | | &:after { |
| | | pointer-events: none; |
| | | content: ''; |
| | | content: ""; |
| | | width: 100%; |
| | | height: 50px; |
| | | height: 50px; |
| | | position: absolute; |
| | | left: 0; |
| | | bottom: 0; |