diff --git a/bookmarks/styles/theme-dark.css b/bookmarks/styles/theme-dark.css index bec8ca3..3a10d5a 100644 --- a/bookmarks/styles/theme-dark.css +++ b/bookmarks/styles/theme-dark.css @@ -102,7 +102,7 @@ --btn-error-text-color: var(--contrast-text-color); --btn-link-text-color: var(--link-color); - --btn-link-hover-text-color: var(--link-color); + --btn-link-hover-text-color: var(--secondary-link-color); } :root { diff --git a/bookmarks/styles/theme/buttons.css b/bookmarks/styles/theme/buttons.css index 21bb7e3..bc9fd4d 100644 --- a/bookmarks/styles/theme/buttons.css +++ b/bookmarks/styles/theme/buttons.css @@ -21,7 +21,7 @@ --btn-error-text-color: var(--contrast-text-color); --btn-link-text-color: var(--link-color); - --btn-link-hover-text-color: var(--link-color); + --btn-link-hover-text-color: var(--secondary-link-color); } .btn { @@ -135,10 +135,16 @@ &:focus, &:hover, - &:active, - &.active { + &:active { text-decoration: none; } + + &.active { + text-decoration: underline; + text-decoration-color: var(--btn-link-text-color); + text-decoration-thickness: 2px; + text-underline-offset: 0.5em; + } } /* Button Sizes */ diff --git a/bookmarks/templates/bookmarks/nav_menu.html b/bookmarks/templates/bookmarks/nav_menu.html index e817361..eb8be60 100644 --- a/bookmarks/templates/bookmarks/nav_menu.html +++ b/bookmarks/templates/bookmarks/nav_menu.html @@ -4,11 +4,11 @@
Add bookmark - Settings + Settings
{% csrf_token %} diff --git a/bookmarks/templatetags/shared.py b/bookmarks/templatetags/shared.py index 5da3c1c..79b5a8c 100644 --- a/bookmarks/templatetags/shared.py +++ b/bookmarks/templatetags/shared.py @@ -87,6 +87,11 @@ def hash_tag(tag_name): return "#" + tag_name +@register.filter(name="starts_with") +def starts_with(text, prefix): + return text.startswith(prefix) + + @register.filter(name="first_char") def first_char(text): return text[0]