Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/donate-card/DonateCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
line-height: 1.6;
}

.button {
a.button {
display: inline-flex;
align-items: center;
gap: 8px;
Expand All @@ -82,6 +82,10 @@
&:active {
transform: translateY(0);
}

@media (prefers-color-scheme: light) {
color: var(--gray-1);
}
}

.buttonIcon {
Expand Down
3 changes: 3 additions & 0 deletions src/components/nav-tree/NavTree.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ ul.nodesList {
&.active {
background: var(--brand-color);
color: var(--gray-9);
@media (prefers-color-scheme: light) {
color: var(--gray-1);
}
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions src/components/navbar/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
display: none;
}

@media (prefers-color-scheme: light) {
background: var(--gray-5);
}

& .gridContainer {
height: 100%;
display: flex;
Expand All @@ -30,6 +34,10 @@
& a {
color: var(--gray-5);
text-decoration: none;

@media (prefers-color-scheme: light) {
color: var(--gray-1);
}
&.active {
text-decoration: underline;
}
Expand All @@ -41,6 +49,13 @@

& .cta {
margin-left: 30px;

@media (prefers-color-scheme: light) {
background-color: var(--gray-1);
&:hover {
background-color: var(--button-color);
}
}
}
}
}
Expand Down
20 changes: 19 additions & 1 deletion src/components/sponsor-card/SponsorCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
background: hsl(var(--brand-color-hsl) / 0.03);
}
}

@media (prefers-color-scheme: light) {
background: var(--gray-3);

&:hover {
@media (hover: hover) {
background: hsl(var(--brand-color-hsl) / 0.4);
}
}
}
}

.logoContainer {
Expand All @@ -36,15 +46,23 @@
gap: 8px;
}

.description {
p.description {
margin: 0;
color: var(--gray-6);
font-size: 14px;
line-height: 1.6;

@media (prefers-color-scheme: light) {
color: var(--gray-1);
}
}

.since {
font-size: 12px;
color: var(--gray-5);
font-weight: 500;

@media (prefers-color-scheme: light) {
color: var(--gray-2);
}
}
4 changes: 4 additions & 0 deletions src/lib/docs/docs-mdx.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
background: var(--gray-1);
border: 1px solid var(--gray-5);
display: block;

@media (prefers-color-scheme: light) {
background: var(--gray-3);
}
}
& :global(.mermaid-diagram *[fill]) {
fill: var(--brand-color) !important;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pre code {
text-decoration: underline;
}

@media print {
@media print, (prefers-color-scheme: light) {
/* Invert the lightness in print mode */
html,
body {
Expand Down