update
This commit is contained in:
29
static/components/color-picker/color-picker.html
Normal file
29
static/components/color-picker/color-picker.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<template id="color-picker-template">
|
||||
<style></style>
|
||||
:host {
|
||||
display: inline-block;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
input[type="color"] {
|
||||
border: none;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0;
|
||||
background: none;
|
||||
}
|
||||
label {
|
||||
font-size: 0.9rem;
|
||||
user-select: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="wrapper">
|
||||
<label for="color-input">Background:</label>
|
||||
<input type="color" id="color-input" value="#ffffff">
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user