Don't use card-link classes

The card-link class does also other things with padding and spacing.
Instead, apply the style override to all links in the list HTML.
This commit is contained in:
Paul van Tilburg 2017-12-30 16:13:48 +01:00
parent 8b798e1d30
commit e795544dc3
3 changed files with 5 additions and 14 deletions

View File

@ -22,13 +22,9 @@ body {
}
}
// Card link anchors should inherit the color from
// the card and use the underline
.card-body .card-text a.card-link {
color: inherit;
}
.card-body .card-text a.card-link {
// Card link anchors should inherit the color from the card and use the
// underline text decoration
.card-body .card-text a {
color: inherit;
text-decoration: underline;
}

View File

@ -6476,10 +6476,7 @@ body {
.card-columns {
column-count: 2; } }
.card-body .card-text a.card-link {
color: inherit; }
.card-body .card-text a.card-link {
.card-body .card-text a {
color: inherit;
text-decoration: underline; }

View File

@ -70,9 +70,7 @@ function updateListHTML(listElem) {
url: '/lists/' + listId,
headers: { 'Accept': 'text/html' }
}).done(function(html) {
$('.list-html', listElem).html(html)
.find("a").addClass("card-link");
$('.list-html', listElem).html(html);
});
}