style(v3): add relative-units rule and convert sidebar CSS from px to rem

Add .claude/rules/18-relative-units.md enforcing rem/em for layout CSS
(px only for icons/borders). Convert GlobalTabBar.svelte and App.svelte
sidebar styles from px to rem. Change rail-btn color to --ctp-subtext0.
This commit is contained in:
Hibryda 2026-03-08 00:27:20 +01:00
parent 820467c029
commit 906e967aa0
3 changed files with 28 additions and 11 deletions

View file

@ -217,7 +217,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--ctp-surface0);
flex-shrink: 0;
}
@ -233,11 +233,11 @@
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
width: 1.375rem;
height: 1.375rem;
background: transparent;
border: none;
border-radius: 4px;
border-radius: 0.25rem;
color: var(--ctp-subtext0);
cursor: pointer;
}