| b69ab31 | | | 1 | /** |
| b69ab31 | | | 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| b69ab31 | | | 3 | * |
| b69ab31 | | | 4 | * This source code is licensed under the MIT license found in the |
| b69ab31 | | | 5 | * LICENSE file in the root directory of this source tree. |
| b69ab31 | | | 6 | */ |
| b69ab31 | | | 7 | |
| b69ab31 | | | 8 | .isl-radio { |
| b69ab31 | | | 9 | background: var(--checkbox-background); |
| b69ab31 | | | 10 | border-radius: 999px; |
| b69ab31 | | | 11 | cursor: pointer; |
| b69ab31 | | | 12 | height: 16px; |
| b69ab31 | | | 13 | position: relative; |
| b69ab31 | | | 14 | outline: none; |
| b69ab31 | | | 15 | width: 16px; |
| b69ab31 | | | 16 | appearance: none; |
| b69ab31 | | | 17 | border: 1px solid var(--checkbox-border); |
| b69ab31 | | | 18 | margin: 0; |
| b69ab31 | | | 19 | } |
| b69ab31 | | | 20 | |
| b69ab31 | | | 21 | .isl-radio:focus { |
| b69ab31 | | | 22 | border-color: var(--focus-border); |
| b69ab31 | | | 23 | outline-color: var(--focus-border); |
| b69ab31 | | | 24 | } |
| b69ab31 | | | 25 | |
| b69ab31 | | | 26 | .isl-radio:before { |
| b69ab31 | | | 27 | display: inline-block; |
| b69ab31 | | | 28 | position: absolute; |
| b69ab31 | | | 29 | left: 0; |
| b69ab31 | | | 30 | top: 0; |
| b69ab31 | | | 31 | content: ' '; |
| b69ab31 | | | 32 | inset: 4px; |
| b69ab31 | | | 33 | border-radius: 50%; |
| b69ab31 | | | 34 | transform: scale(0); |
| b69ab31 | | | 35 | transition: 60ms transform ease-in-out; |
| b69ab31 | | | 36 | background-color: var(--checkbox-foreground); |
| b69ab31 | | | 37 | } |
| b69ab31 | | | 38 | |
| b69ab31 | | | 39 | .isl-radio:checked:before { |
| b69ab31 | | | 40 | transform: scale(1); |
| b69ab31 | | | 41 | } |