snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit 9548bc9d100b34f9105831330d1811a78871235c
parent 68f11f99cf462893b1b730fd97fc693b4c568fd6
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Mon, 21 Dec 2020 06:23:12 +0100

Cleanup styles

Diffstat:
Mclient/styles.css | 31+++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)

diff --git a/client/styles.css b/client/styles.css @@ -5,10 +5,8 @@ --primary-color: #4285f4; --peer-width: 120px; color-scheme: light dark; - /* both supported */ } - /* Layout */ html { @@ -667,9 +665,12 @@ screen and (min-width: 1100px) { } } +/* + iOS specific styles +*/ @supports (-webkit-overflow-scrolling: touch) { - /* CSS specific to iOS devices */ + html { position: fixed; } @@ -684,12 +685,20 @@ screen and (min-width: 1100px) { */ /* Default colors */ -:root { +body { --text-color: #333; --bg-color: #fff; - --input-bg-color: #f1f3f4; + --bg-color-secondary: #f1f3f4; +} + +/* Dark theme colors */ +body.dark-theme { + --text-color: #eee; + --bg-color: #121212; + --bg-color-secondary: #333; } +/* Colored Elements */ body { color: var(--text-color); background-color: var(--bg-color); @@ -701,15 +710,9 @@ x-dialog x-paper { textarea { color: var(--text-color); - background-color: var(--input-bg-color); + background-color: var(--bg-color-secondary); } -/* Dark theme colors */ -body.dark-theme { - --text-color: #eee; - --bg-color: #121212; - --input-bg-color: #333; -} /* Styles for users who prefer dark mode at the OS level */ @media (prefers-color-scheme: dark) { @@ -718,13 +721,13 @@ body.dark-theme { body { --text-color: #eee; --bg-color: #121212; - --input-bg-color: #333; + --bg-color-secondary: #333; } /* Override dark mode with light mode styles if the user decides to swap */ body.light-theme { --text-color: #333; --bg-color: #fafafa; - --input-bg-color: #f1f3f4; + --bg-color-secondary: #f1f3f4; } } \ No newline at end of file