diff --git a/zerobin/static/css/style.css b/zerobin/static/css/style.css index 35d7946..fb32bfc 100644 --- a/zerobin/static/css/style.css +++ b/zerobin/static/css/style.css @@ -257,6 +257,10 @@ pre { border-radius: 3px; } +.upload-file { + min-width: 100px; +} + .form-group { margin-bottom: 0; } @@ -392,7 +396,7 @@ canvas { padding: 14px 16px; text-decoration: none; font-size: 17px; - width: 175px; + width: calc(22% - 30px); } .topnav .tagline { @@ -419,7 +423,6 @@ canvas { nav { float: right; margin: 18px; - } nav ul li { @@ -430,8 +433,10 @@ nav ul li { nav ul li a { color: white; background: #333333; - padding: 10px; + padding: 2px 10px 0 10px; text-decoration: none; + height: 30px; + display: block; } nav ul li a:hover { @@ -511,9 +516,13 @@ nav ul li a:hover { } @media screen and (max-width: 660px) { - .submenu { + .reader-mode .submenu { display: none; } + + .reader-mode .reader-book { + display: block; + } } @@ -559,5 +568,28 @@ nav ul li a:hover { } #password-field { - width: 80%; + width: calc(100% - 65px); +} + +.admin-header { + text-align: center; + font-size: 1.5em; + color: #f2f2f2; + margin: 20px 0px 20px 0px; + clear: both; +} + +.admin-header svg { + font-size: 4em; + opacity: 0.3; +} + +form { + clear: both; +} + +.logout svg { + width: 16px; + height: 16px; + margin: 0px 10px 2px 0px; } diff --git a/zerobin/static/js/behavior.js b/zerobin/static/js/behavior.js index 455e022..7537823 100644 --- a/zerobin/static/js/behavior.js +++ b/zerobin/static/js/behavior.js @@ -75,7 +75,6 @@ const app = new Vue({ methods: { toggleReaderMode: function () { - debugger; if (!this.readerMode) { this.messages = []; if (this.support.URLSearchParams) { diff --git a/zerobin/views/admin.tpl b/zerobin/views/admin.tpl index b74c501..7262db1 100644 --- a/zerobin/views/admin.tpl +++ b/zerobin/views/admin.tpl @@ -1,30 +1,45 @@ -
- -
- {{message}} - dededede -
- - %if status == "ok" and message: - - %end -
-
- - -
- -
- -
-
- -
+
+ +
+
+ Admin Panel +
+ + + + +
+ +%if status == "error": +
+ {{message}} +
+%end +%if status == "ok" and message: + +%end + +
+ + +
+ +
+ +
+
+ +
% rebase('base', settings=settings, pastes_count=pastes_count) diff --git a/zerobin/views/login.tpl b/zerobin/views/login.tpl index 0424a01..2e52f58 100644 --- a/zerobin/views/login.tpl +++ b/zerobin/views/login.tpl @@ -1,5 +1,15 @@
+ +
+ Admin Panel +
+ + + + +
+ %if status == "error": @@ -14,7 +24,8 @@
- + + % rebase('base', settings=settings, pastes_count=pastes_count)