Skip to content

Commit e57be40

Browse files
committed
Override theme's green tag colors with gray colors to match design
1 parent 91e4b98 commit e57be40

1 file changed

Lines changed: 70 additions & 24 deletions

File tree

assets/css/custom.css

Lines changed: 70 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,93 @@
11
/* Custom styles for devnomadic */
22

3+
/* Override theme's green tag styling completely */
4+
.tag, .tag-cloud > a {
5+
color: #5f6368 !important;
6+
background-color: #f1f3f4 !important;
7+
padding: 0.2rem 0.5rem !important;
8+
border-radius: 0.25rem !important;
9+
font-size: 0.8rem !important;
10+
margin: 0.1rem 0.2rem 0.1rem 0 !important;
11+
display: inline-block !important;
12+
text-decoration: none !important;
13+
transition: background-color 0.2s ease !important;
14+
}
15+
16+
.tag:hover, .tag-cloud > a:hover {
17+
background-color: #e8eaed !important;
18+
color: #202124 !important;
19+
text-decoration: none !important;
20+
}
21+
22+
/* Remove Font Awesome icon from tags */
23+
.tag:before, .tag-cloud > a:before {
24+
display: none !important;
25+
content: none !important;
26+
}
27+
328
/* Post tags styling */
429
.post-tags {
530
margin: 0.5rem 0;
631
}
732

833
.post-tags .tag {
9-
display: inline-block;
10-
background-color: #f1f3f4;
11-
color: #5f6368;
12-
padding: 0.2rem 0.5rem;
13-
margin: 0.1rem 0.2rem 0.1rem 0;
14-
border-radius: 0.25rem;
15-
font-size: 0.8rem;
16-
text-decoration: none;
17-
transition: background-color 0.2s ease;
34+
display: inline-block !important;
35+
background-color: #f1f3f4 !important;
36+
color: #5f6368 !important;
37+
padding: 0.2rem 0.5rem !important;
38+
margin: 0.1rem 0.2rem 0.1rem 0 !important;
39+
border-radius: 0.25rem !important;
40+
font-size: 0.8rem !important;
41+
text-decoration: none !important;
42+
transition: background-color 0.2s ease !important;
1843
}
1944

2045
.post-tags .tag:hover {
21-
background-color: #e8eaed;
22-
color: #202124;
46+
background-color: #e8eaed !important;
47+
color: #202124 !important;
2348
}
2449

25-
/* Tag cloud styling */
26-
.tag-cloud .tag-item {
27-
display: inline-block;
28-
margin: 0.2rem 0.5rem 0.2rem 0;
50+
.post-tags .tag:before {
51+
display: none !important;
52+
content: none !important;
53+
}
54+
55+
/* Tag posts styling for tags page */
56+
.tag-posts {
57+
list-style: none;
58+
padding: 0;
59+
margin-bottom: 30px;
2960
}
3061

31-
.tag-cloud .tag-link {
62+
.tag-posts li {
63+
margin: 0.5rem 0;
64+
padding: 0.75rem;
3265
background-color: #f8f9fa;
33-
color: #5f6368;
34-
padding: 0.3rem 0.6rem;
35-
border-radius: 0.3rem;
66+
border-radius: 0.25rem;
67+
border-left: 3px solid #c94570;
68+
}
69+
70+
.tag-posts li a {
71+
color: #c94570;
3672
text-decoration: none;
73+
font-weight: 500;
74+
}
75+
76+
.tag-posts li a:hover {
77+
text-decoration: underline;
78+
}
79+
80+
.post-date {
81+
color: #5f6368;
3782
font-size: 0.9rem;
38-
transition: all 0.2s ease;
83+
display: block;
84+
margin-top: 0.25rem;
3985
}
4086

41-
.tag-cloud .tag-link:hover {
42-
background-color: #e8eaed;
43-
color: #202124;
44-
transform: translateY(-1px);
87+
@media (max-width: 600px) {
88+
.post-date {
89+
font-size: 0.8em;
90+
}
4591
}
4692

4793
/* Post link wrapper styling */

0 commit comments

Comments
 (0)