From 1a866b3997310a04fc146b91eb47a59a3f049589 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:13:47 -0400 Subject: Fix missing legal-npm.html (#1097) * Remove legal-npm.html from gitignore and commit it * Fix theming for legal-npm --- dev/data/legal-npm.css | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'dev') diff --git a/dev/data/legal-npm.css b/dev/data/legal-npm.css index d607460f..dde8d5d2 100644 --- a/dev/data/legal-npm.css +++ b/dev/data/legal-npm.css @@ -11,6 +11,47 @@ td { padding: 3px; } -th { - background-color: #ffffff; +/* Light mode */ +@media (prefers-color-scheme: light) { + body { + background-color: #f8f9fa; + color: #000000; + } + th { + background-color: #ffffff; + } +} + +/* Dark mode */ +@media (prefers-color-scheme: dark) { + body { + background-color: #0a0a0a; + color: #ffffff; + } + th { + background-color: #1e1e1e; + } + + /* Scrollbars */ + :root { + scrollbar-color: #444444 #2f2f2f; + } + :root::-webkit-scrollbar { + width: auto; + } + :root::-webkit-scrollbar-button { + height: 0; + } + :root::-webkit-scrollbar-thumb { + background-color: #444444; + } + :root::-webkit-scrollbar-track { + background-color: #444444; + } + :root::-webkit-scrollbar-track-piece { + background-color: #2f2f2f; + } + :root::-webkit-scrollbar-corner { + background-color: #2f2f2f; + } } -- cgit v1.2.3