/* ---------------------------------------------- Reset form elements ---------------------------------------------- */ div.mps input, div.mps select, div.mps textarea { font-family:inherit; margin:0; padding:0; font-size:0.85em; outline:none; -moz-box-sizing:border-box; /* Firefox */ -webkit-box-sizing:border-box; /* Safari */ box-sizing:border-box;} /* ---------------------------------------------- Inputs, textareas and selects ---------------------------------------------- */ div.mps input[type="text"],div.mps textarea,div.mps select,div.mps div.styled,div.mps input[type="file"] { min-width:13em; border-radius:2px; border: solid 1px #ccc; padding:0.4em;} div.mps div.styled,div.mps select,div.mps input[type="submit"],div.mps input[type="button"], div.mps input[type="file"]:after { background: white url(formelements-select.png) no-repeat center right; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); box-shadow: 0 1px 3px rgba(0,0,0,0.2);} div.mps input[type="text"],div.mps textarea,div.mps input[type="file"] { background-color: #f5f5f5; -webkit-box-shadow: inset 0 2px 3px rgba(0,0,0,0.2); box-shadow: inset 0 2px 3px rgba(0,0,0,0.2);} div.mps .ie9 input[type="text"] { line-height:normal; } /* Get the stuff to line up right */ div.mps textarea { width:100%; height:10em; } /* ---------------------------------------------- Select menu ---------------------------------------------- */ /* For IE and Firefox */ div.mps div.styled { overflow:hidden; padding:0; margin:0; } .ie7 div.styled {border:none;} div.mps div.styled select { font-family:inherit; width:115%; background-color:rgba(255,255,255,0); background-image:none; -webkit-appearance: none; border:none; box-shadow:none;} div.mps .ie7 div.styled select { width:100%; background-color:#fff; border: solid 1px #ccc; padding:0.3em 0.5em;} /* ---------------------------------------------- File field ---------------------------------------------- */ /* Webkit Only */ div.mps input[type="file"] { position: relative; -webkit-appearance: none; -webkit-box-sizing: border-box; box-sizing: border-box; width: 40%; padding:0;} div.mps input[type=file]::-webkit-file-upload-button { width: 0; padding: 0; margin: 0;-webkit-appearance: none; border: none;} div.mps input[type="file"]:after { content: 'Upload File'; margin:0 0 0 0.5em; display: inline-block; left: 100%; position: relative; background:white url(formelements-select.png) no-repeat center left; padding:0.3em 0.5em; border: solid 1px #ccc !important; -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.2); box-shadow: 0 1px 3px rgba(0,0,0,0.2); border-radius:4px;} div.mps input[type="file"]:active:after {box-shadow:none;} /* ---------------------------------------------- Checkboxes and Radio inputs ---------------------------------------------- */ div.mps input[type="radio"], div.mps input[type="checkbox"] { position: absolute; left: -999em; } div.mps label:before { display: inline-block; position: relative; top:0.25em; left:-2px; content:''; width:25px; height:25px; background-image:url(formelements.png); } div.mps input[type="checkbox"] + label:before { background-position: 0 -25px;} div.mps input[type="checkbox"]:checked + label:before {background-position: 0 0 ; } div.mps input[type="radio"] + label:before { background-position: -25px -25px;} div.mps input[type="radio"]:checked + label:before { background-position: -25px 0;} /* Remove the custom styling for IE 7-8 */ div.mps .ie8 label:before { display:none; content:none; } div.mps .ie8 input[type="checkbox"], div.mps .ie8 input[type="radio"], div.mps .ie7 input[type="checkbox"], div.mps .ie7 input[type="radio"]{ position: static; left:0; } div.mps .ie8 input[type="checkbox"], div.mps .ie8 input[type="radio"] { position:relative; top:5px; margin-right:0.5em;} div.mps input[type="text"]:focus,div.mps textarea:focus { border-color:#000; } /* ---------------------------------------------- Form Submit and Next buttons ---------------------------------------------- */ div.mps input[type="submit"], div.mps input[type="button"] { font-family:inherit; padding:0.5em 1em; line-height:1em; cursor:pointer; border-radius:4px; color:#000; font-weight:bold; font-size:inherit; border:solid 1px #ccc; box-shadow:0 1px 5px rgba(0,0,0,0.2); background-position: center bottom;} /* Gradient Generator by : http://www.colorzilla.com/gradient-editor/ */ div.mps input[type="submit"]:active, div.mps input[type="button"]:active {-webkit-box-shadow: none; box-shadow:none;} /* IE7 needs you to change the background to transparent when using image background for submit buttons */