// Radio Button styles // ---------------------------------------------- /* SG # Forms/Toggle ```

``` */ .CDB-Toggle { position: absolute; width: $baseSize * 4; height: $baseSize * 2; opacity: 0; z-index: 1; &:hover { + .CDB-ToggleFace { background: $cHintTextHover; } &:checked + .CDB-ToggleFace { background: $cHighlightHover; } } + .CDB-ToggleFace { position: relative; width: $baseSize * 4; height: $baseSize * 2; margin: 0 2px; transition: background 300ms; border-radius: 50px; background: $cHintText; &::before { position: absolute; top: 2px; left: 2px; width: $baseSize + 4; height: $baseSize + 4; border-radius: 50%; background: $cWhite; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.48); content: ''; } } &:checked + .CDB-ToggleFace { background: $cHighlight; &::before { right: 2px; left: auto; } } } .Toggle .is-disabled { opacity: 0.24; pointer-events: none; }