diff --git a/404.html b/404.html new file mode 100644 index 0000000..6343fd7 --- /dev/null +++ b/404.html @@ -0,0 +1,11 @@ +--- +permalink: 404.html +layout: default +title: "404" +id: "not-found" +--- + +
+

Oops, that's a 404. 🙈

+

Looks like this page doesn't exist. Return home to get a fresh start.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b5d4b57 --- /dev/null +++ b/Gemfile @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem "jekyll", "~> 4.0" +gem "jekyll-last-modified-at" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..abaee97 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,75 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + colorator (1.1.0) + concurrent-ruby (1.1.6) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.12.2) + forwardable-extended (2.6.0) + http_parser.rb (0.6.0) + i18n (1.8.2) + concurrent-ruby (~> 1.0) + jekyll (4.0.0) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (>= 0.9.5, < 2) + jekyll-sass-converter (~> 2.0) + jekyll-watch (~> 2.0) + kramdown (~> 2.1) + kramdown-parser-gfm (~> 1.0) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (~> 3.0) + safe_yaml (~> 1.0) + terminal-table (~> 1.8) + jekyll-last-modified-at (1.2.1) + jekyll (>= 3.7, < 5.0) + posix-spawn (~> 0.3.9) + jekyll-redirect-from (0.16.0) + jekyll (>= 3.3, < 5.0) + jekyll-sass-converter (2.1.0) + sassc (> 2.0.1, < 3.0) + jekyll-watch (2.2.1) + listen (~> 3.0) + kramdown (2.2.1) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + liquid (4.0.3) + listen (3.2.1) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + mercenary (0.3.6) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + posix-spawn (0.3.13) + public_suffix (4.0.4) + rb-fsevent (0.10.3) + rb-inotify (0.10.1) + ffi (~> 1.0) + rexml (3.2.4) + rouge (3.18.0) + safe_yaml (1.0.5) + sassc (2.3.0) + ffi (~> 1.9) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + unicode-display_width (1.7.0) + +PLATFORMS + ruby + +DEPENDENCIES + jekyll (~> 4.0) + jekyll-last-modified-at + jekyll-redirect-from (~> 0.15) + +BUNDLED WITH + 2.1.4 diff --git a/LICENSE b/LICENSE index 86dd1da..4674105 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,9 @@ -MIT License +# Released under MIT License -Copyright (c) 2020 Maxime Vaillancourt +Copyright (c) 2020 Maxime Vaillancourt. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 02ec0ec..272a117 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# digital-garden-jekyll-template \ No newline at end of file +# Digital garden Jekyll template + +Use this template repository to get started with your own digital garden. + +## License + +Source code is available under the [MIT license](LICENSE.md). \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..5623dfa --- /dev/null +++ b/_config.yml @@ -0,0 +1,27 @@ +title: My digital garden +include: ['_pages'] + +permalink: pretty +relative_permalinks: false + +plugins: + - jekyll-last-modified-at + +sass: + sass_dir: _sass + style: :compressed + +collections: + notes: + output: true + permalink: /:path + +defaults: + - scope: + path: "**/*" + values: + layout: "default" + - scope: + path: "_notes/**/*.md" + values: + layout: "note" diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..496018c --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1 @@ +This is the footer. Include anything you'd like here, like a link to an About page. \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..c5248d8 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,53 @@ + + {% capture styles %} + {% include main.scss %} + {% endcapture %} + + + + + + + + + + + + + + + {% if page.excerpt %} + + {% else %} + + {% endif %} + + {% if page.title %} + + + {% else %} + + + {% endif %} + + {% if page.date %} + + + {% endif %} + + + + {% if page.image %} + + {% endif %} + + + {% if page.id == "home" %} + {{ site.title }} + {% else %} + {{ page.title }} — {{ site.title }} + {% endif %} + + diff --git a/_includes/main.scss b/_includes/main.scss new file mode 100644 index 0000000..58ceb8a --- /dev/null +++ b/_includes/main.scss @@ -0,0 +1,3 @@ +@import "../_sass/normalize"; +@import "../_sass/code"; +@import "../_sass/style"; diff --git a/_includes/nav.html b/_includes/nav.html new file mode 100644 index 0000000..295f5e3 --- /dev/null +++ b/_includes/nav.html @@ -0,0 +1,3 @@ +
+ {{ site.title }} +
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..bc4c022 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,11 @@ + + + {% include head.html %} + + +
+
{{ content }}
+ +
+ + diff --git a/_layouts/note.html b/_layouts/note.html new file mode 100644 index 0000000..0e1c8a1 --- /dev/null +++ b/_layouts/note.html @@ -0,0 +1,41 @@ +--- +layout: default +--- + +
+
+

{{ page.title }}

+ +
+ +
+ + {{ content }} + + + +

Notes mentioning this note

+ {% if page.backlinks.size > 0 %} +
+ {% for backlink in page.backlinks %} + + {% endfor %} +
+ {% else %} + +
+

+ There are no notes linking to this note. +

+
+ {% endif %} +
+
+ +
diff --git a/_notes/cats.md b/_notes/cats.md new file mode 100644 index 0000000..d5c755e --- /dev/null +++ b/_notes/cats.md @@ -0,0 +1,19 @@ +--- +title: A note about cats +--- + +This is a second note with a poem with cats. + +> I like my pillow, my fancy bed, +> +> My cat tree and the bathroom sink. +> +> Each has its time and fills a need, +> +> but a box is best when I want to think. + +You can create as many notes as you want. + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur et risus at ipsum pharetra pellentesque vel in massa. Nam ornare, velit sed pulvinar gravida, justo ipsum eleifend augue, id porta velit eros vestibulum odio. Vestibulum dignissim malesuada sapien, eu volutpat lacus pellentesque et. Curabitur dui nisi, sagittis ut tempor ac, scelerisque in diam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum vitae euismod ex. Morbi lacinia iaculis tempor. + +Nunc porttitor lacus ullamcorper mauris porttitor feugiat. Vestibulum condimentum lacus vitae orci lobortis pellentesque in ac dolor. Nullam libero justo, suscipit id suscipit vel, tincidunt vitae lectus. Phasellus gravida iaculis ligula, at pharetra urna. Nunc vel tellus eleifend, aliquet magna non, condimentum est. Pellentesque vulputate posuere felis eget sodales. Cras finibus tortor porta libero bibendum, vel bibendum orci luctus. Donec ac eros vitae erat malesuada imperdiet at tempor turpis. \ No newline at end of file diff --git a/_notes/consistency.md b/_notes/consistency.md new file mode 100644 index 0000000..4fb3985 --- /dev/null +++ b/_notes/consistency.md @@ -0,0 +1,7 @@ +--- +title: Consistency is key +--- + +Show up. Do the work. Be consistent. + +Then go take a look at the [first note](/your-first-note). \ No newline at end of file diff --git a/_notes/your-first-note.md b/_notes/your-first-note.md new file mode 100644 index 0000000..69e7a84 --- /dev/null +++ b/_notes/your-first-note.md @@ -0,0 +1,15 @@ +--- +title: Your first seed +image: /assets/image.jpg +--- + +This is your first note. + +To link to another note, use regular Markdown syntax for links, with a relative link to the other note, like this: [this is a link to a note about cats](/cats). + + +Notice in the "Notes mentioning this note" section that there is another note linking to this note. This is a bi-directional link, and those are automatically created when you create links to other notes. + +You can display images using Markdown's image tag, like this: + +![]({{page.image}}) \ No newline at end of file diff --git a/_pages/about.md b/_pages/about.md new file mode 100644 index 0000000..e6b0634 --- /dev/null +++ b/_pages/about.md @@ -0,0 +1,9 @@ +--- +layout: default +title: About +permalink: /about +--- + +*This is an about page.* + +Feel free to tell the world about what you love! 😍 \ No newline at end of file diff --git a/_pages/index.md b/_pages/index.md new file mode 100644 index 0000000..17139c6 --- /dev/null +++ b/_pages/index.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Home +id: home +permalink: / +--- + +
+

Welcome! 🌱

+

This is your digital garden. Here's the first note to get started on your exploration.

+
diff --git a/_plugins/bidirectional_links_generator.rb b/_plugins/bidirectional_links_generator.rb new file mode 100644 index 0000000..25e9e7e --- /dev/null +++ b/_plugins/bidirectional_links_generator.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class BidirectionalLinksGenerator < Jekyll::Generator + def generate(site) + notes = site.collections['notes'].docs + + notes.each do |current_note| + notes_linking_to_current_note = notes.filter do |e| + e.content.include?(current_note.url) + end + + current_note.data['backlinks'] = notes_linking_to_current_note + end + end +end diff --git a/_sass/_code.scss b/_sass/_code.scss new file mode 100644 index 0000000..2ab23e7 --- /dev/null +++ b/_sass/_code.scss @@ -0,0 +1,68 @@ +.highlight { + background: #f8f8f8; + padding: 1px 1em; + border-radius: 3px; + font-size: 1em; + font-size: 0.9em; + overflow: auto; + margin: 1em -1em; +} +.highlight .c { color: #999988; font-style: italic } /* Comment */ +.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.highlight .k { font-weight: bold } /* Keyword */ +.highlight .o { font-weight: bold } /* Operator */ +.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ +.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #aa0000 } /* Generic.Error */ +.highlight .gh { color: #999999 } /* Generic.Heading */ +.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #555555 } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ +.highlight .gt { color: #aa0000 } /* Generic.Traceback */ +.highlight .kc { font-weight: bold } /* Keyword.Constant */ +.highlight .kd { font-weight: bold } /* Keyword.Declaration */ +.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #009999 } /* Literal.Number */ +.highlight .s { color: #d14 } /* Literal.String */ +.highlight .na { color: #008080 } /* Name.Attribute */ +.highlight .nb { color: #0086B3 } /* Name.Builtin */ +.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ +.highlight .no { color: #008080 } /* Name.Constant */ +.highlight .ni { color: #800080 } /* Name.Entity */ +.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ +.highlight .nn { color: #555555 } /* Name.Namespace */ +.highlight .nt { color: #000080 } /* Name.Tag */ +.highlight .nv { color: #008080 } /* Name.Variable */ +.highlight .ow { font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mf { color: #009999 } /* Literal.Number.Float */ +.highlight .mh { color: #009999 } /* Literal.Number.Hex */ +.highlight .mi { color: #009999 } /* Literal.Number.Integer */ +.highlight .mo { color: #009999 } /* Literal.Number.Oct */ +.highlight .sb { color: #d14 } /* Literal.String.Backtick */ +.highlight .sc { color: #d14 } /* Literal.String.Char */ +.highlight .sd { color: #d14 } /* Literal.String.Doc */ +.highlight .s2 { color: #d14 } /* Literal.String.Double */ +.highlight .se { color: #d14 } /* Literal.String.Escape */ +.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ +.highlight .si { color: #d14 } /* Literal.String.Interpol */ +.highlight .sx { color: #d14 } /* Literal.String.Other */ +.highlight .sr { color: #009926 } /* Literal.String.Regex */ +.highlight .s1 { color: #d14 } /* Literal.String.Single */ +.highlight .ss { color: #990073 } /* Literal.String.Symbol */ +.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #008080 } /* Name.Variable.Class */ +.highlight .vg { color: #008080 } /* Name.Variable.Global */ +.highlight .vi { color: #008080 } /* Name.Variable.Instance */ +.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/_sass/_normalize.scss b/_sass/_normalize.scss new file mode 100644 index 0000000..3a07a44 --- /dev/null +++ b/_sass/_normalize.scss @@ -0,0 +1,338 @@ +/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ + +/* Document + ========================================================================== */ + +/** + * 1. Correct the line height in all browsers. + * 2. Prevent adjustments of font size after orientation changes in iOS. + */ + + html { + line-height: 1.15; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ +} + +/* Sections + ========================================================================== */ + +/** + * Remove the margin in all browsers. + */ + +body { + margin: 0; +} + +/** + * Correct the font size and margin on `h1` elements within `section` and + * `article` contexts in Chrome, Firefox, and Safari. + */ + +h1 { + font-size: 2em; + margin: 0.67em 0; +} + +/* Grouping content + ========================================================================== */ + +/** + * 1. Add the correct box sizing in Firefox. + * 2. Show the overflow in Edge and IE. + */ + +hr { + box-sizing: content-box; /* 1 */ + height: 0; /* 1 */ + overflow: visible; /* 2 */ +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +pre { + font-size: 1em; /* 2 */ +} + +/* Text-level semantics + ========================================================================== */ + +/** + * Remove the gray background on active links in IE 10. + */ + +a { + background-color: transparent; +} + +/** + * 1. Remove the bottom border in Chrome 57- + * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + */ + +abbr[title] { + border-bottom: none; /* 1 */ + text-decoration: underline; /* 2 */ + text-decoration: underline dotted; /* 2 */ +} + +/** + * Add the correct font weight in Chrome, Edge, and Safari. + */ + +b, +strong { + font-weight: bolder; +} + +/** + * 1. Correct the inheritance and scaling of font size in all browsers. + * 2. Correct the odd `em` font sizing in all browsers. + */ + +code, +kbd, +samp { + font-size: 1em; /* 2 */ +} + +/** + * Add the correct font size in all browsers. + */ + +small { + font-size: 80%; +} + +/** + * Prevent `sub` and `sup` elements from affecting the line height in + * all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.5em; +} + +/* Embedded content + ========================================================================== */ + +/** + * Remove the border on images inside links in IE 10. + */ + +img { + border-style: none; +} + +/* Forms + ========================================================================== */ + +/** + * 1. Change the font styles in all browsers. + * 2. Remove the margin in Firefox and Safari. + */ + +button, +input, +optgroup, +select, +textarea { + font-size: 100%; /* 1 */ + line-height: 1.15; /* 1 */ + margin: 0; /* 2 */ +} + +/** + * Show the overflow in IE. + * 1. Show the overflow in Edge. + */ + +button, +input { /* 1 */ + overflow: visible; +} + +/** + * Remove the inheritance of text transform in Edge, Firefox, and IE. + * 1. Remove the inheritance of text transform in Firefox. + */ + +button, +select { /* 1 */ + text-transform: none; +} + +/** + * Correct the inability to style clickable types in iOS and Safari. + */ + +button, +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} + +/** + * Remove the inner border and padding in Firefox. + */ + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; +} + +/** + * Restore the focus styles unset by the previous rule. + */ + +button:-moz-focusring, +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring { + outline: 1px dotted ButtonText; +} + +/** + * Correct the padding in Firefox. + */ + +fieldset { + padding: 0.35em 0.75em 0.625em; +} + +/** + * 1. Correct the text wrapping in Edge and IE. + * 2. Correct the color inheritance from `fieldset` elements in IE. + * 3. Remove the padding so developers are not caught out when they zero out + * `fieldset` elements in all browsers. + */ + +legend { + box-sizing: border-box; /* 1 */ + color: inherit; /* 2 */ + display: table; /* 1 */ + max-width: 100%; /* 1 */ + padding: 0; /* 3 */ + white-space: normal; /* 1 */ +} + +/** + * Add the correct vertical alignment in Chrome, Firefox, and Opera. + */ + +progress { + vertical-align: baseline; +} + +/** + * Remove the default vertical scrollbar in IE 10+. + */ + +textarea { + overflow: auto; +} + +/** + * 1. Add the correct box sizing in IE 10. + * 2. Remove the padding in IE 10. + */ + +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/** + * Correct the cursor style of increment and decrement buttons in Chrome. + */ + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} + +/** + * 1. Correct the odd appearance in Chrome and Safari. + * 2. Correct the outline style in Safari. + */ + +[type="search"] { + -webkit-appearance: textfield; /* 1 */ + outline-offset: -2px; /* 2 */ +} + +/** + * Remove the inner padding in Chrome and Safari on macOS. + */ + +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/** + * 1. Correct the inability to style clickable types in iOS and Safari. + * 2. Change font properties to `inherit` in Safari. + */ + +::-webkit-file-upload-button { + -webkit-appearance: button; /* 1 */ + font: inherit; /* 2 */ +} + +/* Interactive + ========================================================================== */ + +/* + * Add the correct display in Edge, IE 10+, and Firefox. + */ + +details { + display: block; +} + +/* + * Add the correct display in all browsers. + */ + +summary { + display: list-item; +} + +/* Misc + ========================================================================== */ + +/** + * Add the correct display in IE 10+. + */ + +template { + display: none; +} + +/** + * Add the correct display in IE 10. + */ + +[hidden] { + display: none; +} diff --git a/_sass/_style.scss b/_sass/_style.scss new file mode 100644 index 0000000..46c98a2 --- /dev/null +++ b/_sass/_style.scss @@ -0,0 +1,118 @@ +$color-primary: hsl(0, 0%, 10%); +$color-text: hsl(0, 0%, 20%); +$color-subtext: hsl(0, 0%, 30%); +$color-border: hsl(0, 0%, 85%); +$color-box-background: mix($color-primary, white, 4%); +$border-radius: 4px; +$font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, + sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; + +body { + box-sizing: content-box; + font-family: $font-family; + margin: 0 auto; + line-height: 1.7; + padding: 4vh 6vw; + overflow-x: hidden; + color: $color-text; + font-size: 1rem; + max-width: 63em; + + @media (min-width: 820px) { + font-size: 1.2rem; + } +} + +time { + display: block; + color: $color-subtext; + margin: 0.5em 0 1em; +} + +footer { + margin: 2em 0; + font-size: 0.8em; + color: mix($color-text, white, 80%); + padding-top: 1em; +} + +img { + max-width: 100%; + display: block; + margin: 0 auto; + max-height: 75vh; + border-radius: $border-radius; +} + +blockquote { + padding: 1.5em; + margin: 0; + font-size: 0.88em; + background: $color-box-background; + border-radius: $border-radius; + + p { + margin: 0; + } +} + +hr { + width: 100%; + border: 0; + height: 1px; + margin: 1.5em 0; + background: $color-border; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.3; + margin-bottom: 0; + padding-bottom: 0; +} + +a { + text-decoration: none; + border-bottom: 1px solid $color-border; + color: $color-primary; + &:hover { + color: black !important; + background: #fffaf1; + } +} + +*:focus { + background: #ffe8bc !important; + color: black !important; +} + +nav { + margin: 1em 0 3em; +} + +ul { + padding-left: 0; +} + +#notes-entry-container { + display: grid; + grid-gap: 2em; + grid-template-areas: + "content" + "side"; + + @media (min-width: 700px) { + grid-template-columns: 3fr 1fr; + grid-template-areas: "content side"; + } +} + +.backlink-box { + background: $color-box-background; + padding: 1em; + border-radius: $border-radius; +} diff --git a/assets/image.jpg b/assets/image.jpg new file mode 100644 index 0000000..89718cc Binary files /dev/null and b/assets/image.jpg differ