aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-04-07 11:16:06 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-04-07 11:16:06 +0000
commite7e183e75794cfdb899ce1762d3d9ba38a923cc3 (patch)
treeebdb7e163df7a2ddc0acaf66e4e5c38d78c05d3f /src/renderer.rs
parentUse strum on Enums to reduce boilerplate (diff)
downloadminiserve-e7e183e75794cfdb899ce1762d3d9ba38a923cc3.tar.gz
miniserve-e7e183e75794cfdb899ce1762d3d9ba38a923cc3.zip
Fix CSS bug
Diffstat (limited to '')
-rw-r--r--src/renderer.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 909ee75..d682ee4 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -271,6 +271,8 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup {
html {{
font-smoothing: antialiased;
text-rendering: optimizeLegibility;
+ width: 100%;
+ height: 100%;
}}
body {{
margin: 0;
@@ -279,6 +281,8 @@ fn css(color_scheme: &themes::ColorScheme) -> Markup {
color: {text_color};
background: {background};
position: relative;
+ width: 100%;
+ height: 100%;
}}
.container {{
padding: 1.5rem 5rem;