UNPKG

react-form-generator

Version:
201 lines (172 loc) 3.95 kB
/* Reset CSS*/ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { border: 0; font-size: 100%; font: inherit; vertical-align: baseline; margin: 0; padding: 0 } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block } body { line-height: 1 } ol, ul { list-style: none } blockquote, q { quotes: none } blockquote:before, blockquote:after, q:before, q:after { content: none } table { border-collapse: collapse; border-spacing: 0 } /*Common Styles*/ html, body { height: 100% !important; } body { padding: 0; margin: 0; font-family: "Exo 2", serif; color: #000; font-size: 16px; line-height: 1.3em; } .demo-form { padding-top: 40px; } label { display: inline-block; vertical-align: middle; color: #111111; cursor: pointer; } /*Headers*/ h1 { font-size: 31.5pt; font-weight: 400; margin: 0 0 20px; padding: 0; } h2 { font-size: 27pt; font-weight: 400; margin: 0 0 25px; padding: 0; } h3 { font-size: 22.5pt; font-weight: 400; margin: 0 0 22px; } /*Fields*/ label, input, textarea{ margin-bottom: 1em; } input, textarea { background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #B3B3B3; color: #333333; font-family: "Exo 2", serif; font-size: 18px; font-weight: 300; padding: 3px 10px; line-height: 1.3em; } input:hover, textarea:hover { border-color: #2a7fb8; overflow: hidden; } input:focus, textarea:focus { border-color: #c80020; } input[readonly], input[readonly]:hover, input[readonly]:focus, textarea[readonly], textarea[readonly]:hover, textarea[readonly]:focus { background-color: #EFEFEF; border-color: #B3B3B3; } .generated-text-field { width: 100%; } .generated-textarea-field { width: 100%; max-width: 100%; } input[type=checkbox], input[type=radio] { width: 18px; height: 18px; vertical-align: top; margin: 2px 0 0; } .demo-form .generated-radiogroup-field label{ padding-right: 18px; } .generated-radio-label { display: inline-block; vertical-align: top; padding-right: 10px; } input, textarea, select, button, button.btn:focus{ outline: none; } .validation-error { margin-top: -1.3em; font-size: 0.8em; color: #C80000; } button.btn { border: none; background: #ed451a; color: #FFFFFF; display: block; font-size: 15pt; font-weight: 400; height: 40px; line-height: 40px; padding: 0 0 3px; text-align: center; width: 139px; text-decoration: none; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-appearance: none; } button.btn:hover { border: none; background: #ff8833; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#ff8833), to(#dd0602)); background: -webkit-linear-gradient(#ff8833, #dd0602); background: -moz-linear-gradient(#ff8833, #dd0602); background: -ms-linear-gradient(#ff8833, #dd0602); background: -o-linear-gradient(#ff8833, #dd0602); background: linear-gradient(#ff8833, #dd0602); cursor: pointer; color: #FFFFFF; } button.btn:active, button.btn:focus { color: #FFFFFF; outline: none; }