-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathforms.css
More file actions
124 lines (105 loc) · 2.81 KB
/
Copy pathforms.css
File metadata and controls
124 lines (105 loc) · 2.81 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
# Forms
```
<form class="form">
<label>Username</label>
<input type="text" value="thomasdavis" />
<label>Description</label>
<textarea class="fixie"></textarea>
<label>Company</label>
<input type="text" value="API Engine" />
<label>Boolean options</label>
<div class="button-group toggle" id="bool-field">
<input name="bool-field" type="hidden" value="1" />
<button type="button" class="btn btn-right-join btn-green" value="1">Yes</button> <!-- the btn-regular class is swapped for btn-green by JS -->
<button type="button" class="btn btn-left-join btn-regular" value="0">No</button>
</div>
<label class="checkbox"><input type="checkbox" name="a-checkbox" /> Here is a checkbox option</label>
</form>
```
*/
.form label {
display: block;
margin-bottom: 15px;
font-size: 14px;
color: #171717;
}
.form input, .form textarea {
display: block;
margin-bottom: 30px;
outline: 0;
width: 550px;
padding: 10px;
border: 1px solid #ccc;
color: #4d4d4d;
font-size: 14px;
line-height: 18px;
}
.form input.error, .form textarea.error {
background: #F99; /* :TODO: */
}
textarea::-webkit-input-placeholder,
textarea:-moz-placeholder,
input::-webkit-input-placeholder,
input:-moz-placeholder {
color:#f00;
font-family: 'Arial';
}
.form .favicon {
margin-right: 5px;
width: 16px;
}
label.checkbox { font-weight: bold; }
label.checkbox input {
float: none;
display: inline;
width: auto;
line-height: 18px;
padding-right: 0.5em;
margin-bottom: 0;
}
.profile-pic-input {
float: right;
}
/*
# Error messages, notes and so forth
```
<form class="form">
<div class="form-errors">
<!-- styling applied to show in demo only -->
<label class="form-error" for="errored-field" style="display: block;">OH GNOES a proglemb happens</label>
<label class="form-error" for="errored-field2" style="display: block;">This one is bad too</label>
</div>
<div class="form-success">
<label class="form-ok" style="display: block;">Account details updated successfully.</label>
</div>
<input type="text" value="I'm Sad" id="errored-field" name="errored-field" class="error" />
<input type="text" value="I'm OK" />
<input type="text" value="I'm Mad" id="errored-field2" name="errored-2field2" class="error" />
<p class="form-description">You may be interested in knowing this...</p>
</form>
```
*/
.form-description {
padding: 0;
margin: 0;
font-size: 14px;
margin-bottom: 15px;
}
.modal .form-description, .modal .modal-form-errors { /* clamp form paragraph width in modal popups */
max-width: 500px;
}
.form-submit {
margin-bottom: 30px;
}
.form .form-error, .form .form-ok { /* :TODO: */
display: none;
color: #D00;
font-weight: bolder;
margin-top: -1em;
}
.form .form-ok {
color: #0D0;
}
/* Overrides for special forms */
.newapi .modal-form-errors, .newapi input, .newapi textarea { width: 250px; }