Skip to content

Commit 6900771

Browse files
committed
Fixed anchor styling and dark mode
1 parent 47e1f3e commit 6900771

File tree

2 files changed

+90
-46
lines changed

2 files changed

+90
-46
lines changed

index.html

Lines changed: 40 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
Superformula Subdivision
8080
</figcaption>
8181

82-
<figcaption class="tag">
8382

84-
<a class="tag" href="ArtDesign.html">
85-
Art / Design
86-
</a>
83+
84+
<a class="tag" href="ArtDesign.html">
85+
Art / Design
86+
</a>
8787
</figcaption>
8888

8989
</a>
@@ -103,10 +103,10 @@
103103
Balance NCL Motion Graphics
104104
</figcaption>
105105

106-
<figcaption class="tag">
107-
<a class="tag" href="ArtDesign.html">
108-
Art/Design
109-
</a>
106+
107+
<a class="tag" href="ArtDesign.html">
108+
Art/Design
109+
</a>
110110
</figcaption>
111111

112112
</a>
@@ -135,10 +135,10 @@
135135
John Glacier - Like A Ribbon Animation
136136
</figcaption>
137137

138-
<figcaption class="tag">
139-
<a class="tag" href="archive.html?tag=Ambient">
140-
Art / Design
141-
</a>
138+
139+
<a class="tag" href="archive.html?tag=Ambient">
140+
Art / Design
141+
</a>
142142
</figcaption>
143143

144144
</a>
@@ -160,10 +160,10 @@
160160
Interactive Ascii Animation
161161
</figcaption>
162162

163-
<figcaption class="tag">
164-
<a class="tag" href="archive.html?tag=Ambient">
165-
Art / Design
166-
</a>
163+
164+
<a class="tag" href="archive.html?tag=Ambient">
165+
Art / Design
166+
</a>
167167
</figcaption>
168168

169169
</a>
@@ -185,10 +185,10 @@
185185
SHOPAYADO Poster
186186
</figcaption>
187187

188-
<figcaption class="tag">
189-
<a class="tag" href="archive.html?tag=Ambient">
190-
Art / Design
191-
</a>
188+
189+
<a class="tag" href="archive.html?tag=Ambient">
190+
Art / Design
191+
</a>
192192
</figcaption>
193193

194194
</a>
@@ -216,11 +216,11 @@
216216
Lyon Illustration Animation
217217
</figcaption>
218218

219-
<figcaption class="tag">
220219

221-
<a class="tag" href="ArtDesign.html">
222-
Art / Design
223-
</a>
220+
221+
<a class="tag" href="ArtDesign.html">
222+
Art / Design
223+
</a>
224224
</figcaption>
225225

226226
</a>
@@ -237,11 +237,11 @@
237237
Jupiter Disco Animated Poster Concepts
238238
</figcaption>
239239

240-
<figcaption class="tag">
241240

242-
<a class="tag" href="ArtDesign.html">
243-
Art / Design
244-
</a>
241+
242+
<a class="tag" href="ArtDesign.html">
243+
Art / Design
244+
</a>
245245
</figcaption>
246246

247247
</a>
@@ -258,11 +258,11 @@
258258
Interactive Gradient Visualiser
259259
</figcaption>
260260

261-
<figcaption class="tag">
262261

263-
<a class="tag" href="ArtDesign.html">
264-
Art / Design
265-
</a>
262+
263+
<a class="tag" href="ArtDesign.html">
264+
Art / Design
265+
</a>
266266
</figcaption>
267267

268268
</a>
@@ -282,12 +282,7 @@
282282
Ian Pooley: Interstellar Strut Visualiser
283283
</figcaption>
284284

285-
<figcaption class="tag">
286285

287-
<a class="tag" href="ArtDesign.html">
288-
Art / Design
289-
</a>
290-
</figcaption>
291286

292287
</a>
293288

@@ -304,11 +299,11 @@
304299
40Mustaqel Motion Graphic
305300
</figcaption>
306301

307-
<figcaption class="tag">
308302

309-
<a class="tag" href="ArtDesign.html">
310-
Art / Design
311-
</a>
303+
304+
<a class="tag" href="ArtDesign.html">
305+
Art / Design
306+
</a>
312307
</figcaption>
313308

314309
</a>
@@ -328,11 +323,11 @@
328323
Baalti Concept Visualiser
329324
</figcaption>
330325

331-
<figcaption class="tag">
332326

333-
<a class="tag" href="ArtDesign.html">
334-
Art / Design
335-
</a>
327+
328+
<a class="tag" href="ArtDesign.html">
329+
Art / Design
330+
</a>
336331
</figcaption>
337332

338333
</a>

main.css

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,54 @@
5353
color: white;
5454
}
5555

56+
/* Dark Mode Styles */
57+
body.dark-mode {
58+
background-color: black;
59+
color: white;
60+
}
61+
62+
body.dark-mode #header {
63+
border-color: white;
64+
}
65+
66+
body.dark-mode .indexTitle,
67+
body.dark-mode .links,
68+
body.dark-mode .socials,
69+
body.dark-mode figcaption.projectName,
70+
body.dark-mode figcaption.tag {
71+
color: white;
72+
}
73+
74+
body.dark-mode .socials {
75+
border-top-color: white;
76+
}
77+
78+
body.dark-mode .socials svg {
79+
fill: white;
80+
color: white;
81+
}
82+
83+
body.dark-mode #darkModeToggle {
84+
border: 2px solid white;
85+
color: white;
86+
}
87+
88+
body.dark-mode #darkModeToggle:hover {
89+
background-color: white;
90+
color: black;
91+
}
92+
93+
body.dark-mode a {
94+
color: white !important;
95+
}
96+
97+
body.dark-mode a:hover,
98+
body.dark-mode a:active,
99+
body.dark-mode a:visited {
100+
color: white !important;
101+
text-decoration: underline solid white;
102+
}
103+
56104
/* Masonry Grid Layout */
57105
.img-grid-archive {
58106
column-count: 3;
@@ -73,6 +121,7 @@ img.projectImg {
73121
display: block;
74122
border-radius: 0.25em;
75123
object-fit: cover;
124+
padding-top: 1em;
76125
}
77126

78127
figcaption {
@@ -139,4 +188,4 @@ a:visited {
139188
.img-grid-archive {
140189
column-count: 1;
141190
}
142-
}
191+
}

0 commit comments

Comments
 (0)