diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-10 17:32:53 +0000 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-03-10 17:32:53 +0000 |
| commit | de708ce3efec2ab70b6b77781957766ae47f9068 (patch) | |
| tree | 6b2b3b43caea782d894ce9874e9b6632f14ef7ff /budget/static/blueprint/src/forms.css | |
| parent | fc569241bea388de32b38aa907bf2e527cd5039b (diff) | |
| download | ihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.zip ihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.tar.gz ihatemoney-mirror-de708ce3efec2ab70b6b77781957766ae47f9068.tar.bz2 | |
reshape the folder structure. Add conf files
Diffstat (limited to 'budget/static/blueprint/src/forms.css')
| -rw-r--r-- | budget/static/blueprint/src/forms.css | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/budget/static/blueprint/src/forms.css b/budget/static/blueprint/src/forms.css new file mode 100644 index 0000000..4dc4bc2 --- /dev/null +++ b/budget/static/blueprint/src/forms.css @@ -0,0 +1,81 @@ +/* -------------------------------------------------------------- + + 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 + */ +label { font-weight: bold; } +fieldset { padding:0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; } +legend { font-weight: bold; font-size:1.2em; margin-top:-0.2em; margin-bottom:1em; } + +fieldset, #IE8#HACK { padding-top:1.4em; } +legend, #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. + */ +input[type=text], input[type=password], +input.text, input.title, +textarea { + background-color:#fff; + border:1px solid #bbb; +} +input[type=text]:focus, input[type=password]:focus, +input.text:focus, input.title:focus, +textarea:focus { + border-color:#666; +} +select { background-color:#fff; border-width:1px; border-style:solid; } + +input[type=text], input[type=password], +input.text, input.title, +textarea, select { + margin:0.5em 0; +} + +input.text, +input.title { width: 300px; padding:5px; } +input.title { font-size:1.5em; } +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. + */ +form.inline { line-height:3; } +form.inline p { margin-bottom:0; } + + +/* Success, info, notice and error/alert boxes +-------------------------------------------------------------- */ + +.error, +.alert, +.notice, +.success, +.info { padding: 0.8em; margin-bottom: 1em; border: 2px solid #ddd; } + +.error, .alert { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; } +.notice { background: #fff6bf; color: #514721; border-color: #ffd324; } +.success { background: #e6efc2; color: #264409; border-color: #c6d880; } +.info { background: #d5edf8; color: #205791; border-color: #92cae4; } +.error a, .alert a { color: #8a1f11; } +.notice a { color: #514721; } +.success a { color: #264409; } +.info a { color: #205791; } |
