1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-03 16:42:10 +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:
Rohan Kumar 2021-06-22 22:40:11 -07:00
parent 4effcd52da
commit b224d003bb
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 5 additions and 6 deletions

View file

@ -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 {

View file

@ -57,6 +57,7 @@ nav li {
}
}
/* center images that aren't my indieweb icon */
img:not(.u-photo) {
display: block;
height: auto;