Created
January 14, 2013 12:22
-
-
Save mateusreis/4529705 to your computer and use it in GitHub Desktop.
Form css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************************* | |
* forms | |
*********************************************************************/ | |
form { | |
/*margin-bottom: 20px;*/ | |
width: 100%; | |
} | |
fieldset { | |
/*margin-bottom: 20px;*/ | |
} | |
input[type="text"], | |
input[type="password"], | |
input[type="email"], | |
textarea, | |
select { | |
border: 1px solid #7b7b7b; | |
padding: 6px 4px; | |
outline: none; | |
-moz-border-radius: 2px; | |
-webkit-border-radius: 2px; | |
border-radius: 2px; | |
font: .75em; | |
color: #999; | |
margin: 0; | |
min-width: 210px; | |
max-width: 100%; | |
display: block; | |
margin-top: .5em; | |
background: #fff; } | |
select { | |
} | |
input[type="text"]:focus, | |
input[type="password"]:focus, | |
input[type="email"]:focus, | |
textarea:focus { | |
border: 1px solid #aaa; | |
color: #444; | |
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2); | |
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2); | |
box-shadow: 0 0 3px rgba(0,0,0,.2); } | |
textarea { | |
min-height: 60px; } | |
label{ | |
display: block; | |
font-size: .875em; | |
margin-top: .5em; | |
} | |
legend { | |
display: block; | |
color:#858a8d; | |
font-size: .75em; | |
margin: 0; | |
text-align: right; | |
} | |
select { | |
min-width: 220px; } | |
input[type="checkbox"] { | |
display: inline; } | |
input[type="text"], | |
input[type="password"], | |
input[type="email"], | |
textarea, select { | |
width: 100%; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
input[type="submit"].button{ | |
width:70%; | |
display:block; | |
background-color:#0b4da3; | |
font-size:1.125em; | |
color:#fff; | |
border:none; | |
-webkit-border-radius: 8px; | |
-moz-border-radius: 8px; | |
border-radius:8px; | |
box-shadow: 0px 3px 0px 1px #999; | |
padding:10px 0; | |
margin: 0 auto; | |
cursor: pointer; | |
position: relative; | |
} | |
input[type="submit"].button:active { | |
box-shadow: 0px 0px 0px 1px #999; | |
top: 3px; | |
left: 0px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment