mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 08:46:20 -04:00
Cleanup color themes
This commit is contained in:
parent
fde3d67549
commit
4bdead31ba
1 changed files with 51 additions and 66 deletions
|
@ -4,7 +4,8 @@
|
||||||
--icon-size: 24px;
|
--icon-size: 24px;
|
||||||
--primary-color: #4285f4;
|
--primary-color: #4285f4;
|
||||||
--peer-width: 120px;
|
--peer-width: 120px;
|
||||||
color-scheme: light dark; /* both supported */
|
color-scheme: light dark;
|
||||||
|
/* both supported */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -259,7 +260,8 @@ x-peer[transfer] x-icon {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status, .device-name {
|
.status,
|
||||||
|
.device-name {
|
||||||
height: 18px;
|
height: 18px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
@ -281,6 +283,7 @@ x-peer x-icon {
|
||||||
0% {
|
0% {
|
||||||
transform: scale(0.7);
|
transform: scale(0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
40% {
|
40% {
|
||||||
transform: scale(1.2);
|
transform: scale(1.2);
|
||||||
}
|
}
|
||||||
|
@ -665,6 +668,7 @@ screen and (min-width: 1100px) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports (-webkit-overflow-scrolling: touch) {
|
@supports (-webkit-overflow-scrolling: touch) {
|
||||||
|
|
||||||
/* CSS specific to iOS devices */
|
/* CSS specific to iOS devices */
|
||||||
html {
|
html {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -675,71 +679,52 @@ screen and (min-width: 1100px) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Color Themes
|
||||||
|
*/
|
||||||
|
|
||||||
/* Default colors */
|
/* Default colors */
|
||||||
body {
|
:root {
|
||||||
--text-color: #333;
|
--text-color: #333;
|
||||||
color: #333;
|
--bg-color: #fff;
|
||||||
|
--input-bg-color: #f1f3f4;
|
||||||
|
}
|
||||||
|
|
||||||
--bkg-color: #fafafa;
|
body {
|
||||||
background-color: #fafafa;
|
color: var(--text-color);
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
x-dialog x-paper {
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
color: var(--text-color);
|
||||||
|
background-color: var(--input-bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dark theme colors */
|
/* Dark theme colors */
|
||||||
body.dark-theme {
|
body.dark-theme {
|
||||||
--text-color: #eee;
|
--text-color: #eee;
|
||||||
color: #eee;
|
--bg-color: #121212;
|
||||||
--bkg-color: #121212;
|
--input-bg-color: #333;
|
||||||
background-color: #121212;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-theme x-dialog x-paper {
|
|
||||||
--bkg-color: #333;
|
|
||||||
background-color: #333;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-theme textarea {
|
|
||||||
--text-color: #eee;
|
|
||||||
color: #eee;
|
|
||||||
--bkg-color: #121212;
|
|
||||||
background-color: #121212;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles for users who prefer dark mode at the OS level */
|
/* Styles for users who prefer dark mode at the OS level */
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
|
|
||||||
/* defaults to dark theme */
|
/* defaults to dark theme */
|
||||||
body {
|
body {
|
||||||
--text-color: #eee;
|
--text-color: #eee;
|
||||||
color: #eee;
|
--bg-color: #121212;
|
||||||
--bkg-color: #121212;
|
--input-bg-color: #333;
|
||||||
background-color: #121212;
|
|
||||||
}
|
|
||||||
x-dialog x-paper {
|
|
||||||
--bkg-color: #333;
|
|
||||||
background-color: #333;
|
|
||||||
}
|
|
||||||
textarea {
|
|
||||||
--text-color: #eee;
|
|
||||||
color: #eee;
|
|
||||||
--bkg-color: #121212;
|
|
||||||
background-color: #121212;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Override dark mode with light mode styles if the user decides to swap */
|
/* Override dark mode with light mode styles if the user decides to swap */
|
||||||
body.light-theme {
|
body.light-theme {
|
||||||
--text-color: #333;
|
--text-color: #333;
|
||||||
color: #333;
|
--bg-color: #fafafa;
|
||||||
--bkg-color: #fafafa;
|
--input-bg-color: #f1f3f4;
|
||||||
background-color: #fafafa;
|
|
||||||
}
|
|
||||||
body.light-theme x-dialog x-paper {
|
|
||||||
--bkg-color: #fff;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
body.light-theme textarea {
|
|
||||||
--text-color: #333;
|
|
||||||
color: #333;
|
|
||||||
--bkg-color: #f1f3f4;
|
|
||||||
background: #f1f3f4;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue