diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-20 02:04:44 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-20 02:04:44 -0700 |
commit | ea0bafa754757ddb9ca06ae1cd3c40bc4649b83a (patch) | |
tree | ed8cd732454cdca7a4501dcd8250cea8130a7b37 /web/static | |
parent | a4f1e60ece6dac22c4d913fc70124873803f30ab (diff) | |
download | dartboat-ea0bafa754757ddb9ca06ae1cd3c40bc4649b83a.tar.gz dartboat-ea0bafa754757ddb9ca06ae1cd3c40bc4649b83a.tar.xz |
web: use generic player slots in HTML/CSS
Diffstat (limited to 'web/static')
-rw-r--r-- | web/static/index.html | 24 | ||||
-rw-r--r-- | web/static/style.css | 22 |
2 files changed, 22 insertions, 24 deletions
diff --git a/web/static/index.html b/web/static/index.html index 196db91..85e3cd7 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -26,20 +26,20 @@ <div id="oi">oi!</div> <div id="info-slot-prev" class="icon"></div> <div id="info-slot-next" class="icon"></div> - <div id="p1-info"> - <div id="p1-info-inner"> - <div id="p1-name"></div> - <div id="p1-rem"></div> - <div id="p1-sugg"></div> - <div id="p1-avg"></div> + <div id="info-slot-1" class="info-slot"> + <div class="inner"> + <div class="name"></div> + <div class="rem"></div> + <div class="sugg"></div> + <div class="avg"></div> </div> </div> - <div id="p2-info"> - <div id="p2-info-inner"> - <div id="p2-name"></div> - <div id="p2-rem"></div> - <div id="p2-sugg"></div> - <div id="p2-avg"></div> + <div id="info-slot-2" class="info-slot"> + <div class="inner"> + <div class="name"></div> + <div class="rem"></div> + <div class="sugg"></div> + <div class="avg"></div> </div> </div> </div> diff --git a/web/static/style.css b/web/static/style.css index f8b6ea0..49daa96 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -523,7 +523,7 @@ body { background-color: #7b51ca; } -#info #p1-info, #info #p2-info { +#info .info-slot { background-color: #222; font-size: 1.5em; @@ -534,45 +534,43 @@ body { align-items: center; } -#info #p1-info.active, #info #p2-info.active { +#info .info-slot.active { background-color: #35481d; } -#info #p1-info-inner, #info #p2-info-inner { +#info .inner { display: contents; visibility: hidden; } -#info #p1-info-inner.visible, #info #p2-info-inner.visible { +#info .inner.visible { visibility: visible; } -#info #p1-rem, #info #p2-rem { +#info .rem { font-size: 3em; font-weight: bold; } -#info #p1-name, #info #p2-name { +#info .name { color: #ccc; } -#info #p1-sugg, #info #p2-sugg { +#info .sugg { color: #aaa; font-size: 0.8em; } -#info #p1-name:after, #info #p2-name:after, -#info #p1-rem:after, #info #p2-rem:after, -#info #p1-sugg:after, #info #p2-sugg:after { +#info .name:after, #info .rem:after, #info .sugg:after { content: '\200b'; } -#info #p1-avg, #info #p2-avg { +#info .avg { font-size: 0.8em; width: 100%; } -#info #p1-avg:before, #info #p2-avg:before { +#info .avg:before { content: 'avg: '; } |