aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-06-20 13:13:47 -0400
committerGitHub <noreply@github.com>2024-06-20 17:13:47 +0000
commit1a866b3997310a04fc146b91eb47a59a3f049589 (patch)
tree19d8840825799e3f9cd7f8a4dd556ddf07320679
parent8f33cb76cbe7c86ad6ee3cd6700c40f82dc7230d (diff)
Fix missing legal-npm.html (#1097)
* Remove legal-npm.html from gitignore and commit it * Fix theming for legal-npm
-rw-r--r--.gitignore2
-rw-r--r--dev/data/legal-npm.css45
-rw-r--r--ext/legal-npm.html65
3 files changed, 108 insertions, 4 deletions
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 @@
+<html>
+<body>
+<style>
+body {
+ font: 16px/1.5 monospace;
+}
+
+table {
+ border-collapse: collapse;
+}
+
+th,
+td {
+ padding: 3px;
+}
+
+/* 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;
+ }
+}
+
+</style>
+<table><thead><tr><th class="string">name</th><th class="string">installed version</th><th class="string">license type</th><th class="string">link</th></tr></thead><tbody><tr><td class="string">@zip.js/zip.js</td><td class="string">2.7.45</td><td class="string">BSD-3-Clause</td><td class="string">git+https://github.com/gildas-lormeau/zip.js.git</td></tr><tr><td class="string">dexie</td><td class="string">3.2.5</td><td class="string">Apache-2.0</td><td class="string">git+https://github.com/dfahlander/Dexie.js.git</td></tr><tr><td class="string">dexie-export-import</td><td class="string">4.1.2</td><td class="string">Apache-2.0</td><td class="string">git+https://github.com/dexie/Dexie.js.git</td></tr><tr><td class="string">hangul-js</td><td class="string">0.2.6</td><td class="string">MIT</td><td class="string">git://github.com/e-/Hangul.js.git</td></tr><tr><td class="string">parse5</td><td class="string">7.1.2</td><td class="string">MIT</td><td class="string">git://github.com/inikulin/parse5.git</td></tr><tr><td class="string">wanakana</td><td class="string">5.3.1</td><td class="string">MIT</td><td class="string">git+ssh://git@github.com/WaniKani/WanaKana.git</td></tr><tr><td class="string">yomitan-handlebars</td><td class="string">1.0.0</td><td class="string">MIT</td><td class="string">n/a</td></tr></tbody></table>
+</body>
+</html>