Web Dev Solutions

Catalin Mititiuc

From 0783d703c1365f3307cb9e780b81f5ef19387bac Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Tue, 6 Aug 2024 19:51:22 -0700 Subject: WIP: very rough armor --- public/assets/css/soldier_record_block.css | 37 ++++++++++++++++++++++++++++++ public/assets/css/style.css | 3 +++ 2 files changed, 40 insertions(+) (limited to 'public/assets/css') diff --git a/public/assets/css/soldier_record_block.css b/public/assets/css/soldier_record_block.css index 5fb8c7c..096a1b2 100644 --- a/public/assets/css/soldier_record_block.css +++ b/public/assets/css/soldier_record_block.css @@ -5,6 +5,9 @@ span { } .physical-status-track { + display: flex; + justify-content: space-between; + align-items: end; text-align: center; } @@ -57,3 +60,37 @@ p { .grenades input:checked + svg circle { fill: gray; } + +[slot="block-number"]:not(:last-of-type) { + display: inline-block; + width: 1.3em; +} + +damage-block.armor span[slot="block-number"] { + border: 1px solid black; + padding: 2px; + border-radius: 50%; + position: relative; +} + +.physical-status-track damage-block:nth-child(1 of .armor) span[slot="block-number"]:hover { + border: 1px solid orangered; + cursor: pointer; +} + +.physical-status-track damage-block:nth-child(1 of .armor) span[slot="block-number"]:hover::before { + content: '๐Ÿก„'; /*<โ‡ฝโญ โฎˆ๐Ÿ ˆ ๐Ÿ œ ๐Ÿก„*/ + position: absolute; + margin-left: -1.5em; +} + +.physical-status-track damage-block:nth-last-child(1 of .armor) span[slot="block-number"]:hover { + border: 1px solid orangered; + cursor: pointer; +} + +.physical-status-track damage-block:nth-last-child(1 of .armor) span[slot="block-number"]:hover::after { + content: '๐Ÿก†'; /* ๐Ÿ Š ๐Ÿก† */ + position: absolute; + margin-left: 1em; +} diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 235fa73..3f6cd88 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -134,6 +134,9 @@ button.set-firing-arc img { white-space: nowrap; background-color: white; transition: transform 0.25s; + user-select: none; + -webkit-user-select: none; + cursor: default; } .soldier-record span[slot] { -- cgit v1.2.3