@@ -889,3 +889,66 @@ details > *:not(summary) {
889889 margin-top : 0.5em ;
890890 padding-bottom : 0.5em ;
891891}
892+
893+ .form-check .form-switch {
894+ min-height : 18px ;
895+ padding-left : 42px ;
896+ }
897+
898+ .form-switch .form-check-input {
899+ width : 34px ;
900+ height : 18px ;
901+ margin-top : 0 ;
902+ margin-left : -42px ;
903+ cursor : pointer;
904+ border : none;
905+ border-radius : 999px ;
906+ background-color : rgba (255 , 255 , 255 , 0.28 );
907+ background-image : url ("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 16 16'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23ffffff'/%3E%3C/svg%3E" );
908+ background-position : 2px center;
909+ background-size : 14px 14px ;
910+ box-shadow : inset 0 0 0 1px rgba (255 , 255 , 255 , 0.08 );
911+ transition : background-color 0.2s ease, background-position 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
912+ }
913+
914+ .form-switch .form-check-input : hover {
915+ background-color : rgba (255 , 255 , 255 , 0.38 );
916+ }
917+
918+ .form-switch .form-check-input : focus {
919+ background-image : url ("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 16 16'%3E%3Ccircle cx='6' cy='6' r='6' fill='%23ffffff'/%3E%3C/svg%3E" );
920+ box-shadow : 0 0 0 3px rgba (22 , 119 , 255 , 0.28 );
921+ }
922+
923+ .form-switch .form-check-input : checked {
924+ background-color : # 1677ff ;
925+ background-position : calc (100% - 2px ) center;
926+ }
927+
928+ .form-switch .form-check-input : checked : hover {
929+ background-color : # 4096ff ;
930+ }
931+
932+ .form-switch .form-check-input : disabled {
933+ cursor : not-allowed;
934+ opacity : 0.55 ;
935+ }
936+
937+ .form-switch .form-check-label {
938+ padding-left : 8px ;
939+ cursor : pointer;
940+ user-select : none;
941+ }
942+
943+ .tag-cloud-order-toggle .form-switch {
944+ padding-left : 0 ;
945+ gap : 10px ;
946+ }
947+
948+ .tag-cloud-order-toggle .form-switch .form-check-input {
949+ margin-left : 0 ;
950+ }
951+
952+ .tag-cloud-order-toggle .form-switch .form-check-label {
953+ padding-left : 0 ;
954+ }
0 commit comments