feat: add color-coded movement ruler for tactical gameplay
This commit is contained in:
parent
9e4dcee3c3
commit
7faadf6583
8 changed files with 145 additions and 1 deletions
49
scss/components/shared/_ruler.scss
Normal file
49
scss/components/shared/_ruler.scss
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Alexander Minges
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/* Token Ruler Waypoint Styling with Color-Coded Movement Ranges */
|
||||
|
||||
:root {
|
||||
--ds4-movement-normal: inherit;
|
||||
--ds4-movement-dash: #ffcc00;
|
||||
--ds4-movement-impossible: #e83031;
|
||||
}
|
||||
|
||||
.system-ds4 .waypoint-label {
|
||||
.distance {
|
||||
&.move-range {
|
||||
color: var(--ds4-movement-normal);
|
||||
}
|
||||
|
||||
&.dash-range {
|
||||
color: var(--ds4-movement-dash);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&.out-of-range {
|
||||
color: var(--ds4-movement-impossible);
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.delta {
|
||||
opacity: 0.8;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.elevation {
|
||||
font-style: italic;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark mode support */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--ds4-movement-dash: #ffd700;
|
||||
--ds4-movement-impossible: #ff4444;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue