ui: Don't use nav-link inside card

- .nav-link classes are meant to be used in navbars and tab navigations. Don't
use them incorrectly in .card to avoid potential breakages and readability.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2024-12-12 13:02:45 +02:00
1 parent b97cd9094e
commit 1de071cceb
3 files changed
+7 -10

No files matched your search

+4 -7
View File
@@ -291,10 +291,6 @@ body {
animation: spin 1s linear infinite;
}
.nav-link:hover, .nav-link:visited, .nav-link:link, .nav-link:active {
text-decoration: none;
}
@keyframes spin {
0% {
transform: rotate(0deg);
@@ -594,10 +590,11 @@ footer {
background: #eee;
}
.card .nav-link {
.card > a {
display: block;
padding: 0rem;
color: #212529; /* Same as Bootstrap default color */
color: var(--bs-body-color);
text-decoration: none;
}
.card-title {
@@ -631,7 +628,7 @@ footer {
padding: 0;
}
.system-page .card .nav-link {
.system-page .card > a {
display: grid;
grid-template-columns: 2.1875rem auto;
grid-column-gap: 0.625rem;