Merge pull request #21 from ghall89/more-sass

This commit is contained in:
Graham Hall
2025-12-04 11:49:15 -05:00
committed by GitHub
10 changed files with 3895 additions and 1331 deletions
-1305
View File
File diff suppressed because it is too large Load Diff
Generated
+3831
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "ghall.space",
"type": "module",
"version": "2.0.0",
"version": "2.1.0",
"private": true,
"scripts": {
"dev": "astro dev",
+5
View File
@@ -57,6 +57,11 @@ const year = new Date().getFullYear();
color: var(--blue);
transform: translateY(4px);
}
&:hover {
opacity: 0.75;
text-decoration: none;
}
}
}
+5
View File
@@ -49,5 +49,10 @@ import Nav from './Nav.astro';
font-size: 1.6rem;
color: var(--text);
font-weight: bold;
&:hover {
opacity: 0.75;
text-decoration: none;
}
}
</style>
+5
View File
@@ -29,6 +29,11 @@ import { navLinks } from '../../data/nav-links';
& a {
color: var(--text);
padding: 5px 10px;
&:hover {
opacity: 0.75;
text-decoration: none;
}
}
}
+2 -2
View File
@@ -4,8 +4,8 @@
<div class="toggles">
<div>
<input id="sans-serif-toggle" type="checkbox" x-model="serifs" />
<label for="sans-serif-toggle">Serifs</label>
<input id="sans-serif-toggle" type="checkbox" x-model="monospaceFont" />
<label for="sans-serif-toggle">Monospace</label>
</div>
<div>
<input id="dark-mode-toggle" type="checkbox" x-model="darkMode" />
+2 -2
View File
@@ -38,9 +38,9 @@ const title = Astro.props.title || Astro.props.frontmatter?.title || 'Unknown';
x-data="{
drawerOpen: false,
darkMode: $persist(false),
serifs: $persist(true)
monospaceFont: $persist(false)
}"
:class="{ 'lock-scroll': drawerOpen, 'theme-dark': darkMode, 'serif-text': serifs}"
:class="{ 'lock-scroll': drawerOpen, 'theme-dark': darkMode, 'monospace-text': monospaceFont}"
>
<Header />
<main transition:animate="initial">
+21 -21
View File
@@ -2,30 +2,30 @@
@use 'fonts.scss';
:root {
--blue: #1e66f5;
--sky: #04a5e5;
--red: #d20f39;
--orange: #fe640b;
--text: #40360e;
--highlight: #ffeebd;
--background: #fffdf5;
--border: #{$border-style} #8f7a20;
--font: 'Noto Sans', sans-serif;
--mono-font: 'Maple Mono', monospace;
--blue: #{$blue};
--sky: #{$sky};
--red: #{$red};
--orange: #{$orange};
--text: #{$text};
--highlight: #{$highlight};
--background: #{$background};
--border: #{$border};
--font: #{$serif-font};
--mono-font: #{$mono-font};
}
.theme-dark {
--blue: #5da7fb;
--sky: #00b0f5;
--red: #f38ba8;
--orange: #fab387;
--text: #c4caed;
--background: #2a2c32;
--border: #{$border-style} #505160;
body.theme-dark {
--blue: #{$dark-blue};
--sky: #{$dark-sky};
--red: #{$dark-red};
--orange: #{$dark-orange};
--text: #{$dark-text};
--background: #{$dark-background};
--border: #{$dark-border};
}
.serif-text {
--font: 'Noto Serif', serif;
body.monospace-text {
--font: #{$mono-font};
}
body {
@@ -49,7 +49,7 @@ a {
text-decoration: none;
&:hover {
opacity: 0.75;
text-decoration: underline;
}
}
+23
View File
@@ -9,3 +9,26 @@ $quick-transition-duration: 0.1s;
$transition: all $transition-duration ease-in-out;
$quick-transition: all $quick-transition-duration ease-in-out;
/* colors */
$blue: #1e66f5;
$sky: #04a5e5;
$red: #d20f39;
$orange: #fe640b;
$text: #40360e;
$highlight: #ffeebd;
$background: #fffdf5;
$border: $border-style #8f7a20;
$dark-blue: #5da7fb;
$dark-sky: #00b0f5;
$dark-red: #f38ba8;
$dark-orange: #fab387;
$dark-text: #c4caed;
$dark-background: #2a2c32;
$dark-border: #{$border-style} #505160;
/* fonts */
$serif-font: 'Noto Serif', serif;
$mono-font: 'Maple Mono', monospace;