-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added potentially redundant navbar and started with normal nav.
- Loading branch information
1 parent
bf56c5f
commit 0e11c33
Showing
4 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.navbar { | ||
background-color: get-colour(grey); | ||
|
||
&__inner { | ||
@extend .container; | ||
overflow: hidden; | ||
} | ||
|
||
&__brand {} | ||
&__nav { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
&__item { | ||
display: inline-block; | ||
|
||
a { | ||
display: block; | ||
padding: 20px 15px; | ||
} | ||
&--active { | ||
border-bottom: 5px solid get-colour(orange); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{% extends "../layouts/_sidebar.njk" %} | ||
{% set title = "Navigation" %} | ||
|
||
{% block main %} | ||
|
||
<h1>Navigation</h1> | ||
|
||
<ul> | ||
<li><a href="#nav">Nav</a></li> | ||
<li><a href="#navbar">Navbar</a></li> | ||
</ul> | ||
|
||
<section id="nav"> | ||
|
||
<h2>Nav</h2> | ||
|
||
{% example -%} | ||
<nav class="nav" role="nav"> | ||
<ul class="nav__pills nav__pills-justified"> | ||
<li>One</li> | ||
<li>Two</li> | ||
<li>Three</li> | ||
</ul> | ||
</nav> | ||
{%- endexample %} | ||
|
||
</section> | ||
|
||
<section id="navbar"> | ||
|
||
<h2>Navbar</h2> | ||
|
||
{% example -%} | ||
<nav class="navbar" role="nav"> | ||
<div class="navbar__inner"> | ||
<a class="navbar__brand"></a> | ||
<ul class="navbar__nav"> | ||
<li class="navbar__item navbar__item--active"><a href="/">NICE Experience</a></li> | ||
<li class="navbar__item"><a href="/style-guide/">Style guide</a></li> | ||
<li class="navbar__item"><a href="/sass/">SASS</a></li> | ||
<li class="navbar__item"><a href="/javascript/">JavaScript</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
{%- endexample %} | ||
</section> | ||
|
||
{% endblock %} |