mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
refactor(tagcloud): switch custom_colors from inline styles to CSS classes
This commit is contained in:
1 parent
d15620198c
commit
5878e3b7ee
3 files changed
+26
-9
No files matched your search
@@ -89,3 +89,16 @@
|
||||
.page-title
|
||||
& + .tag-cloud-list
|
||||
text-align: left
|
||||
|
||||
tag_colors = hexo-config('aside.card_tags.custom_colors')
|
||||
|
||||
.tag-cloud-list .tag-cloud-item
|
||||
background-color var(--tag-cloud-color)
|
||||
|
||||
.card-tag-cloud .tag-cloud-item
|
||||
color var(--tag-cloud-color)
|
||||
|
||||
if tag_colors && length(tag_colors) > 0
|
||||
for c, i in tag_colors
|
||||
.tag-cloud-item.tag-color-{i}
|
||||
--tag-cloud-color convert(c)
|
||||
Reference in new issue
Block a user