Skip to content

Commit 6f3e0c9

Browse files
committed
feat: Add default styles for anchor tag
1 parent 9bd7016 commit 6f3e0c9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

djangosnippets/templates/account/login.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block content %}
88
<div class="w-[40rem] flex flex-col items-center justify-center mx-auto p-8 font-common shadow-sign-content rounded-lg">
99
<h3>Sign In</h3>
10-
<p>Don't have an account? <a class="text-base-green-600 underline">Sign Up</a></p>
10+
<p>Don't have an account? <a class="underline text-base-green-600 hover:text-base-orange-400">Sign Up</a></p>
1111
{% include "socialaccount/snippets/login_extra.html" %}
1212
<form class="login flex flex-col items-center w-[80%]" method="POST" action="{% url 'account_login' %}">
1313
{% csrf_token %}
@@ -23,7 +23,7 @@ <h3>Sign In</h3>
2323
{% endfor %}
2424
<button type="submit" class="w-full my-4 h-12 text-lg bg-base-green-600 border-2 rounded-lg border-base-green-800 font-common hover:bg-base-white-400 hover:text-base-green-600">Sign In</button>
2525
</form>
26-
<a href="{% url 'account_reset_password' %}" class="block w-[80%] underline text-right text-base-green-600">Forgotten your password?</a>
26+
<a href="{% url 'account_reset_password' %}" class="block w-[80%] underline text-right text-base-green-600 hover:text-base-orange-400">Forgotten your password?</a>
2727
<div class="flex items-center my-4 w-[80%]">
2828
<div class="flex-1 border-t w-full border-gray-400"></div>
2929
<span class="px-4 text-gray-800 font-text">OR</span>

theme/static_src/src/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
--font-common: "Raleway", sans-serif;
1616
}
1717

18+
/* Additional default styles to be applied when SCSS is completely removed */
19+
@layer base {
20+
a {
21+
text-underline-offset: 4px ;
22+
}
23+
}
24+
1825
@layer components {
1926
.arrow-left::before {
2027
@apply content-[''] w-4 h-4 bg-current mr-2;

0 commit comments

Comments
 (0)