From 43cc017b44ccbef6dd54d0a10d462ee99d2a7d4b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 21 Mar 2022 12:32:53 -0700 Subject: [PATCH] Removes tooltip component --- bookwyrm/static/css/bookwyrm/_all.scss | 8 -------- bookwyrm/templates/components/tooltip.html | 11 ----------- .../settings/ip_blocklist/ip_address_form.html | 1 + .../templates/settings/ip_blocklist/ip_tooltip.html | 8 -------- 4 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 bookwyrm/templates/components/tooltip.html delete mode 100644 bookwyrm/templates/settings/ip_blocklist/ip_tooltip.html diff --git a/bookwyrm/static/css/bookwyrm/_all.scss b/bookwyrm/static/css/bookwyrm/_all.scss index 6002785f..79e5cf52 100644 --- a/bookwyrm/static/css/bookwyrm/_all.scss +++ b/bookwyrm/static/css/bookwyrm/_all.scss @@ -129,14 +129,6 @@ button:focus-visible .button-invisible-overlay { } - -/** Tooltips - ******************************************************************************/ - -.tooltip { - width: 100%; -} - /** States ******************************************************************************/ diff --git a/bookwyrm/templates/components/tooltip.html b/bookwyrm/templates/components/tooltip.html deleted file mode 100644 index 3176a639..00000000 --- a/bookwyrm/templates/components/tooltip.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load i18n %} - -{% trans "Help" as button_text %} -{% include 'snippets/toggle/open_button.html' with text=button_text class="ml-3 is-rounded is-small has-background-body p-0 pb-1" icon="question-circle is-size-6" controls_text=controls_text controls_uid=controls_uid %} - - diff --git a/bookwyrm/templates/settings/ip_blocklist/ip_address_form.html b/bookwyrm/templates/settings/ip_blocklist/ip_address_form.html index 4a776987..2afc00b4 100644 --- a/bookwyrm/templates/settings/ip_blocklist/ip_address_form.html +++ b/bookwyrm/templates/settings/ip_blocklist/ip_address_form.html @@ -21,6 +21,7 @@
+

{% trans "You can block IP ranges using CIDR syntax." %}

{% include 'snippets/form_errors.html' with errors_list=form.address.errors id="desc_address" %} diff --git a/bookwyrm/templates/settings/ip_blocklist/ip_tooltip.html b/bookwyrm/templates/settings/ip_blocklist/ip_tooltip.html deleted file mode 100644 index 3a2bf543..00000000 --- a/bookwyrm/templates/settings/ip_blocklist/ip_tooltip.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends 'components/tooltip.html' %} -{% load i18n %} - -{% block tooltip_content %} - -{% trans "You can block IP ranges using CIDR syntax." %} - -{% endblock %}