/* -------------------------------------------------------------- forms.css * Sets up some default styling for forms * Gives you classes to enhance your forms Usage: * For text fields, use class .title or .text * For inline forms, use .inline (even when using columns) -------------------------------------------------------------- */ /* A special hack is included for IE8 since it does not apply padding correctly on fieldsets */ .mod_content_99 label { font-weight: bold; } .mod_content_99 fieldset { padding:0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; border: 1px solid #444; } .mod_content_99 legend { font-weight: bold; font-size:1.2em; margin-top:-0.2em; margin-bottom:1em; } .mod_content_99 fieldset, .mod_content_99 #IE8#HACK { padding-top:1.4em; } .mod_content_99 legend, .mod_content_99 #IE8#HACK { margin-top:0; margin-bottom:0; } /* Form fields -------------------------------------------------------------- */ /* Attribute selectors are used to differentiate the different types of input elements, but to support old browsers, you will have to add classes for each one. ".title" simply creates a large text field, this is purely for looks. */ .mod_content_99 input[type=text], .mod_content_99 input[type=password], .mod_content_99 input[type=url], .mod_content_99 input[type=email], .mod_content_99 input.text, .mod_content_99 input.title, .mod_content_99 textarea { background-color:#d6cdb8; border:1px solid #222; color:#000; } .mod_content_99 input[type=text]:focus, .mod_content_99 input[type=password]:focus, .mod_content_99 input[type=url]:focus, .mod_content_99 input[type=email]:focus, .mod_content_99 input.text:focus, .mod_content_99 input.title:focus, .mod_content_99 textarea:focus { border-color:#666; } .mod_content_99 select { background-color:#fff; border-width:1px; border-style:solid; } .mod_content_99 input[type=text], .mod_content_99 input[type=password], .mod_content_99 input[type=url], .mod_content_99 input[type=email], .mod_content_99 input.text, .mod_content_99 input.title, .mod_content_99 textarea, .mod_content_99 select { margin:0.5em 0; } .mod_content_99 input.text, .mod_content_99 input.title { width: 300px; padding:5px; } .mod_content_99 input.title { font-size:1.5em; } .mod_content_99 textarea { width: 390px; height: 250px; padding:5px; } /* This is to be used on forms where a variety of elements are placed side-by-side. Use the p tag to denote a line. */ .mod_content_99 form.inline { line-height:3; } .mod_content_99 form.inline p { margin-bottom:0; } /* Success, info, notice and error/alert boxes -------------------------------------------------------------- */ .mod_content_99 .error, .mod_content_99 .alert, .mod_content_99 .notice, .mod_content_99 .success, .mod_content_99 .info { padding: 0.8em; margin-bottom: 1em; border: 2px solid #ddd; } .mod_content_99 .error, .mod_content_99 .alert { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; } .mod_content_99 .notice { background: #fff6bf; color: #514721; border-color: #ffd324; } .mod_content_99 .success { background: #e6efc2; color: #264409; border-color: #c6d880; } .mod_content_99 .info { background: #d5edf8; color: #205791; border-color: #92cae4; } .mod_content_99 .error a, .mod_content_99 .alert a { color: #8a1f11; } .mod_content_99 .notice a { color: #514721; } .mod_content_99 .success a { color: #264409; } .mod_content_99 .info a { color: #205791; }