From 7b72103b9cfe769f773a3859b6b312f5f6dc71fc Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 18 Nov 2023 19:56:33 +0200 Subject: [PATCH] style selection --- src/components/ui/Background.module.css | 1 + src/components/widgets/Search.module.css | 1 + src/root.css | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/src/components/ui/Background.module.css b/src/components/ui/Background.module.css index d240aac..ced4015 100644 --- a/src/components/ui/Background.module.css +++ b/src/components/ui/Background.module.css @@ -7,6 +7,7 @@ background-size: cover; z-index: -1; object-fit: cover; + user-select: none; } .Overlay { diff --git a/src/components/widgets/Search.module.css b/src/components/widgets/Search.module.css index a96537f..ecfce8a 100644 --- a/src/components/widgets/Search.module.css +++ b/src/components/widgets/Search.module.css @@ -32,6 +32,7 @@ .Search::placeholder { color: var(--color-text); color: rgba(255, 255, 255, 0.4); + user-select: none; } .Search:focus-within { diff --git a/src/root.css b/src/root.css index 9c4270d..5bff5b3 100644 --- a/src/root.css +++ b/src/root.css @@ -4,6 +4,12 @@ --color-bright: #eee; } +::selection { + color: white; + background-color: black; +} + + body { font-family: 'Helvetica Neue', sans-serif; }