浏览代码

Custom checkbox styling

Thokoop 11 月之前
父节点
当前提交
f83c507a48
共有 2 个文件被更改,包括 21 次插入10 次删除
  1. 5 0
      static/css/image2sand.css
  2. 16 10
      templates/index.html

+ 5 - 0
static/css/image2sand.css

@@ -12,6 +12,11 @@
     width: 100%;
 }
 
+.image-converter-steps .tab-button.active {
+    background: rgba(255, 255, 255, 0.75);
+    color: var(--theme-primary);
+}
+
 .image-converter-steps canvas {
     background-color: white;
 }

+ 16 - 10
templates/index.html

@@ -50,9 +50,13 @@
                     <input type="password" id="api-key" placeholder="Enter a valid OpenAI API key">
                     <input type="text" id="prompt" placeholder="What do you want to draw?" maxlength="500">
                     <div class="checkbox-container">
-                        <input type="checkbox" id="googly-eyes" name="googly-eyes">
-                        <label for="googly-eyes">Add googly eyes</label>                        
-                    </div>                    
+                        <label class="custom-input">
+                            <input type="checkbox" id="googly-eyes" name="googly-eyes">
+                            <span class="custom-checkbox"></span>
+                            Add googly eyes
+                        </label>
+                    </div>
+
                     <div class="action-buttons">
                         <button id="gen-image-button" class="cta">
                             <i class="fa-solid fa-wand-sparkles"></i>
@@ -194,15 +198,17 @@
                             <option value="Tree" selected>External + Internal</option>
                         </select>
                     </div>
-                    <div class="checkbox-group">
-                        <div class="checkbox-container">
+                    <div class="control-group">
+                        <label class="custom-input">
                             <input type="checkbox" id="is-loop" checked>
-                            <label for="is-loop">Loop Drawing</label>
-                        </div>
-                        <div class="checkbox-container">
+                            <span class="custom-checkbox"></span>
+                            Loop Drawing
+                        </label>
+                        <label class="custom-input">
                             <input type="checkbox" id="no-shortcuts" checked>
-                            <label for="no-shortcuts">No Shortcuts</label>
-                        </div>
+                            <span class="custom-checkbox"></span>
+                            No Shortcuts
+                        </label>
                     </div>
                     <input type="hidden" id="output-type" value="2">
                     <div class="generate-button-container">