unlock info size from store/stash divider

This commit is contained in:
Mashy 2019-11-25 21:46:54 +10:00
parent 4dbbb4f38d
commit f4a7ba65eb
3 changed files with 64 additions and 48 deletions

View File

@ -253,7 +253,7 @@
grid-template-areas: grid-template-areas:
"store-hdr store-hdr stash-hdr stash-hdr" "store-hdr store-hdr stash-hdr stash-hdr"
"store store stash stash" "store store stash stash"
"store store combiner combiner"; "store store info-combiner info-combiner";
> div { > div {
padding: 0.25em; padding: 0.25em;
@ -267,8 +267,12 @@
display: none; display: none;
} }
.combiner { .info-combiner {
margin: 0; .combiner {
margin: 0;
width: 100%;
height: 100%;
}
} }
.stash { .stash {

View File

@ -5,8 +5,8 @@
grid-template-rows: 3fr minmax(min-content, 2fr); grid-template-rows: 3fr minmax(min-content, 2fr);
grid-template-columns: 1fr 4fr 6fr min-content; grid-template-columns: 1fr 4fr 6fr min-content;
grid-template-areas: grid-template-areas:
"store-hdr store info combos" "store-hdr store info-combiner combos"
"stash-hdr stash combiner combos"; "stash-hdr stash info-combiner combos";
margin-bottom: 1em; margin-bottom: 1em;
// immediate children // immediate children
@ -169,48 +169,58 @@
} }
} }
.info { .info-combiner {
line-height: 1.6; grid-area: info-combiner;
display: grid;
grid-template-areas:
"info"
"combiner";
grid-template-rows: min-content 1fr;
h2 { .info {
text-transform: uppercase; grid-area: info;
} line-height: 1.6;
height: 100%;
svg { h2 {
display: inline; text-transform: uppercase;
height: 1em; }
}
figure {
display: inline;
height: 0.5em;
svg { svg {
margin-right: 0.5em; display: inline;
height: 1em;
}
figure {
display: inline;
height: 0.5em;
svg {
margin-right: 0.5em;
}
}
figcaption {
font-size: 1em;
display: inline-block;
vertical-align: middle;
}
margin-left: 1em;
}
.combiner {
grid-area: combiner;
margin: 1em 0.5em;
width: 50%;
line-height: 1.3;
font-size: 1.25em;
letter-spacing: 0.1em;
border: 0.1em solid @gray-exists;
&:hover {
border: 0.1em solid @gray-hover;
} }
} }
figcaption {
font-size: 1em;
display: inline-block;
vertical-align: middle;
}
margin-left: 1em;
grid-area: info;
}
.combiner {
grid-area: combiner;
// align-self: flex-end; // align-self: flex-end;
height: 100%;
margin: 0 0.5em;
line-height: 1.3;
font-size: 1.25em;
letter-spacing: 0.1em;
border: 0.1em solid @gray-exists;
&:hover {
border: 0.1em solid @gray-hover;
}
} }
.combos { .combos {

View File

@ -223,15 +223,17 @@ class Vbox extends preact.Component {
vboxHighlight = {vboxHighlight} vboxHighlight = {vboxHighlight}
vboxHover = {vboxHover} vboxHover = {vboxHover}
/> />
<Combiner <div class='info-combiner'>
vbox={vbox} <InfoContainer />
vboxCombiner={vboxCombiner} <Combiner
vboxSelected={vboxSelected} vbox={vbox}
vboxBuySelected={vboxBuySelected} vboxCombiner={vboxCombiner}
sendVboxCombine={sendVboxCombine} vboxSelected={vboxSelected}
/> vboxBuySelected={vboxBuySelected}
sendVboxCombine={sendVboxCombine}
/>
</div>
<Combos /> <Combos />
<InfoContainer />
</div> </div>
); );
} }