Skip to content

Commit 75a0ecd

Browse files
committed
Update Header and Layout Navigation Elements
1 parent 3c1d1c0 commit 75a0ecd

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

_includes/header.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
<h2 class="text-white"><strong>REST</strong>Heart</h2>
66
</a>
77
<!-- Place this tag where you want the button to render. -->
8-
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target=".navbar-ex1-collapse"><span
9-
class="visually-hidden">Toggle navigation</span> &#x2630;</button>
8+
<button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target=".navbar-ex1-collapse">
9+
<span class="visually-hidden">Toggle navigation</span>
10+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
11+
<line x1="3" y1="12" x2="21" y2="12"></line>
12+
<line x1="3" y1="6" x2="21" y2="6"></line>
13+
<line x1="3" y1="18" x2="21" y2="18"></line>
14+
</svg>
15+
</button>
1016
<div class="collapse navbar-collapse navbar-ex1-collapse background-primary" id="scrollTarget">
1117
<ul class="nav navbar-nav ms-md-auto">
1218
<!-- only bounce slack button on home page-->

_layouts/docs-adoc.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@
6969
<div class="d-flex flex-wrap justify-content-between align-items-center">
7070
<a href="https://github.com/SoftInstigate/restheart-website/edit/master/{{ page.path }}"
7171
class="small mt-2 mb-1 ml-lg-auto"><i class="icon-pencil"></i>Edit Page</a>
72-
<button class="btn btn-link bd-sidebar__toggle p-0 mb-1 d-md-none" type="button"
72+
<button class="btn btn-primary bd-sidebar__toggle mb-2 d-md-none w-100" type="button"
7373
data-bs-toggle="collapse" data-bs-target="#bd-sidebar__menu" aria-controls="bd-sidebar__menu"
7474
aria-expanded="false" aria-label="Toggle docs navigation">
75-
Table of Contents
76-
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 30 30" width="30" height="30"
77-
focusable="false">
75+
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 30 30" width="20" height="20"
76+
focusable="false" style="display: inline-block; vertical-align: middle; margin-right: 8px;">
7877
<title>Menu</title>
7978
<path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22" />
8079
</svg>
80+
Documentation Menu
8181
</button>
8282
</div>
8383
</div>

_layouts/docs.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@
102102
><i class="icon-pencil"></i>Edit Page</a
103103
>
104104
<button
105-
class="btn btn-link bd-sidebar__toggle navbar-expand-md p-0 mb-1 d-md-none"
105+
class="btn btn-primary bd-sidebar__toggle navbar-expand-md mb-2 d-md-none w-100"
106106
type="button"
107107
data-bs-toggle="collapse"
108108
data-bs-target="#bd-sidebar__menu"
109109
aria-controls="bd-sidebar__menu"
110110
aria-expanded="false"
111111
aria-label="Toggle docs navigation"
112112
>
113-
Table of Contents
114113
<svg
115114
xmlns="http://www.w3.org/2000/svg"
116115
viewbox="0 0 30 30"
117-
width="30"
118-
height="30"
116+
width="20"
117+
height="20"
119118
focusable="false"
119+
style="display: inline-block; vertical-align: middle; margin-right: 8px;"
120120
>
121121
<title>Menu</title>
122122
<path
@@ -127,6 +127,7 @@
127127
d="M4 7h22M4 15h22M4 23h22"
128128
/>
129129
</svg>
130+
Documentation Menu
130131
</button>
131132
</div>
132133
</div>

_sass/layout.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,13 @@ hr {
852852
.navbar-toggler {
853853
margin: 10px 0 10px auto;
854854
color: #fff;
855-
border-color: #fff;
855+
border: none;
856+
padding: 0.25rem 0.5rem;
857+
}
858+
859+
.navbar-toggler:focus {
860+
box-shadow: none;
861+
outline: none;
856862
}
857863

858864
.navbar-nav > li > a {
@@ -921,6 +927,7 @@ hr {
921927
left: -15px;
922928
right: -15px;
923929
background: var(--primarycolor);
930+
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
924931
padding: 1rem 0;
925932
border-top: 1px solid rgba(255, 255, 255, 0.2);
926933
box-shadow: 0 6px 9px 0 rgba(0, 0, 0, 0.34);

0 commit comments

Comments
 (0)