Skip to content

Commit acaea8b

Browse files
committed
Add logo hover state, enlarge menu toggle icon
1 parent 9a0bd71 commit acaea8b

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<% if defined?(RorVsWildThemeRdoc::Site) %>
44
<a href="../.." class="logo" title="RubyRubyRubyRuby">
55
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
6-
<path d="m8 6h-2l-2-2 4-4 4 4-2 2z"/>
7-
<path d="m8 10h2l2 2-4 4-4-4 2-2z"/>
8-
<path d="m10 8v-2l2-2 4 4-4 4-2-2z"/>
9-
<path d="m6 8v2l-2 2-4-4 4-4 2 2z"/>
6+
<path class="path-1" d="m8 6h-2l-2-2 4-4 4 4-2 2z"/>
7+
<path class="path-2" d="m8 10h2l2 2-4 4-4-4 2-2z"/>
8+
<path class="path-3" d="m10 8v-2l2-2 4 4-4 4-2-2z"/>
9+
<path class="path-4" d="m6 8v2l-2 2-4-4 4-4 2 2z"/>
1010
</svg>
1111
</a>
1212
<% end %>

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,26 @@ main header h3 {
356356
height: 24px;
357357
width: 24px;
358358
fill: currentcolor;
359+
overflow: visible;
359360
}
360361

362+
.topbar .width-limiter > a.logo:hover svg .path-1 { transform: translateY(-1px); }
363+
.topbar .width-limiter > a.logo:hover svg .path-2 { transform: translateY(1px); }
364+
.topbar .width-limiter > a.logo:hover svg .path-3 { transform: translateX(1px); }
365+
.topbar .width-limiter > a.logo:hover svg .path-4 { transform: translateX(-1px); }
366+
361367
#navigation-toggle {
362-
display: inline-block;
368+
display: inline-flex;
369+
align-items: center;
370+
justify-content: center;
371+
width: 24px;
372+
height: 24px;
363373
color: var(--color-topbar-text);
374+
font-size: 1.44rem;
364375
}
365376

377+
#navigation-toggle span { margin-top: -4px; }
378+
366379
nav {
367380
border-right: 1px solid var(--color-border);
368381
position: fixed;

0 commit comments

Comments
 (0)