|
109 | 109 | </select>
|
110 | 110 | </div>
|
111 | 111 | <div class="sizes">
|
112 |
| - <p><label>Font Size</label><input type="number" min="1" value="20" id="fontSize"></p> |
113 |
| - <p><label>Line Height</label><input type="number" min="0" max="3" value="1" step="0.1" id="lineHeight"></p> |
114 |
| - <p><label>Letter Spacing</label><input type="number" min="0" max="2000" step="100" value="0" id="charSpacing"></p> |
| 112 | + <div class="input-container"><label>Font Size</label> |
| 113 | + <div class="custom-number-input"> |
| 114 | + <button class="decrease">-</button> |
| 115 | + <input type="number" min="1" value="20" id="fontSize"> |
| 116 | + <button class="increase">+</button> |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + <div class="input-container"><label>Line Height</label> |
| 120 | + <div class="custom-number-input"> |
| 121 | + <button class="decrease">-</button> |
| 122 | + <input type="number" min="0" max="3" value="1" step="0.1" id="lineHeight"> |
| 123 | + <button class="increase">+</button> |
| 124 | + </div> |
| 125 | + </div> |
| 126 | + <div class="input-container"><label>Letter Spacing</label> |
| 127 | + <div class="custom-number-input"> |
| 128 | + <button class="decrease">-</button> |
| 129 | + <input type="number" min="0" max="2000" step="100" value="0" id="charSpacing"> |
| 130 | + <button class="increase">+</button> |
| 131 | + </div> |
| 132 | + </div> |
115 | 133 | </p>
|
116 | 134 | </div>
|
117 | 135 | <div class="align">
|
|
208 | 226 | $(`${this.containerSelector} .toolpanel#select-panel .content`).append(`
|
209 | 227 | <div class="border-section">
|
210 | 228 | <h4>Border</h4>
|
211 |
| - <p><label>Width</label><input type="number" min="1" value="1" id="input-border-width"></p> |
212 |
| - <p><label>Style</label><select id="input-border-style">${BorderStyleList.map(item => `<option value='${JSON.stringify(item.value)}'>${item.label}</option>`)}</select></p> |
213 |
| - <p><label>Corner Type</label><select id="input-corner-type"><option value="miter" selected>Square</option><option value="round">Round</option></select></p> |
214 |
| - <p><label>Color</label><input id="color-picker" value="black"></p> |
| 229 | + <div class="input-container"><label>Width</label> |
| 230 | + <div class="custom-number-input"> |
| 231 | + <button class="decrease">-</button> |
| 232 | + <input type="number" min="1" value="1" id="input-border-width"> |
| 233 | + <button class="increase">+</button> |
| 234 | + </div> |
| 235 | + </div> |
| 236 | + <div class="input-container"><label>Style</label><select id="input-border-style">${BorderStyleList.map(item => `<option value='${JSON.stringify(item.value)}'>${item.label}</option>`)}</select></div> |
| 237 | + <div class="input-container"><label>Corner Type</label><select id="input-corner-type"><option value="miter" selected>Square</option><option value="round">Round</option></select></div> |
| 238 | + <div class="input-container"><label>Color</label><input id="color-picker" value="black"></div> |
215 | 239 | <hr>
|
216 | 240 | </div>
|
217 | 241 | `);
|
|
263 | 287 | $(`${this.containerSelector} .toolpanel#select-panel .content`).append(`
|
264 | 288 | <div class="fill-section">
|
265 | 289 | <h4>Fill</h4>
|
266 |
| - <p><input type="radio" id="color-fill" name="background" value="color-fill"><label for="color-fill" style="padding-bottom: 10px">Color Fill</label><br></p> |
| 290 | + <div class="input-container"><input type="radio" id="color-fill" name="background" value="color-fill"><label for="color-fill" style="padding-bottom: 10px">Color Fill</label><br></div> |
267 | 291 | <input id="color-picker" value='black'/><br>
|
268 | 292 |
|
269 |
| - <p><input type="radio" id="gradient-fill" name="background" value="gradient-fill"><label for="gradient-fill" style="padding-bottom: 10px">Gradient Fill</label><br></p> |
| 293 | + <div class="input-container"><input type="radio" id="gradient-fill" name="background" value="gradient-fill"><label for="gradient-fill" style="padding-bottom: 10px">Gradient Fill</label><br></div> |
270 | 294 | <div id="gradient-picker"></div>
|
271 | 295 | <hr>
|
272 | 296 | </div>
|
|
421 | 445 | $(`${this.containerSelector} .toolpanel#select-panel .content`).append(`
|
422 | 446 | <div class="effect-section">
|
423 | 447 | <h4>Effect</h4>
|
424 |
| - <p><label>Opacity</label><input id="opacity" type="range" min="0" max="1" value="1" step="0.01"></p> |
425 |
| - <p><label>Blur</label><input class="effect" id="blur" type="range" min="0" max="100" value="50"></p> |
426 |
| - <p><label>Brightness</label><input class="effect" id="brightness" type="range" min="0" max="100" value="50"></p> |
427 |
| - <p><label>Saturation</label><input class="effect" id="saturation" type="range" min="0" max="100" value="50"></p> |
| 448 | + <div class="input-container"><label>Opacity</label><input id="opacity" type="range" min="0" max="1" value="1" step="0.01"></div> |
| 449 | + <div class="input-container"><label>Blur</label><input class="effect" id="blur" type="range" min="0" max="100" value="50"></div> |
| 450 | + <div class="input-container"><label>Brightness</label><input class="effect" id="brightness" type="range" min="0" max="100" value="50"></div> |
| 451 | + <div class="input-container"><label>Saturation</label><input class="effect" id="saturation" type="range" min="0" max="100" value="50"></div> |
428 | 452 | <h5>Gamma</h5>
|
429 |
| - <p><label>Red</label><input class="effect" id="gamma.r" type="range" min="0" max="100" value="50"></p> |
430 |
| - <p><label>Green</label><input class="effect" id="gamma.g" type="range" min="0" max="100" value="50"></p> |
431 |
| - <p><label>Blue</label><input class="effect" id="gamma.b" type="range" min="0" max="100" value="50"></p> |
| 453 | + <div class="input-container"><label>Red</label><input class="effect" id="gamma.r" type="range" min="0" max="100" value="50"></div> |
| 454 | + <div class="input-container"><label>Green</label><input class="effect" id="gamma.g" type="range" min="0" max="100" value="50"></div> |
| 455 | + <div class="input-container"><label>Blue</label><input class="effect" id="gamma.b" type="range" min="0" max="100" value="50"></div> |
432 | 456 | <hr>
|
433 | 457 | </div>
|
434 | 458 | `);
|
|
0 commit comments