Created
November 17, 2011 19:50
-
-
Save gnepud/1374271 to your computer and use it in GitHub Desktop.
Form css via code school
This file contains 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
@font-face { | |
font-family: 'DroidSansRegular'; | |
src: url('fonts/DroidSans-webfont.eot'); | |
src: local('☺'), url('fonts/DroidSans-webfont.woff') format('woff'), url('fonts/DroidSans-webfont.ttf') format('truetype'), url('fonts/DroidSans-webfont.svg#webfontw7zqO19G') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'DroidSansBold'; | |
src: url('fonts/DroidSans-Bold-webfont.eot'); | |
src: local('☺'), url('fonts/DroidSans-Bold-webfont.woff') format('woff'), url('fonts/DroidSans-Bold-webfont.ttf') format('truetype'), url('fonts/DroidSans-Bold-webfont.svg#webfontSOhoM6aS') format('svg'); | |
font-weight: bold; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'MarketingScriptRegular'; | |
src: url('fonts/MarketingScript-webfont.eot'); | |
src: local('☺'), url('fonts/MarketingScript-webfont.woff') format('woff'), url('fonts/MarketingScript-webfont.ttf') format('truetype'), url('fonts/MarketingScript-webfont.svg#webfontZ5AiaAsu') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
/***** Reset *****/ | |
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote { margin: 0; padding: 0; } | |
fieldset,img { border: 0; } | |
ol,ul { list-style: none; } | |
h1,h2,h3,h4 { font-size: 100%; font-weight: normal; } | |
a { text-decoration: none; } | |
a img { border: none; } | |
.texthide { text-indent: -9999em; } | |
article, aside, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section { | |
display:block; | |
} | |
body { | |
background: url(bg.png) repeat; | |
} | |
#blocks { | |
float: left; | |
margin-top: 20px; | |
} | |
#blocks section { | |
float: left; | |
width: 290px; | |
display: inline; | |
background: #fafaf6; | |
border: 5px solid #e9e9e4; | |
margin-right: 30px; | |
} | |
#blocks section:last-child { | |
margin-right: 0; | |
} | |
.box h1.script { | |
font: normal 24px "MarketingScriptRegular", Georgia, serif; | |
color: #717165; | |
margin-left: 10px; | |
padding: 5px 0 0 0; | |
border-bottom: 1px solid #ecece9; | |
width: 270px; | |
text-align: left; | |
} | |
#sign-up fieldset { margin: 10px 0 10px 10px; } | |
#sign-up label { | |
display: block; | |
font: bold 14px "DroidSansBold", Verdana, sans-serif; | |
line-height: 1.5em; | |
color: #dc692e; | |
} | |
#sign-up fieldset:last-child { margin: 0; } | |
#sign-up fieldset input[type="text"], #sign-up fieldset input[type="email"] { | |
width: 250px; | |
padding: 8px 8px; | |
font-size: 12px; | |
color: #89897e; | |
border: 1px solid #e5e5dd; | |
background: #f4f4ed; | |
-moz-border-radius: 7px; | |
-webkit-border-radius: 7px; | |
border-radius: 7px; | |
-moz-box-shadow: inset 1px 1px 2px #ccc; | |
-webkit-box-shadow: inset 1px 1px 2px #ccc; | |
box-shadow: inset 1px 1px 2px #ccc; | |
} | |
#sign-up input[type="submit"] { | |
float: right; | |
margin-bottom: 10px; | |
margin-right: 10px; | |
padding: 8px 15px; | |
font: bold 12px "DroidSansBold", Verdana, sans-serif; | |
text-transform: uppercase; | |
line-height: 1; | |
color: #787871; | |
border: none; | |
background-color: #e2e2d9; | |
cursor: pointer; | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FF9C69), to(#DC692E)); | |
background-image: -moz-linear-gradient(19% 75% 90deg, #FF9C69, #DC692E); | |
-moz-text-shadow: 1px 1px 2px rgba(100, 48, 22, 1); | |
-webkit-text-shadow: 1px 1px 2px rgba(100, 48, 22, 1); | |
text-shadow: 1px 1px 2px rgba(100, 48, 22, 1); | |
-moz-border-radius: 7px; | |
-webkit-border-radius: 7px; | |
border-radius: 7px; | |
} | |
#sign-up input[type="submit"]:hover { | |
-moz-box-shadow: -2px 2px 4px rgba(25, 12, 5, 0.5); | |
-webkit-box-shadow: -2px 2px 4px rgba(25, 12, 5, 0.5); | |
box-shadow: -2px 2px 4px rgba(25, 12, 5, 0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment