Skip to content

Commit

Permalink
Fix missing legal-npm.html (#1097)
Browse files Browse the repository at this point in the history
* Remove legal-npm.html from gitignore and commit it

* Fix theming for legal-npm
  • Loading branch information
Kuuuube authored Jun 20, 2024
1 parent 8f33cb7 commit 1a866b3
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ dictionaries/
ext/manifest.json

ext/lib/*

ext/legal-npm.html
45 changes: 43 additions & 2 deletions dev/data/legal-npm.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
65 changes: 65 additions & 0 deletions ext/legal-npm.html
Original file line number Diff line number Diff line change
@@ -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://[email protected]/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>

0 comments on commit 1a866b3

Please sign in to comment.