mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
ui: 功能开关改为滑动开关样式
This commit is contained in:
38
style.css
38
style.css
@@ -1215,12 +1215,42 @@
|
||||
color: var(--bme-on-surface-dim);
|
||||
}
|
||||
|
||||
.bme-toggle-item input {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
.bme-toggle-item input[type="checkbox"] {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
min-width: 40px;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
accent-color: var(--bme-primary);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.bme-toggle-item input[type="checkbox"]::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
transition: transform 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
|
||||
.bme-toggle-item input[type="checkbox"]:checked {
|
||||
background: var(--bme-primary, #a078ff);
|
||||
border-color: var(--bme-primary, #a078ff);
|
||||
}
|
||||
|
||||
.bme-toggle-item input[type="checkbox"]:checked::after {
|
||||
transform: translateX(18px);
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.bme-prompt-card-actions {
|
||||
|
||||
Reference in New Issue
Block a user