Skip to content

Commit

Permalink
Fix bugs in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 7, 2023
1 parent 2ffaa81 commit 11dda90
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 28 deletions.
11 changes: 3 additions & 8 deletions assets/css/content/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
.content-inner .section-heading i {
font-size: 16px;
margin-top: .1em;
margin-left: -24px;
margin-left: -21px;
opacity: 0;
}

Expand All @@ -153,14 +153,9 @@ blockquote .section-heading i {
}

@media screen and (max-width: 768px) {
.content-inner .section-heading a {
justify-content: space-between;
}

.content-inner .section-heading i {
order: 1;
margin-left: 24px;
padding-right: 0;
margin-left: -16px;
margin-right: -5px;
}
}

Expand Down
6 changes: 0 additions & 6 deletions formatters/html/dist/html-elixir-QURHOVA7.css

This file was deleted.

6 changes: 0 additions & 6 deletions formatters/html/dist/html-erlang-47VX4P4G.css

This file was deleted.

6 changes: 2 additions & 4 deletions lib/ex_doc/formatter/epub/templates/module_template.eex
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Anchor for this section</span>
Summary
</a>
Summary
</h1>
<%= for {name, nodes} <- summary, do: H.summary_template(name, nodes) %>
</section>
Expand All @@ -33,9 +32,8 @@
<h1 class="section-heading">
<a class="hover-link" href="#<%= key %>">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Anchor for this section</span>
<%= name %>
</a>
<%= name %>
</h1>
<div class="<%= key %>-list">
<%= for node <- nodes, do: H.detail_template(node, module) %>
Expand Down
6 changes: 2 additions & 4 deletions lib/ex_doc/formatter/html/templates/module_template.eex
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this section</span>
Summary
</a>
Summary
</h1>
<%= for {name, nodes} <- summary, do: summary_template(name, nodes) %>
</section>
Expand All @@ -46,9 +45,8 @@
<h1 class="section-heading">
<a class="hover-link" href="#<%= key %>">
<i class="ri-link-m" aria-hidden="true"></i>
<span class="sr-only">Link to this section</span>
<%= name %>
</a>
<%= name %>
</h1>
<div class="<%= key %>-list">
<%= for node <- nodes, do: detail_template(node, module) %>
Expand Down

0 comments on commit 11dda90

Please sign in to comment.