Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 1 | /* |
| 2 | The CSS in this style tag is based off of Bear Blog's default CSS. |
| 3 | https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css |
| 4 | License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md |
| 5 | */ |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 6 | body { |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 7 | font-family: 'Fira Code', monospace; |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 8 | margin: 0; |
| 9 | padding: 0; |
| 10 | text-align: left; |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 11 | word-wrap: break-word; |
| 12 | overflow-wrap: break-word; |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 13 | color: rgb(var(--ctp-subtext1)); |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 14 | font-size: 20px; |
| 15 | line-height: 1.7; |
| 16 | } |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 17 | h1, |
| 18 | h2, |
| 19 | h3, |
| 20 | h4, |
| 21 | h5, |
| 22 | h6 { |
| 23 | margin: 0 0 0.5rem 0; |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 24 | color: rgb(var(--ctp-text)); |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 25 | line-height: 1.2; |
| 26 | } |
| 27 | h1 { |
| 28 | font-size: 3.052em; |
| 29 | } |
| 30 | h2 { |
| 31 | font-size: 2.441em; |
| 32 | } |
| 33 | h3 { |
| 34 | font-size: 1.953em; |
| 35 | } |
| 36 | h4 { |
| 37 | font-size: 1.563em; |
| 38 | } |
| 39 | h5 { |
| 40 | font-size: 1.25em; |
| 41 | } |
| 42 | strong, |
| 43 | b { |
| 44 | font-weight: 700; |
| 45 | } |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 46 | p { |
| 47 | margin-bottom: 1em; |
| 48 | } |
| 49 | .prose p { |
| 50 | margin-bottom: 2em; |
| 51 | } |
| 52 | textarea { |
| 53 | width: 100%; |
| 54 | font-size: 16px; |
| 55 | } |
| 56 | input { |
| 57 | font-size: 16px; |
| 58 | } |
| 59 | table { |
| 60 | width: 100%; |
| 61 | } |
| 62 | img { |
| 63 | max-width: 100%; |
| 64 | height: auto; |
| 65 | border-radius: 8px; |
| 66 | } |
| 67 | code { |
| 68 | padding: 2px 5px; |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 69 | border-radius: 2px; |
| 70 | } |
| 71 | pre { |
| 72 | padding: 1.5em; |
| 73 | border-radius: 8px; |
| 74 | } |
| 75 | pre > code { |
| 76 | all: unset; |
| 77 | } |
| 78 | blockquote { |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 79 | border-left: 4px solid rgb(var(--ctp-blue)); |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 80 | padding: 0 0 0 20px; |
| 81 | margin: 0px; |
| 82 | font-size: 1.333em; |
| 83 | } |
| 84 | hr { |
| 85 | border: none; |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 86 | border-top: 1px solid rgb(var(--ctp-text)); |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 87 | } |
Samuel Shuert | 3963283 | 2024-04-29 20:54:19 -0400 | [diff] [blame] | 88 | mark { |
| 89 | background-color: rgb(var(--ctp-yellow)); |
| 90 | color: rgb(var(--ctp-mantle)); |
| 91 | border-radius: 0.5vh; |
| 92 | } |
| 93 | sup > a { |
| 94 | color: rgb(var(--ctp-blue)); |
| 95 | } |
| 96 | |
| 97 | .data-footnote-backref { |
| 98 | color: rgb(var(--ctp-blue)); |
Samuel Shuert | 86826b8 | 2024-04-27 16:14:20 -0400 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | .sr-only { |
| 102 | border: 0; |
| 103 | padding: 0; |
| 104 | margin: 0; |
| 105 | position: absolute !important; |
| 106 | height: 1px; |
| 107 | width: 1px; |
| 108 | overflow: hidden; |
| 109 | /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */ |
| 110 | clip: rect(1px 1px 1px 1px); |
| 111 | /* maybe deprecated but we need to support legacy browsers */ |
| 112 | clip: rect(1px, 1px, 1px, 1px); |
| 113 | /* modern browsers, clip-path works inwards from each corner */ |
| 114 | clip-path: inset(50%); |
| 115 | /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */ |
| 116 | white-space: nowrap; |
| 117 | } |