Skip to content

Commit

Permalink
refactor(#120): review: bg primary/secondary
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Aug 3, 2024
1 parent dbfab63 commit 5cd73d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions static/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* DARK MODE ---------------------------------------------------------------- */

:root {
--bg: black;
--bg-highlight: #161616;
--bg-primary: black;
--bg-secondary: #161616;
--bg-code: #333;
--bg-mark: rgba(255, 255, 175, 0.8);

Expand Down Expand Up @@ -49,8 +49,8 @@

@media (prefers-color-scheme: light) {
:root {
--bg: white;
--bg-highlight: #f6f8fa;
--bg-primary: white;
--bg-secondary: #f6f8fa;
--bg-code: #afb8c133;
--bg-mark: rgba(255, 255, 175, 1);

Expand Down
6 changes: 3 additions & 3 deletions static/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* CODE --------------------------------------------------------------------- */

pre {
background-color: var(--bg-highlight);
background-color: var(--bg-secondary);
padding: 1rem;
overflow: auto;
}
Expand Down Expand Up @@ -54,7 +54,7 @@ th, td {
}

tr:nth-child(even) {
background-color: var(--bg-highlight);
background-color: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
Expand Down Expand Up @@ -194,7 +194,7 @@ img, svg { max-width: 100%; }

/* keyboard */
kbd {
background-color: var(--bg-highlight);
background-color: var(--bg-secondary);
border: 1px solid var(--border-kbd);
box-shadow: inset 0 -1px 0 var(--border-kbd);
padding: 3px 5px;
Expand Down
2 changes: 1 addition & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

html {
background-color: var(--bg);
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.5;
Expand Down

0 comments on commit 5cd73d4

Please sign in to comment.