diff options
| Commit | bde3ebdea6310c891b7e38185906d1a1e03977e4 (patch) | |
|---|---|---|
| Author | 2022-07-03 16:31:16 +0300 | |
| Committer | 2022-07-03 16:31:16 +0300 | |
| Files | 31f9f49bc4982961fdb6c4eb483da0468873073d /src/styles.css | |
| syndamia.com-bde3ebdea6310c891b7e38185906d1a1e03977e4.tar syndamia.com-bde3ebdea6310c891b7e38185906d1a1e03977e4.tar.gz syndamia.com-bde3ebdea6310c891b7e38185906d1a1e03977e4.zip | ||
| Parent | 4fc01e3f69dad9e18a4e180163a997e2600b4a33 (diff) | |
Fully reworked navigation bar and footer into a sidebar
1 files changed, 124 insertions, 87 deletions
| -rw-r--r-- | src/styles.css | 211 |
diff --git a/src/styles.css b/src/styles.css index 66cb5e1..6314fa2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -7,9 +7,7 @@ --blockquote-color: #6a737d; --blockquote-border-color: #dfe2e5; --header-color: black; - --link-tab-fg-color: white; - --link-tab-bg-color: #303030; - --link-tab-bg-hover-color: #004080; + --accent-line-color: #004080; --strong-color: black; --a-color: #004080; --a-hover-color: #004080; @@ -121,23 +119,20 @@ strong { color: var(--strong-color); } -a { +a, a:hover { text-decoration: none; -} - -a * { - color: var(--fg-color); -} - -body > :not(nav) a, a strong { color: var(--a-color); border-bottom: 1px dashed; } -body > :not(nav) a:hover, a strong:hover { +a:hover, a strong:hover { color: var(--a-hover-color); } +a * { + color: var(--fg-color); +} + i, em { color: var(--em-color); } @@ -152,6 +147,10 @@ article { max-width: initial; } +.spacer { + flex: 1; +} + ul, ol { padding-inline-start: 30px; } @@ -196,76 +195,7 @@ h2 + p img, h3 + p img, h4 + p img, h5 + p img, h6 + p img, .file-icon { filter: invert(1) brightness(0); } -/* Main elements: article, header, footer */ - -.centered, article { - margin-left: auto; - margin-right: auto; -} - -.header, .footer { - text-align: center; - font-family: Arial; - line-height: 49px; -} - -.header { - font-size: 23px; - border-bottom: 5px solid var(--link-tab-bg-color); - padding-bottom: 3px; -} - -.footer { - border-top: 5px solid var(--link-tab-bg-color); - padding-top: 3px; - overflow-x: hidden; -} - -/* Header and footer rectangles (tabs) */ - -.link-tab, code { - white-space: nowrap; -} - -.link-tab { - font-weight: normal; - padding: 10px; - color: var(--link-tab-fg-color); - background-color: var(--link-tab-bg-color); -} - -.link-tab:hover { - background-color: var(--link-tab-bg-hover-color); -} - -/* Index page styling */ - -@media screen and (min-width: 610px) { - #index-contents { - display: flex; - align-items: center; - justify-content: center; - } - - #index-contents-text { - margin-left: 15px; - max-width: 77%; - } - - #index-contents-img { - max-width: 32%; - } - - table td, table th { - word-break: normal !important; - } -} - -#index-list { - margin-block-end: calc(1em + 10px); -} - -/* The following CSS is a modified version of sindresorhus's github-markdown-css repo: https://github.com/sindresorhus/github-markdown-css */ + /* The following CSS is a modified version of sindresorhus's github-markdown-css repo: https://github.com/sindresorhus/github-markdown-css */ code, pre { font-family: monospace; @@ -373,6 +303,116 @@ blockquote > :last-child { margin-bottom: 0; } +/* Main elements: content-wrapper, sidebar, article, header, footer */ + +#content-wrapper { + display: flex; + flex-direction: column-reverse; + min-height: calc(100vh - 16px); + border-right: 3px solid var(--accent-line-color); +} + +.sidebar { + min-height: auto; + width: 11.2em; + display: flex; + flex-direction: column; + text-align: left; + font-size: 1.2em; + padding-left: 1em; + border: 3px solid var(--accent-line-color); + border-right: none; + border-top: none; +} + +.centered, article { + margin-left: auto; + margin-right: auto; +} + +.header, .footer { + font-family: Arial; +} + +.header { + font-size: 1.5em; + margin: 0.8em 0; +} + +.footer { + overflow-x: hidden; + font-size: 0.7em; + margin-bottom: 1em; +} + +.footer > * { + white-space: nowrap; +} + +/* Main elements helpers */ + +.arrowed-list { + display: grid; + grid-column-start: 1; + grid-column-end: 1; + row-gap: 0; + margin-bottom: 0.5em; +} + +.arrowed-list > *, .arrowed-list > *:hover { + border: none; + padding: none; + line-height: 1.2em; +} + +.arrowed-list > *::before { + content: "\251C "; +} + +.arrowed-list > *:last-child::before { + content: "\2514 "; +} + +#settingsWrapper { + font-size: 1.2em; +} + +/* Index page styling */ + +@media screen and (min-width: 610px) { + #content-wrapper { + flex-direction: row; + } + + .sidebar { + min-height: initial; + } + + #index-contents { + display: flex; + align-items: center; + justify-content: center; + } + + #index-contents-text { + margin-left: 15px; + max-width: 77%; + } + + #index-contents-img { + max-width: 32%; + } + + table td, table th { + word-break: normal !important; + } +} + +#index-list { + margin-block-end: calc(1em + 10px); +} + + /* File tables */ .file-wrapper { @@ -481,18 +521,15 @@ blockquote > :last-child { border: 1px solid; transition-duration: 0.5s; padding: 0.3em; + + display: none; } .setting-btn { vertical-align: middle; - margin-top: -0.2em; border: none !important; } -#scrollBtn { - display: none; -} - /* OpenSans font */ @font-face { |