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) {
|
||||
html {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
/*"background" is short for a bunch of unnecessary CSS rules; background-color is all I need*/
|
||||
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 */
|
||||
.u-photo {
|
||||
/* Versions of Samsung Internet released recently as 2017 need this
|
||||
* prefix, along with Qt4-based QtWebkit used in e.g. rekonq */
|
||||
-webkit-filter: invert(1);
|
||||
filter: invert(1);
|
||||
border: 1px solid #ddc;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
|
@ -57,6 +57,7 @@ nav li {
|
|||
}
|
||||
}
|
||||
|
||||
/* center images that aren't my indieweb icon */
|
||||
img:not(.u-photo) {
|
||||
display: block;
|
||||
height: auto;
|
||||
|
|
Loading…
Reference in a new issue