Merge pull request #21 from ghall89/more-sass
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghall.space",
|
"name": "ghall.space",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
|
|||||||
@@ -57,6 +57,11 @@ const year = new Date().getFullYear();
|
|||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
transform: translateY(4px);
|
transform: translateY(4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.75;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,5 +49,10 @@ import Nav from './Nav.astro';
|
|||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.75;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -29,6 +29,11 @@ import { navLinks } from '../../data/nav-links';
|
|||||||
& a {
|
& a {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.75;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
<div class="toggles">
|
<div class="toggles">
|
||||||
<div>
|
<div>
|
||||||
<input id="sans-serif-toggle" type="checkbox" x-model="serifs" />
|
<input id="sans-serif-toggle" type="checkbox" x-model="monospaceFont" />
|
||||||
<label for="sans-serif-toggle">Serifs</label>
|
<label for="sans-serif-toggle">Monospace</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input id="dark-mode-toggle" type="checkbox" x-model="darkMode" />
|
<input id="dark-mode-toggle" type="checkbox" x-model="darkMode" />
|
||||||
|
|||||||
@@ -38,9 +38,9 @@ const title = Astro.props.title || Astro.props.frontmatter?.title || 'Unknown';
|
|||||||
x-data="{
|
x-data="{
|
||||||
drawerOpen: false,
|
drawerOpen: false,
|
||||||
darkMode: $persist(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 />
|
<Header />
|
||||||
<main transition:animate="initial">
|
<main transition:animate="initial">
|
||||||
|
|||||||
+21
-21
@@ -2,30 +2,30 @@
|
|||||||
@use 'fonts.scss';
|
@use 'fonts.scss';
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--blue: #1e66f5;
|
--blue: #{$blue};
|
||||||
--sky: #04a5e5;
|
--sky: #{$sky};
|
||||||
--red: #d20f39;
|
--red: #{$red};
|
||||||
--orange: #fe640b;
|
--orange: #{$orange};
|
||||||
--text: #40360e;
|
--text: #{$text};
|
||||||
--highlight: #ffeebd;
|
--highlight: #{$highlight};
|
||||||
--background: #fffdf5;
|
--background: #{$background};
|
||||||
--border: #{$border-style} #8f7a20;
|
--border: #{$border};
|
||||||
--font: 'Noto Sans', sans-serif;
|
--font: #{$serif-font};
|
||||||
--mono-font: 'Maple Mono', monospace;
|
--mono-font: #{$mono-font};
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-dark {
|
body.theme-dark {
|
||||||
--blue: #5da7fb;
|
--blue: #{$dark-blue};
|
||||||
--sky: #00b0f5;
|
--sky: #{$dark-sky};
|
||||||
--red: #f38ba8;
|
--red: #{$dark-red};
|
||||||
--orange: #fab387;
|
--orange: #{$dark-orange};
|
||||||
--text: #c4caed;
|
--text: #{$dark-text};
|
||||||
--background: #2a2c32;
|
--background: #{$dark-background};
|
||||||
--border: #{$border-style} #505160;
|
--border: #{$dark-border};
|
||||||
}
|
}
|
||||||
|
|
||||||
.serif-text {
|
body.monospace-text {
|
||||||
--font: 'Noto Serif', serif;
|
--font: #{$mono-font};
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -49,7 +49,7 @@ a {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.75;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,3 +9,26 @@ $quick-transition-duration: 0.1s;
|
|||||||
|
|
||||||
$transition: all $transition-duration ease-in-out;
|
$transition: all $transition-duration ease-in-out;
|
||||||
$quick-transition: all $quick-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;
|
||||||
|
|||||||
Reference in New Issue
Block a user