.wrap { width: 100%; height: 0; position: relative; } .switcher { position: absolute; background: transparentize(black, 0.5); display: flex; right: $gap; top: $gap; border-radius: 24px; padding: 0 3px; flex-wrap: wrap; & > div { width: 30px; height: 30px; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .5; transition: opacity 0.25s; &:hover { opacity: 1; } &::after { content: ' '; display: block; width: 14px; height: 14px; // background: white; border-radius: 8px; box-shadow: inset white 0 0 0 2px; } &:global(.is_active) { &::after { background: white; } } } }