ref: master
css/form.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
form { background-color: #ffffff; border: 1px solid #b1b4b6; padding: 30px; max-width: 600px; margin: 20px auto; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); } form > div.actions { margin-top: 1rem; } input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea { width: 100%; padding: 5px; border: 2px solid #0b0c0c; font-size: 16px; background-color: #ffffff; } input[type="text"], input[type="email"], input[type="password"], input[type="date"] { height: 2.5rem; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="date"]:focus, textarea:focus { border-color: #0b0c0c; outline: 3px solid #4CAF50; outline-offset: 0; box-shadow: inset 0 0 0 2px; } select { min-width: 11.5em; max-width: 100%; height: 2.5rem; padding: 5px; border: 2px solid #0b0c0c; color: #0b0c0c; background-color: #fff; } label { font-size: 16px; color: #333333; display: block; margin-bottom: 0.125rem; } label small.required { color: #ff0000; } input.error { border-color: #d4351c !important; } button { display: inline-block; position: relative; width: 100%; margin: 0 0 22px; padding: 8px 10px 7px; border: 2px solid transparent; transition: background-color 0.2s ease; color: #fff; background-color: #00703c; box-shadow: 0 2px 0 #002d18; text-align: center; vertical-align: top; cursor: pointer; } button:hover { background-color: #005a30; } |