angular-input-types
Version:
AngularJS directives used on form inputs. Makes it easy for the users to input the correct information using autocomplete and validation.
69 lines (57 loc) • 945 B
CSS
body {
font: 16px Arial, Helvetica, sans-serif;
}
h1 {
text-align: center;
font-family: "Segoe UI",Arial,sans-serif;
font-weight: 400;
}
a {
color: #069;
text-decoration: none;
font-weight: bold;
}
a:hover, a:active {
color: #39f;
}
ul {
padding:0;
margin:0;
list-style:none;
}
li {
display: block;
margin-bottom: 20px;
min-height: 35px;
}
p, form {
max-width: 500px;
margin: 50px auto;
}
form {
padding: 30px;
background: #eee;
box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.35);
border-radius: 10px;
border: 1px solid #ccc;
}
label {
color: #333;
padding-bottom: 5px;
float: left;
}
input {
box-sizing: border-box;
width: 100%;
padding: 8px;
border: 1px solid #ccc;
}
input:focus {
outline: none;
box-shadow: 0 0 5px #ccc;
}
input.ng-invalid {
color: #f00;
border: 1px solid #f00;
background-color: #fee;
}