Skip to content

Commit 52e4282

Browse files
committed
refactor: migrate Tailwind CSS from CDN to local build with separate stairs/elevator controls
- Replaced CDN-based Tailwind with local build via PostCSS + Autoprefixer - Added tailwind.config.js, postcss.config.js, and src/css/tailwind.css for production compilation - Split floor entrance configuration into separate stairs/elevator count inputs (stairsCount/elevatorCount) - Removed legacy floorEntranceCount with backward compatibility fallback (50/50 random type distribution) - Added global loading overlay
1 parent df71b72 commit 52e4282

14 files changed

Lines changed: 2172 additions & 130 deletions

File tree

.yarn/install-state.gz

60.6 KB
Binary file not shown.

index.html

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>RoadNet Visualizer - 多层道路网络可视化</title>
7-
<script src="https://cdn.tailwindcss.com"></script>
8-
<script>
9-
tailwind.config = {
10-
darkMode: 'class',
11-
theme: {
12-
extend: {
13-
colors: {
14-
brand: 'var(--primary-color)',
15-
accent: 'var(--accent-color)',
16-
page: 'var(--bg-page)',
17-
card: 'var(--bg-card)',
18-
input: 'var(--bg-input)',
19-
'input-hover': 'var(--bg-input-hover)',
20-
border: {
21-
light: 'var(--border-light)',
22-
input: 'var(--border-input)',
23-
},
24-
textc: {
25-
primary: 'var(--text-primary)',
26-
secondary: 'var(--text-secondary)',
27-
muted: 'var(--text-muted)',
28-
white: 'var(--text-white)',
29-
},
30-
},
31-
},
32-
},
33-
};
34-
</script>
7+
<link rel="stylesheet" href="/src/css/tailwind.css" />
358
<link rel="stylesheet" href="/src/css/index.css" />
369
<style>
3710
.github-link {

0 commit comments

Comments
 (0)