.vbox { align-content: space-between; grid-area: vbox; display: grid; grid-template-rows: min-content 3.5em min-content 1em min-content 3.5em min-content; grid-template-columns: 7em 1em 25em; grid-template-areas: "shop-hdr . shop" ". . shop" "combiner . shop" "combiner . ." "combiner . stash" ". . stash" "stash-hdr . stash"; margin-bottom: 1em; line-height: 0; .shop { grid-area: shop; } .shop-hdr { grid-area: shop-hdr; display: flex; flex-direction: column; } .combiner { grid-area: combiner; display: flex; flex-direction: column; } .stash { grid-area: stash; display: flex; flex-direction: column; } .stash-hdr { grid-area: stash-hdr; } .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; margin-bottom: 0.5em; } .vbox-btn { width: 100%; margin: 0; background-color: @gray-box; height: 3em; line-height: 1em; border-width: 0; :active, :hover, :focus { color: white; } &.reclaim { height: auto; &:hover { color: @red; }; } &[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: 4em; 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: 2em; stroke-width: 0.5em; } figcaption { line-height: initial; } } } .vbox-combiner { grid-area: combiner; display: flex; flex-flow: column; justify-content: flex-end; } .vbox-combiner button { flex: 0; } .vbox-hdr { display: flex; } .vbox-hdr h3 { flex: 1; } .vbox-hdr .bits { font-size: 2em; line-height: 1em; animation: bits 1s ease-out; }