mirror of
https://github.com/kognise/water.css.git
synced 2025-08-21 12:22:00 +02:00
Added approach for new select
select tag is styled in a new way added preview for select tag
This commit is contained in:
committed by
Jonas Kuske
parent
03269b4896
commit
8a1150d3c2
@@ -73,6 +73,13 @@
|
|||||||
<label for='about'>About me</label>
|
<label for='about'>About me</label>
|
||||||
<textarea name='about' id='about' placeholder='I am a textarea...'></textarea>
|
<textarea name='about' id='about' placeholder='I am a textarea...'></textarea>
|
||||||
|
|
||||||
|
<label for='drink'>Select your favorite drink</label>
|
||||||
|
<select name='drink' id='drink'>
|
||||||
|
<option value='mojito'>Mojito</option>
|
||||||
|
<option value='water'>Water</option>
|
||||||
|
<option value='lemon'>Lemon juice</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
<label>Choose a Doe:</label>
|
<label>Choose a Doe:</label>
|
||||||
<div>
|
<div>
|
||||||
<input type='radio' id='john' name='drone' value='john' checked>
|
<input type='radio' id='john' name='drone' value='john' checked>
|
||||||
|
@@ -43,6 +43,12 @@ textarea {
|
|||||||
resize: vertical;
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
background: url("data:image/svg+xml;utf8,<svg fill='#{$form-text}' viewBox='0 0 140 140' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/></g></svg>")
|
||||||
|
calc(100% - 12px) 50% / 12px no-repeat var(--background);
|
||||||
|
padding-right: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input[type='submit'],
|
input[type='submit'],
|
||||||
input[type='button'] {
|
input[type='button'] {
|
||||||
|
Reference in New Issue
Block a user