Skip to content

Commit dd3ae0e

Browse files
committed
add hover effect to logo, standartdise behavior with navbar
1 parent c67d12f commit dd3ae0e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

_assets/borg.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ header {
1616
margin: 0 auto;
1717
}
1818

19+
/* apply drop shadow to logo paths */
20+
#logo path {
21+
filter: drop-shadow(0 0 2px black)
22+
}
23+
1924
header h1 {
2025
margin: 0;
2126
text-align: center;
@@ -30,8 +35,8 @@ nav > ol {
3035
display: flex;
3136
flex-wrap: wrap;
3237
justify-content: center;
33-
gap: 1rem;
34-
padding: 0;
38+
gap: 0.5rem;
39+
padding: 0 0.75rem;
3540
}
3641

3742
nav > ol > li {
@@ -53,11 +58,13 @@ nav > ol > li > a {
5358
"Fira Mono",
5459
"Droid Sans Mono",
5560
monospace;
61+
padding: 0.25rem;
5662
}
5763

58-
nav > ol > li > a:hover {
59-
text-shadow: 0 0 5px black;
60-
background: radial-gradient(#22D045, transparent);
64+
nav > ol > li > a:hover,
65+
#logo svg:hover {
66+
text-shadow: 0 0 2px black;
67+
background: radial-gradient(closest-side, #22D045, transparent);
6168
}
6269

6370
main.content {

_assets/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

rst_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<header>
1212
<div id="logo">
1313
<h1><a href="/"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="240pt" height="100pt">
14-
<path id="p0" fill="#000200" d="M0 66.6667L0 0L160 0L320 0L320 66.6667L320 133.333L160 133.333L0 133.333Z"/>
14+
<path id="p0" fill="transparent" d="M0 66.6667L0 0L160 0L320 0L320 66.6667L320 133.333L160 133.333L0 133.333Z"/>
1515
<path id="p1" transform="translate(20.9086, 32.2192)" fill="#00dd00" d="M43.75 13.8021L26.6667 13.8021L26.6667 0L53.3854 0L67.2396 13.8021L67.2396 27.8646L60.3125 34.7917L67.2396 41.7187L67.2396 55.3125L53.3854 69.1146L26.6667 69.1146L26.6667 55.3125L43.75 55.3125L43.75 40.5729L26.6667 40.5729L26.6667 28.5417L43.75 28.5417ZM0 0L23.0208 0L23.0208 69.1146L0 69.1146Z"/>
1616
<path id="p2" transform="translate(97.6794, 46.0213)" fill="#00dd00" d="M62.1354 41.5104L48.3333 55.3125L32.9167 55.3125L32.9167 42.3958L38.6458 42.3958L38.6458 13.8021L32.9167 13.8021L32.9167 0L48.3333 0L62.1354 13.8021ZM23.2813 42.3958L29.2708 42.3958L29.2708 55.3125L13.8021 55.3125L0 41.5104L0 13.8021L13.8021 0L29.2708 0L29.2708 13.8021L23.2813 13.8021Z"/>
1717
<path id="p3" transform="translate(170.231, 46.0213)" fill="#00dd00" d="M36.5104 13.8021L26.7187 13.8021L26.7187 7.76042L34.4271 0L48.3854 0L59.5833 12.9167L59.5833 27.2396L36.5104 27.2396ZM0 55.3125L0 7.10543e-15L23.0208 7.10543e-15L23.0208 55.3125Z"/>

0 commit comments

Comments
 (0)