diff --git a/README.md b/README.md index 4fa1622..62e983f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,14 @@ # Tufte Hugo Theme + [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](code_of_conduct.md) [![build github pages](https://github.com/slashformotion/hugo-tufte/actions/workflows/build-site-ghpages.yml/badge.svg)](https://github.com/slashformotion/hugo-tufte/actions/workflows/build-site-ghpages.yml) +## Fork notes by loikein: + +I just do whatever I want to make the theme better suit my needs. Not intended as a continuation of the original projects. + +## Original readme: + ***This theme isn't actively maintained, if you want a new feature please file a pull request.*** diff --git a/assets/scss/general.scss b/assets/scss/general.scss index ba7ddf8..b323407 100644 --- a/assets/scss/general.scss +++ b/assets/scss/general.scss @@ -30,10 +30,21 @@ h3:hover > a.heading-anchor { } hr { + text-align: left; margin-left: 0; + margin-top: 1.4rem; + margin-bottom: 1.4rem; width: 75%; max-width: 45rem; - border-color: rgba(250,250,250,0.25); + border-style: solid none none none; + border-color: #111; +} + +kbd { + border: 1px #111 solid; + border-radius: 5px; + padding-right: 2px; + padding-left: 2px; } /* ------------------------------------------------------------------------ */ @@ -59,23 +70,21 @@ hr { } table:not(.lntable) { - margin-top: 1em; + margin-top: 1.4em; font-size: 1.4rem; width: auto; /* making booktabs style tables the unstyled default in case someone uses Markdown styling */ /* margin: 0 auto; */ /* border-spacing: 0px; */ - border-top: 2px solid #111; - border-bottom: 2px solid #111; } -table:not(.lntable) th, -table:not(.lntable) td { - font-size: 1.25rem; - line-height: 1.71428571; +table:not(.lntable) tr th { + border-bottom: 1px solid #111; + text-transform: uppercase; } -table:not(.lntable) td { - padding-right: 0.75em; +table:not(.lntable) tr th, +table:not(.lntable) tr td { + padding-right: 0.5rem; } table.lntable { @@ -86,6 +95,18 @@ table.lntable { padding: 0; } +/* ------------------------------------------------------------------------ */ +/* Styling for footnotes. */ +/* ------------------------------------------------------------------------ */ +.footnotes ol { + width: 55%; +} +.footnotes ol li p { + width: 100%; + margin: 0; + padding: 0; +} + /* ------------------------------------------------------------------------ */ /* Styling for maths. */ /* ------------------------------------------------------------------------ */ diff --git a/assets/scss/pages/footer.scss b/assets/scss/pages/footer.scss index c036f6a..fe1fdcd 100644 --- a/assets/scss/pages/footer.scss +++ b/assets/scss/pages/footer.scss @@ -18,10 +18,7 @@ footer.page-footer a { background: transparent; } footer.page-footer hr { - text-align: left; - margin-left: 0; width: 100%; - border-color: rgba(250, 250, 250, 0.25); } footer.page-footer ul.page-footer-menu { diff --git a/assets/scss/vendor/tufte.scss b/assets/scss/vendor/tufte.scss index eead7ef..5ce8afb 100644 --- a/assets/scss/vendor/tufte.scss +++ b/assets/scss/vendor/tufte.scss @@ -328,7 +328,8 @@ div.table-wrapper { } code, -.code { +.code, +kbd { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 1.125rem; line-height: 1.6;