Skip to content

Commit 6d74dbc

Browse files
committed
update hover image for documentation
1 parent 189fa89 commit 6d74dbc

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/css/header.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
transition: height 0.5s ease;
2525
}
2626

27+
.cb-documentation:hover .cb-docs{
28+
display: none;
29+
}
30+
31+
.cb-documentation {
32+
display: block;
33+
}
34+
35+
.cb-documentation:hover .cb-hover-docs{
36+
display: block;
37+
}
38+
2739
.navbar {
2840
position: relative;
2941
display: flex;

src/img/cb-docs-hover.svg

Lines changed: 1 addition & 0 deletions
Loading

src/partials/header-content.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
</a>
1010
</li>
1111
<li>
12-
<a class="navbar-brand" href="https://docs.couchbase.com">
13-
<img src="{{{uiRootPath}}}/img/cb-documentation.svg" alt="Couchbase Documentation" />
12+
<a class="navbar-brand cb-documentation" href="https://docs.couchbase.com">
13+
<img src="{{{uiRootPath}}}/img/cb-documentation.svg" alt="Couchbase Documentation" class="cb-docs" />
14+
<img src="{{{uiRootPath}}}/img/cb-docs-hover.svg" alt="Couchbase Documentation" class="hide cb-hover-docs" />
1415
</a>
1516
</li>
1617
</ul>

0 commit comments

Comments
 (0)