Skip to content
Snippets Groups Projects
Commit 87ad0f8a authored by Gabriel Copat's avatar Gabriel Copat
Browse files

Fixed logout button functionality

parent 5ac9153d
Branches
No related tags found
1 merge request!36Resolve "As a user I want to be able to use the application on any device e.g. iPhone, iPad, Laptop"
......@@ -310,13 +310,13 @@ and (max-device-width: 640px) {
}
.container.active .sign-in{
transform: translateY(0);
transform: translateY(-100%);
opacity: 0;
z-index: -1;
}
.container.active .sign-up{
opacity: 1;
z-index: 5;
z-index: 10;
transform: translateY(100%);
}
......@@ -355,7 +355,14 @@ and (max-device-width: 640px) {
}
}
.alert {
color: var(--error-colour);
text-shadow: var(--error-colour) 0 0 10px;
color: var(--alert-colour, black);
text-shadow: 0 0 10px var(--alert-colour, black);
}
.alert-error {
--alert-colour: red;
}
.alert-success {
--alert-colour: green;
}
......@@ -170,8 +170,6 @@ and (max-device-width: 640px) {
aspect-ratio: 1;
}
}
}
......
......@@ -15,7 +15,10 @@
<a href="/login" class="nav-links">Log In</a>
</li>
<li class="nav-li li-last" th:if="${#authentication.principal}!=anonymousUser">
<a href="/logout" class="nav-links">Log Out</a>
<a class="nav-links" href="javascript: document.logoutForm.submit()" role="menuitem">Log Out</a>
<form name="logoutForm" th:action="@{/logout}" method="post" th:hidden="true">
<input hidden type="submit" value="Sign Out"/>
</form>
</li>
</ul>
</nav>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment