#212121
1#checkbox { 2 display: none; 3} 4 5.switch { 6 position: relative; 7 width: 90px; 8 height: 90px; 9 background-color: rgb(99, 99, 99); 10 border-radius: 50%; 11 z-index: 1; 12 cursor: pointer; 13 display: flex; 14 flex-direction: column; 15 align-items: center; 16 justify-content: center; 17 gap: 5px; 18 font-size: 0.9em; 19 font-weight: 700; 20 color: rgb(37, 37, 37); 21 border: 2px solid rgb(126, 126, 126); 22 box-shadow: 0px 0px 3px rgb(2, 2, 2) inset; 23} 24 25.svg { 26 position: relative; 27 width: 30%; 28 height: 30%; 29 border-radius: 50%; 30 display: flex; 31 align-items: center; 32 justify-content: center; 33} 34 35.svg path { 36 fill: rgb(37, 37, 37); 37} 38 39#checkbox:checked + .switch .svg { 40 filter: drop-shadow(0px 0px 3px rgb(222, 151, 255)); 41} 42 43#checkbox:checked + .switch .svg path { 44 fill: rgb(255, 255, 255); 45} 46 47#checkbox:checked + .switch { 48 box-shadow: 0px 0px 1px rgb(222, 151, 255) inset, 49 0px 0px 2px rgb(222, 151, 255) inset, 50 0px 0px 10px rgb(222, 151, 255) inset, 51 0px 0px 40px rgb(222, 151, 255), 52 0px 0px 100px rgb(222, 151, 255), 53 0px 0px 5px rgb(222, 151, 255); 54 border: 2px solid rgb(255, 255, 255); 55 background-color: rgb(152, 107, 172); 56 color: rgb(255, 255, 255); 57} 58 59
934 views
934 views
Comments
MIT License