From 8032f93f5a57a60e728946e170fd5d469ca0723c Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Tue, 12 May 2020 16:30:34 +0200 Subject: [PATCH] web server: max size 800px --- src/be/nikiroo/fanfix/library/web/style.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/be/nikiroo/fanfix/library/web/style.css b/src/be/nikiroo/fanfix/library/web/style.css index 705006cf..aadbf332 100644 --- a/src/be/nikiroo/fanfix/library/web/style.css +++ b/src/be/nikiroo/fanfix/library/web/style.css @@ -24,7 +24,8 @@ table { } .main { - display: block; + max-width: 800px; + margin: auto; } .message { @@ -133,6 +134,7 @@ h3 { display: block; background: white; position: fixed; + margin: auto; } .viewer { @@ -155,7 +157,7 @@ a.viewer.link:hover { } .bar.navbar { - padding-left: calc(50% - (4 * 64px / 2)); + padding-left: calc(min(50%, 800px / 2) - (4 * 64px / 2)); } .bar.optionbar { @@ -163,11 +165,11 @@ a.viewer.link:hover { } .bar.optionbar.s1 { - padding-left: calc(50% - (1 * 64px / 2)); + padding-left: calc(min(50%, 800px / 2) - (1 * 64px / 2)); } .bar.optionbar.s4 { - padding-left: calc(50% - (4 * 64px / 2)); + padding-left: calc(min(50%, 800px / 2) - (4 * 64px / 2)); } .bar .button { -- 2.27.0