Last active
December 29, 2015 11:19
-
-
Save trevor-atlas/7662619 to your computer and use it in GitHub Desktop.
Better Drupal webforms
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
input[type="text"], input[type="password"], input[type="search"], textarea, input { | |
padding: 9px; | |
border: solid 1px #E5E5E5; | |
outline: 0; | |
font: normal 13px/100% sans-serif; | |
width: 250px; | |
background: #FFFFFF url('../images/bg_form.png') left top repeat-x; | |
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF)); | |
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px); | |
box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; | |
-moz-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; | |
-webkit-box-shadow: rgba(0,0,0, 0.1) 0px 0px 8px; | |
} | |
input[type="radio"], input[type="image"] { | |
width: auto; | |
box-shadow: none; | |
-moz-box-shadow: none; | |
-webkit-box-shadow: none; | |
} | |
textarea { | |
width: 400px; | |
max-width: 400px; | |
height: 150px; | |
line-height: 150%; | |
} | |
input:hover, textarea:hover, | |
input:focus, textarea:focus { | |
border-color: #C9C9C9; | |
-webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px; | |
box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px; | |
} | |
.form label { | |
margin-left: 10px; | |
color: #999999; | |
} | |
.submit input, | |
#edit-actions input { | |
width: auto; | |
padding: 9px 15px; | |
// background: #617798; | |
border: 0; | |
font-size: 14px; | |
color: #FFFFFF; | |
-moz-border-radius: 3px; | |
-webkit-border-radius: 3px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment