From d2482eebf44304035a25d6cf323c0818c79de61a Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Mon, 9 May 2022 10:40:02 -0400 Subject: [PATCH] s/ghost/outline/g --- crates/templates/src/res/components/button.html | 10 +++++----- crates/templates/src/res/components/navbar.html | 4 ++-- crates/templates/src/res/pages/account/index.html | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/templates/src/res/components/button.html b/crates/templates/src/res/components/button.html index c7c9d223..45a93197 100644 --- a/crates/templates/src/res/components/button.html +++ b/crates/templates/src/res/components/button.html @@ -26,7 +26,7 @@ limitations under the License. {{ self::common_class() }} border-accent bg-accent text-white hover:opacity-75 {%- endmacro %} -{% macro ghost_class() -%} +{% macro outline_class() -%} {{ self::common_class() }} border-accent hover:bg-accent/10 text-accent {%- endmacro %} @@ -42,8 +42,8 @@ limitations under the License. {{ text }} {% endmacro %} -{% macro link_ghost(text, href="#", class="") %} - {{ text }} +{% macro link_outline(text, href="#", class="") %} + {{ text }} {% endmacro %} {% macro button(text, name="", type="submit", class="", value="") %} @@ -54,6 +54,6 @@ limitations under the License. {% endmacro %} -{% macro button_ghost(text, name="", type="submit", class="", value="") %} - +{% macro button_outline(text, name="", type="submit", class="", value="") %} + {% endmacro %} diff --git a/crates/templates/src/res/components/navbar.html b/crates/templates/src/res/components/navbar.html index def40c17..c3591200 100644 --- a/crates/templates/src/res/components/navbar.html +++ b/crates/templates/src/res/components/navbar.html @@ -28,11 +28,11 @@ limitations under the License.
- {{ button::button_ghost(text="Sign out", name="logout", type="submit") }} + {{ button::button_outline(text="Sign out", name="logout", type="submit") }}
{% else %} {{ button::link(text="Sign in", href="/login") }} - {{ button::link_ghost(text="Create an account", href="/register") }} + {{ button::link_outline(text="Create an account", href="/register") }} {% endif %} diff --git a/crates/templates/src/res/pages/account/index.html b/crates/templates/src/res/pages/account/index.html index 7665bdf9..10ebf4be 100644 --- a/crates/templates/src/res/pages/account/index.html +++ b/crates/templates/src/res/pages/account/index.html @@ -31,7 +31,7 @@ limitations under the License.
Primary email
{{ current_session.user.primary_email.email }}
{% endif %} - {{ button::link_ghost(text="Change password", href="/account/password", class="col-span-2 place-self-end") }} + {{ button::link_outline(text="Change password", href="/account/password", class="col-span-2 place-self-end") }}

Current session

@@ -45,7 +45,7 @@ limitations under the License. Never {% endif %}
- {{ button::link_ghost(text="Revalidate", href="/reauth", class="col-span-2 place-self-end") }} + {{ button::link_outline(text="Revalidate", href="/reauth", class="col-span-2 place-self-end") }}

Emails

@@ -53,7 +53,7 @@ limitations under the License.
{{ email.email }}
{% if email.confirmed_at %}Confirmed{% else %}Unconfirmed{% endif %}
{% endfor %} - {{ button::link_ghost(text="Manage", href="/account/emails", class="col-span-2 place-self-end") }} + {{ button::link_outline(text="Manage", href="/account/emails", class="col-span-2 place-self-end") }}
{% endblock content %}