generated from nhcarrigan/template
feat: align styles with other sites (#46)
Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/46 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
3
src/components/ThemeProvider.astro
Normal file
3
src/components/ThemeProvider.astro
Normal file
@ -0,0 +1,3 @@
|
||||
<script is:inline>
|
||||
document.documentElement.dataset.theme = "light";
|
||||
</script>
|
0
src/components/ThemeSelect.astro
Normal file
0
src/components/ThemeSelect.astro
Normal file
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
@font-face {
|
||||
font-family: "OpenDyslexic Mono";
|
||||
src: url("./OpenDyslexicMono-Regular.otf") format("opentype");
|
||||
src: url("https://cdn.nhcarrigan.com/fonts/OpenDyslexicMono-Regular.otf") format("opentype");
|
||||
}
|
||||
|
||||
* {
|
||||
|
@ -1,12 +1,7 @@
|
||||
:root,
|
||||
:root[data-theme="light"] {
|
||||
:root {
|
||||
--primary-color: #04624f;
|
||||
--background-color: #abfcecdd;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
--background-color: #04624fdd;
|
||||
--primary-color: #abfcec;
|
||||
--sl-color-text-accent: #04624f;
|
||||
}
|
||||
|
||||
.main-frame::before {
|
||||
@ -43,23 +38,58 @@ h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
h6,
|
||||
a {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
a[aria-current="page"] {
|
||||
color: var(--background-color) !important;
|
||||
background-color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
header {
|
||||
color: var(--primary-color) !important;
|
||||
background-color: var(--background-color) !important;
|
||||
}
|
||||
|
||||
.large {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.right-sidebar-panel :where(a) {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
footer > div > a, footer > div > a:visited, footer > div > p {
|
||||
.right-sidebar-panel :where(a):hover {
|
||||
color: var(--background-color) !important;
|
||||
background-color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
footer > div > a,
|
||||
footer > div > a:visited,
|
||||
footer > div > p {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.right-sidebar-panel :where(a):hover {
|
||||
color: white !important;
|
||||
.social-icons::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.link-title {
|
||||
color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.pagination-links > a:hover {
|
||||
color: var(--background-color) !important;
|
||||
background-color: var(--primary-color) !important;
|
||||
}
|
||||
|
||||
.pagination-links > a:hover > span > .link-title {
|
||||
color: var(--background-color) !important;
|
||||
background-color: var(--primary-color) !important;
|
||||
}
|
Reference in New Issue
Block a user