From 0b0a283e641db55c231bb1afc5a2bef776de2f2b Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 21 Apr 2021 22:32:14 +0200 Subject: [PATCH] Fix buttons styles --- bookwyrm/static/css/bookwyrm.css | 24 +++++++++++++++++++ bookwyrm/templates/snippets/boost_button.html | 12 +++++----- bookwyrm/templates/snippets/fav_button.html | 12 +++++----- .../snippets/status/status_options.html | 4 ++-- .../snippets/toggle/toggle_button.html | 6 ++--- 5 files changed, 41 insertions(+), 17 deletions(-) diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index 67eb1ebac..0d790e2a9 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -30,6 +30,30 @@ body { min-width: 75% !important; } +/** Utils + ******************************************************************************/ + +@media only screen and (max-width: 768px) { + .is-sr-only-mobile { + border: none !important; + clip: rect(0,0,0,0) !important; + height: .01em !important; + overflow: hidden !important; + padding: 0 !important; + position: absolute !important; + white-space: nowrap !important; + width: .01em !important; + } + + .m-0-mobile { + margin: 0 !important; + } +} + +.button.is-transparent { + background-color: transparent; +} + /** Shelving ******************************************************************************/ diff --git a/bookwyrm/templates/snippets/boost_button.html b/bookwyrm/templates/snippets/boost_button.html index 27a6196a9..3a01fc82d 100644 --- a/bookwyrm/templates/snippets/boost_button.html +++ b/bookwyrm/templates/snippets/boost_button.html @@ -4,16 +4,16 @@ {% with status.id|uuid as uuid %}
{% csrf_token %} -
{% csrf_token %} -
{% endwith %} diff --git a/bookwyrm/templates/snippets/fav_button.html b/bookwyrm/templates/snippets/fav_button.html index da6e6661f..cd22822a5 100644 --- a/bookwyrm/templates/snippets/fav_button.html +++ b/bookwyrm/templates/snippets/fav_button.html @@ -3,17 +3,17 @@ {% with status.id|uuid as uuid %}
{% csrf_token %} -
{% csrf_token %} -
{% endwith %} diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index 16d49b3d2..763d09b8d 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -3,8 +3,8 @@ {% load bookwyrm_tags %} {% block dropdown-trigger %} - -{% trans "More options" %} + +{% trans "More options" %} {% endblock %} {% block dropdown-list %} diff --git a/bookwyrm/templates/snippets/toggle/toggle_button.html b/bookwyrm/templates/snippets/toggle/toggle_button.html index d5a8f3dcd..410f823bd 100644 --- a/bookwyrm/templates/snippets/toggle/toggle_button.html +++ b/bookwyrm/templates/snippets/toggle/toggle_button.html @@ -10,12 +10,12 @@ > {% if icon %} - + {{ text }} {% elif icon_with_text %} - - {{ text }} + + {{ text }} {% else %} {{ text }} {% endif %}