From 4a7d8646b6a9d0c0ba6e86328994c55ca4fa4e62 Mon Sep 17 00:00:00 2001 From: snowfag Date: Tue, 23 May 2017 21:11:58 -0400 Subject: [PATCH] Update upload/edit buttons. --- nyaa/static/css/main.css | 14 ++++++++++---- nyaa/templates/edit.html | 6 ++++++ nyaa/templates/layout.html | 2 +- nyaa/templates/upload.html | 5 +++++ 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 90e8b13..7bee4d0 100755 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -265,9 +265,15 @@ a.text-purple:hover, a.text-purple:active, a.text-purple:focus { color: #a760e0; .btn-grey:hover, .btn-grey:focus, .btn-grey:active, .btn-grey.active, .open > .dropdown-toggle.btn-grey { background-color: #aaaaaa; } -.btn span.glyphicon { - opacity: 0; +.btn span.glyphicon-ok { + display: none; } -.btn.active span.glyphicon { - opacity: 1; +.btn.active span.glyphicon-ok { + display: inline; +} +.btn span.glyphicon-remove { + display: inline; +} +.btn.active span.glyphicon-remove { + display: none; } diff --git a/nyaa/templates/edit.html b/nyaa/templates/edit.html index f95cb83..47f6df6 100755 --- a/nyaa/templates/edit.html +++ b/nyaa/templates/edit.html @@ -36,28 +36,33 @@ {% endif %} {% if g.user.is_trusted %} {% endif %} @@ -68,6 +73,7 @@ {% endif %} diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html index 474f174..15ca4d2 100755 --- a/nyaa/templates/layout.html +++ b/nyaa/templates/layout.html @@ -27,7 +27,7 @@ - + diff --git a/nyaa/templates/upload.html b/nyaa/templates/upload.html index 74cd39b..7de70e3 100755 --- a/nyaa/templates/upload.html +++ b/nyaa/templates/upload.html @@ -43,27 +43,32 @@ {% if g.user.is_trusted %} {% endif %}