Skip to content

Commit 5d5f928

Browse files
authored
Merge pull request #88 from couchbase/sandbox-header-update
Header update
2 parents d8aebb5 + c61b482 commit 5d5f928

File tree

6 files changed

+40
-4
lines changed

6 files changed

+40
-4
lines changed

src/css/header.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,34 @@
88
padding-right: 0;
99
}
1010

11+
.navbar-brand-list {
12+
list-style: none;
13+
display: flex;
14+
margin: 0;
15+
padding: 0;
16+
}
17+
18+
.navbar-brand-list .brand-logo {
19+
margin-right: 10px;
20+
}
21+
1122
.navbar-brand img {
1223
height: 32px;
1324
transition: height 0.5s ease;
1425
}
1526

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+
1639
.navbar {
1740
position: relative;
1841
display: flex;

src/css/landing-page.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@
208208
.doc.landing-page-doc h2 {
209209
margin: 0;
210210
color: var(--color-brand-black);
211+
padding: 0;
211212
}
212213

213214
.doc.landing-page-doc h2::after {

src/img/cb-docs-hover.svg

Lines changed: 1 addition & 0 deletions
Loading

src/img/cb-documentation.svg

Lines changed: 1 addition & 0 deletions
Loading

src/img/couchbase-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

src/partials/header-content.hbs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22
<div class="header-top-row">
33
<div class="container">
44
<nav class="navbar navbar-expand-md flex-nowrap justify-content-between navbar-new-top">
5-
6-
<a class="navbar-brand" href="{{#with (and site.url site.homeUrl)}}{{@root.site.url}}{{this}}{{else}}{{siteRootPath}}{{/with}}">
7-
<img src="{{{uiRootPath}}}/img/couchbase-documentation-logo.svg" alt="Couchbase" />
8-
</a>
5+
<ul class="navbar-brand-list">
6+
<li class="brand-logo">
7+
<a class="navbar-brand" href="https://www.couchbase.com">
8+
<img src="{{{uiRootPath}}}/img/couchbase-logo.svg" alt="Couchbase" />
9+
</a>
10+
</li>
11+
<li>
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" />
15+
</a>
16+
</li>
17+
</ul>
918
{{! <ul class="nav navbar-nav mr-auto"></ul> }}
1019
<button class="navbar-burger" data-target="topbar-menu">
1120
<span></span>

0 commit comments

Comments
 (0)