| | |
| | | @import "./syntax.scss"; |
| | | @import "./callouts.scss"; |
| | | |
| | | html { |
| | | scroll-behavior: smooth; |
| | |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | p, ul, text, a, tr, td, li, ol, ul { |
| | | p, ul, text, a, tr, td, li, ol, ul, .katex { |
| | | color: var(--darkgray); |
| | | fill: var(--darkgray); |
| | | } |
| | |
| | | padding: 4rem 30vw; |
| | | margin: 0 auto; |
| | | max-width: 1000px; |
| | | position: relative; |
| | | |
| | | & .left, & .right { |
| | | position: fixed; |
| | | padding: 0 4rem 0 6rem; |
| | | max-width: 30vw; |
| | | box-sizing: border-box; |
| | | top: 10rem; |
| | | } |
| | | |
| | | & .left { |
| | | left: 0; |
| | | } |
| | | |
| | | & .right { |
| | | right: 0; |
| | | } |
| | | |
| | | @media all and (max-width: 1200px) { |
| | | padding: 25px 5vw; |
| | | & .left, & .right { |
| | | padding: 0; |
| | | max-width: none; |
| | | position: initial; |
| | | } |
| | | } |
| | | |
| | | & p { |
| | |
| | | } |
| | | |
| | | blockquote { |
| | | font-style: italic; |
| | | margin-left: 0; |
| | | margin: 1rem 0; |
| | | border-left: 3px solid var(--secondary); |
| | | padding-left: 1rem; |
| | | transition: border-color 0.2s ease; |
| | |
| | | font-weight: revert; |
| | | margin: 2rem 0 0; |
| | | |
| | | &:hover > .hanchor { |
| | | color: var(--secondary); |
| | | } |
| | | |
| | | article > & > a { |
| | | color: var(--dark) |
| | | color: var(--dark); |
| | | &.internal { |
| | | background-color: transparent; |
| | | } |
| | | } |
| | | } |
| | | |
| | | h1, h2, h3, h4, h5, h6 { |
| | | &[id] > a { |
| | | margin: 0 0.5rem; |
| | | opacity: 0; |
| | | transition: opacity 0.2s ease; |
| | | transform: translateY(-0.1rem); |
| | | display: inline-block; |
| | | font-family: var(--codeFont); |
| | | user-select: none; |
| | | } |
| | | &[id]:hover > a { |
| | | opacity: 1; |
| | | } |
| | | } |
| | | |
| | |
| | | & > code { |
| | | background: none; |
| | | padding: 0; |
| | | font-size: 0.9rem; |
| | | font-size: 0.85rem; |
| | | counter-reset: line; |
| | | counter-increment: line 0; |
| | | display: grid; |
| | |
| | | padding: 0 1em |
| | | } |
| | | } |
| | | |
| | | audio, video { |
| | | width: 100%; |
| | | border-radius: 5px; |
| | | } |