Skip to content

Commit 653e59f

Browse files
committed
fix ancestors list spacing
1 parent 720ce6d commit 653e59f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/rdoc/generator/template/rorvswild/_sidebar_parent.rhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<% for ancestor in (ancestors = klass.super_classes.reverse << klass) %>
66
<% if ancestor.is_a?(String) %>
77
<li>
8-
<%= ancestor %>
8+
<span><%= ancestor %></span>
99
<ul class="link-list" role="directory">
1010
<% elsif ancestor.is_a?(RDoc::NormalClass) %>
1111
<li>

lib/rdoc/generator/template/rorvswild/css/rdoc.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ nav footer a:any-link {
407407
padding: 0.25em 0.75rem;
408408
}
409409

410-
.nav-section li a {
410+
.nav-section li a,
411+
.nav-section li > span {
411412
padding: 0 0.25rem;
412413
display: inline-block;
413414
}

0 commit comments

Comments
 (0)