Skip to content

Commit f12a9a5

Browse files
committed
Refactor navigation styles for improved layout and responsiveness
1 parent 5d4655c commit f12a9a5

2 files changed

Lines changed: 60 additions & 8 deletions

File tree

_includes/head-custom.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,53 @@
1515
background-color: #e8eaed;
1616
color: #202124;
1717
}
18+
19+
/* Navigation styling */
20+
.header-top {
21+
display: flex;
22+
justify-content: space-between;
23+
align-items: center;
24+
margin-bottom: 1em;
25+
}
26+
27+
.site-nav {
28+
display: block !important;
29+
clear: both;
30+
border-top: 1px solid rgba(255, 167, 196, 0.3);
31+
padding-top: 0.75em;
32+
margin-top: 0.5em;
33+
width: 100%;
34+
}
35+
36+
.nav-link {
37+
display: inline-block;
38+
margin-right: 2em;
39+
color: #ffa7c4 !important;
40+
text-decoration: none;
41+
font-size: 1em;
42+
font-weight: 500;
43+
transition: color 0.3s ease;
44+
}
45+
46+
.nav-link:hover {
47+
color: #ffffff !important;
48+
text-decoration: underline;
49+
}
50+
51+
@media (max-width: 768px) {
52+
.header-top {
53+
flex-direction: column;
54+
align-items: flex-start;
55+
}
56+
57+
.social_links {
58+
margin-top: 0.5em;
59+
}
60+
61+
.nav-link {
62+
display: block;
63+
margin-right: 0;
64+
margin-bottom: 0.5em;
65+
}
66+
}
1867
</style>

assets/css/custom.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,27 +116,30 @@
116116
display: flex;
117117
justify-content: space-between;
118118
align-items: center;
119-
margin-bottom: 0.5em;
119+
margin-bottom: 1em;
120120
}
121121

122122
.site-nav {
123-
display: block;
123+
display: block !important;
124+
clear: both;
124125
border-top: 1px solid rgba(255, 167, 196, 0.3);
125-
padding-top: 0.5em;
126+
padding-top: 0.75em;
126127
margin-top: 0.5em;
128+
width: 100%;
127129
}
128130

129131
.nav-link {
130132
display: inline-block;
131-
margin-right: 1.5em;
132-
color: #ffa7c4;
133+
margin-right: 2em;
134+
color: #ffa7c4 !important;
133135
text-decoration: none;
134-
font-size: 0.9em;
136+
font-size: 1em;
137+
font-weight: 500;
135138
transition: color 0.3s ease;
136139
}
137140

138141
.nav-link:hover {
139-
color: #ffffff;
142+
color: #ffffff !important;
140143
text-decoration: underline;
141144
}
142145

@@ -153,6 +156,6 @@
153156
.nav-link {
154157
display: block;
155158
margin-right: 0;
156-
margin-bottom: 0.3em;
159+
margin-bottom: 0.5em;
157160
}
158161
}

0 commit comments

Comments
 (0)