Skip to content

Commit 77fef53

Browse files
authored
Merge pull request #77 from couchbase/top-nav-feature
update top nav bar style
2 parents f9c1b80 + 85ecd95 commit 77fef53

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

src/css/header.css

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,21 @@
107107

108108
.try-btn {
109109
font-weight: var(--weight-bold);
110+
margin-left: var(--column-space);
110111
}
111112

112113
.parent-site {
113-
margin: 0 10px;
114-
padding: 0 10px;
114+
/* margin: 0 10px;
115+
padding: 0 10px; */
115116
/* border-right: 1px solid var(--color-brand-gray5);
116117
border-left: 1px solid var(--color-brand-gray5); */
117118
}
118119

119-
.parent-site a {
120+
/* .parent-site a {
120121
color: var(--color-brand-gray4);
121122
font-size: 1rem;
122123
font-family: "Source Sans Pro", sans-serif;
123-
}
124+
} */
124125

125126
.search .query {
126127
border: none;
@@ -239,10 +240,10 @@
239240
width: 283px;
240241
}
241242

242-
.parent-site {
243+
/* .parent-site {
243244
margin: 0;
244245
padding: 0 var(--column-space);
245-
}
246+
} */
246247

247248
.navbar.navbar-new-top {
248249
padding: 1.25rem 0;
@@ -267,7 +268,8 @@
267268

268269
.primary-action {
269270
flex-wrap: wrap;
270-
justify-content: center;
271+
justify-content: space-around;
272+
width: 100%;
271273
}
272274

273275
.navbar-collapse {
@@ -294,17 +296,18 @@
294296
right: 5px;
295297
}
296298

297-
.parent-site {
299+
/* .parent-site {
298300
border-left: none;
299301
}
300302
301303
.parent-site a {
302304
color: var(--color-brand-white);
303-
}
305+
} */
304306

305307
.try-btn {
306308
background: var(--color-brand-white);
307309
color: var(--color-brand-blue);
310+
margin: 0;
308311
}
309312

310313
.header-bottom-row.is-active {

src/partials/header-content.hbs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="container">
44
<nav class="navbar navbar-expand-md flex-nowrap justify-content-between navbar-new-top">
55

6-
<a class="navbar-brand" href="{{#with (and site.url site.homeUrl)}}{{@root.site.url}}{{this}}{{else}}{{siteRootPath}}{{/with}}">
6+
<a class="navbar-brand" href="https://www.couchbase.com">
77
<img src="{{{uiRootPath}}}/img/couchbase-documentation-logo.svg" alt="Couchbase" />
88
</a>
99
{{! <ul class="nav navbar-nav mr-auto"></ul> }}
@@ -24,6 +24,11 @@
2424

2525
<div class="navbar-collapse collapse" id="navbar2">
2626
<ul class="navbar-nav w-100 justify-content-start">
27+
<li class="nav-item">
28+
<a href="{{#with (and site.url site.homeUrl)}}{{@root.site.url}}{{this}}{{else}}{{siteRootPath}}{{/with}}" class="nav-link">
29+
<i class="fas fa-home"></i>
30+
</a>
31+
</li>
2732
<li class="nav-item">
2833
<a class="nav-link" href="{{relativize (resolvePageURL 'home::server.adoc')}}">
2934
Server
@@ -61,13 +66,13 @@
6166
<i class="fas fa-search"></i>
6267
</button>
6368
</form>
64-
<div class="parent-site">
69+
{{!-- <div class="parent-site">
6570
<a href="https://www.couchbase.com">
6671
Couchbase.com
6772
</a>
68-
</div>
73+
</div> --}}
6974
<a class="btn btn-primary try-btn" href="https://www.couchbase.com/downloads">
70-
Try Free
75+
Downloads
7176
</a>
7277
</div>
7378

0 commit comments

Comments
 (0)