раздел
я небольшой вопрос, так как я не слишком хорош в CSS, я хочу знать, есть ли способ, как я могу воссоздать такой хороший стиль элемента input [type = color]? Я имею в виду не все на скриншоте, а только тот симпатичный круг, который вводится [type = color].
Здесь у меня есть некоторый код, который был написан с ним, но он не стилизует ввод [type = color], как на скриншоте ... Также я видел, что автор использует Vue.js в своем проекте ... Большое спасибо за Помогите!
<input type="color" id="primary_color" class="field-radio" name="primary-color" v-model="scheme.primary" @change="changeColor()">
input[type="color"] {
width: 3rem;
height: 3rem;
padding: .5rem;
background-color: transparent;
border: 0;
border-radius: 100%;
}
input[type="color" i] {
-webkit-appearance: square-button;
width: 44px;
height: 23px;
background-color: buttonface;
cursor: default;
border-width: 1px;
border-style: solid;
border-color: rgb(169, 169, 169);
border-image: initial;
padding: 1px 2px;
}
input {
-webkit-appearance: textfield;
background-color: white;
-webkit-rtl-ordering: logical;
cursor: text;
padding: 1px;
border-width: 2px;
border-style: inset;
border-color: initial;
border-image: initial;
}
input, textarea, select, button {
text-rendering: auto;
color: initial;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
display: inline-block;
text-align: start;
margin: 0em;
font: 400 13.3333px Arial;
}
input, textarea, select, button, meter, progress {
-webkit-writing-mode: horizontal-tb;
}