Some updates to layout for heading
Some checks failed
Build and copy to prod / build-and-copy (push) Has been cancelled
Some checks failed
Build and copy to prod / build-and-copy (push) Has been cancelled
This commit is contained in:
parent
707283da51
commit
4f0e396df3
@ -41,9 +41,9 @@
|
||||
{% ogImage "./src/_includes/components/ogImage.njk", { title: pageTitle or title, subTitle: description } %}
|
||||
</head>
|
||||
<body>
|
||||
<header class="wrapper-lg row space-between">
|
||||
<header>
|
||||
<a href="/" class="site-title">LD</a>
|
||||
|
||||
<div class="nav-container wrapper-lg row space-between w-full">
|
||||
<nav>
|
||||
<ul class="row" role='list'>
|
||||
<li><a href="/">Home</a></li>
|
||||
@ -57,7 +57,7 @@
|
||||
<a href="/feed/" class="rss" aria-label="RSS feed">
|
||||
<i class="fa-solid fa-rss"></i>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<fieldset class="color-scheme">
|
||||
<legend>Change your colour scheme</legend>
|
||||
<label>
|
||||
|
@ -1,15 +1,13 @@
|
||||
header > * {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.color-scheme {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
gap: var(--space-size-xs);
|
||||
flex-grow: 1;
|
||||
justify-content: center;
|
||||
justify-self: flex-end;
|
||||
grid-column: auto/span 2;
|
||||
justify-content: end;
|
||||
width: 100%;
|
||||
--grid-item-size: 20rem;
|
||||
|
||||
legend {
|
||||
position:absolute;
|
||||
|
4
src/css/exceptions/nav-container.css
Normal file
4
src/css/exceptions/nav-container.css
Normal file
@ -0,0 +1,4 @@
|
||||
.nav-container {
|
||||
--grid-item-size: clamp(30rem, 70vw, var(--screen-lg));
|
||||
grid-column: auto / span 4;
|
||||
}
|
@ -3,6 +3,7 @@
|
||||
letter-spacing: clamp(-0.2rem,1vw,-0.5rem);
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
place-self: start;
|
||||
|
||||
&:hover, &:focus, &:focus-visible {
|
||||
outline: 0px transparent;
|
||||
|
@ -153,12 +153,13 @@ nav {
|
||||
}
|
||||
|
||||
header {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding-top: var(--space-size-s);
|
||||
padding-bottom: var(--space-size-s);
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(var(--grid-item-size, 10rem), 1fr));
|
||||
grid-gap: 10px;
|
||||
padding: var(--space-size-m);
|
||||
place-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
p {
|
||||
|
@ -1,3 +1,7 @@
|
||||
.space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.space-around {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user