Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 23, 2012 19:01
Show Gist options
  • Save Ricardo-Diaz/3940855 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3940855 to your computer and use it in GitHub Desktop.
CSS: Simple Input with border that fades when active
//Simple Input with border that fades when active.
.simple-input {
display: block;
padding: 5px;
border: 4px solid #F1B720;
border-radius: 5px;
color: #333;
transition: all 0.3s ease-out;
}
.simple-input:hover { border-radius: 8px; }
.simple-input:focus {
outline: none;
border-radius: 8px;
border-color: #EBD292;
} Simple Input
.simple-input {
display: block;
padding: 5px;
border: 4px solid #F1B720;
border-radius: 5px;
color: #333;
transition: all 0.3s ease-out;
}
.simple-input:hover { border-radius: 8px; }
.simple-input:focus {
outline: none;
border-radius: 8px;
border-color: #EBD292;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment