From eed51db43e0332662f03a903b0a6424eea2f20d3 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Tue, 20 Aug 2019 00:28:07 +0800 Subject: [PATCH] Update the style --- static/style.css | 138 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 134 insertions(+), 4 deletions(-) diff --git a/static/style.css b/static/style.css index e7dd25e..d36f466 100644 --- a/static/style.css +++ b/static/style.css @@ -1,12 +1,14 @@ :root { --accent: #d59783; --background: #080a0e; - --border-color: #ffffff; + --color: #dbdbdb; + --border-color: var(--color); } body { background: var(--background); font-size: 1.1rem; +color: var(--color); } h2 { @@ -25,6 +27,31 @@ h2:not(first-child) { margin-top: 60px; } +footer { + display: flex; + justify-content: center; + padding: 0; + margin: 1.5em auto; + flex-flow: column wrap; + color: inherit; +} + +footer > * { + margin: 1.4em auto; +} + +svg { + height: 2em; + width: 2em; + color: currentColor; + fill: currentColor; +} + +svg:hover { + fill: var(--accent); +} + +/* Theme customizations */ .header__logo a { min-width: 45%; } @@ -33,11 +60,114 @@ h2:not(first-child) { white-space: pre-wrap; } -.attribution { - margin-bottom: 40px; - text-align: right; +.post-header-wrapper { + display: flex; + flex-flow: row nowrap; + align-items: center; +} + +.post-title { + flex-grow: 10; +} + +.post-type { + flex-grow: 1; + min-width: 5em; +} + +.content { + display: unset; +} + +.posts { + width: 100%; +} + +.pagination__buttons { + justify-content: space-evenly; +} + +.pagination .button__icon { + border-radius: 2em; + font-weight: bolder; + padding: 0.5rem; + background: var(--accent); + color: var(--background); +} + +.button a { + align-items: center; +} + +@media screen and (max-width: 683px) { + .pagination__buttons { + flex-flow: column wrap; + } + + .pagination .button { + max-width: unset; + margin: 0.75rem; + } +} + +#disqus_thread { + --border-deco: dashed var(--border-color) 1px; + --spacing: 50px; + + border-top: var(--border-deco); + border-bottom: var(--border-deco); + margin: var(--spacing) auto; + padding: var(--spacing) 0; } a.read-more { text-decoration: underline; } + +/* Asciidoctor style overrides */ +.attribution { + margin-bottom: 40px; + text-align: right; +} + +.imageblock { + margin: 2rem auto; +} + +.imageblock .title { + font-style: italic; + text-align: center; +} + +.admonitionblock { + border: none; +} + +.admonitionblock .icon, +.admonitionblock .content { + border: none +} + +.admonitionblock .icon { + width: 10%; + border: dashed var(--accent) 1px; +} + +.admonitionblock .content { + padding: 1em; + display: block; +} + +/* My own classes customization */ +.social-icons { + display: flex; + justify-content: center; + align-items: center; + margin: auto; + flex-flow: row wrap; +} + +.social-icons > * { + margin: 1em; + text-decoration: none; +}