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 --- .gitignore | 2 -- dev/data/legal-npm.css | 45 ++++++++++++++++++++++++++++++++-- ext/legal-npm.html | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 4 deletions(-) create mode 100644 ext/legal-npm.html diff --git a/.gitignore b/.gitignore index 459af2b7..74b94945 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,3 @@ dictionaries/ ext/manifest.json ext/lib/* - -ext/legal-npm.html 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; + } } diff --git a/ext/legal-npm.html b/ext/legal-npm.html new file mode 100644 index 00000000..cf6a2421 --- /dev/null +++ b/ext/legal-npm.html @@ -0,0 +1,65 @@ + + + +
nameinstalled versionlicense typelink
@zip.js/zip.js2.7.45BSD-3-Clausegit+https://github.com/gildas-lormeau/zip.js.git
dexie3.2.5Apache-2.0git+https://github.com/dfahlander/Dexie.js.git
dexie-export-import4.1.2Apache-2.0git+https://github.com/dexie/Dexie.js.git
hangul-js0.2.6MITgit://github.com/e-/Hangul.js.git
parse57.1.2MITgit://github.com/inikulin/parse5.git
wanakana5.3.1MITgit+ssh://git@github.com/WaniKani/WanaKana.git
yomitan-handlebars1.0.0MITn/a
+ + -- cgit v1.2.3