From: Ailin Nemui Date: Tue, 15 Dec 2020 15:43:46 +0000 (+0100) Subject: respect user theme X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=1cb9dd999374a184470484315655e7b1b341382b;p=irssi-scripts.irssi.org.git respect user theme [skip ci] --- diff --git a/assets/css/style.css b/assets/css/style.css index 9c60c53..9ea5aea 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -34,3 +34,31 @@ input#automatic-instructions:checked ~ dl.manual-instructions, input#manual-instructions:checked ~ h4, input#automatic-instructions:checked ~ h4 { display: none; } +body { + transition: opacity 300ms linear, color 150ms, background-color 150ms, border-color 150ms; +} +@media (prefers-color-scheme: dark) { + body { + background-color: #2e3440; + color: #ffffff; + } + code, + pre { + background-color: #1d232e;/*#3b4252*/; + } + .table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th, + .form-control { + background-color: #3b4252; + color: #eceff4; + } + .btn-link, + a { + color: #8699bb; + } + .btn-link:hover, + a:hover, + a:focus { + color: #5e81ac; + } +} +