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