aboutsummaryrefslogtreecommitdiff
path: root/webAO/styles
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-02-15 13:28:31 +0100
committersD <stoned@derpymail.org>2020-02-15 13:28:31 +0100
commit7955d3edd473e64d431d5b4ee9985d93f2b82a0d (patch)
tree83d316c1d27b1dc951610574571529f407c72e6f /webAO/styles
parent4d77d0d53f16b06af9598430b59a9f75fc0c7443 (diff)
make charselect depend on the display width
Diffstat (limited to 'webAO/styles')
-rw-r--r--webAO/styles/client.css19
1 files changed, 7 insertions, 12 deletions
diff --git a/webAO/styles/client.css b/webAO/styles/client.css
index 9ecd8cb..ec16b1c 100644
--- a/webAO/styles/client.css
+++ b/webAO/styles/client.css
@@ -106,17 +106,18 @@
}
#client_charselect {
+ display: grid;
position: fixed;
- top: 0;
- left: 0;
- width: 98vw;
- height: 100%;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ width: 75vw;
overflow-y: auto;
justify-content: center;
align-items: center;
vertical-align: middle;
margin: 0 auto;
- background: rgba(70, 70, 70, 0.5);
+ background: #444;
z-index: 50;
}
@@ -124,14 +125,8 @@
background: #eee;
}
-#client_chartable_container {
- display: flex;
- flex-direction: column;
- align-items: center;
-}
-
.demothing {
- display: block;
+ display: inline-block;
height: 60px;
width: 60px;
max-width: 60px;