diff options
| Commit | 0fcd190f684e4014cec8c7e7bf6a1534bc717047 (patch) | |
|---|---|---|
| Author | 2022-09-11 10:30:28 +0300 | |
| Committer | 2022-09-11 10:30:28 +0300 | |
| Files | dc1ebe2f12fe45830969e9d59b668586b69b6260 /src/styles.css | |
| syndamia.com-0fcd190f684e4014cec8c7e7bf6a1534bc717047.tar syndamia.com-0fcd190f684e4014cec8c7e7bf6a1534bc717047.tar.gz syndamia.com-0fcd190f684e4014cec8c7e7bf6a1534bc717047.zip | ||
| Parent | ebe0db7886ac77a5e851ae9cbfe579ebba31fcd7 (diff) | |
Simplified and improved index page styling
1 files changed, 17 insertions, 19 deletions
| -rw-r--r-- | src/styles.css | 36 |
diff --git a/src/styles.css b/src/styles.css index c8a3133..f324668 100644 --- a/src/styles.css +++ b/src/styles.css @@ -423,18 +423,20 @@ dd code { /* Index page styling */ #index-contents { - display: flex; - align-items: center; - justify-content: center; + width: 100%; + padding: 0 1em; + box-sizing: border-box; + min-height: 7.6em; } #index-contents-text { - margin-left: 15px; - max-width: 77%; + float: none; } #index-contents-img { - max-width: 16%; + max-width: 7.6em; + float: left; + margin-right: 1em; } #index-list { @@ -458,6 +460,15 @@ dd code { flex-direction: column; } + #index-contents { + padding: 0; + min-height: 4.38em; + } + + #index-contents-img { + max-width: 4.38em; + } + .sidebar { max-width: initial; margin-right: 8px; @@ -469,19 +480,6 @@ dd code { display: none; } - #index-contents { - display: initial; - } - - #index-contents-text { - margin: 0; - max-width: inherit;; - } - - #index-contents-img { - max-width: calc(100vw - 16px - 3px - 0.8em); - } - table td, table th { word-break: break-all; } |