Commit 7041bfaa authored by Nikolay Gromov's avatar Nikolay Gromov

forms

parent 180a6836
...@@ -28,19 +28,10 @@ ...@@ -28,19 +28,10 @@
Текст в <code>label</code> Текст в <code>label</code>
<input type="text" placeholder="input[type=text]"> <input type="text" placeholder="input[type=text]">
</label> </label>
<input type="search" placeholder="input[type=search]"> <input type="search" placeholder="input[type=search]" value="Поиск">
<input type="color" placeholder="input[type=color]">
<input type="date" placeholder="input[type=date]">
<input type="time" placeholder="input[type=time]">
<input type="range" placeholder="input[type=range]">
<input type="password" placeholder="input[type=password]">
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<input type="month" placeholder="input[type=month]">
<input type="week" placeholder="input[type=week]">
<input type="datetime" placeholder="input[type=datetime]">
<input type="email" placeholder="input[type=email]"> <input type="email" placeholder="input[type=email]">
<input type="number" placeholder="input[type=number]"> <input type="password" placeholder="input[type=password]">
<input type="color" placeholder="input[type=color]">
<select> <select>
<optgroup label="optgroup"> <optgroup label="optgroup">
<option>Значение 1</option> <option>Значение 1</option>
...@@ -49,6 +40,15 @@ ...@@ -49,6 +40,15 @@
</optgroup> </optgroup>
<option>Значение 10</option> <option>Значение 10</option>
</select> </select>
<input type="range" placeholder="input[type=range]">
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<input type="date" placeholder="input[type=date]">
<input type="time" placeholder="input[type=time]">
<input type="month" placeholder="input[type=month]">
<input type="week" placeholder="input[type=week]">
<input type="datetime" placeholder="input[type=datetime]">
<input type="number" placeholder="input[type=number]">
<input type="file"> <input type="file">
<label><input type="checkbox"> text</label> <label><input type="checkbox"> text</label>
<label><input type="radio"> text</label> <label><input type="radio"> text</label>
......
...@@ -198,7 +198,7 @@ samp { ...@@ -198,7 +198,7 @@ samp {
code { code {
color: @text-color; color: @text-color;
background-color: @gray-lightest; background-color: @gray-lightest;
padding: .2em .4em; padding: .1em .3em;
border-radius: @border-radius; border-radius: @border-radius;
} }
...@@ -345,17 +345,22 @@ input[type="number"], ...@@ -345,17 +345,22 @@ input[type="number"],
input[type="email"], input[type="email"],
input[type="url"], input[type="url"],
input[type="search"], input[type="search"],
input[type="color"],
input[type="tel"] { input[type="tel"] {
border: 1px solid @border-color; border: 1px solid @border-color;
border-radius: @border-radius; border-radius: @border-radius;
display: block; display: block;
width: 100%; width: 100%;
height: 2em; height: 2.125em; // 16 × 2.125 = 34
line-height: @line-height; line-height: @line-height;
padding: .2em .4em; padding: .5rem .4em .2em; // вебкиты, windows...
} }
select[multiple], select[multiple],
textarea { textarea {
height: auto; height: auto;
} }
input[type="range"] {
width: 100%;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment