/* Form Styles */ fieldset { margin-bottom: 20px; } input[type="text"], input[type="date"], input[type="password"], input[type="email"], input[type="number"], input[type="file"], textarea, select { border: 1px solid #ccc; padding: 6px; outline: none; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #333; margin: 0; width: 100%; max-width: 500px; display: block; background: #fff; min-height: 2.3em; } .fake_field { overflow:hidden; } input[type="checkbox"] { margin: 0 0 10px 0; } input.locked { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAWCAYAAADJqhx8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAplJREFUeNqUVE9PE1EQ33n7t1uJpN1uGw5gDPFCaUOT9iCJxBQTGnrwBBfAg5+hH0MOfIJ+BBMjxYQDJnjGSE00XqyxngA1Le1uu+xzpvQ1S9kanebl7Zs/vzczv3mVpTHRdA2urq4kBiwOAPdx2Rw4R1NH065tQYHgwTAM5nqubCjGU93QTZnJDul939cdF39d5yVe0Hdd1xcxchAgOZ+UeIfvYLCXtJPeUm7pfG52rtvr9VS364KiKLmZuZkPF2cXXAqThJV4jGtj+eHy+mn91BR6/I6sPFopkc2KW6vBGBY8YKr3OOf68bvjw8bXRlfo8ds5ent0yBjT0Gf2FsD29jbUarUIGv1UKtXCxrnlcnmUJn2jrm8n7d94gbe3t3dnc2MTRgC6rkvAgBScQKQJwn0+sCETgNmMGTln03enny2mF8uTALLZbAl9dtBXvUEjZrCOlCVM03Q9zwO35+phALqm95AJv9Pt6JjoueM4ryAWi+UweB5RZen/xOMSbzA7YUfG2bgxaQCTTDI23GSIQvWTCCrFDvl8/heun2gDsgufYc84YAcYxtMtIG6i7hJIcbX4pXZQO9iv7b9ZK619Il0wGxGghOWGNFF6ja2tLZiampKshNVA3YIsy964r0I8DEsYgNJNqqp61Wo132q1XpMTghQ0VesR1SKLYc0QWsLAAMyqf6wbxDmylEQ7CymBs0AGAlk8bZ5eSDs0wtFo1Atr4vUo89tU0dmyrLY4x+Nxeh/8b00clUA7gTebzUjUjD4fvMZvDUeVVV8KGQllmAkf/3eikcWudyYN0qhnxSfFH5eXlyq+AaJP6vf7g52W0Al98Nxut+VCofB9ALP7YvfByfsTGyT4p0dA05vJZM4qlcrnPwIMALO/WDIAWJ7vAAAAAElFTkSuQmCC'); background-repeat: no-repeat; background-size: 8px 11px; color: #444; padding-left: 20px; background-position: left 5px center; } select { height: 2.3em; } 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); } label, legend { display: inline-block; font-weight: bold; font-size: 13px; max-width: 495px; color:#444; margin: 0 0 0 5px; } input[type="checkbox"] { display: inline; } /* Checkbox plus "wall of text" */ input[type="checkbox"] + p { padding-left: 1.2em; line-height: 1.3em; /* This is already the normal line-height, we're just confirming that here. */ margin: -.14em 0 0 0; /* We can't adjust the checkbox, so make the first line of text line up with 1em */ } input[type=submit], .button { display: inline-block; min-width:100px; text-align: center; padding: 10px 20px; margin: 3px 0 10px 0; /* Unfortunately we need 3px for the button:active outline. */ /* Anything that lines up with button will need 3px as well. */ background: linear-gradient(rgba(0, 82, 136, 1), rgba(0, 82, 136, 0.78)); border: none; color: white !important; text-decoration: none; transition: background-color .1s, box-shadow .1s; } input[type=submit]:hover, .button:hover { box-shadow: inset 0 0 30px rgba(0,0,0,.4); } /* Override the browser default submit outline so it can be the same for buttons */ input[type=submit]:focus, .button:focus { outline: 3px solid rgba(135, 206, 250, 0.66); } input[type=submit].alert, .button.alert { background: linear-gradient(rgb(168, 1, 14), rgba(199, 3, 0, 0.78)); } input[type=submit].warn, .button.warn { background: linear-gradient(rgb(168, 84, 0), rgba(199, 122, 0, 0.78)); } .field_with_errors label { color: red; } .nested-fields, .field, .actions { padding-left: 5px; /* Cheat a little space so */ margin-left: -5px; /* button & submit outlines don't get cropped off */ margin-bottom: 1em; display: block; overflow-y: auto; /* This makes floated elements such as checkboxes still consume vertical space */ } /* The last field doesn't need the extra bottom-margin */ div .field:last-child, div .nested-fields:last-child, div .actions:last-child { margin-bottom: 0; } /* Make Checkbox, Radio, and specifically their labels float left */ input[type=checkbox], input[type=checkbox] + label, input[type=radio], input[type=radio] + label { height: 1em; margin-bottom: .5em; float: left; } /* The last checkbox / radio button of a parent should not get the margin-bottom added. */ input[type=checkbox]:last-of-type, input[type=checkbox] + label:last-of-type, input[type=radio]:last-of-type, input[type=radio] + label:last-of-type { margin-bottom: 0; } /* Wrap the float with each Checkbox and Radio to ensure they get a new line */ input[type=checkbox], input[type=radio] { clear: both; }