JSFiddle - React, Tailwind, and code Playground
HTML
<p>
<label>Produkt</label>
<input type="text">
</p>
<p>
<label>Anzahl/Einheit</label>
<input type="number" min="0" max="100" step="0.5" />
<select>
<option value="Dosen">Dosen</option>
<option value="Kg">Kg</option>
<option value="Tüten">Tüten</option>
</select>
</p>
CSS
*{
padding: 0;
margin: 0;
}
body{
background-color: rgba(30,30,30, 1);
padding: 40px;
font-size: 1em;
color: rgba(255,255,255, 1);
}
select, input{
color: rgba(255,255,255, 0.3);
padding: 7px;
border-radius: 3px;
background-color: rgba(255,255,255, 0.1);
border: none;
transition: all 0.4s;
margin-left: 4px;
}
option, select:hover, input:hover{
color: rgba(0,0,0, 0.7);
background-color: rgba(39, 158, 222, 1);
}
option, select:focus, input:focus{
color: rgba(255,255,255, 0.9);
background-color: rgba(0,0,0, .3);
}
input[type='number']{
width: 40px;
color: rgba(255,255,255, 0.9);
padding-left: 10px;
}
select{
padding: 6px;
}
select:focus option{
padding: 5px;
}
option{
border-top: 1px solid rgba(255,255,255, 0.3);
}
label{
display: inline-block;
width: 120px;
padding: 6px;
/* jetzt wirds echt unwichtig :D */
background-color: rgba(255,255,255, 0.05);
border-radius: 3px;
}
p{
padding: 5px;
}