diff --git a/assets/css/styles.css b/assets/css/styles.css index daaa37b..fe858f5 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -41,7 +41,7 @@ p code { p code, pre { border-radius: 4px; } -#tag-cloud { max-width: 250px; } +#tag-cloud { max-width: 250px; font-family: monospace; } #contents-list>.toc-list { max-width: 250px; overflow: hidden; @@ -51,11 +51,17 @@ p code, pre { border-radius: 4px; } @media (min-width: 1200px) { #contents-list>.toc-list, #tag-cloud { display: block; - top: 100px; + top: 150px; } #tag-cloud { -webkit-transition: opacity .5s, visibility .5s; transition: opacity .5s, visibility .5s; + /* font properties for tag cloud */ + font-size: 14px; + line-height: 1; + } + #tag-cloud span { + font-size: larger; } } @media (min-width: 1330px) { #contents-list>.toc-list { max-width: 300px; right: 3rem;}} @@ -131,6 +137,10 @@ table tr th, table tr td { color: var(--main-color); margin-left: -1em; } +hr { + border: 0 none; + border-top: 1px solid var(--main-color); +} /* embedded subscribe form styling - outside the theme */ .mc-field-group { @@ -143,6 +153,10 @@ table tr th, table tr td { height: 1.5rem; margin-left: 0.5rem; padding: 0 0.5rem; + background-color: var(--code-background-color); + /* border: 1px solid var(--secondary-color); */ + border: 0 none; + color: var(--body-text-color); } #mc-embedded-subscribe { @@ -214,26 +228,25 @@ label#switch_mode::after { transition: 0s color; } -.post-tags { - /* margin-left: 0.2rem; */ -} - .post-tags i.svg-icon { position: relative; top: 4px; } -.post-tags a.link { +.post-tags a.link, +#tag-cloud a { text-decoration: none; - font-size: small; font-weight: 800; line-height: 1; display: inline-block; padding: 4px 2px; - color: var(--body-text-color); border-bottom: 1px solid var(--background-color); } +.post-tags a.link { + color: var(--body-text-color); +} + .post-tags a.link:hover { border-bottom: 1px solid var(--generic-link-color); } @@ -280,12 +293,22 @@ main>p { line-height: 1.67rem; } -ul.list { +section.post-content { + position: relative; +} + +section.connect { + border: 1px solid rgba(0,0,0,0.01); +} + +ul.list, +section.connect { margin-top: 4rem; position: relative; } -ul.list::before { +ul.list::before, +section.connect::before { position: absolute; content: ""; top: -2rem; @@ -303,3 +326,20 @@ ul.list::before { /* scrolling */ html { scroll-behavior: smooth; } + +/* tocbot style overrides */ +.toc-link { + padding: 0 0.3rem; + font-size: 14px; + background-color: var(--background-color); +} +.is-active-link { + font-weight: 400 !important; + background-color: var(--secondary-color); + transition: background-color 200ms ease-in-out; + /* source-ordering issue: had to use !important because tocbot styles + load last and take precedence over these otherwise */ +} +.list-pages a { + border-bottom: none; +} diff --git a/assets/css/variables.css b/assets/css/variables.css index c08e8ac..3642354 100644 --- a/assets/css/variables.css +++ b/assets/css/variables.css @@ -32,4 +32,5 @@ html.dark { --code-background-color: #666; --tag-background-color: #000; --generic-link-color: var(--main-color); + --secondary-color: var(--main-color); } diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8690077..2c78bdb 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,4 +11,5 @@

{{ .Title }}

+{{ partial "tag_cloud.html" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f4cc327..6174c3e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,20 +1,25 @@ {{ define "main" }}
-
{{ .Title }}
-

- {{ if not .Date.IsZero }} {{ end }} - {{ if .Params.draft }} | draft{{ end }} - {{ if or .Params.tags .Params.categories .Params.series }} | {{ end }} - {{ if isset .Params "categories" }} - categories: [ {{ range .Params.categories }}{{ . }} {{ end }} ] - {{ end }} - {{ if isset .Params "tags" }} - - {{ end }} -

-
{{ .Content }}
- {{ partial "twitter" $.Site }} - {{ partial "mail-chimp" . }} +
+
{{ .Title }}
+ +
{{ .Content }}
+
+ +
+ {{ partial "twitter" $.Site }} + {{ partial "mail-chimp" . }} +
{{ partial "table-of-contents" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ec53f30..8f54f9c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@