Skip to content

Commit 6e2fd03

Browse files
author
Ethan Muller
committed
feat: nicer typography for documentation pages
1 parent 01cc977 commit 6e2fd03

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

src/markup/layout/page.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<title>{{ title }}</title>
1010

11-
<link href="/css/base.css" rel="stylesheet">
11+
{{> patterns.drizzle.partials.stylesheet-link-tags}}
1212
</head>
1313
<body class="{{body-class}}">
1414
<a class="c-btn c-btn--primary c-skip-to-content" href="#main-content">Skip to main content</a>

src/markup/pages/documentation/grid.hbs

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ title: Grid
33
layout: drizzle
44
---
55

6-
<h1>{{title}}</h1>
6+
<h1 class="drizzle-heading-1">{{title}}</h1>
77

8-
<p>The grid system we are using for page layouts is based on a 12 column grid with 20px gutters between each column. Grid classes can be nested if needed for more complex layouts.</p>
8+
<p class="drizzle-p">The grid system we are using for page layouts is based on a 12 column grid with 20px gutters between each column. Grid classes can be nested if needed for more complex layouts.</p>
99

10-
<h2>Simple Grid</h2>
10+
<h2 class="drizzle-heading-2">Simple Grid</h2>
1111

12-
<p>Most grid layouts are going to use either a two, three, or four column layout. The basic grid system includes all of the classes needed to create a simple layout with class names that are spelled out and easy to read.</p>
12+
<p class="drizzle-p">Most grid layouts are going to use either a two, three, or four column layout. The basic grid system includes all of the classes needed to create a simple layout with class names that are spelled out and easy to read.</p>
1313

1414
<div class="o-grid">
1515
<div class="o-grid__full drizzle-grid-example"></div>
@@ -94,9 +94,9 @@ layout: drizzle
9494
</tr>
9595
</table>
9696

97-
<h2 class="c-heading-2 u-margin-top-xxl">Responsive Grid</h2>
97+
<h2 class="drizzle-heading-2 u-margin-top-xxl">Responsive Grid</h2>
9898

99-
<p>To adjust a the width of a column at different breakpoints you can add <code class="language-css">@sm</code>, <code class="language-css">@md</code>, <code class="language-css">@lg</code>, <code class="language-css">@xl</code> after any of the grid classes:</p>
99+
<p class="drizzle-p">To adjust a the width of a column at different breakpoints you can add <code class="language-css">@sm</code>, <code class="language-css">@md</code>, <code class="language-css">@lg</code>, <code class="language-css">@xl</code> after any of the grid classes:</p>
100100

101101
<div class="o-grid">
102102
<div class="o-grid__half o-grid__third@sm drizzle-grid-example"></div>
@@ -122,9 +122,9 @@ layout: drizzle
122122
</code>
123123
</pre>
124124

125-
<h2 class="c-heading-2 u-margin-top-xxl">Extended Grid</h2>
125+
<h2 class="drizzle-heading-2 u-margin-top-xxl">Extended Grid</h2>
126126

127-
<p>In addition to the simple grid system there is an extended grid system that allows for any combination of a 12 column grid system. The extended grid system can also be used responsively in the same way that as the gimple grid system.</p>
127+
<p class="drizzle-p">In addition to the simple grid system there is an extended grid system that allows for any combination of a 12 column grid system. The extended grid system can also be used responsively in the same way that as the gimple grid system.</p>
128128

129129

130130
<div class="o-grid">

src/markup/pages/documentation/page-width.hbs

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ layout: page
44
---
55

66
<div class="o-width-limiter u-padding-top-xl u-margin-bottom-xxl">
7-
<h1>{{title}}</h1>
7+
<h1 class="drizzle-heading-1">{{title}}</h1>
88
</div>
99

1010
<div class="u-margin-bottom-xxl">
11-
<p>By default, text will touch the edge of the browser, like this.</p>
11+
<p class="drizzle-p">By default, text will touch the edge of the browser, like this.</p>
1212
</div>
1313

1414
<div class="o-width-limiter u-margin-bottom-xxl">
1515

16-
<p>The <code>o-width-limiter</code> object has two primary functions:</p>
16+
<p class="drizzle-p">The <code>o-width-limiter</code> object has two primary functions:</p>
1717

1818
<ol>
19-
<li><strong>Apply horizontal padding to create a page margin.</strong> When the screen is small, this prevents text from touching the edge of the browser.</li>
20-
<li><strong>Apply a max-width, and center the element when the max width is reached.</strong> When the screen is large, this element will be horizontally centered within its parent. This often means the element is centered within the whole page.</li>
19+
<li class="drizzle-p"><strong>Apply horizontal padding to create a page margin.</strong> When the screen is small, this prevents text from touching the edge of the browser.</li>
20+
<li class="drizzle-p"><strong>Apply a max-width, and center the element when the max width is reached.</strong> When the screen is large, this element will be horizontally centered within its parent. This often means the element is centered within the whole page.</li>
2121
</ol>
2222

2323
</div>
2424

2525
<div class="o-width-limiter o-width-limiter--no-page-margin u-margin-bottom-xxl">
26-
<p>If you want to use a <code>o-width-limiter</code> but don't want the included page margin, add an additional <code>o-width-limiter--no-page-margin</code> modifier class.</p>
26+
<p class="drizzle-p">If you want to use a <code>o-width-limiter</code> but don't want the included page margin, add an additional <code>o-width-limiter--no-page-margin</code> modifier class.</p>
2727
</div>

src/markup/pages/documentation/spacing.hbs

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ title: Spacing
33
layout: drizzle
44
---
55

6-
<h1>{{title}}</h1>
6+
<h1 class="drizzle-heading-1">{{title}}</h1>
77

8-
<p>
8+
<p class="drizzle-p">
99
Spacing classes can be used to stitch together components. This is useful
1010
because if you build the spacing before and after a component into the
1111
component itself, it's less likely to be reusable in a different context.
1212
</p>
1313

1414
{{#with (data 'spacing')}}
1515

16-
<h2 class="c-heading-2 u-margin-top-xxl">Margin</h2>
16+
<h2 class="drizzle-heading-2 u-margin-top-xxl">Margin</h2>
1717

1818
<table>
1919
<thead>
@@ -36,7 +36,7 @@ layout: drizzle
3636
</tbody>
3737
</table>
3838

39-
<h2 class="c-heading-2 u-margin-top-xxl">Padding</h2>
39+
<h2 class="drizzle-heading-2 u-margin-top-xxl">Padding</h2>
4040
<table>
4141
<thead>
4242
<tr>
@@ -60,8 +60,8 @@ layout: drizzle
6060
{{/with}}
6161

6262

63-
<h2 class="c-heading-2 u-margin-top-xxl">Responsive Spacing</h2>
64-
<p>To adjust margin and padding at different breakpoints you can add <code class="language-css">@sm</code>, <code class="language-css">@md</code>, <code class="language-css">@lg</code>, <code class="language-css">@xl</code> after any of the spacing classes:</p>
63+
<h2 class="drizzle-heading-2 u-margin-top-xxl">Responsive Spacing</h2>
64+
<p class="drizzle-p">To adjust margin and padding at different breakpoints you can add <code class="language-css">@sm</code>, <code class="language-css">@md</code>, <code class="language-css">@lg</code>, <code class="language-css">@xl</code> after any of the spacing classes:</p>
6565

6666
<div>
6767
<div class="u-margin-bottom-sm u-margin-bottom-md@md u-margin-bottom-lg@lg" style="width: 100%; height: 100px; background: #0065A0;"></div>

0 commit comments

Comments
 (0)