]> littlesong.place Git - littlesongplace.git/commitdiff
Color picker improvements on mobile
authorChris Fulljames <christianfulljames@gmail.com>
Sat, 8 Feb 2025 16:43:39 +0000 (11:43 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Sat, 8 Feb 2025 16:43:39 +0000 (11:43 -0500)
templates/profile.html

index 03960d68f1072a3b81c2066ff463cea06018215d..c497fa81b8c49d700de3289a2f696951d6ecf205 100644 (file)
     <table>
         <tr>
             <td> <label for="bgcolor">Background</label> </td>
-            <td> <input name="bgcolor" type="text" id="bgcolor-input" value="{{ user_bgcolor or '#e8e6b5' }}" data-coloris oninput="updateColor('--yellow', this.value)"/> </td>
+            <td> <input name="bgcolor" type="text" id="bgcolor-input" value="{{ user_bgcolor or '#e8e6b5' }}" readonly data-coloris oninput="updateColor('--yellow', this.value)"/> </td>
         </tr>
         <tr>
             <td> <label for="fgcolor">Text</label> </td>
-            <td> <input name="fgcolor" type="text" id="fgcolor-input" value="{{ user_fgcolor or '#695c73' }}" data-coloris oninput="updateColor('--black', this.value)"/> </td>
+            <td> <input name="fgcolor" type="text" id="fgcolor-input" value="{{ user_fgcolor or '#695c73' }}" readonly data-coloris oninput="updateColor('--black', this.value)"/> </td>
         </tr>
         <tr>
             <td> <label for="accolor">Accent</label> </td>
-            <td> <input name="accolor" type="text" id="accolor-input" value="{{ user_accolor or '#9373a9' }}" data-coloris oninput="updateColor('--purple', this.value)"/> </td>
+            <td> <input name="accolor" type="text" id="accolor-input" value="{{ user_accolor or '#9373a9' }}" readonly data-coloris oninput="updateColor('--purple', this.value)"/> </td>
         </tr>
         <script>
             function updateColor(name, value) {
@@ -87,7 +87,8 @@
     <button type="button" class="button" onclick="resetColors()">Reset Colors</button>
     <script>
         Coloris({
-          alpha: false
+            alpha: false,
+            focusInput: false,
         });
     </script>