aboutsummaryrefslogtreecommitdiff
path: root/dev/data
diff options
context:
space:
mode:
Diffstat (limited to 'dev/data')
-rw-r--r--dev/data/legal-npm.css45
1 files changed, 43 insertions, 2 deletions
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;
+ }
}