Skip to content

Commit 98b5403

Browse files
danielverkampBen Walker
authored and
Ben Walker
committed
Move navbar to top and only show banner on home page
Change-Id: Ie5b69a97ef3c47a8c3c374fde00ed459a17d09d3 Signed-off-by: Daniel Verkamp <[email protected]>
1 parent 092e952 commit 98b5403

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

_doc_header.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@
2727

2828
<div class="row no-gutters">
2929
<div class="col-sm-12">
30-
<section id="banner-header" class="banner-header">
31-
<div class="banner-message">
32-
<h1>Storage Performance Development Kit</h1>
33-
<hr class="banner-divider">
34-
</div>
35-
</section>
3630
<section id="nav">
37-
<div class="navbar navbar-default banner-tabs">
31+
<div class="navbar navbar-default navbar-static-top banner-tabs">
3832
<ul class="nav navbar-nav">
3933

4034
<li role="presentation">

_includes/banner.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<section id="banner-header" class="banner-header">
2+
<div class="banner-message">
3+
<h1>{{ site.title }}</h1>
4+
<hr class="banner-divider">
5+
</div>
6+
</section>

_includes/header.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
<section id="banner-header" class="banner-header">
2-
<div class="banner-message">
3-
<h1>{{ site.title }}</h1>
4-
<hr class="banner-divider">
5-
</div>
6-
</section>
71
<section id="nav">
8-
<div class="navbar navbar-default banner-tabs">
2+
<div class="navbar navbar-default navbar-static-top banner-tabs">
93
<ul class="nav navbar-nav">
104
{% for box in site.boxes %}
115
{% if page.url == box.url %}

_layouts/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<div class="row no-gutters">
88
<div class="col-sm-12">
99
{% include header.html %}
10+
{% include banner.html %}
1011
</div>
1112
</div>
1213

css/spdk.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ h6 {
2727
width: 100%;
2828
}
2929

30+
.navbar-static-top {
31+
margin-bottom: 0;
32+
}
33+
3034
.lead {
3135
font-size: 18px;
3236
font-weight: 400;
@@ -36,6 +40,7 @@ h6 {
3640
.banner-header {
3741
padding-top: 50px;
3842
padding-bottom: 0px;
43+
margin-bottom: 20px;
3944
text-align: center;
4045
color: #f8f8f8;
4146
background: url(../img/banner-bg.jpg) no-repeat center center;

0 commit comments

Comments
 (0)