Input Styling
by piiantom
HTML
<div class="form-group">
<label class="control-label" for="zipCode">Code postal</label>
<input class="form-control" id="zipCode" name="zipCode" type="text">
</div>
CSS
form-group {
padding: 0 15px;
}
label.control-label {
font-size: 12px;
margin-bottom: 2px;
display: inline-block;
font-family: Arial;
}
.form-control {
background-color: #f7f7f7;
border: 1px solid #eee;
font-family: Arial;
font-weight: 700;
box-sizing: border-box;
display: block;
width: 100%;
padding: .375rem .75rem;
font-size: 1rem;
line-height: 1.5;
color: #495057;
background-clip: padding-box;
border-radius: .25rem;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus {
outline: none;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25)
}