summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'src/battlemap/www/style.css')
-rw-r--r-- | src/battlemap/www/style.css | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css index 26141c4..46bab81 100644 --- a/src/battlemap/www/style.css +++ b/src/battlemap/www/style.css @@ -165,13 +165,15 @@ { display: flex; flex-flow: column; + margin-left: 0.2em; + margin-right: 0.2em; } .battlemap-character-card-top { display: grid; - grid-template-columns: [col] auto [col] auto; - grid-template-rows: [row] 1fr [row] 1fr [row] 1fr; + grid-template-columns: [col] auto [col] 1fr; + grid-template-rows: [row] 1em [row] 1fr [row] 1em [row] 1fr [row] 1em; align-items: center; justify-content: left; @@ -180,50 +182,56 @@ .battlemap-character-card .battlemap-character-portrait { grid-column: col 1; - grid-row: row 1 / span 3; + grid-row: row 1 / span 6; + margin: 0; } .battlemap-character-card-name { - grid-column: col 2; - grid-row: row 1; + text-align: center; + border-radius: 5px; + background-color: #6C5D53; + width: 100%; } -.battlemap-character-card-percent-bar +.battlemap-gauge { border-radius: 5px; - height: 24px; - width: 100px; border: 2px solid #6C5D53; text-align: center; } -.battlemap-character-card-percent-bar-text +.battlemap-gauge-text { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; line-height: 24px; position: relative; height: inherit; z-index: 1; - width: 100px; + width: inherit; } -.battlemap-character-card-percent-bar-bar +.battlemap-gauge-bar { position: relative; height: inherit; border-radius: 5px; z-index: 0; top: -100%; - max-width: 100px; } .battlemap-character-card-health { grid-column: col 2; grid-row: row 2; + width: 100%; + height: 100%; } -.battlemap-character-card-health-bar +.battlemap-character-card-health > .battlemap-gauge-bar { background-color: darkred; } @@ -231,12 +239,14 @@ .battlemap-character-card-movement { grid-column: col 2; - grid-row: row 2; + grid-row: row 4; + width: 100%; + height: 100%; } -.battlemap-character-card-movement-bar +.battlemap-character-card-movement > .battlemap-gauge-bar { - background-color: orange; + background-color: darkgrey; } .battlemap-character-card-weapon |