|
1 | 1 | <%= head_template(config, %{title: module.title, type: module.type}) %>
|
2 | 2 | <%= sidebar_template(config, nodes_map) %>
|
3 | 3 |
|
4 |
| - <h1> |
5 |
| - <%= module_title(module) %> <small class="app-vsn">(<%= config.project %> v<%= config.version %>)</small> |
| 4 | + <div class="section-heading"> |
| 5 | + <h1> |
| 6 | + <%= module_title(module) %> <small class="app-vsn">(<%= config.project %> v<%= config.version %>)</small> |
| 7 | + </h1> |
6 | 8 | <%= if module.source_url do %>
|
7 | 9 | <a href="<%= module.source_url %>" title="View Source" class="view-source" rel="help">
|
8 | 10 | <span class="icon-code" aria-hidden="true"></span>
|
9 | 11 | <span class="sr-only">View Source</span>
|
10 | 12 | </a>
|
11 | 13 | <% end %>
|
12 |
| - </h1> |
| 14 | + </div> |
13 | 15 |
|
14 | 16 | <%= if deprecated = module.deprecated do %>
|
15 | 17 | <div class="deprecated">
|
|
25 | 27 |
|
26 | 28 | <%= if Enum.any?(summary, fn {_, v} -> v != [] end) do %>
|
27 | 29 | <section id="summary" class="details-list">
|
28 |
| - <h1 class="section-heading"> |
| 30 | + <div class="section-heading"> |
29 | 31 | <a class="hover-link" href="#summary">
|
30 | 32 | <span class="icon-link" aria-hidden="true"></span>
|
31 | 33 | <span class="sr-only">Link to this section</span>
|
32 | 34 | </a>
|
33 |
| - Summary |
34 |
| - </h1> |
35 |
| - <%= for {name, nodes} <- summary, do: summary_template(name, nodes) %> |
| 35 | + <h1> |
| 36 | + Summary |
| 37 | + </h1> |
| 38 | + <%= for {name, nodes} <- summary, do: summary_template(name, nodes) %> |
| 39 | + </div> |
36 | 40 | </section>
|
37 | 41 | <% end %>
|
38 | 42 |
|
39 | 43 | <%= for {name, nodes} <- summary, nodes != [], key = HTML.text_to_id(name) do %>
|
40 | 44 | <section id="<%= key %>" class="details-list">
|
41 |
| - <h1 class="section-heading"> |
| 45 | + <div class="section-heading"> |
42 | 46 | <a class="hover-link" href="#<%= key %>">
|
43 | 47 | <span class="icon-link" aria-hidden="true"></span>
|
44 | 48 | <span class="sr-only">Link to this section</span>
|
45 | 49 | </a>
|
46 |
| - <%= name %> |
47 |
| - </h1> |
| 50 | + |
| 51 | + <h1> |
| 52 | + <%= name %> |
| 53 | + </h1> |
| 54 | + </div> |
| 55 | + |
48 | 56 | <div class="<%= key %>-list">
|
49 | 57 | <%= for node <- nodes, do: detail_template(node, module) %>
|
50 | 58 | </div>
|
|
0 commit comments