Skip to content

Commit

Permalink
fix(styles): adjust styles for a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
staghouse committed Sep 11, 2023
1 parent df593c1 commit ec9ef20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
main.home
section.home-masthead(:class="{loaded: pageLoaded}")
section.dark.home-masthead(:class="{loaded: pageLoaded}")
.content-wrapper
.home-masthead-logo
img(
Expand Down
11 changes: 4 additions & 7 deletions docs/.vitepress/theme/styles/vars.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:root {
// True colors, not to be changed later
--accent-color: #3484d4;
--accent-color: #2c6eb1;
--accent-1-color: #092d50;
--accent-2-color: #daecfe;
--accent-3-color: #3077bf;
--accent-3-color: #3484d4;
--yellow-color: #FFCB6B;
--yellow-1-color: goldenrod;
--yellow-2-color: #feffdb;
Expand Down Expand Up @@ -96,7 +96,7 @@
--vp-code-font-size: 12px;
}

html.dark{
.dark{
// Selects
--select-bg-color: var(--dark-color);
--select-border-color: var(--black-color);
Expand All @@ -112,6 +112,7 @@ html.dark{
--version-color: var(--gray-3-color);

// VitePress Overrides
--accent-color: var(--accent-3-color);
--vp-c-text-code: var(--yellow-color);
--vp-c-bg-elv: var(--dark-2-color);
--vp-c-bg-alt: var(--dark-2-color);
Expand All @@ -131,7 +132,3 @@ html.dark{
--vp-badge-danger-border: var(--red-color);
--vp-badge-danger-text: var(--red-color);
}

.light {
--accent-color: var(--accent-3-color);
}
5 changes: 3 additions & 2 deletions docs/public/images/assets/logo-mtgjson.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec9ef20

Please sign in to comment.