-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathblog-tags.css
More file actions
139 lines (119 loc) · 2.4 KB
/
Copy pathblog-tags.css
File metadata and controls
139 lines (119 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/**
* 博客标签云和分类筛选样式
*/
/* 标签云容器 */
#tag-cloud {
margin: 30px 0;
padding: 20px;
background: var(--card-bg);
border-radius: 12px;
border: 1px solid var(--border-color);
}
.tag-cloud-items {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.tag-cloud-item {
display: inline-block;
padding: 6px 14px;
background: rgba(59, 130, 246, 0.1);
color: var(--primary-color);
border-radius: 20px;
font-weight: 500;
transition: all 0.3s ease;
text-decoration: none;
line-height: 1.4;
}
.tag-cloud-item:hover {
background: var(--primary-color);
color: white;
transform: translateY(-2px) scale(1.05);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.no-tags {
text-align: center;
color: var(--text-muted);
padding: 20px;
}
/* 分类筛选器 */
#category-filter {
margin: 20px 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.category-btn {
padding: 10px 20px;
border: 2px solid var(--border-color);
background: var(--card-bg);
color: var(--text-secondary);
border-radius: 25px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.category-btn:hover {
border-color: var(--primary-color);
color: var(--primary-color);
transform: translateY(-2px);
}
.category-btn.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
/* 结果计数 */
#results-count {
text-align: center;
padding: 15px;
color: var(--text-secondary);
font-size: 14px;
margin-bottom: 20px;
}
/* 文章卡片动画 */
.post-card,
.article-item {
transition:
opacity 0.3s ease,
transform 0.3s ease;
}
/* 移动端适配 */
@media (max-width: 768px) {
#tag-cloud {
margin: 20px 0;
padding: 15px;
}
.tag-cloud-items {
gap: 8px;
}
.tag-cloud-item {
padding: 5px 12px;
font-size: 13px;
}
#category-filter {
margin: 15px 0;
}
.category-btn {
padding: 8px 16px;
font-size: 13px;
}
}
/* 暗色模式适配 */
.dark-mode .tag-cloud-item {
background: rgba(59, 130, 246, 0.15);
}
.dark-mode .tag-cloud-item:hover {
background: var(--primary-color);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}
.dark-mode .category-btn {
background: var(--bg-secondary);
border-color: var(--border-color);
}
.dark-mode .category-btn:hover {
border-color: var(--primary-color);
}