Skip to content

Commit ef38cba

Browse files
committed
Enhance archive and tags styling with improved layout, hover effects, and responsive design
1 parent f58a3a6 commit ef38cba

2 files changed

Lines changed: 67 additions & 61 deletions

File tree

archive.md

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,65 @@ permalink: /archive/
2828

2929
.archive-item {
3030
margin: 0.75rem 0;
31-
padding: 0.75rem;
32-
background-color: #f8f9fa;
33-
border-radius: 0.25rem;
34-
border-left: 3px solid #de5684;
31+
padding: 1rem;
32+
background: linear-gradient(135deg, #fef7f9 0%, #fdf2f5 100%);
33+
border-radius: 0.5rem;
34+
border-left: 4px solid #de5684;
35+
box-shadow: 0 2px 4px rgba(222, 86, 132, 0.1);
36+
transition: all 0.3s ease;
37+
}
38+
39+
.archive-item:hover {
40+
background: linear-gradient(135deg, #fdf2f5 0%, #fcecf1 100%);
41+
box-shadow: 0 4px 8px rgba(222, 86, 132, 0.15);
42+
transform: translateY(-1px);
3543
}
3644

3745
.archive-link {
3846
color: #de5684;
3947
text-decoration: none;
40-
font-weight: 500;
48+
font-weight: 600;
4149
font-size: 1.1rem;
50+
transition: color 0.3s ease;
4251
}
4352

4453
.archive-link:hover {
54+
color: #c94570;
4555
text-decoration: underline;
4656
}
4757

4858
.archive-date {
49-
color: #5f6368;
59+
color: #8a4f60;
5060
font-size: 0.9rem;
5161
display: block;
5262
margin-top: 0.25rem;
63+
font-weight: 500;
5364
}
5465

5566
h2 {
5667
color: #de5684;
57-
border-bottom: 2px solid #de5684;
58-
padding-bottom: 0.5rem;
59-
margin: 2rem 0 1rem 0;
68+
border-bottom: 3px solid #de5684;
69+
padding-bottom: 0.75rem;
70+
margin: 2.5rem 0 1.5rem 0;
71+
font-weight: 700;
72+
position: relative;
73+
}
74+
75+
h2::after {
76+
content: '';
77+
position: absolute;
78+
bottom: -3px;
79+
left: 0;
80+
width: 50px;
81+
height: 3px;
82+
background: linear-gradient(90deg, #de5684 0%, #f8b2cc 100%);
83+
}
84+
85+
/* Add subtle pink accent to the page */
86+
#markdown-toc {
87+
background: linear-gradient(135deg, #fef7f9 0%, #fdf2f5 100%);
88+
border: 1px solid #de5684;
89+
border-radius: 0.5rem;
90+
padding: 1rem;
6091
}
6192
</style>

tags.md

Lines changed: 27 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,45 @@ permalink: /tags/
5050
}
5151

5252
.tag-cloud .tag {
53-
display: inline-block;
54-
background-color: #f1f3f4;
55-
color: #5f6368;
56-
padding: 0.2rem 0.5rem;
57-
margin: 0.1rem 0.2rem 0.1rem 0;
58-
border-radius: 0.25rem;
59-
font-size: 0.8rem;
60-
text-decoration: none;
53+
display: inline-block !important;
54+
background-color: #f1f3f4 !important;
55+
color: #5f6368 !important;
56+
padding: 0.2rem 0.5rem !important;
57+
margin: 0.1rem 0.2rem 0.1rem 0 !important;
58+
border-radius: 0.25rem !important;
59+
font-size: 0.8rem !important;
60+
text-decoration: none !important;
61+
border: none !important;
6162
}
6263

6364
.tag-cloud .tag:hover {
64-
background-color: #e8eaed;
65-
color: #202124;
65+
background-color: #e8eaed !important;
66+
color: #202124 !important;
67+
text-decoration: none !important;
68+
}
69+
70+
/* Override theme's default tag styling */
71+
.tag-cloud a.tag:before {
72+
display: none !important;
73+
}
74+
75+
.tag-cloud a.tag {
76+
background-color: #f1f3f4 !important;
77+
color: #5f6368 !important;
6678
}
6779

6880
.tag-posts {
6981
list-style: none;
7082
padding: 0;
83+
margin-bottom: 30px;
7184
}
7285

7386
.tag-posts li {
7487
margin: 0.5rem 0;
75-
padding: 0.5rem;
88+
padding: 0.75rem;
7689
background-color: #f8f9fa;
7790
border-radius: 0.25rem;
91+
border-left: 3px solid #de5684;
7892
}
7993

8094
.tag-posts li a {
@@ -90,51 +104,12 @@ permalink: /tags/
90104
.post-date {
91105
color: #5f6368;
92106
font-size: 0.9rem;
93-
margin-left: 1rem;
94-
}
95-
</style>
96-
97-
.tag-link {
98-
background: #f0f0f0;
99-
padding: 4px 8px;
100-
border-radius: 4px;
101-
text-decoration: none;
102-
font-size: 0.9em;
103-
color: #333;
104-
border: 1px solid #ddd;
105-
transition: all 0.2s ease;
106-
}
107-
108-
.tag-link:hover {
109-
background: #e0e0e0;
110-
border-color: #ccc;
111-
}
112-
113-
.tag-posts {
114-
list-style: none;
115-
padding: 0;
116-
margin-bottom: 30px;
117-
}
118-
119-
.tag-posts li {
120-
padding: 5px 0;
121-
border-bottom: 1px solid #eee;
122-
}
123-
124-
.tag-posts li:last-child {
125-
border-bottom: none;
126-
}
127-
128-
.post-date {
129-
float: right;
130-
color: #666;
131-
font-size: 0.9em;
107+
display: block;
108+
margin-top: 0.25rem;
132109
}
133110

134111
@media (max-width: 600px) {
135112
.post-date {
136-
float: none;
137-
display: block;
138113
font-size: 0.8em;
139114
}
140115
}

0 commit comments

Comments
 (0)