UNPKG

oui-kit

Version:

🎯 *UI toolkit with a French touch* 🇫🇷

73 lines (60 loc) • 1.5 kB
@require "../../stylus/index.styl"; .oui-separator { position: relative; background: var(--separator, transparent); flex-shrink: 0; flex-grow: 0; &._absolute { position: absolute; } &:hover { background: var(--separator-hover, var(--fg)); } &._active { background: var(--separator-active, var(--p1-fg)); } &._left, &._right { width: 1px; height: 100%; cursor: unquote("col-resize"); &:after { position: absolute; background: var(--separator-handle, transparent); top: 0; left: unquote("calc(-1 * 0.5 * var(--separator-handle-size, 5px))"); width: unquote("calc(var(--separator-handle-size, 5px) + 1px)"); height: 100%; content: " "; z-index: -z-index-floating; cursor: unquote("col-resize"); } } &._top, &._bottom { height: 1px; width: 100%; cursor: unquote("row-resize"); &:after { position: absolute; background: var(--separator-handle, transparent); left: 0; top: unquote("calc(-1 * 0.5 * var(--separator-handle-size, 5px))"); height: unquote("calc(var(--separator-handle-size, 5px) + 1px)"); width: 100%; content: " "; z-index: -z-index-floating; cursor: unquote("row-resize"); } } &._left { left: var(--separator-shift, 0); } &._right { right: var(--separator-shift, 0); } &._top { top: var(--separator-shift, 0); } &._bottom { bottom: var(--separator-shift, 0); } }