Skip to content

Commit 8401529

Browse files
authored
style: Make links more readable (#47)
* style: Make links more readable * Add a dashed link to make clear it's a link * Fix existing malformed CSS * Distinguish visited vs unvisited links and hover state
1 parent d203607 commit 8401529

File tree

1 file changed

+18
-5
lines changed
  • website/themes/diflabs/assets/css

1 file changed

+18
-5
lines changed

website/themes/diflabs/assets/css/main.css

+18-5
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ nav {
4242
}
4343

4444
nav a {
45-
color: #66FF66;
45+
color: #66FF66; /* Change link color to light green */
4646
text-decoration: none;
47-
fill: #66FF66;
4847
font-size: 1.2em;
4948
}
5049

5150
nav a:hover {
52-
color: #FFCC00;
51+
color: #FFCC00; /* Change hover color to yellow */
5352
}
5453

5554
.animation-banner {
@@ -165,7 +164,7 @@ footer {
165164

166165
.filter-buttons {
167166
display: flex;
168-
ga p: 20px;
167+
gap: 20px;
169168
margin-bottom: 20px;
170169
}
171170

@@ -207,10 +206,24 @@ footer {
207206
margin-right: 5px;
208207
}
209208

209+
a {
210+
color: #66FF66; /* Change link color to light green */
211+
text-decoration: none;
212+
border-bottom: 2px dashed #66FF66; /* Add dashed underline */
213+
}
210214

215+
a:visited {
216+
color: #ADD8E6; /* Change visited link color to yellow */
217+
border-bottom: 2px dashed #ADD8E6; /* Change underline color for visited links */
218+
}
219+
220+
a:hover {
221+
color: #FFCC00; /* Change hover color to yellow */
222+
border-bottom: 2px dashed #FFCC00; /* Change underline color on hover */
223+
}
211224

212225
nav a:hover {
213-
color: #00ff00;
226+
color: #FFCC00;
214227
}
215228

216229
button.hamburger {

0 commit comments

Comments
 (0)