From fcc1f92cd3b857c657b880cd40e5b58cf7c91e77 Mon Sep 17 00:00:00 2001 From: SindreKjelsrud Date: Tue, 16 Jul 2024 22:52:43 +0200 Subject: [PATCH] :clipboard: text highlighting follow colortheme Signed-off-by: SindreKjelsrud --- src/pages/todo.md | 3 +-- src/styles/global.css | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/todo.md b/src/pages/todo.md index b179eb3..f0649dc 100644 --- a/src/pages/todo.md +++ b/src/pages/todo.md @@ -10,5 +10,4 @@ List of changes and new features I plan for this website. - Add page filled with wine/gin I like - Add page dedicated to work I'm proud of -- Add an 88x31 button (One Piece themed) -- Change default text-highlight color to follow themes +- Add an 88x31 button (One Piece themed) \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index 6536cb8..e54aed7 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -236,6 +236,16 @@ blockquote { border-left: 5px solid var(--light-1); } +::selection{ + background-color: var(--dark-1); + color: var(--dark-bg); +} + +.dark ::selection{ + background-color: var(--light-1); + color: var(--light-bg); +} + /* PRINT */ @media print { body { @@ -266,4 +276,4 @@ blockquote { #jr { display: none; } -} \ No newline at end of file +}