| 1 |
@use 'theme'; |
| 2 |
|
| 3 |
$off-color: #789; |
| 4 |
|
| 5 |
.snippet-execution-button, |
| 6 |
.snippet-activation-switch, |
| 7 |
input[type='checkbox']='checkbox'].switch { |
| 8 |
display: block; |
| 9 |
position: relative; |
| 10 |
} |
| 11 |
|
| 12 |
.snippet-activation-switch, |
| 13 |
input[type='checkbox']='checkbox'].switch { |
| 14 |
appearance: none; |
| 15 |
outline: 0; |
| 16 |
cursor: pointer; |
| 17 |
margin: 0; |
| 18 |
inline-size: 32px; |
| 19 |
block-size: 19px; |
| 20 |
border-radius: 34px; |
| 21 |
text-align: start; |
| 22 |
border: 1px solid $off-color; |
| 23 |
box-sizing: border-box; |
| 24 |
|
| 25 |
&::before { |
| 26 |
transition: all .1s; |
| 27 |
content: ''; |
| 28 |
block-size: 13px; |
| 29 |
inline-size: 13px; |
| 30 |
display: inline-block; |
| 31 |
background-color: $off-color; |
| 32 |
border-radius: 50%; |
| 33 |
margin: 2px; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
.active-snippet .snippet-activation-switch, |
| 38 |
input[type='checkbox']='checkbox'].switch:checked { |
| 39 |
background-color: #0073aa; |
| 40 |
|
| 41 |
&::before { |
| 42 |
background-color: white; |
| 43 |
transform: translateX(100%); |
| 44 |
} |
| 45 |
} |
| 46 |
|
| 47 |
.erroneous-snippet .snippet-activation-switch::before { |
| 48 |
content: '!'; |
| 49 |
transform: translateX(50%); |
| 50 |
text-align: center; |
| 51 |
font-weight: bold; |
| 52 |
line-height: 1; |
| 53 |
color: #bbb; |
| 54 |
} |
| 55 |
|
| 56 |
a.snippet-condition-count { |
| 57 |
border-radius: 50%; |
| 58 |
border: 1.8px solid currentcolor; |
| 59 |
block-size: 29px; |
| 60 |
inline-size: 29px; |
| 61 |
display: flex; |
| 62 |
justify-content: center; |
| 63 |
align-items: center; |
| 64 |
box-sizing: border-box; |
| 65 |
|
| 66 |
.inactive-snippet & { |
| 67 |
color: #ccc; |
| 68 |
} |
| 69 |
|
| 70 |
.active-snippet & { |
| 71 |
font-weight: bold; |
| 72 |
color: theme.$accent; |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
.snippet-execution-button { |
| 77 |
margin-inline-start: 11px; |
| 78 |
margin-block-start: 9px; |
| 79 |
inline-size: 0; |
| 80 |
block-size: 0; |
| 81 |
border-block: 9px solid transparent; |
| 82 |
border-inline-start: 10px solid #ccc; |
| 83 |
|
| 84 |
&::before { |
| 85 |
content: ''; |
| 86 |
position: absolute; |
| 87 |
inset: -14px -8px -14px -21px; |
| 88 |
border-radius: 50%; |
| 89 |
border: 1.8px solid #ccc; |
| 90 |
z-index: 2; |
| 91 |
} |
| 92 |
|
| 93 |
&:hover { |
| 94 |
border-inline-start-color: theme.$accent; |
| 95 |
transition: border-left-color 0.6s; |
| 96 |
|
| 97 |
&::before { |
| 98 |
border-color: theme.$accent; |
| 99 |
transition: border-color 0.6s; |
| 100 |
} |
| 101 |
} |
| 102 |
} |
| 103 |
|