From 89d25030d4bf7989107fd31ee7f501580a2c4924 Mon Sep 17 00:00:00 2001 From: papee Date: Fri, 14 Aug 2020 11:32:14 +0200 Subject: [PATCH] cleaning reader mode and admin css --- zerobin/static/css/style.css | 62 ++++++++++++++++++++++++++++++------ zerobin/views/admin.tpl | 6 ++-- zerobin/views/base.tpl | 32 +++++++++++++------ zerobin/views/login.tpl | 32 ++++++++++--------- zerobin/views/paste.tpl | 6 ++-- 5 files changed, 99 insertions(+), 39 deletions(-) diff --git a/zerobin/static/css/style.css b/zerobin/static/css/style.css index 0bcc2c8..c5d0ec4 100644 --- a/zerobin/static/css/style.css +++ b/zerobin/static/css/style.css @@ -243,14 +243,6 @@ pre { overflow: visible; } -.reader-wrapper { - color: #f2f2f2; - max-width: 800px; - width: 90%; - text-align: justify; - margin: auto; - margin-top: 20px; -} /* Common css */ @@ -489,7 +481,7 @@ nav ul li a:hover { } /* Responsive */ -@media screen and (max-width: 840px) { +@media screen and (max-width: 1060px) { .topnav a:not(:first-child) { display: none; } @@ -511,10 +503,60 @@ nav ul li a:hover { font-size: 70%; } + .reader-tools { + bottom: 30px; + } + } +@media screen and (max-width: 660px) { + .submenu { + display: none; + } +} + + /* reader mode */ #readable-paste-content { - white-space: pre; + color: #f2f2f2; + max-width: 800px; + width: 90%; + text-align: justify; + margin: auto; + margin-top: 20px; + white-space: pre-wrap; + overflow: visible; +} + +.reader-mode-bg { + background-color: #333; +} + +.reader-book svg { + font-size: 26px; +} + +.reader-tools { + color: #eee; +} + +.reader-tools.min a{ + font-size: 14px; +} + +.reader-tools.max a{ + font-size: 18px; +} + +/* Admin */ + +.login-form { + width: 80%; + max-width: 500px; + margin: auto; +} + +#password-field { + width: 80%; } diff --git a/zerobin/views/admin.tpl b/zerobin/views/admin.tpl index 03c3656..b74c501 100644 --- a/zerobin/views/admin.tpl +++ b/zerobin/views/admin.tpl @@ -1,9 +1,10 @@
- %if status == "error": +
{{message}} + dededede
- %end + %if status == "ok" and message: -
diff --git a/zerobin/views/base.tpl b/zerobin/views/base.tpl index f251b35..9689de9 100644 --- a/zerobin/views/base.tpl +++ b/zerobin/views/base.tpl @@ -23,9 +23,9 @@ - + -
+
ΓΈbin.net @@ -35,13 +35,27 @@