Fix link support in list HTML

* Add the card-link class to all anchors in the HTML
* Override the default Bootstrap styling for links in card text
This commit is contained in:
Paul van Tilburg 2017-12-30 14:06:46 +01:00
parent c2baff37f3
commit a7a90ce84b
4 changed files with 24 additions and 2 deletions

View File

@ -18,3 +18,14 @@ body {
column-count: 2;
}
}
// 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 {
color: inherit;
text-decoration: underline;
}

View File

@ -6476,4 +6476,11 @@ body {
.card-columns {
column-count: 2; } }
.card-body .card-text a.card-link {
color: inherit; }
.card-body .card-text a.card-link {
color: inherit;
text-decoration: underline; }
/*# sourceMappingURL=wishlists.css.map */

File diff suppressed because one or more lines are too long

View File

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