| *, *::before, *::after { box-sizing: border-box; } |
| |
| html { |
| font-size: $base-font-size; |
| scroll-behavior: smooth; |
| -webkit-text-size-adjust: 100%; |
| } |
| |
| body { |
| margin: 0; |
| font-family: $font-family; |
| font-weight: 400; |
| line-height: $base-line-height; |
| color: $body-text; |
| background: $background; |
| } |
| |
| a { |
| color: $solr-orange; |
| text-decoration: none; |
| &:hover { color: $solr-orange-dark; text-decoration: underline; } |
| } |
| |
| h1, h2, h3, h4, h5, h6 { |
| font-family: $font-family; |
| font-weight: 600; |
| line-height: 1.3; |
| margin: $sp5 0 $sp3; |
| color: $solr-dark; |
| } |
| h1 { font-size: 1.875rem; font-weight: 700; color: $solr-orange; margin-top: 0; } |
| h2 { font-size: 1.375rem; border-bottom: 1px solid $border-color; padding-bottom: $sp2; } |
| h3 { font-size: 1.125rem; } |
| h4 { font-size: 1rem; } |
| h5 { font-size: 0.9375rem; } |
| h6 { font-size: 0.875rem; color: $muted-text; } |
| |
| p { margin: 0 0 $sp3; } |
| |
| ul, ol { margin: 0 0 $sp3; padding-left: $sp5; } |
| li { margin-bottom: $sp1; } |
| li > ul, li > ol { margin-top: $sp1; margin-bottom: 0; } |
| |
| code { |
| font-family: $font-mono; |
| font-size: 0.875em; |
| background: $code-bg; |
| color: $code-text; |
| padding: 2px 5px; |
| border-radius: 3px; |
| border: 1px solid #e0e0e0; |
| } |
| |
| pre { |
| background: $solr-dark; |
| color: #f8f8f2; |
| padding: $sp4; |
| border-radius: 6px; |
| overflow-x: auto; |
| margin: 0 0 $sp4; |
| line-height: 1.5; |
| code { |
| background: none; |
| border: none; |
| padding: 0; |
| color: inherit; |
| font-size: 0.875rem; |
| } |
| } |
| |
| table { |
| width: 100%; |
| border-collapse: collapse; |
| margin-bottom: $sp4; |
| font-size: 0.9375rem; |
| th { |
| background: $solr-dark; |
| color: #fff; |
| font-weight: 600; |
| text-align: left; |
| padding: $sp2 $sp3; |
| border: 1px solid #3c3851; |
| } |
| td { |
| padding: $sp2 $sp3; |
| border: 1px solid $border-color; |
| vertical-align: top; |
| } |
| tr:nth-child(even) td { background: $bg-alt; } |
| } |
| |
| blockquote { |
| margin: 0 0 $sp4; |
| padding: $sp3 $sp4; |
| border-left: 4px solid $border-color; |
| color: $muted-text; |
| background: $bg-alt; |
| border-radius: 0 4px 4px 0; |
| p:last-child { margin-bottom: 0; } |
| } |
| |
| hr { border: none; border-top: 1px solid $border-color; margin: $sp5 0; } |
| |
| img { max-width: 100%; height: auto; } |
| |
| strong { font-weight: 700; } |
| em { font-style: italic; } |
| |
| // Rouge syntax highlighting |
| .highlight { margin: 0 0 $sp4; border-radius: 6px; overflow: hidden; } |