From 79ec7a331976929b230d5cebff40fe77f700f9df Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Jun 2021 04:03:03 -0400 Subject: [PATCH] Styling tweaks --- static/style.css | 16 ++++++++++++++-- templates/index.mako | 2 +- templates/settings.mako | 2 +- templates/support/footer.mako | 1 + templates/support/header.mako | 6 +++--- 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/static/style.css b/static/style.css index eb3e883..ae27d79 100644 --- a/static/style.css +++ b/static/style.css @@ -21,7 +21,18 @@ body { margin: 0 auto; } -#container > div { +#container.splash { + display: flex; + flex-direction: column; + justify-content: center; + max-width: 1600px; +} + +#container.splash > .padding { + height: 25%; +} + +#content { background-color: #fff; border: 1px solid #c8ccd1; filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.25)); @@ -40,7 +51,8 @@ header > * { } header h1 { - font-size: 2em; + font-size: 2.25em; + font-weight: normal; margin: 0 1em 0 0; } diff --git a/templates/index.mako b/templates/index.mako index 72699e7..2fc6a8d 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -11,7 +11,7 @@ titleparts.append("Earwig's Copyvio Detector") title = " | ".join(titleparts) %>\ -<%include file="/support/header.mako" args="title=title"/> +<%include file="/support/header.mako" args="title=title, splash=bool(result)"/> <%namespace module="copyvios.highlighter" import="highlight_delta"/>\ <%namespace module="copyvios.misc" import="httpsfix, urlstrip"/>\ % if notice: diff --git a/templates/settings.mako b/templates/settings.mako index 55be5c2..c502b39 100644 --- a/templates/settings.mako +++ b/templates/settings.mako @@ -3,7 +3,7 @@ from flask import g, request from copyvios.misc import cache %>\ -<%include file="/support/header.mako" args="title='Settings | Earwig\'s Copyvio Detector'"/> +<%include file="/support/header.mako" args="title='Settings | Earwig\'s Copyvio Detector', splash=True"/> % if status:

${status}

diff --git a/templates/support/footer.mako b/templates/support/footer.mako index ae37f6b..153f07c 100644 --- a/templates/support/footer.mako +++ b/templates/support/footer.mako @@ -4,6 +4,7 @@ %>\
+