Skip to content

Commit 2e8be68

Browse files
committed
Add custom SCSS styling for post tags and improved layout
1 parent 1fa563e commit 2e8be68

2 files changed

Lines changed: 75 additions & 1 deletion

File tree

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ dash:
4040
icon: twitter-square
4141
color: cyan
4242
disqus:
43-
shortname: devnomadic
43+
shortname: devnomadic
44+

assets/css/style.scss

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
---
3+
4+
/* Custom styles for devnomadic */
5+
6+
/* Post tags styling */
7+
.post-tags {
8+
margin: 0.5rem 0;
9+
10+
.tag {
11+
display: inline-block;
12+
background-color: #f1f3f4;
13+
color: #5f6368;
14+
padding: 0.2rem 0.5rem;
15+
margin: 0.1rem 0.2rem 0.1rem 0;
16+
border-radius: 0.25rem;
17+
font-size: 0.8rem;
18+
text-decoration: none;
19+
transition: background-color 0.2s ease;
20+
21+
&:hover {
22+
background-color: #e8eaed;
23+
color: #202124;
24+
}
25+
}
26+
}
27+
28+
/* Tag cloud styling */
29+
.tag-cloud {
30+
.tag-item {
31+
display: inline-block;
32+
margin: 0.2rem 0.5rem 0.2rem 0;
33+
}
34+
35+
.tag-link {
36+
background-color: #f8f9fa;
37+
color: #5f6368;
38+
padding: 0.3rem 0.6rem;
39+
border-radius: 0.3rem;
40+
text-decoration: none;
41+
font-size: 0.9rem;
42+
transition: all 0.2s ease;
43+
44+
&:hover {
45+
background-color: #e8eaed;
46+
color: #202124;
47+
transform: translateY(-1px);
48+
}
49+
}
50+
}
51+
52+
/* Post link wrapper styling */
53+
.post-link-wrapper {
54+
margin-bottom: 1.5rem;
55+
padding-bottom: 1rem;
56+
border-bottom: 1px solid #e8eaed;
57+
58+
&:last-child {
59+
border-bottom: none;
60+
}
61+
}
62+
63+
.post-meta {
64+
margin-top: 0.5rem;
65+
color: #5f6368;
66+
font-size: 0.9rem;
67+
}
68+
69+
.post-excerpt {
70+
margin-top: 0.5rem;
71+
color: #202124;
72+
line-height: 1.5;
73+
}

0 commit comments

Comments
 (0)