mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Dark stylesheet improvement
- Replace css filter with a border - Replacae "background" with "background-color" since "background" does a bunch of other things too.
This commit is contained in:
parent
4effcd52da
commit
b224d003bb
2 changed files with 5 additions and 6 deletions
|
@ -1,15 +1,13 @@
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
html {
|
html {
|
||||||
background: #000;
|
/*"background" is short for a bunch of unnecessary CSS rules; background-color is all I need*/
|
||||||
color: #fff;
|
background-color: #000;
|
||||||
|
color: #eee; /*I've been told that pure white on black is a bit harsh*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IndieWeb u-photo shouldn't look like floating punctuation marks */
|
/* IndieWeb u-photo shouldn't look like floating punctuation marks */
|
||||||
.u-photo {
|
.u-photo {
|
||||||
/* Versions of Samsung Internet released recently as 2017 need this
|
border: 1px solid #ddc;
|
||||||
* prefix, along with Qt4-based QtWebkit used in e.g. rekonq */
|
|
||||||
-webkit-filter: invert(1);
|
|
||||||
filter: invert(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -57,6 +57,7 @@ nav li {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* center images that aren't my indieweb icon */
|
||||||
img:not(.u-photo) {
|
img:not(.u-photo) {
|
||||||
display: block;
|
display: block;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
Loading…
Reference in a new issue