character: drop player card; RU headings; growable attunements; AC
- PlayerCard removed — it duplicated the sidebar editors; the character page now shows only prepared spells and attunements - headings are plain RU: Заготовленные заклинания / Атюнменты (no EN/RU double labels; h6 no longer lowercased) - Attunements is Vec<Option<String>> instead of a fixed 3-slot array; '+ слот' appends a slot, so custom campaigns can track more items (old saved JSON parses: arrays map to Vec) - PlayerData.ac (u8, serde default 0): manual armor-class input in the sidebar HP block (hp/оз, ac/КД), editable like the HP numbers
This commit is contained in:
1 parent
6d0846d160
commit
294bf430fd
10 files changed
+47
-97
No files matched your search
@@ -8,39 +8,8 @@
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.player-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
|
||||
img {
|
||||
width: 92px;
|
||||
height: 92px;
|
||||
object-fit: cover;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 0 0 2px crimson;
|
||||
}
|
||||
|
||||
.player-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.player-name {
|
||||
font-size: 1.5em;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.player-class, .player-level, .player-xp {
|
||||
font-weight: 300;
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.prepared-spells, .attunements {
|
||||
h6 {
|
||||
text-transform: lowercase;
|
||||
font-size: 1.1em;
|
||||
margin: 0 0 10px;
|
||||
font-weight: 900;
|
||||
@@ -100,9 +69,7 @@
|
||||
font-weight: 900;
|
||||
min-width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.prepared-spells {
|
||||
.add-slot {
|
||||
@include mixins.button;
|
||||
margin-top: 10px;
|
||||
|
||||
@@ -134,6 +134,14 @@ aside {
|
||||
.val {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.ac {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding-left: 10px;
|
||||
border-left: 1px solid rgba(white, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
.hit-dice {
|
||||
|
||||
Reference in new issue
Block a user