This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
forms.css
45 lines (34 loc) · 1.64 KB
/
forms.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
/* --------------------------------------------------------------
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
-------------------------------------------------------------- */
label { font-weight: bold; }
/* Fieldsets */
fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
legend { font-weight: bold; font-size:1.2em; }
/* Text fields */
input.text, input.title { width: 300px; margin:0.5em 0.5em 0.5em 0; }
input.text, input.title { border:1px solid #bbb; background:#f6f6f6; padding:5px; }
input.text:focus,
input.title:focus { border:1px solid #999; background:#fff; }
input.title { font-size:1.5em; }
/* Textareas */
textarea { width: 400px; height: 250px; margin:0.5em 0.5em 0.5em 0; }
textarea { border:1px solid #bbb; background:#eee; padding:5px; }
textarea:focus { border:1px solid #999; background:#fff; }
/* Select fields */
select { border:1px solid #ccc; background:#f6f6f6; width:200px; }
select:focus { border:1px solid #999; background:#fff; }
/* Success, error & notice boxes for messages and errors. */
.error,
.notice,
.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
.error { background: #FBE3E4; color: #D12F19; border-color: #FBC2C4; }
.notice { background: #FFF6BF; color: #817134; border-color: #FFD324; }
.success { background: #E6EFC2; color: #529214; border-color: #C6D880; }
.error a { color: #D12F19; }
.notice a { color: #817134; }
.success a { color: #529214; }