style outsourcing

This commit is contained in:
Flummi 2021-12-25 13:12:37 +01:00
parent c0413705a8
commit d71eece80e
2 changed files with 9 additions and 4 deletions

View File

@ -904,7 +904,7 @@ span#tags {
}
span#tags:empty {
display: none;
display: none;
}
.badge-success {
@ -1238,5 +1238,10 @@ table.table th, table.table td {
padding: 7px 15px;
}
table.table tbody tr:nth-of-type(even) {
background-color: #232323;
background-color: var(--badge-tag);
}
/* tags */
#tags .badge > a:first-child {
color: inherit !important;
}

View File

@ -63,8 +63,8 @@
<span class="badge badge-dark" id="tags">
@if(typeof item.tags !== "undefined")
@each(item.tags as tag)
<span @if(session)title="{{ tag.user }}"@endif class="badge @if(tag.tag[0] == "&")badge-greentext@endif badge-{{ (tag.tag === "nsfw" ? "danger" : tag.tag === "sfw" ? "success" : "light") }} mr-2">
<a href="/tag/{{ tag.tag.replace(/\s/g, "%20") }}" style="color: inherit !important;">{{ tag.tag }}</a>@if(session)&nbsp;<a href="#">&#215;</a>@endif
<span @if(session)title="{{ tag.user }}" data-tagid="{{ tag.id }}"@endif class="badge@if(tag.tag[0] == "&") badge-greentext@endif badge-{{ (tag.tag === "nsfw" ? "danger" : tag.tag === "sfw" ? "success" : "light") }} mr-2">
<a href="/tag/{{ tag.tag.replace(/\s/g, "%20") }}">{{ tag.tag }}</a>@if(session)&nbsp;<a href="#">&#215;</a>@endif
</span>
@endeach
@endif