Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<link rel='stylesheet' href='reference-style.css'>
<style>
body > button:nth-child(1) { margin: 10px; padding: 0px; }
body > button:nth-child(2) { margin: 0px; padding: 10px; }
body > button:nth-child(3) { margin: 10px; padding: 10px; }
body > button:nth-child(4) { margin: 5px; padding: 5px; }
body > button:nth-child(5) { margin: 50px; padding: 50px; }
body > button:nth-child(6) { margin: 100px; padding: 100px; }
body > button:nth-child(7) { margin: 10px 0px 0px 0px; padding: 0px; }
body > button:nth-child(8) { margin: 0px 10px 0px 0px; padding: 0px; }
body > button:nth-child(9) { margin: 0px 0px 10px 0px; padding: 0px; }
body > button:nth-child(10) { margin: 0px 0px 0px 10px; padding: 0px; }
body > button:nth-child(11) { margin: 0px; padding: 10px 0px 0px 0px; }
body > button:nth-child(12) { margin: 0px; padding: 0px 10px 0px 0px; }
body > button:nth-child(13) { margin: 0px; padding: 0px 0px 10px 0px; }
body > button:nth-child(14) { margin: 0px; padding: 0px 0px 0px 10px; }
body > button:nth-child(15) { margin: 0px; padding: 2px 4px 6px 8px; }
body > button:nth-child(16) { margin: 2px 4px 6px 8px; padding: 0px; }
/* The non-native theme has different widget-supplied padding values
* for <input type="color"> and <button>, and so we must calculate
* the color swatch height explicitly. These are computed as the
* widget-supplied min-height (32px) minus padding+border (padding
* as set above, and the 2px of widget-supplied border), clamped to be
* non-negative.
*/
body > button:nth-child(1) .input-color-swatch { height: 28px; }
body > button:nth-child(2) .input-color-swatch { height: 8px; }
body > button:nth-child(3) .input-color-swatch { height: 8px; }
body > button:nth-child(4) .input-color-swatch { height: 18px; }
body > button:nth-child(5) .input-color-swatch { height: 0px; }
body > button:nth-child(6) .input-color-swatch { height: 0px; }
body > button:nth-child(7) .input-color-swatch { height: 28px; }
body > button:nth-child(8) .input-color-swatch { height: 28px; }
body > button:nth-child(9) .input-color-swatch { height: 28px; }
body > button:nth-child(10) .input-color-swatch { height: 28px; }
body > button:nth-child(11) .input-color-swatch { height: 18px; }
body > button:nth-child(12) .input-color-swatch { height: 28px; }
body > button:nth-child(13) .input-color-swatch { height: 18px; }
body > button:nth-child(14) .input-color-swatch { height: 28px; }
body > button:nth-child(15) .input-color-swatch { height: 20px; }
body > button:nth-child(16) .input-color-swatch { height: 28px; }
</style>
<body>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
<button class="input-color">
<div class="input-color-swatch">
</div>
</button>
</body>
</html>