├── .gitignore ├── LICENSE ├── README.md ├── archetypes └── default.md ├── config.toml ├── content ├── _index.md ├── about.md └── posts │ ├── _index.md │ ├── emoji-support.md │ ├── markdown-syntax.md │ ├── placeholder-text.md │ └── rich-content.md ├── layouts ├── _default │ ├── baseof.html │ ├── list.html │ └── single.html ├── index.html └── partials │ ├── footer.html │ ├── head.html │ └── header.html └── static └── css └── main.css /.gitignore: -------------------------------------------------------------------------------- 1 | public/ 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Linus Lee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Carlisle ✨ 2 | 3 | Carlisle is a minimal template for a Hugo site. Carlisle is the basis for my custom theme mostly shared across 4 | 5 | - [thesephist.com](https://thesephist.com) 6 | - [linus.coffee](https://linus.coffee) 7 | - [atypicalpress.com](https://atypicalpress.com) 8 | - [COVID Hacks](https://covidhacks.io) 9 | 10 | ![Carlisle sample](https://repository-images.githubusercontent.com/279123616/89ca9d00-c47b-11ea-887d-3921387bbac3) 11 | 12 | Carlisle can be easily deployed on [Vercel](https://vercel.com/guides/deploying-hugo-with-vercel). Check out the live demo at [carlisle.thesephist.vercel.app](https://carlisle.thesephist.vercel.app). 13 | 14 | To use this template, simply install [Hugo](https://gohugo.io), fork this repository, and start customizing. 15 | 16 | ## License 17 | 18 | The Carlisle template is licensed under the liberal [MIT License](/LICENSE). 19 | 20 | Sample content within `/content/posts/` is taken from [Hugo Basic Examples](https://github.com/gohugoio/hugoBasicExample) and licensed under their independent MIT License. 21 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- 1 | baseURL = "https://carlisle.thesephist.vercel.app/" 2 | languageCode = "en-us" 3 | title = "Carlisle" 4 | summaryLength = 32 5 | 6 | [markup.goldmark.renderer] 7 | unsafe = true 8 | -------------------------------------------------------------------------------- /content/_index.md: -------------------------------------------------------------------------------- 1 | # Carlisle 2 | 3 | This is a sample site built with [Carlisle](https://github.com/thesephist/carlisle), a Hugo template by [Linus](https://thesephist.com). You can see a more detailed example of the theme's design in the [Markdown styling demo page](/posts/markdown-syntax/). 4 | 5 | The _Carlisle_ template focuses on three goals 6 | 7 | 1. Minimal but tasteful design 8 | 2. Effortless responsiveness 9 | 3. Extensibility and flexibility 10 | 11 | The Carlisle template is the basis for [thesephist.com](https://thesephist.com), my personal site, as well as a few other static sites I've made. You can see a live demo of this template at [carlisle.thesephist.vercel.app](https://carlisle.thesephist.vercel.app). 12 | 13 | -------------------------------------------------------------------------------- /content/about.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "About" 3 | date: 2020-07-12T14:36:50-04:00 4 | --- 5 | 6 | Consectetur exercitationem voluptatum accusamus atque fugiat, ipsa Suscipit necessitatibus delectus pariatur eos quae sit? Ipsum numquam nostrum perspiciatis excepturi laboriosam aliquam praesentium Voluptatum tenetur illum sint voluptatem sequi nam, deleniti. 7 | 8 | Ipsum velit suscipit eveniet cupiditate placeat. Ipsum quos quibusdam possimus numquam et facilis voluptatum. Consectetur ipsum aspernatur rem aspernatur laboriosam vitae consectetur a temporibus. Neque omnis culpa odit quis corrupti perferendis! Rerum ratione velit animi architecto laudantium. Dicta sint ducimus quo dolor optio Libero veniam impedit non possimus temporibus. Dolores dignissimos temporibus doloremque illum voluptatum? Repellendus officiis perspiciatis sed non neque vero Nulla ipsum quisquam quibusdam expedita quisquam. Iusto architecto sequi minima facilis aspernatur. Rerum blanditiis natus nihil dignissimos quis ipsam. Deserunt suscipit iste dolorem aspernatur dicta? Itaque modi quod assumenda eius provident odio in? Quaerat quidem debitis temporibus architecto. 9 | 10 | Elit quos tenetur officiis obcaecati modi! Provident dolorum error blanditiis porro iste iure esse? Enim voluptatum debitis amet voluptatem voluptate! 11 | 12 | Ipsum ratione provident accusamus maxime exercitationem. Nulla corrupti beatae ea deleniti repellendus. 13 | -------------------------------------------------------------------------------- /content/posts/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Posts" 3 | --- 4 | 5 | My writing through the ages. 6 | 7 | -------------------------------------------------------------------------------- /content/posts/emoji-support.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Emoji Support" 4 | date = "2019-03-05" 5 | description = "Guide to emoji usage in Hugo" 6 | tags = [ 7 | "emoji", 8 | ] 9 | +++ 10 | 11 | Emoji can be enabled in a Hugo project in a number of ways. 12 | 13 | The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 14 | 15 | To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. 16 | 17 |

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

18 |
19 | 20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. 21 | 22 | *** 23 | 24 | **N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. 25 | 26 | {{< highlight html >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /content/posts/markdown-syntax.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Markdown Syntax Guide" 4 | date = "2019-03-11" 5 | description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." 6 | tags = [ 7 | "markdown", 8 | "css", 9 | "html", 10 | "themes", 11 | ] 12 | categories = [ 13 | "themes", 14 | "syntax", 15 | ] 16 | +++ 17 | 18 | This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. 19 | 20 | 21 | ## Headings 22 | 23 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 24 | 25 | # H1 26 | ## H2 27 | ### H3 28 | #### H4 29 | ##### H5 30 | ###### H6 31 | 32 | ## Paragraph 33 | 34 | Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. 35 | 36 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 37 | 38 | ## Blockquotes 39 | 40 | The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. 41 | 42 | #### Blockquote without attribution 43 | 44 | > Tiam, ad mint andaepu dandae nostion secatur sequo quae. 45 | > **Note** that you can use *Markdown syntax* within a blockquote. 46 | 47 | #### Blockquote with attribution 48 | 49 | > Don't communicate by sharing memory, share memory by communicating.
50 | > — Rob Pike[^1] 51 | 52 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 53 | 54 | ## Tables 55 | 56 | Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. 57 | 58 | Name | Age 59 | --------|------ 60 | Bob | 27 61 | Alice | 23 62 | 63 | #### Inline Markdown within tables 64 | 65 | | Italics | Bold | Code | 66 | | -------- | -------- | ------ | 67 | | *italics* | **bold** | `code` | 68 | 69 | ## Code Blocks 70 | 71 | #### Code block with backticks 72 | 73 | ``` 74 | 75 | 76 | 77 | 78 | Example HTML5 Document 79 | 80 | 81 |

Test

82 | 83 | 84 | ``` 85 | 86 | #### Code block indented with four spaces 87 | 88 | 89 | 90 | 91 | 92 | Example HTML5 Document 93 | 94 | 95 |

Test

96 | 97 | 98 | 99 | ## List Types 100 | 101 | #### Ordered List 102 | 103 | 1. First item 104 | 2. Second item 105 | 3. Third item 106 | 107 | #### Unordered List 108 | 109 | * List item 110 | * Another item 111 | * And another item 112 | 113 | #### Nested list 114 | 115 | * Fruit 116 | * Apple 117 | * Orange 118 | * Banana 119 | * Dairy 120 | * Milk 121 | * Cheese 122 | 123 | -------------------------------------------------------------------------------- /content/posts/placeholder-text.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Placeholder Text" 4 | date = "2019-03-09" 5 | description = "Lorem Ipsum Dolor Si Amet" 6 | tags = [ 7 | "markdown", 8 | "text", 9 | ] 10 | +++ 11 | 12 | Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. 13 | 14 | 1. Exierant elisi ambit vivere dedere 15 | 2. Duce pollice 16 | 3. Eris modo 17 | 4. Spargitque ferrea quos palude 18 | 19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 20 | 21 | 1. Comas hunc haec pietate fetum procerum dixit 22 | 2. Post torum vates letum Tiresia 23 | 3. Flumen querellas 24 | 4. Arcanaque montibus omnes 25 | 5. Quidem et 26 | 27 | # Vagus elidunt 28 | 29 | 30 | 31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 32 | 33 | ## Mane refeci capiebant unda mulcebat 34 | 35 | Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. 36 | 37 | Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. 38 | 39 | Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. 40 | 41 | {{< css.inline >}} 42 | 45 | {{< /css.inline >}} 46 | -------------------------------------------------------------------------------- /content/posts/rich-content.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Rich Content" 4 | date = "2019-03-10" 5 | description = "A brief description of Hugo Shortcodes" 6 | tags = [ 7 | "shortcodes", 8 | "privacy", 9 | ] 10 | +++ 11 | 12 | Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. 13 | 14 | --- 15 | 16 | ## YouTube Privacy Enhanced Shortcode 17 | 18 | {{< youtube ZJthWmvUzzc >}} 19 | 20 |
21 | 22 | --- 23 | 24 | ## Twitter Simple Shortcode 25 | 26 | {{< twitter_simple 1085870671291310081 >}} 27 | 28 |
29 | 30 | --- 31 | 32 | ## Vimeo Simple Shortcode 33 | 34 | {{< vimeo_simple 48912912 >}} 35 | -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ partial "head.html" }} 6 | 7 | {{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | {{ if .Params.Image }} 20 | 21 | 22 | {{ end }} 23 | 24 | 25 | 26 |
27 | {{ partial "header.html" }} 28 | 29 | {{ block "main" . }} 30 | {{ end }} 31 | 32 | {{ partial "footer.html" }} 33 |
34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | 3 |
4 |

{{ .Title }}

5 |
{{ .Params.Tagline }}
6 |
7 | {{ .Content }} 8 |
9 |
10 | 11 |
12 | {{ range (.Pages.ByParam "order") }} 13 |

14 | {{ .Date.Format "Jan '06"}} 15 | {{ .Title }} 16 |

17 | {{ end }} 18 |
19 | 20 | {{ end }} 21 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | 3 |
4 |

{{ .Title }}

5 |
6 |
{{ .Date.Format "2 January 2006" }}
7 |
{{ .Date.Format "2 Jan 2006" }}
8 | 9 | {{ if ne .Dir "/" }} 10 |
{{ .ReadingTime }} min read
11 | {{ end }} 12 |
13 |
14 |
15 | {{ .Content }} 16 | 17 | {{ if ne .Dir "/" }} 18 |
19 |

20 |

21 | {{ if .PrevInSection }} 22 | ← 23 | {{ .PrevInSection.Title }} 24 | {{ end }} 25 |

26 |

27 | {{ if .NextInSection }} 28 | {{ .NextInSection.Title }} 29 | → 30 | {{ end }} 31 |

32 |

33 | {{ end }} 34 |
35 | 36 | {{ end }} 37 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | 3 |
4 | {{ .Content }} 5 |
6 | 7 | {{ end }} 8 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 7 | -------------------------------------------------------------------------------- /layouts/partials/head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | Carlisle 4 |
5 | 9 |
10 | -------------------------------------------------------------------------------- /static/css/main.css: -------------------------------------------------------------------------------- 1 | html, 2 | body { 3 | margin: 0; 4 | padding: 0; 5 | box-sizing: border-box; 6 | 7 | --font-serif: 'IBM Plex Serif', 'Times New Roman', serif; 8 | --font-mono: 'IBM Plex Mono', 'Menlo', 'Monaco', monospace; 9 | 10 | /* default light-mode colors */ 11 | --foreground-default: #222; 12 | --foreground-light: #778; 13 | --background-default: #f8f8f8; 14 | --background-block: #eee; 15 | } 16 | 17 | html { 18 | /* adjust rem for page */ 19 | font-size: 18px; 20 | } 21 | 22 | body { 23 | font-family: var(--font-serif); 24 | color: var(--foreground-default); 25 | background: var(--background-default); 26 | display: flex; 27 | flex-direction: column; 28 | min-height: 100vh; 29 | } 30 | 31 | header, 32 | footer { 33 | flex-grow: 0; 34 | flex-shrink: 0; 35 | } 36 | 37 | main { 38 | flex-shrink: 0; 39 | 40 | /* paper feel */ 41 | width: calc(100% - 6em); 42 | padding: 0 1em; 43 | margin: 0 auto; 44 | background: #fff; 45 | box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08); 46 | } 47 | 48 | a { 49 | color: var(--foreground-default) 50 | } 51 | 52 | /* TYPOGRAPHY */ 53 | 54 | h1, 55 | h2, 56 | h3 { 57 | font-weight: normal; 58 | line-height: 1.325em; 59 | padding-bottom: .125rem; 60 | } 61 | 62 | .hero h1 { 63 | margin-top: 0; 64 | padding-bottom: 0; 65 | } 66 | 67 | h1 { 68 | font-size: 2.5rem; 69 | } 70 | 71 | h2 { 72 | font-size: 1.5rem; 73 | } 74 | 75 | h3 { 76 | font-size: 1.25rem; 77 | } 78 | 79 | p, 80 | li { 81 | line-height: 1.625em; 82 | margin: 1em 0; 83 | } 84 | 85 | li a, 86 | p a { 87 | text-decoration: none; 88 | padding: 0 3px; 89 | background: rgba(0, 0, 0, .1); 90 | } 91 | 92 | .postlist li a, 93 | .postlist p a { 94 | padding: initial; 95 | background: initial; 96 | } 97 | 98 | .dateprefix { 99 | display: inline-block; 100 | min-width: 3.5rem; 101 | text-align: right; 102 | color: var(--foreground-light); 103 | } 104 | 105 | .desktop { 106 | display: none !important; 107 | } 108 | 109 | @media only screen and (min-width: 600px) { 110 | main { 111 | max-width: 780px; 112 | /* paper feel */ 113 | margin: 2em auto; 114 | padding: 0 2em; 115 | } 116 | 117 | h1, 118 | h2, 119 | h3 { 120 | margin-top: 1em; 121 | margin-bottom: .5em; 122 | } 123 | 124 | .desktop { 125 | display: initial !important; 126 | } 127 | 128 | .mobile { 129 | display: none !important; 130 | } 131 | } 132 | 133 | /* paper feel */ 134 | @media only screen and (max-width: 760px) { 135 | main { 136 | margin: 0; 137 | max-width: unset; 138 | width: calc(100% - 2em); 139 | background: initial; 140 | box-shadow: none; 141 | } 142 | } 143 | 144 | /* HEADER */ 145 | 146 | header a { 147 | text-decoration: none; 148 | } 149 | 150 | header a:hover { 151 | text-decoration: underline; 152 | } 153 | 154 | header, 155 | nav { 156 | display: flex; 157 | flex-direction: row; 158 | align-items: center; 159 | justify-content: flex-start; 160 | height: 100%; 161 | } 162 | 163 | header { 164 | height: 100px; 165 | } 166 | 167 | .home { 168 | font-weight: bold; 169 | margin-right: 24px; 170 | } 171 | 172 | nav a { 173 | margin-right: 12px; 174 | } 175 | 176 | /* FOOTER */ 177 | 178 | .prevInSection { 179 | text-align: left; 180 | } 181 | 182 | .nextInSection { 183 | text-align: right; 184 | } 185 | 186 | footer { 187 | margin-top: 1em; 188 | display: flex; 189 | flex-direction: row; 190 | align-items: center; 191 | justify-content: space-between; 192 | padding-bottom: 32px; 193 | } 194 | 195 | /* SINGLETON */ 196 | 197 | main { 198 | overflow: hidden; 199 | } 200 | 201 | .hero { 202 | padding-top: 32px; 203 | margin-bottom: 36px; 204 | } 205 | 206 | .meta { 207 | color: var(--foreground-light); 208 | display: flex; 209 | flex-direction: row; 210 | justify-content: space-between; 211 | } 212 | 213 | .meta-item { 214 | width: 0; 215 | flex-grow: 1; 216 | text-align: left; 217 | white-space: nowrap; 218 | overflow: hidden; 219 | text-overflow: ellipsis; 220 | } 221 | 222 | p img { 223 | margin: 1.5em 0; 224 | width: 100%; 225 | } 226 | 227 | p img.blend-multiply { 228 | mix-blend-mode: multiply; 229 | } 230 | 231 | @media only screen and (max-width: 600px) { 232 | p img { 233 | width: 100vw; 234 | position: relative; 235 | top: 0; 236 | left: -16px; 237 | } 238 | } 239 | 240 | pre, code { 241 | color: var(--foreground-default); 242 | font-family: var(--font-mono); 243 | } 244 | 245 | pre { 246 | display: block; 247 | margin: 1.5em 0; 248 | background: var(--background-block); 249 | overflow-x: auto; 250 | overflow-y: hidden; 251 | -webkit-overflow-scrolling: touch; 252 | width: 100%; 253 | display: flex; 254 | flex-direction: row; 255 | } 256 | 257 | pre > code { 258 | line-height: 1.5em; 259 | flex-shrinK: 0; 260 | display: block; 261 | padding: 1em; 262 | } 263 | 264 | code { 265 | background: var(--background-block); 266 | } 267 | 268 | p code { 269 | padding: 3px 5px; 270 | } 271 | 272 | blockquote { 273 | font-style: italic; 274 | } 275 | --------------------------------------------------------------------------------