.vbox { align-content: space-between; grid-area: vbox; display: grid; grid-template-rows: 1fr min-content; grid-template-columns: 1fr 3fr; grid-template-areas: "store-hdr store" "stash-hdr stash" "refund combiner"; margin-bottom: 1em; line-height: 0; // immediate children > div { padding: 0.5em; } .store { grid-area: store; border-right: 0.2em solid @gray-exists; border-top: 0.2em solid @gray-exists; } .store-hdr { grid-area: store-hdr; display: flex; flex-flow: column; text-align: center; border-left: 0.2em solid @gray-exists; border-top: 0.2em solid @gray-exists; 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.5em 0 0 0; .vbox-padding { margin-right: 0em; margin-bottom: 0em; } button { letter-spacing: 0.1em; background-color: #996100; &[disabled] { color: #996100; }; } } .stash { grid-area: stash; display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 0.5em 1em; align-items: center; padding: 0.5em; border: 0.2em solid @gray-exists; border-left: 0; } .stash-hdr { display: flex; flex-flow: column; justify-content: center; grid-area: stash-hdr; text-align: center; border: 0.2em solid @gray-exists; border-right: 0; } .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: 4.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; } } }