Skip to content

Instantly share code, notes, and snippets.

@dariodev
Last active September 22, 2016 14:18
Show Gist options
  • Save dariodev/4261d2e7fe8c0cbc5d2ade6031e2f53c to your computer and use it in GitHub Desktop.
Save dariodev/4261d2e7fe8c0cbc5d2ade6031e2f53c to your computer and use it in GitHub Desktop.
The perfect inset box shadow input field for my project.
input {
background: #fff;
color: #525865;
border-radius: 4px;
border: 1px solid #d1d1d1;
box-shadow: inset 1px 2px 8px rgba( 0, 0, 0, 0.07);
font-family: inherit;
font-size: 1em;
line-height: 1.45;
outline: none;
padding: 0.6em 1.45em 0.75em;
-webkit-transition: .18s ease-out;
-moz-transition: .18s ease-out;
-o-transition: .18s ease-out;
transition: .18s ease-out;
}
input:hover {
box-shadow: inset 1px 2px 8px rgba( 0, 0, 0, 0.02);
}
input:focus {
color: #4b515d;
border: 1px solid #B8B6B6;
box-shadow: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment