style: dotted background
This commit is contained in:
parent
cdc9d091e3
commit
d79e51f1ce
2 changed files with 22 additions and 1 deletions
|
|
@ -26,4 +26,7 @@
|
|||
--bg-dark: #343a40;
|
||||
--bg-darker: #212529;
|
||||
--bg-darkest: #000;
|
||||
|
||||
--dot-grid-light: 214 32% 82%;
|
||||
--dot-grid-dark: 215 25% 20%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const avatarSize = 150
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<main>
|
||||
<main class=".dot-grid">
|
||||
<section class="introduction-section">
|
||||
<p>
|
||||
I care about the <em>Web</em>, and I love to <em>create</em> stuff to <em
|
||||
|
|
@ -75,6 +75,24 @@ const avatarSize = 150
|
|||
</Layout>
|
||||
|
||||
<style define:vars={{ avatarSize }}>
|
||||
body {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
hsl(var(--dot-grid-light)) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
background-size: 24px 24px;
|
||||
background-position: -24px -24px;
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
background-image: radial-gradient(
|
||||
circle,
|
||||
hsl(var(--dot-grid-dark)) 1px,
|
||||
transparent 1px
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
|
|
|
|||
Loading…
Reference in a new issue