| 1 |
/* toggler group */ |
| 2 |
.bd-toggle-switcher-group{ |
| 3 |
display: flex; |
| 4 |
align-items: center; |
| 5 |
gap: 10px; |
| 6 |
|
| 7 |
p{ |
| 8 |
font-size: 14px; |
| 9 |
line-height: 40px; |
| 10 |
margin: 0; |
| 11 |
color: var(--text-color-900); |
| 12 |
flex: 1; |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
/* toggler */ |
| 17 |
.bd-faq-toggler { |
| 18 |
position: relative; |
| 19 |
width: 40px; |
| 20 |
height: 22px; |
| 21 |
overflow: hidden; |
| 22 |
border-radius: 22px; |
| 23 |
flex-shrink: 0; |
| 24 |
} |
| 25 |
.bd-faq-toggler .checkbox { |
| 26 |
position: relative; |
| 27 |
width: 100%; |
| 28 |
height: 100%; |
| 29 |
padding: 0; |
| 30 |
margin: 0; |
| 31 |
opacity: 0; |
| 32 |
cursor: pointer; |
| 33 |
z-index: 3; |
| 34 |
} |
| 35 |
.bd-faq-toggler .knobs { |
| 36 |
z-index: 2; |
| 37 |
position: absolute; |
| 38 |
top: 0; |
| 39 |
right: 0; |
| 40 |
bottom: 0; |
| 41 |
left: 0; |
| 42 |
} |
| 43 |
.bd-faq-toggler .layer { |
| 44 |
width: 100%; |
| 45 |
background-color: var(--text-color-300); |
| 46 |
transition: 0.3s ease all; |
| 47 |
z-index: 1; |
| 48 |
position: absolute; |
| 49 |
top: 0; |
| 50 |
right: 0; |
| 51 |
bottom: 0; |
| 52 |
left: 0; |
| 53 |
} |
| 54 |
.bd-faq-toggler .knobs:before { |
| 55 |
position: absolute; |
| 56 |
top: 2px; |
| 57 |
width: 18px; |
| 58 |
height: 18px; |
| 59 |
font-size: 10px; |
| 60 |
font-weight: bold; |
| 61 |
text-align: center; |
| 62 |
line-height: 1; |
| 63 |
padding: 0; |
| 64 |
border-radius: 2px; |
| 65 |
transition: 0.3s ease all; |
| 66 |
border-radius: 20px; |
| 67 |
} |
| 68 |
.bd-faq-toggler .knobs:before { |
| 69 |
content: ""; |
| 70 |
left: 2px; |
| 71 |
background-color: #fff; |
| 72 |
} |
| 73 |
.bd-faq-toggler .checkbox:checked + .knobs:before { |
| 74 |
left: 20px; |
| 75 |
background-color: #fff; |
| 76 |
} |
| 77 |
.bd-faq-toggler .checkbox:checked ~ .layer { |
| 78 |
background-color: var(--base-color-700); |
| 79 |
} |
| 80 |
|