From a0320b2f21ddfb5121e3759ebf77ba9e0f6add50 Mon Sep 17 00:00:00 2001 From: Nils G <nils.gondermann@ruhr-uni-bochum.de> Date: Tue, 14 Apr 2020 16:14:11 +0200 Subject: [PATCH] Move popup class in client.css --- static/css/base.css | 53 ++++--------------------------------------- static/css/client.css | 51 +++++++++++++++++++++++++++++++++++++++++ views/layout.html | 1 + 3 files changed, 56 insertions(+), 49 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index fb0f5d6..e385945 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -2,12 +2,7 @@ :root { --bar-bg: grey; - - --error-bg: #FFBBBB; - --error-text: darkred; - - --info-bg: #DDEEFF; - --info-text: #00004D; + --bar-text: white; } body, html { @@ -16,12 +11,12 @@ body, html { /* =============== Header =================== */ #header { - position: absolute; + position: fixed; display: block; text-align: center; - color: white; + color: var(--bar-text); font-family: monospace; font-size: 1.7em; font-weight: bold; @@ -61,46 +56,6 @@ body, html { margin-bottom: 75px; } -/* ============== Popup ===================== */ - -.popup { - border: solid 2px; - - font-family: monospace; - font-size: 1.3em; - font-weight: bold; - - width: 66%; - - padding: 10px; - margin: auto; - margin-bottom: 50px; -} - -.popup:empty { - display: none; -} - -.popup button { - background-color: inherit; - - border: solid 2px; - - font-size: smaller; - color: inherit; - - padding: 10px 30px 10px 30px; -} - -.error { - background-color: var(--error-bg); - color: var(--error-text); -} - -.info { - background-color: var(--info-bg); - color: var(--info-text); -} /* ============== Footer ===================== */ @@ -120,6 +75,6 @@ body, html { } #footer a { - color: white; + color: var(--bar-text); text-decoration: none; } diff --git a/static/css/client.css b/static/css/client.css index dfca628..e55ee69 100644 --- a/static/css/client.css +++ b/static/css/client.css @@ -1,3 +1,13 @@ +:root { + --error-bg: #FFBBBB; + --error-text: darkred; + + --info-bg: #DDEEFF; + --info-text: #00004D; +} + +/**************************************/ + body { text-align: center; background-color: lightgrey; @@ -10,3 +20,44 @@ body { #current_content input { text-transform: inherit; } + +/* ============== Popup ===================== */ + +.popup { + border: solid 2px; + + font-family: monospace; + font-size: 1.3em; + font-weight: bold; + + width: 66%; + + padding: 10px; + margin: auto; + margin-bottom: 50px; +} + +.popup:empty { + display: none; +} + +.popup button { + background-color: inherit; + + border: solid 2px; + + font-size: smaller; + color: inherit; + + padding: 10px 30px 10px 30px; +} + +.error { + background-color: var(--error-bg); + color: var(--error-text); +} + +.info { + background-color: var(--info-bg); + color: var(--info-text); +} diff --git a/views/layout.html b/views/layout.html index dfd94be..fa30045 100644 --- a/views/layout.html +++ b/views/layout.html @@ -17,6 +17,7 @@ {{include}} <!-- ======================== --> + <div class="spacer"></div> <div id="footer"> [ <a href="{{=URL('default', 'index')}}">WebClient</a> ] [ <a href="{{=URL('debug', 'index')}}">Debug</a> ] -- GitLab