diff options
author | Yuchen Pei <hi@ypei.me> | 2022-02-17 19:40:21 +1100 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-02-17 19:40:21 +1100 |
commit | 87973ec8a51d55ecfd4131b56d16656fbd698f96 (patch) | |
tree | 0f0c909bd5623601e6049dc2aa59f5b5921506e2 /css | |
parent | d4ed7d7df524e397fbcdae5e25e1e13b4f10b4a3 (diff) |
updated css and fixed problem with trailing empty lines
Diffstat (limited to 'css')
-rw-r--r-- | css/default.css | 52 | ||||
-rw-r--r-- | css/page.css | 2 |
2 files changed, 27 insertions, 27 deletions
diff --git a/css/default.css b/css/default.css index 5f51f6f..fd06f35 100644 --- a/css/default.css +++ b/css/default.css @@ -2,56 +2,60 @@ This file is released into the public domain. */ -nav { - display: inline; - float: right; +:root { + --main-width: 35rem; } -span.logo { - float: left; +@media (max-width: 500px) { + :root { + --main-width: 100%; + } } -header { - width: 40rem; +nav { + width: var(--main-width); margin: auto; overflow: auto; background-color: #f3f3f3; } -div#fsf-banner { - width: 40rem; - margin: auto; +nav span#menu { + float: right; } -div#fsf-banner center { - margin-top: 2rem; +nav span#logo { + float: left; +} + +nav a { padding: 1rem; - background-color: #ff000014; + display: inline-block; + background-color: #f3f3f3; } div#content { - width: 39rem; + width: calc(var(--main-width) - 1rem); margin: auto; margin-bottom: 2rem; line-height: 1.6; } footer { - width: 40rem; + width: var(--main-width); margin: auto; padding-top: .5rem; border-top-color: grey; border-top-style: solid; + display: flex; + justify-content: center; } a { text-decoration: none; } -header a { - padding: 1rem; - display: inline-block; - background-color: #f3f3f3; +a:hover{ + background-color: #ddd; } blockquote { @@ -59,10 +63,6 @@ blockquote { padding-left: 1rem; } -a:hover{ - background-color: #ddd; -} - li.postlistitem{ margin-bottom: .5rem; } @@ -72,9 +72,9 @@ ul.postlist{ padding: 0; } -footer center { - margin: auto; - line-height: 1.6; +footer img { + height: 2.2rem; + margin: .1rem; } img { diff --git a/css/page.css b/css/page.css index 84be7b9..0cbb8d5 100644 --- a/css/page.css +++ b/css/page.css @@ -7,5 +7,5 @@ h1.title { } div#content { - margin-top: 2em; + margin-top: 2rem; } |