From 2b1843ddb7b3265c7684768b052e3f09c06b2451 Mon Sep 17 00:00:00 2001 From: ntr Date: Sun, 24 Nov 2019 19:02:22 +1100 Subject: [PATCH] styles --- client/assets/styles/styles.mobile.less | 44 +++++++++++++----------- client/src/components/vbox.component.jsx | 6 ++-- server/src/construct.rs | 10 +++--- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/client/assets/styles/styles.mobile.less b/client/assets/styles/styles.mobile.less index 12501705..9695eda9 100644 --- a/client/assets/styles/styles.mobile.less +++ b/client/assets/styles/styles.mobile.less @@ -38,6 +38,10 @@ "store store stash stash" "store store combiner combiner"; + > div { + padding: 0.25em; + } + .stash { border: 0; border-top: 0.1em solid @gray; @@ -68,15 +72,18 @@ .store-hdr { display: grid; - grid-template-rows: min-content; - grid-template-columns: 1fr 1fr; + grid-template-columns: min-content min-content 1fr; + + > * { + margin-right: 1em; + } grid-template-areas: - "hdr btn" - "bits btn"; + "hdr bits btn"; - h3 { + h1 { grid-area: hdr; + margin-bottom: 0.25em; } .bits { @@ -94,10 +101,6 @@ } } } - - .avatar { - opacity: 0.1; - } } .game { @@ -196,21 +199,22 @@ .instance-construct { position: relative; + grid-template-columns: 1fr 1fr; + grid-template-rows: 1fr min-content min-content min-content; + grid-template-areas: + "avatar name" + "skills skills" + "specs specs" + "stats stats "; + .skills, .specs { font-size: 75%; } - .avatar { - grid-area: initial; - position: absolute; - top: 0; - height: 100%; - width: 100%; - z-index: -1; - } - - button:not([disabled]) { - background: black; + .stats { + svg { + height: 1em; + } } } diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index b4c2f42b..b0f7e4a3 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -173,9 +173,9 @@ class Vbox extends preact.Component { onTouchStart={e => e.target.scrollIntoView(true)} onMouseOver={e => vboxHover(e, 'store')}> STORE -
vboxHover(e, 'bits')}> -

{vbox.bits}b

-
+

vboxHover(e, 'bits')}> + {vbox.bits}b +