.selection { --selection-color: var(--gruble); --corner-size: 12px; filter: drop-shadow(0px 0px 16px var(--selection-color)); transform: scale(calc(0.5 * var(--visibility) + 0.5)); opacity: var(--visibility); } .selection .bar.top, .selection .bar.bottom, .selection .background.center { left: var(--corner-size); right: var(--corner-size); } .selection .bar.top, .selection .bar.bottom { height: 2px; } .selection .background.left, .selection .background.right { top: calc(var(--corner-size) - 2px); bottom: calc(var(--corner-size) - 2px); } .selection .bar.left, .selection .bar.right { width: 2px; top: var(--corner-size); bottom: var(--corner-size); } .selection div.fill, .selection .bar { background-color: var(--selection-color); } .selection .corner { fill: var(--selection-color); } .selection .fill { opacity: 0; transition-property: opacity; transition-duration: 200ms; } .selection .background.left, .selection .background.right { width: var(--corner-size); } .selection:hover .fill, .selection.active .fill { opacity: .15; }