mnml/client/assets/styles/vbox.less
2019-11-22 16:37:11 +11:00

214 lines
4.1 KiB
Plaintext

.vbox {
align-content: space-between;
grid-area: vbox;
display: grid;
grid-template-rows: 3fr 2fr;
grid-template-columns: 1fr 4fr 1fr;
grid-template-areas:
"store-hdr store combiner"
"stash-hdr stash combiner";
margin-bottom: 1em;
line-height: 0;
// immediate children
> div {
padding: 0.5em;
}
.store {
grid-area: store;
border-right: 0.1em solid @gray;
border-top: 0.1em solid @gray;
}
.store-hdr {
grid-area: store-hdr;
display: flex;
flex-flow: column;
text-align: center;
border-left: 0.1em solid @gray;
border-top: 0.1em solid @gray;
h1 {
margin-bottom: 0;
}
button {
margin: 1em 0 0 0;
line-height: 1.6;
letter-spacing: 0.1em;
background-color: #421010;
&:hover {
background-color: @red;
}
}
}
.combiner {
grid-area: combiner;
display: flex;
flex-direction: column;
padding: 0;
.vbox-padding {
margin-right: 0em;
margin-bottom: 0em;
}
button {
letter-spacing: 0.1em;
background-color: #996100;
border-radius: 0;
border: 0;
&[disabled] {
border: 0.1em solid @gray;
border-left: 0;
};
transition-property: 0;
}
}
.stash {
grid-area: stash;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 0.5em 1em;
align-items: center;
border: 0.1em solid @gray;
border-left: 0;
}
.stash-hdr {
display: flex;
flex-flow: column;
justify-content: center;
grid-area: stash-hdr;
text-align: center;
border: 0.1em solid @gray;
border-right: 0;
h3 {
margin-bottom: 2.5em;
}
}
.refund {
padding: 0.5em 0.5em 0 0;
button {
line-height: 1.4;
letter-spacing: 0.1em;
background-color: #996100;
}
.vbox-padding {
padding-left: 0;
}
}
.vbox-hdr {
margin-bottom: 1em;
height: 2em;
}
.vbox-colours {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 0.5em 1em;
align-items: center;
margin-bottom: 0.5em;
}
.vbox-items {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 0.5em 1em;
align-items: center;
}
.vbox-btn {
width: 100%;
margin: 0;
background-color: @gray-box;
line-height: 1em;
border-width: 0;
:active, :hover, :focus {
color: white;
}
&[disabled] {
background: black;
border-width: 1px;
};
}
.reclaiming {
button:not([disabled]) {
&, &:hover, &:active {
background: @red;
color: black;
border: 2px solid black;
}
}
svg {
stroke-width: 0.75em;
}
.white {
stroke: black;
}
}
button {
height: 3.5em;
margin: 0;
width: 100%;
// text-transform: none;
&.empty {
border-style: dashed;
}
&.highlight {
color: black;
background: @white;
// border: 1px solid @white; (this bangs around the vbox)
// overwrite the classes on white svg elements
svg {
stroke-width: 0.75em;
}
.white {
stroke: black;
}
}
}
// figures don't scale well
figure {
svg {
height: 1.5em;
stroke-width: 0.5em;
}
figcaption {
line-height: initial;
}
}
}
@media (min-width: 2000px) {
.vbox {
button {
height: 4.5em;
}
}
}