UNPKG

metro4

Version:

The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style

72 lines (63 loc) 1.39 kB
@import (once) "include/vars"; @import (once) "include/mixins"; .splitter { display: flex; flex-wrap: nowrap; flex-direction: row; justify-content: space-between; &.vertical { flex-direction: column; } } .splitter { & > .gutter { flex-shrink: 0; flex-grow: 0; border: 1px solid @light; background-color: @light; cursor: col-resize; z-index: 1; &.active { background-color: @gray; } &::before { content: ""; z-index: 1; display: block; position: absolute; left: 0; width: 100%; top: 50%; height: 24px; margin-top: -12px; background-color: @gray; } } &.vertical { & > .gutter { cursor: row-resize; &::before { height: 100%; width: 24px; top: 0; left: 50%; margin-left: -12px; margin-top: 0; } } } } .splitter { & > .split-block { position: relative; flex-grow: 1; flex-basis: 0; overflow: hidden; &.stop-select { user-select: none; } &.stop-pointer { pointer-events: none; } } }