项目文件夹

文件
wehub-resource-sync 98e40dac97
CLI Smoke Test / smoke-test-linux (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-linux (24) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (24) (push) Has been cancelled
Expo App TypeScript typecheck / typecheck (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:40:49 +08:00

45 行
1012 B
CSS

.toggle-switch {
display: inline-flex;
align-items: center;
width: 32px;
height: 20px;
color: var(--color-text-foreground-secondary);
}
.toggle-switch:focus-visible {
outline: 2px solid var(--color-border-focus);
outline-offset: 2px;
}
.toggle-switch__track {
position: relative;
width: 32px;
height: 20px;
border-radius: 9999px;
background: var(--color-button-bg);
box-shadow: inset 0 0 0 1px var(--color-border);
transition: background 120ms ease;
}
.toggle-switch__thumb {
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--color-text-foreground-secondary);
transition:
transform 120ms ease,
background 120ms ease;
}
.toggle-switch--checked .toggle-switch__track {
background: var(--color-text-foreground);
}
.toggle-switch--checked .toggle-switch__thumb {
background: var(--color-background-surface);
transform: translateX(12px);
}