并排展示多个分类标签
This commit is contained in:
parent
4adbceaece
commit
9318296320
|
@ -9548,23 +9548,27 @@ span.recent-post-top-text {
|
||||||
margin-top: 20px!important;
|
margin-top: 20px!important;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
/* 自定义的文章分类 */
|
.article-meta__categories {
|
||||||
a.article-meta__categories {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 1px 6px;
|
|
||||||
background: var(--heo-black-op);
|
|
||||||
border-radius: 8px;
|
|
||||||
margin-left: 0px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: var(--heo-white);
|
|
||||||
top: 8px;
|
top: 8px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* 自定义的文章分类 */
|
||||||
|
a.article-meta__category {
|
||||||
|
padding: 2px 6px;
|
||||||
|
background: var(--heo-black-op);
|
||||||
|
border-radius: 6px;
|
||||||
|
margin: 0 5px 0 0;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: var(--heo-white);
|
||||||
backdrop-filter: saturate(180%) blur(20px);
|
backdrop-filter: saturate(180%) blur(20px);
|
||||||
-webkit-backdrop-filter: blur(20px);
|
-webkit-backdrop-filter: blur(20px);
|
||||||
}
|
}
|
||||||
|
|
||||||
a.article-meta__categories:hover {
|
a.article-meta__category:hover {
|
||||||
background: var(--heo-theme) !important;
|
background: var(--heo-theme) !important;
|
||||||
color: var(--heo-white) !important;
|
color: var(--heo-white) !important;
|
||||||
box-shadow: var(--heo-shadow-theme);
|
box-shadow: var(--heo-shadow-theme);
|
||||||
|
@ -9705,8 +9709,7 @@ a.article-meta__categories:hover {
|
||||||
|
|
||||||
.article-meta__tags {
|
.article-meta__tags {
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
padding: 0 .2rem;
|
padding: 0 0.2rem 0 0;
|
||||||
padding-left: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 多分类兼容性调整 */
|
/* 多分类兼容性调整 */
|
||||||
|
@ -10811,7 +10814,7 @@ span.post-meta-position {
|
||||||
/* 文章信息透明度 */
|
/* 文章信息透明度 */
|
||||||
.post-meta-wordcount {
|
.post-meta-wordcount {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
margin-right: 0.8rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
|
|
|
@ -19,12 +19,14 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 类别非空时 -->
|
<!-- 类别非空时 -->
|
||||||
<th:block th:if="${not #lists.isEmpty(post.categories)}">
|
<th:block th:if="${not #lists.isEmpty(post.categories)}">
|
||||||
<a class="article-meta__categories"
|
<span class="article-meta__categories">
|
||||||
|
<a class="article-meta__category"
|
||||||
th:each="category : ${post.categories}"
|
th:each="category : ${post.categories}"
|
||||||
th:href="@{${category.status.permalink}}"
|
th:href="@{${category.status.permalink}}"
|
||||||
th:text="${category.spec.displayName}"
|
th:text="${category.spec.displayName}"
|
||||||
th:title="${category.spec.displayName}">
|
th:title="${category.spec.displayName}">
|
||||||
</a>
|
</a>
|
||||||
|
</span>
|
||||||
</th:block>
|
</th:block>
|
||||||
<div class="recent-post-info">
|
<div class="recent-post-info">
|
||||||
<div class="recent-post-info-top">
|
<div class="recent-post-info-top">
|
||||||
|
|
Loading…
Reference in New Issue