-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathfigure.html
158 lines (144 loc) · 9.88 KB
/
figure.html
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<title>Accessibility Library</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700,800|Roboto:400,500,700" rel="stylesheet"/>
<link type="text/css" href="assets/css/theme.css" rel="stylesheet"/>
<link type="text/css" href="assets/css/main.css" rel="stylesheet"/>
<link type="text/css" href="assets/css/figure.css" rel="stylesheet"/>
</head>
<body>
<div class="page">
<header>
<a href="/" class="title text-dark">Accessibility Library</a>
<div class="lvivcss-logo">
<img src="./assets/images/lviv-css-logo.png" alt="Lviv CSS logo image" height="24"/>
</div>
</header>
<nav>
<ul>
<li><a href="#aria-attributes">Aria attributes</a></li>
<li><a href="#live-example">Live example</a></li>
<li><a href="#code-sample">Code sample</a></li>
</ul>
</nav>
<main>
<h1>Figure</h1>
<p>
Used for element grouping, for example, images and captions.
</p>
<h2 id="aria-attributes" class="mt-sm">Aria attributes</h2>
<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>aria-label</code></td>
<td>If there is no element containing text that could serve as a label, you can add the label directly
as a value on the aria-label on the element with the figure role or on the <figure> element.
</td>
</tr>
<tr>
<td><code>aria-describedby</code></td>
<td>The id of an element containing reference text serving as a caption.</td>
</tr>
<tr>
<td><code>aria-labeledby</code></td>
<td>The id of an element containing text serving as a label.</td>
</tr>
</table>
<h2 id="live-example" class="mt-sm">Live Example</h2>
<section>
<article class="figure-article">
<figure class="figure-card">
<p><img class="figure-image" src="./assets/images/lviv-css-logo.png" alt="figure 1 image"></p>
<figcaption class="figure-description">Description for figure 1</figcaption>
</figure>
<figure class="figure-card">
<p><img class="figure-image" src="./assets/images/lviv-css-logo.png" alt="figure 2 image"></p>
<figcaption class="figure-description">Description for figure 2</figcaption>
</figure>
</article>
</section>
<h2 id="code-sample" class="mt-sm">Code sample</h2>
<section>
<pre style="color:#000000;background:#ffffff;"><span style="color:#a65700; "><</span><span
style="color:#800000; font-weight:bold; ">article</span><span style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span
style="color:#800000; font-weight:bold; ">figure</span><span style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span style="color:#5f5035; ">p</span><span
style="color:#a65700; ">></span><span style="color:#a65700; "><</span><span
style="color:#5f5035; ">img</span> <span style="color:#274796; ">src</span><span
style="color:#808030; ">=</span><span style="color:#800000; ">"</span><span
style="color:#0000e6; ">example.png</span><span style="color:#800000; ">"</span> <span
style="color:#274796; ">alt</span><span style="color:#808030; ">=</span><span
style="color:#800000; ">"</span><span style="color:#0000e6; ">figure 1 image</span><span
style="color:#800000; ">"</span><span style="color:#a65700; ">></span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; "><</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">/</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">p</span><span
style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span style="color:#5f5035; ">figcaption</span><span
style="color:#a65700; ">></span>Description for figure 1<span
style="color:#a65700; "></</span><span style="color:#5f5035; ">figcaption</span><span
style="color:#a65700; ">></span>
<span style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; "><</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">/</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">f</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">i</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">g</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">u</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">r</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">e</span><span
style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span style="color:#5f5035; ">figure</span><span
style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span style="color:#5f5035; ">p</span><span
style="color:#a65700; ">></span><span style="color:#a65700; "><</span><span
style="color:#5f5035; ">img</span> <span style="color:#274796; ">src</span><span
style="color:#808030; ">=</span><span style="color:#800000; ">"</span><span
style="color:#0000e6; ">example.png</span><span style="color:#800000; ">"</span> <span
style="color:#274796; ">alt</span><span style="color:#808030; ">=</span><span
style="color:#800000; ">"</span><span style="color:#0000e6; ">figure 2 image</span><span
style="color:#800000; ">"</span><span style="color:#a65700; ">></span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; "><</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">/</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">p</span><span
style="color:#a65700; ">></span>
<span style="color:#a65700; "><</span><span style="color:#5f5035; ">figcaption</span><span
style="color:#a65700; ">></span>description for figure 2<span
style="color:#a65700; "></</span><span style="color:#5f5035; ">figcaption</span><span
style="color:#a65700; ">></span>
<span style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; "><</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">/</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">f</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">i</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">g</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">u</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">r</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">e</span><span
style="color:#a65700; ">></span>
<span style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; "><</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">/</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">a</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">r</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">t</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">i</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">c</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">l</span><span
style="color:#ffffff; background:#dd0000; font-weight:bold; font-style:italic; ">e</span><span
style="color:#a65700; ">></span>
</pre>
</section>
</main>
<footer>
Accessibility Library created by
<mark>Petro Kryvolap</mark>
on LvivCSS'19.
</footer>
</div>
</body>
</html>