diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 4cde426..bac6295 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,5 +1,5 @@ import esbuild from "esbuild"; -import builtins from "builtin-modules"; +import { builtinModules } from "node:module"; const production = process.argv[2] === "production"; @@ -20,7 +20,7 @@ await esbuild.build({ "@lezer/common", "@lezer/highlight", "@lezer/lr", - ...builtins + ...builtinModules ], format: "cjs", target: "es2018", diff --git a/package-lock.json b/package-lock.json index 8ba8ce5..dceb5d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "MIT", "devDependencies": { "@typescript-eslint/parser": "^8.32.1", - "builtin-modules": "^5.0.0", "esbuild": "^0.25.4", "eslint": "^9.27.0", "eslint-plugin-obsidianmd": "^0.3.0", @@ -1413,19 +1412,6 @@ "node": "18 || 20 || >=22" } }, - "node_modules/builtin-modules": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.2.0.tgz", - "integrity": "sha512-02yxLeyxF4dNl6SlY6/5HfRSrSdZ/sCPoxy2kZNP5dZZX8LSAD9aE2gtJIUgWrsQTiMPl3mxESyrobSwvRGisQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/call-bind": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", diff --git a/package.json b/package.json index 4bacca6..01e025c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "license": "MIT", "devDependencies": { "@typescript-eslint/parser": "^8.32.1", - "builtin-modules": "^5.0.0", "esbuild": "^0.25.4", "eslint": "^9.27.0", "eslint-plugin-obsidianmd": "^0.3.0", diff --git a/styles.css b/styles.css index 22388bd..17aea08 100644 --- a/styles.css +++ b/styles.css @@ -166,12 +166,12 @@ flex: 0 0 auto; } -.csv-codeblock--zebra .csv-codeblock__table tbody tr:nth-child(odd) > td { - background-color: var(--background-primary-alt, var(--background-primary)) !important; +.csv-codeblock.csv-codeblock--zebra .csv-codeblock__table > tbody > tr:nth-child(odd) > td { + background-color: var(--background-primary-alt, var(--background-primary)); } -.csv-codeblock--zebra .csv-codeblock__table tbody tr:nth-child(even) > td { - background-color: var(--background-secondary-alt, var(--background-secondary)) !important; +.csv-codeblock.csv-codeblock--zebra .csv-codeblock__table > tbody > tr:nth-child(even) > td { + background-color: var(--background-secondary-alt, var(--background-secondary)); } .csv-codeblock__header-filter-row th {