diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-15 16:50:30 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-15 16:50:30 +0000 |
commit | 312a644244d0ce9e299183a4985adf356598785e (patch) | |
tree | b81f9f1f7b6e070121314d5a1719635ce3c5e155 /src/renderer.rs | |
parent | Cargo fmt (diff) | |
download | miniserve-312a644244d0ce9e299183a4985adf356598785e.tar.gz miniserve-312a644244d0ce9e299183a4985adf356598785e.zip |
Improved design
Diffstat (limited to '')
-rw-r--r-- | src/renderer.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index b83a67c..38a3802 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -19,7 +19,7 @@ pub fn page( (page_header(page_title)) body { span #top { } - h1 { (page_title) } + h1.title { (page_title) } div.download { (archive_button(archive::CompressionMethod::TarGz)) } @@ -182,6 +182,9 @@ fn css() -> Markup { margin: 0; padding: 0; } + h1 { + font-size: 1.5rem; + } table { margin-top: 2rem; width: 100%; @@ -277,8 +280,8 @@ fn css() -> Markup { } .download { display: flex; - justify-content: flex-end; - padding: 0.125rem; + flex-wrap: wrap; + margin-top: .5rem; } .download a, .download a:visited { color: #3498db; @@ -287,6 +290,7 @@ fn css() -> Markup { background: #efefef; padding: 0.5rem; border-radius: 0.2rem; + margin-top: 1rem; } .download a:hover { background: #deeef7a6; |