Skip to content

Commit

Permalink
Fix header link sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Clark committed Nov 5, 2023
1 parent 51b5bc6 commit 61bef49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</div>
<div id="img-container" role="img" alt="Profile image of Dan" title="Photo Credit: Julie Clark :)"></div>
<nav>
<div><a href="/">Home</a></div>
<div class="current"><a href="/about.html">About</a></div>
<a href="/">Home</a>
<a href="/about.html" class="current">About</a>
</nav>
</header>
<div class="titlebar-divider"></div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</div>
<div id="img-container" role="img" alt="Profile image of Dan" title="Photo Credit: Julie Clark :)"></div>
<nav>
<div class="current"><a href="/">Home</a></div>
<div><a href="/about.html">About</a></div>
<a href="/" class="current">Home</a>
<a href="/about.html">About</a>
</nav>
</header>
<div class="titlebar-divider"></div>
Expand Down
17 changes: 7 additions & 10 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,20 @@ body {
border-radius: 0.5em;
}

.titlebar > .main-link-container {
.titlebar > .main-link-container a {
padding: 0.5em 1em 0.5em 1em;
border-radius: 0.5em;
}

.titlebar.content-box > .main-link-container:hover {
outline: 0.1em solid var(--main-text-color);
}

.titlebar.content-box a {
color: var(--main-text-color);
display: block;
}

.titlebar.content-box a:hover {
text-shadow: none;
text-decoration: none;
outline: 0.1em solid var(--main-text-color);
}

nav {
Expand All @@ -87,17 +85,17 @@ nav {
font-size: 1.4em;
}

nav div {
.titlebar nav a {
padding: 0.35em;
border-radius: 0.3em;
}

nav div.current {
.titlebar nav a.current {
outline: 0.1em solid var(--main-text-color);
}

nav div:not(.current):hover {
outline: 0.05em solid var(--main-text-color);
.titlebar nav a:not(.current):hover {
outline: 0.06em solid var(--main-text-color);
}

.content-box a {
Expand All @@ -118,7 +116,6 @@ nav div:not(.current):hover {
}

.content-box li {
/*list-style: none;*/
margin: 0.4em 0em 0.4em 0em;
}

Expand Down

0 comments on commit 61bef49

Please sign in to comment.