diff --git a/js/content.js b/js/content.js index 66c0922..8dd1f1c 100644 --- a/js/content.js +++ b/js/content.js @@ -1269,6 +1269,7 @@ SuperPromptCategoryListEmptyArray.forEach((_, index) => { line-height: 1.5; color:black; } + .slide-checkbox { width: 80px; height: 26px; @@ -1276,8 +1277,9 @@ SuperPromptCategoryListEmptyArray.forEach((_, index) => { margin: 20px auto; position: relative; border-radius: 50px; - box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2); + box-shadow: inset 0px 1px 1px rgba(0,0,0,0.5), 0px 1px 0px rgba(255,255,255,0.2); } + .slide-checkbox:after { content: 'OFF'; color: #000; @@ -1286,7 +1288,7 @@ SuperPromptCategoryListEmptyArray.forEach((_, index) => { z-index: 0; font: 12px/26px Arial, sans-serif; font-weight: bold; - text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.15); + text-shadow: 1px 1px 0px rgba(255,255,255,.15); } .slide-checkbox:before { content: 'ON'; @@ -1298,25 +1300,33 @@ SuperPromptCategoryListEmptyArray.forEach((_, index) => { font-weight: bold; } .slide-checkbox label { + display: block; + width: 100%; + height: 100%; + cursor: pointer; + position: absolute; + top: 0; + left: 0; + z-index: 1; + } + .slide-checkbox label span { display: block; width: 34px; height: 20px; - cursor: pointer; position: absolute; top: 3px; left: 3px; - z-index: 1; background: #fcfff4; background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%); border-radius: 50px; transition: all 0.4s ease; - box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3); + box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.3); } .slide-checkbox input[type=checkbox] { - visibility: hidden !important; + visibility: hidden; } - .slide-checkbox input[type=checkbox]:checked + label { - left: 43px !important; + .slide-checkbox input[type=checkbox]:checked + label span { + left: 43px; } #dialog6 .my-table textarea{ width: 100%; @@ -1517,7 +1527,7 @@ SuperPromptCategoryListEmptyArray.forEach((_, index) => {