Skip to content

Commit

Permalink
example site - text selection - more readable colors
Browse files Browse the repository at this point in the history
  • Loading branch information
andis-sprinkis committed Dec 12, 2023
1 parent db8b187 commit fa76857
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/_inline_link_title_suffix_new_tab
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(this link opens in a new tab or window)
7 changes: 7 additions & 0 deletions site/documents/index/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
--underline-thickness: 0.04em;
--underline-offset: 0.175em;
--underline-thickness-hover: 0.1115em;
--bg-color-text-selection: #00000080;
--bg-color-tooltip: var(--text-color);
--text-color-tooltip: var(--bg-color);
--padding-tooltip: 0.175em 0.5em;
Expand Down Expand Up @@ -50,6 +51,7 @@
--text-color-link: #8c8cff;
--text-color-link-active: #ff6666;
--text-color-link-visited: #ffadff;
--bg-color-text-selection: #f3f3f680;
--color-focus-outline: #f3f3f680;
--url-icon-new-tab: url('./new_tab_dark.svg');
--url-icon-bullet: url('./bullet_dark.svg');
Expand All @@ -62,6 +64,11 @@
outline-offset: 0.2em;
}

::selection {
background-color: var(--bg-color-text-selection);
color: var(--bg-color);
}

* {
box-sizing: border-box;
}
Expand Down

0 comments on commit fa76857

Please sign in to comment.