Skip to content

Commit d4a90a1

Browse files
author
Catherine Siller
authored
Merge pull request #342 from rackerlabs/css-audit
chore(wip): audit css
2 parents fecbcbd + d8b226c commit d4a90a1

File tree

50 files changed

+185
-180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+185
-180
lines changed

docs/_templates/component.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{% if page.also %}
2222
<a href="#see-also">See Also</a>
2323
{% endif %}
24-
<hr />
24+
<hr class="hxDivider" />
2525
<a class="top-link" href="#top">Back to Top</a>
2626
</nav>
2727
</aside>

docs/_templates/element.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
{% if page.also %}
5858
<a href="#see-also">See Also</a>
5959
{% endif %}
60-
<hr />
60+
<hr class="hxDivider" />
6161
<a class="top-link" href="#top">Back to Top</a>
6262
</nav>
6363
</aside>

docs/_templates/partials/see-also.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section>
22
<h2 id="see-also">See Also</h2>
3-
<ul>
3+
<ul class="hxList">
44
{% for href,label in page.also %}
55
<li><a href="{{href}}">{{label}}</a></li>
66
{% endfor %}

docs/_templates/partials/sidebar.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
{% if page.also %}
55
<a href="#see-also">See Also</a>
66
{% endif %}
7-
<hr />
7+
<hr class="hxDivider" />
88
<a class="top-link" href="#top">Back to Top</a>
99
</nav>

docs/components/box/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2 id="containers">Containers</h2>
2020
<p>
2121
Containers can be defined in one of two ways:
2222
</p>
23-
<ol>
23+
<ol class="hxList">
2424
<li>Using an <code>&lt;hx-div&gt;</code> element <em class="hxSubBody">(recommended)</em></li>
2525
<li>Adding the <code>.hxBox</code> CSS class to any block element</li>
2626
</ol>

docs/components/buttons/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 id="basic-button">Basic Button</h2>
2121
Define a basic button by adding the <code>.hxBtn</code>
2222
CSS class to any of the following elements:
2323
</p>
24-
<ul>
24+
<ul class="hxList">
2525
<li><code>&lt;button&gt;</code></li>
2626
<li><code>&lt;a href="..."&gt;</code></li>
2727
<li><code>&lt;input type="button"&gt;</code></li>

docs/components/grid/index.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<section><!-- rows -->
2222
<h2 id="rows">Rows</h2>
23-
<ul>
23+
<ul class="hxList">
2424
<li>
2525
Rows are containers that allow you to divide their
2626
<em>width</em> amongst their children.
@@ -61,7 +61,7 @@ <h2 id="rows">Rows</h2>
6161

6262
<section><!-- columns -->
6363
<h2 id="columns">Columns</h2>
64-
<ul>
64+
<ul class="hxList">
6565
<li>
6666
Columns are containers that allow you to divide their
6767
<em>height</em> amongst their children.
@@ -118,7 +118,7 @@ <h2 id="column-width">Column Width</h2>
118118
Use the <code>.hxSpan-{N}</code> modifier (1 &le; N &le; 12) to create
119119
columns that are a fraction of a 12-column row width.
120120
</p>
121-
<ul>
121+
<ul class="hxList">
122122
<li><code>.hxSpan-{N}-{size}</code> responsive classes are available.</li>
123123
<li><code>.hxSpan-{N}</code> is shorthand for <code>.hxSpan-{N}-xs</code></li>
124124
</ul>
@@ -195,7 +195,7 @@ <h2 id="column-offset">Column Offset</h2>
195195
You can use the <code>.hxOffset-{N}</code> class (1 &le; N &le; 11)
196196
to offset your column from the start of the row.
197197
</p>
198-
<ul>
198+
<ul class="hxList">
199199
<li>
200200
<code>.hxOffset-{N}-{size}</code> responsive classes are available
201201
</li>
@@ -254,7 +254,7 @@ <h2 id="column-ordering">Column Ordering</h2>
254254
Use the <code>.hxOrder-{N}</code> class (1 &le; N &le; 12) to reorder
255255
your columns.
256256
</p>
257-
<ul>
257+
<ul class="hxList">
258258
<li>
259259
<code>.hxOrder-{N}-{size}</code> responsive classes are available
260260
</li>
@@ -294,7 +294,7 @@ <h2 id="column-ordering">Column Ordering</h2>
294294

295295
<section><!-- responsive options -->
296296
<h2 id="responsive-options">Responsive Options</h2>
297-
<ul>
297+
<ul class="hxList">
298298
<li>All column modifiers support adding an optional breakpoint.</li>
299299
<li>
300300
Omitting the breakpoint will default to <code>xs</code>
@@ -396,7 +396,7 @@ <h2 id="column-wrapping">Column Wrapping</h2>
396396
<p>
397397
The following example should arrange the content into:
398398
</p>
399-
<ul>
399+
<ul class="hxList">
400400
<li>3 columns on small screens</li>
401401
<li>4 columns on medium screens</li>
402402
<li>6 columns on all other sizes</li>
@@ -500,7 +500,7 @@ <h2 id="styling-containers">Styling Containers</h2>
500500
<hx-alert type="warning" status="warning" static>
501501
Do not attempt to style rows or columns directly.
502502
</hx-alert>
503-
<ul>
503+
<ul class="hxList">
504504
<li>Rows have margins set to align the outer columns with surrounding content.</li>
505505
<li>Columns in a row have padding applied to them to simulate gutters.</li>
506506
<li>Wrap your content in a <code>&lt;div&gt;</code> to apply custom CSS.</li>
@@ -560,7 +560,7 @@ <h2 id="styling-containers">Styling Containers</h2>
560560

561561
<section><!-- going gutterless -->
562562
<h2 id="going-gutterless">Going Gutterless</h2>
563-
<ul>
563+
<ul class="hxList">
564564
<li>
565565
Add the <code>.hxGutterless</code> CSS class to your row container
566566
to remove gutters from its immediate children.

docs/components/layouts/horizontal-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</nav>
3131
<h1>Primary Panel</h1>
3232

33-
<ul>
33+
<ul class="hxList">
3434
<li>
3535
Horizontal layout enables two variable width panels, entitled
3636
"primary" and "secondary", to operate adjacent to one another.

docs/components/layouts/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2 id="prerequisites">Prerequisites</h2>
107107
To get the most out of this documentation, developers are
108108
expected to:
109109
</p>
110-
<ol>
110+
<ol class="hxList">
111111
<li>
112112
Review the instructions in the
113113
<a href="guides/getting-started">Getting Started</a> guide.
@@ -242,7 +242,7 @@ <h2 id="document-body">Document Body</h2>
242242
Add one of the following CSS classes to the <code>&lt;body&gt;</code> element
243243
to begin with pre-defined layout styles.
244244
</p>
245-
<ul>
245+
<ul class="hxList">
246246
<li><code>hxVertical</code> for a vertical layout</li>
247247
<li><code>hxHorizontal</code> for a horizontal layout</li>
248248
</ul>
@@ -254,7 +254,7 @@ <h2 id="app-container">App Container</h2>
254254
The app container serves as the mounting point
255255
for your single-page application.
256256
</p>
257-
<ul>
257+
<ul class="hxList">
258258
<li>It must have an ID of <code>app</code>.</li>
259259
<li>It can be any block element.</li>
260260
</ul>
@@ -295,7 +295,7 @@ <h2 id="stage-area">Stage</h2>
295295
that use virtual DOM technologies (i.e., hyperscript). It can be divided
296296
into three areas:
297297
</p>
298-
<ol>
298+
<ol class="hxList">
299299
<li><a href="#nav-area">Nav</a> (optional)</li>
300300
<li><a href="#main-content">Main Content</a></li>
301301
<li>left or right <a href="#side-rail">Side Rail</a> (optional)</li>
@@ -335,7 +335,7 @@ <h2 id="nav-area">Nav</h2>
335335
<p>
336336
The nav area houses hyperlinks to pages within your application.
337337
</p>
338-
<ul>
338+
<ul class="hxList">
339339
<li>
340340
It must have an ID of <code>nav</code>.
341341
</li>
@@ -363,7 +363,7 @@ <h2 id="main-content">Main Content</h2>
363363
<p>
364364
The main content area houses primary page content.
365365
</p>
366-
<ul>
366+
<ul class="hxList">
367367
<li>
368368
It must have an ID of <code>content</code>.
369369
</li>
@@ -401,7 +401,7 @@ <h2 id="side-rail">Side Rail</h2>
401401
<p>
402402
The side rail houses secondary page content.
403403
</p>
404-
<ul>
404+
<ul class="hxList">
405405
<li>
406406
Use an <code>&lt;aside&gt;</code> element to provide the best support
407407
for accessible user agents.

docs/components/layouts/vertical-layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<h1>Main Content</h1>
3131

32-
<ul>
32+
<ul class="hxList">
3333
<li>
3434
Footer will be pushed off viewport by lengthy content.
3535
</li>
@@ -52,7 +52,7 @@ <h1>Main Content</h1>
5252

5353
<aside class="hxSiderail hxBox hxMd">
5454
<h2>Side Rail</h2>
55-
<ul>
55+
<ul class="hxList">
5656
<li>
5757
A side rail may appear before or after main content.
5858
</li>

0 commit comments

Comments
 (0)