From a5815b46faec029a4f74f61352c7f31cf2a6b1e5 Mon Sep 17 00:00:00 2001 From: Doge Date: Sat, 15 May 2021 18:07:34 +0800 Subject: Set darkmode img high-contrast with low brightness --- source/css/style.css | 3 +++ source/css/style.min.css | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/css/style.css b/source/css/style.css index f06cca9..c088265 100644 --- a/source/css/style.css +++ b/source/css/style.css @@ -11,6 +11,9 @@ pre { box-shadow: none!important; background-color: #121212!important } + img:not([src*=".svg"]) { + filter: brightness(.7) contrast(1.2); + } } @media screen and (max-width:1023px) { diff --git a/source/css/style.min.css b/source/css/style.min.css index 116aefa..95e1388 100644 --- a/source/css/style.min.css +++ b/source/css/style.min.css @@ -1 +1 @@ -pre{background-color:none!important;padding:0!important}@media(prefers-color-scheme:dark){*{transition:backgourd-color .5s}.card{box-shadow:none!important;background-color:#121212!important}}@media screen and (max-width:1023px){.navbar-menu{box-shadow:0 8px 16px -8px rgb(10 10 10 / 10%)!important}.post-content{padding-top:0!important}.post-card{margin:0!important}}.post-podcast-player{padding-bottom:1.5rem}.post-card{margin:0 1rem 0 1rem}.navbar-brand .navbar-item:hover{background-color:inherit!important}.entry{margin-bottom:1.5rem!important;margin-top:1.5rem!important;transition:box-shadow .1s}.entry:hover{box-shadow:0 1em 2em -.125em rgb(10 10 10 / 10%),0 0 0 1px rgb(10 10 10 / 2%)}.pagination-bar{padding-left:.25rem;padding-right:.25rem}.footer{padding:1rem 1rem 1rem!important;background-color:transparent!important} \ No newline at end of file +pre{background-color:none!important;padding:0!important}@media(prefers-color-scheme:dark){*{transition:backgourd-color .5s}.card{box-shadow:none!important;background-color:#121212!important}img:not([src*=".svg"]){filter:brightness(.7) contrast(1.2)}}@media screen and (max-width:1023px){.navbar-menu{box-shadow:0 8px 16px -8px rgb(10 10 10 / 10%)!important}.post-content{padding-top:0!important}.post-card{margin:0!important}}.post-podcast-player{padding-bottom:1.5rem}.post-card{margin:0 1rem 0 1rem}.navbar-brand .navbar-item:hover{background-color:inherit!important}.entry{margin-bottom:1.5rem!important;margin-top:1.5rem!important;transition:box-shadow .1s}.entry:hover{box-shadow:0 1em 2em -.125em rgb(10 10 10 / 10%),0 0 0 1px rgb(10 10 10 / 2%)}.pagination-bar{padding-left:.25rem;padding-right:.25rem}.footer{padding:1rem 1rem 1rem!important;background-color:transparent!important} \ No newline at end of file -- cgit v1.2.3