forked from 11ty/11ty-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styleguide.njk
118 lines (88 loc) · 3.88 KB
/
styleguide.njk
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
---
title: 11ty.dev Style Guide
layout: layouts/docs.njk
---
<h2>Header/Footer</h2>
<h3>Home Header</h3>
<div class="elv-sg-component elv-sg-component-full">
{% set headerClass = "elv-header-default" %}
{% set title = "Home Header" %}
{% include "header.njk" %}
</div>
<h3>Docs Header</h3>
<div class="elv-sg-component elv-sg-component-full">
{% set headerClass = "elv-header-docs" %}
{% set title = "Docs Header" %}
{% include "header.njk" %}
</div>
<h3>Footer Navigation</h3>
<div class="elv-sg-component">
{% include "footer-nav.njk" %}
</div>
<h2>Lists</h2>
<div class="elv-sg-component">
<ul class="list-bare">
<li class="list-bare-item"><a href="/docs/resources/#static-sites">Static Sites</a></li>
<li class="list-bare-item"><a href="/docs/resources/#jamstack">JAMstack</a></li>
</ul>
</div>
<h3>Inline List</h3>
<div class="elv-sg-component">
<ul class="inlinelist">
<li class="inlinelist-item"><a href="/docs/resources/#static-sites">Static Sites</a></li>
<li class="inlinelist-item"><a href="/docs/resources/#jamstack">JAMstack</a></li>
</ul>
</div>
<h3>Number Flags</h3>
<div class="elv-sg-component">
<span class="numberflag">1</span>
<span class="numberflag">2</span>
<span class="numberflag">3</span>
<span class="numberflag">4</span>
<span class="numberflag">5</span>
<span class="numberflag">6</span>
<span class="numberflag">7</span>
<span class="numberflag">8</span>
<span class="numberflag">9</span>
</div>
<h4>Number Flags in Headings</h4>
<div class="elv-sg-component">
<h2><span class="numberflag"><span class="sr-only">Step</span> 1</span> Notice how the border disappears under the flag</h2>
<h3><span class="numberflag"><span class="sr-only">Step</span> 2</span> Do a thing</h3>
<h4><span class="numberflag"><span class="sr-only">Step</span> 3</span> Do a thing</h4>
<h5><span class="numberflag"><span class="sr-only">Step</span> 4</span> Do a thing</h5>
</div>
<h2>Blockquotes</h2>
<div class="elv-sg-component">
<blockquote>“Seriously can't remember enjoying using a Static Site Generator this much. Yes Hugo is rapid, but this is all so logical. It feels like it was designed by someone who has been through lots of pain and success using other SSGs.”—<a href="https://twitter.com/philhawksworth">{% avatarlocalcache "twitter", "philhawksworth" %}Phil Hawksworth</a></blockquote>
</div>
<h2>Buzzwords</h2>
<h3>Inline Buzzwords</h3>
<div class="elv-sg-component">
<h2>This <a href="#" class="buzzword">Buzzword</a> is in a header</h2>
<h3>This <a href="#" class="buzzword">Buzzword</a> is in a header</h3>
<div><a href="#" class="buzzword">Buzzword</a></div>
<p><span class="buzzword">Buzzword</span></p>
</div>
<h3>Buzzword Lists</h3>
<div class="elv-sg-component">
<ul class="buzzword-list">
<li><a href="/docs/resources/#static-sites">Static Sites</a></li>
<li><a href="/docs/resources/#jamstack">JAMstack</a></li>
</ul>
</div>
<h2>Info Block</h2>
<div class="elv-sg-component">
<div class="elv-callout">Default info message with an inline <code>Code block</code></div>
</div>
<div class="elv-sg-component">
<div class="elv-callout elv-callout-warn">Default warning message with an inline <code>Code block</code></div>
</div>
<h3>Sticky info block</h3>
Use the <code>elv-callout-sticky</code> class to affix to the top of the viewport while scrolling.
<!-- <div class="elv-sg-component">
<div class="elv-callout elv-callout-info">This documentation is for an upcoming version of Eleventy. Go to the <a href="https://www.11ty.dev/docs/">latest stable version of Eleventy docs</a> or check out the <a href="https://www.11ty.dev/docs/versions/">full release history.</a></div>
</div>
<div class="elv-sg-component">
<div class="elv-callout elv-callout-warn">This documentation is for an older version. Go to the <a href="https://www.11ty.dev/docs/">newest Eleventy docs</a> or check out the <a href="https://www.11ty.dev/docs/versions/">full release history.</a></div>
</div> -->