// Color input styles // ---------------------------------------------- /* SG # Forms/Option input ```







``` */ .CDB-OptionInput { box-sizing: border-box; width: 100%; height: $baseSize * 4 - 2px; border-radius: $baseSize / 2; vertical-align: middle; } .CDB-OptionInput-container { display: flex; align-content: center; align-items: center; &--noMargin { margin: 0; } } .CDB-OptionInput-item { display: flex; position: relative; box-sizing: content-box; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: $sFontSize-medium; &.is-active, &:hover, &:focus { cursor: pointer; } &:first-child { width: auto; margin-right: $baseSize; } &:last-child { width: 100%; } } .CDB-OptionInput-container--border .CDB-OptionInput-item { border: 1px solid $cMainLine; &:hover { border: 1px solid $cBlueHover; } &.is-active, &:focus { border: 1px solid $cBlackHover; } &:first-child { margin-right: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; &:hover { + .CDB-OptionInput-item::after { content: none; } } } &:last-child { border-radius: 4px; } + .CDB-OptionInput-item { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; &.is-active::after, &:focus::after, &:hover::after { position: absolute; top: -1px; left: -1px; width: 1px; height: $baseSize * 4; content: ''; } &:hover::after { background-color: $cBlueHover; } &.is-active::after, &:focus::after { background-color: $cBlackHover; } } } .CDB-OptionInput-content { display: flex; box-sizing: content-box; align-items: center; justify-content: center; height: 100%; padding: 0 $baseSize; color: $cMainBg; white-space: nowrap; &:hover { text-decoration: none; } }