generated from inherentlee/11ty
more
This commit is contained in:
1 parent
c7ab2fbb10
commit
04f33d07c7
6 files changed
+57
-14
No files matched your search
@@ -1,7 +1,9 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav aria-label="main navigation">
|
<nav aria-label="main navigation">
|
||||||
|
<a id="skip" href="#main">skip to main content</a>
|
||||||
|
|
||||||
<a href="/" {% if page.url == "/" %}aria-current="page"{% endif %} title="go home">
|
<a href="/" {% if page.url == "/" %}aria-current="page"{% endif %} title="go home">
|
||||||
<img src="/img/RGLK+LOGO.webp" alt="the logo for Rachel Guinevere LordKenaga, a dappled multicolor circle with several oval lines surrounding and overlapping. Inside in yellow it reads rglk art.">
|
<img src="/img/logo.webp" alt="the logo for Rachel Guinevere LordKenaga, a dappled multicolor circle with several oval lines surrounding and overlapping. Inside in yellow it reads rglk art.">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button aria-label="menu" aria-expanded="false" class="menu-button-mobile">
|
<button aria-label="menu" aria-expanded="false" class="menu-button-mobile">
|
||||||
|
|||||||
+2
-2
@@ -1,10 +1,10 @@
|
|||||||
.tagline {
|
.tagline {
|
||||||
margin-block: 2rem;
|
margin-block: 2rem;
|
||||||
p {
|
p {
|
||||||
font-size: 1.2rem;
|
font-size: 1.3rem;
|
||||||
font-family: var(--font-headers);
|
font-family: var(--font-headers);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--color-nav-light);
|
color: var(--color-headers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ p {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
|
border-radius: .25em;
|
||||||
text-decoration-line: underline;
|
text-decoration-line: underline;
|
||||||
text-decoration-style: solid;
|
text-decoration-style: solid;
|
||||||
text-decoration-thickness: .2em;
|
text-decoration-thickness: .2em;
|
||||||
@@ -141,6 +142,11 @@ a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:focus-visible {
|
||||||
|
outline: .1em solid var(--color-title-bg);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
a:active {
|
a:active {
|
||||||
text-decoration-thickness: .4em;
|
text-decoration-thickness: .4em;
|
||||||
}
|
}
|
||||||
+46
-11
@@ -10,21 +10,52 @@ nav {
|
|||||||
a[aria-current="page"] {
|
a[aria-current="page"] {
|
||||||
text-decoration: underline solid .2em var(--color-title-bg);
|
text-decoration: underline solid .2em var(--color-title-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a[aria-current="page"]:focus-visible {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header nav {
|
header nav {
|
||||||
|
--font-size: 1.4rem;
|
||||||
|
--header-height: 12vh;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 1.4rem;
|
font-size: var(--font-size);
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
> a {
|
#skip {
|
||||||
height: 5.5rem;
|
position: absolute;
|
||||||
|
left: -999px;
|
||||||
|
top: auto;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: -99;
|
||||||
|
background: var(--color-nav-dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
#skip:focus-visible {
|
||||||
height: 100%;
|
display: inline-block;
|
||||||
|
left: 10%;
|
||||||
|
top: calc((var(--header-height) - var(--font-size)) / 2);
|
||||||
width: auto;
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
overflow: auto;
|
||||||
|
z-index: 99;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:has(img) {
|
||||||
|
height: calc(var(--header-height) - 1rem);
|
||||||
|
margin: .5rem;
|
||||||
|
border-radius: .5em;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 100%;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@@ -43,28 +74,32 @@ header nav {
|
|||||||
|
|
||||||
@media (max-width: 650px) {
|
@media (max-width: 650px) {
|
||||||
header nav {
|
header nav {
|
||||||
--height: 4.5rem;
|
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"home button"
|
"home button"
|
||||||
"links links";
|
"links links";
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
> a {
|
a:has(img) {
|
||||||
grid-area: home;
|
grid-area: home;
|
||||||
height: var(--height);
|
height: calc(var(--header-height) - 1rem);
|
||||||
|
margin: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
grid-area: button;
|
grid-area: button;
|
||||||
display: unset;
|
display: unset;
|
||||||
margin-inline: 1rem;
|
margin-inline: 1rem;
|
||||||
padding: 1rem;
|
padding: .5rem .75rem;
|
||||||
border: none;
|
border: none;
|
||||||
background: var(--color-nav-dark);
|
background: var(--color-nav-dark);
|
||||||
color: var(--color-nav-light);
|
color: var(--color-nav-light);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
border-radius: .5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus-visible {
|
||||||
|
outline: .1em solid var(--color-title-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul[aria-hidden="true"] {
|
ul[aria-hidden="true"] {
|
||||||
@@ -81,7 +116,7 @@ header nav {
|
|||||||
border-top: .5rem solid var(--color-title-bg);
|
border-top: .5rem solid var(--color-title-bg);
|
||||||
border-bottom: .5rem solid var(--color-title-bg);
|
border-bottom: .5rem solid var(--color-title-bg);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--height);
|
top: var(--header-height);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 553 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 535 KiB |
Reference in new issue
Block a user