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 @@ + +
+ +name | installed version | license type | link |
---|---|---|---|
@zip.js/zip.js | 2.7.45 | BSD-3-Clause | git+https://github.com/gildas-lormeau/zip.js.git |
dexie | 3.2.5 | Apache-2.0 | git+https://github.com/dfahlander/Dexie.js.git |
dexie-export-import | 4.1.2 | Apache-2.0 | git+https://github.com/dexie/Dexie.js.git |
hangul-js | 0.2.6 | MIT | git://github.com/e-/Hangul.js.git |
parse5 | 7.1.2 | MIT | git://github.com/inikulin/parse5.git |
wanakana | 5.3.1 | MIT | git+ssh://git@github.com/WaniKani/WanaKana.git |
yomitan-handlebars | 1.0.0 | MIT | n/a |