You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Primer is the CSS toolkit that powers GitHub's front-end design. It's purposefully limited to common components to provide our developers with the most flexibility, and to keep GitHub uniquely *GitHubby*. It's built with SCSS and available via Bower, so it's easy to include all or part of it within your own project.
Copy file name to clipboardExpand all lines: docs/blankslate.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,13 @@ Wrap some content in the outer `.blankslate` wrapper to give it the blankslate a
23
23
24
24
## With Octicons
25
25
26
-
When it helps the message, include `.mega-octicon`s as the first elements in the blank slate. Be sure to use relevant icons.
26
+
When it helps the message, include (relevant) icons in your blank slate. Add `.blankslate-icon` to any `.mega-octicon`s as the first elements in the blankslate, like so.
@@ -172,24 +154,31 @@ Use the `.select-sm` class to resize both default and custom `<select>`s to matc
172
154
</select>
173
155
</dd>
174
156
</dl>
157
+
158
+
<dlclass="form-group">
159
+
<dt><label>Example Textarea</label></dt>
160
+
<dd>
161
+
<textarea class="form-control"></textarea>
162
+
</dd>
163
+
</dl>
175
164
</form>
176
165
{% endexample %}
177
166
178
167
## Form group validation
179
168
180
-
Convey errors and warnings for form groups. Add the appropriate class—either `.errored` or `.warn`—to the `<dl class="form">` to start. Then, house your error messaging in an additional `<dd>` with either `.error` or `.warning`.
169
+
Convey errors and warnings for form groups. Add the appropriate class—either `.errored` or `.warn`—to the `<dl class="form-group">` to start. Then, house your error messaging in an additional `<dd>` with either `.error` or `.warning`.
0 commit comments