Skip to content

Commit

Permalink
Fix tooltip styles in dark theme
Browse files Browse the repository at this point in the history
Fix #10
  • Loading branch information
jhildenbiddle committed Mar 8, 2024
1 parent f0adec3 commit bf92e9e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/core/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ body:not([class*="seamless"]) :is(#typora-sidebar, content) {
color: unset;
}

#ty-tooltip {
border: 0;
background: var(--tooltip-background);
color: var(--tooltip-text-color);
}

/* Auto-suggest (ex: code fence language selection) */
#ty-auto-suggest {
border-radius: var(--border-radius);
Expand Down
7 changes: 4 additions & 3 deletions src/core/vars-theme-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
--color-status: var(--mono-300);

/* App */
--input-background : var(--mono-50);
--menu-background : var(--mono-100);
--menu-border-width: 1px;
--input-background : var(--mono-50);
--menu-background : var(--mono-100);
--menu-border-width : 1px;
--scrollbar-thumb-color: var(--mono-200);
--tooltip-background : var(--mono-200);

/* Elements */
--kbd-background : var(--mono-100);
Expand Down
2 changes: 2 additions & 0 deletions src/core/vars-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
--sidebar-hover-background : var(--color-hover);
--sidebar-hover-color : var(--color-hover-content);
--text-color : var(--mono-700);
--tooltip-background : var(--mono-50);
--tooltip-text-color : var(--mono-800);

/* Elements */
--blockquote-background : var(--mono-100);
Expand Down

0 comments on commit bf92e9e

Please sign in to comment.