Skip to content

Commit 4e97c87

Browse files
committed
update css
1 parent 463192d commit 4e97c87

File tree

13 files changed

+649
-616
lines changed

13 files changed

+649
-616
lines changed

app/(taxonomy)/ttsflow/ttsflow.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function TTSFlowChart({ nodes, links }) {
7272
d.fx = null
7373
d.fy = null
7474
}
75-
}, [])
75+
}, [links, nodes])
7676

7777
return <svg ref={svgRef} width="100%" height="500" viewBox="0 0 800 400" style={{ background: "#1e1e1e" }} />
7878
}

app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@import "../styles/i81n/mono.css";
55
@import "../styles/math/mathfonts.css";
66
@import "../styles/math/mathstyles.css";
7-
@import "./colors.css";
7+
@import "../styles/colors.css";
88

99
@import "../styles/cards.css";
1010
@import "../styles/subheading-anchor.css";

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"build": "NODE_OPTIONS=\"--max-old-space-size=8192\" next build",
88
"build:ci": "./scripts/ci-build.sh build",
99
"postbuild": "next-sitemap",
10+
"build:css": "postcss src/tailwind.css -o build/styles.css",
11+
"build:assets": "node rename-html-classes.js",
1012
"lint": "next lint"
1113
},
1214
"dependencies": {

postcss-tailwind-class-rename.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import postcss from 'postcss';
2+
3+
export default postcss.plugin(
4+
'postcss-tailwind-class-rename',
5+
(opts = {}) => {
6+
const map = opts.map || {};
7+
return (root) => {
8+
root.walkRules((rule) => {
9+
rule.selectors = rule.selectors.map((selector) => {
10+
Object.keys(map).forEach((orig) => {
11+
const regex = new RegExp(`\\.${orig}(?=\\s|\\.|:|$)`, 'g');
12+
selector = selector.replace(regex, `.${map[orig]}`);
13+
});
14+
return selector;
15+
});
16+
});
17+
};
18+
}
19+
);

postcss.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// import mapping from '../scripts/mapping.json' assert { type: 'json' };
2+
// "./postcss-tailwind-class-rename": {mapping},
3+
14
/** @type {import('postcss-load-config').Config} */
25
const config = {
36
plugins: {

public/sitemap-0.xml

Lines changed: 57 additions & 57 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)