Skip to content

Commit

Permalink
WIP:docs(supra) Add page for orange navbars
Browse files Browse the repository at this point in the history
  • Loading branch information
LE DIOURON Kevin committed Sep 23, 2021
1 parent 684de41 commit 0638442
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/content/docs/5.1/about/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Boosted ships with custom accessible components to suit specific needs:

- [Back to top]({{< docsref "/components/back-to-top" >}})
- [Stepped process]({{< docsref "/components/stepped-process" >}})
- [Orange Navbars]({{< docsref "/components/orange-navbar" >}})


## Bootstrap Team
Expand Down
63 changes: 63 additions & 0 deletions site/content/docs/5.1/components/orange-navbar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
layout: docs
title: Orange Navbar
description: Documentation and examples for Boosted's exclusive Brand responsive navbars. Includes support for branding, navigation, and more, including support for our collapse plugin.
group: components
toc: true
---

## How it works

Orange navbar is based on the [navbar]({{<docsref "/components/navbar">}}) component. It adds some display management and introduces the supra bar component.
You may refer to its documentation in order to properly create and use navbars.

### Supra Bar

A simple navigation that can be added on top of orange navbar, it is called supra bar. Simply add the `.supra` class in your navbar declaration.

{{< callout warning >}}
Supra bars are visible only in desktop view.
{{< /callout >}}

{{< example >}}
<nav class="navbar supra navbar-dark bg-dark navbar-expand-md">
<div class="container">
<div class="navbar-nav d-flex flex-row">
<a href="#" class="nav-link active pb-1" aria-current="page">Personal</a>
<a class="nav-link pb-1" href="#">Business</a>
</div>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="#" class="nav-link nav-icon pt-1 pb-0">
<svg width="1.5rem" height="1.5rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/5.1/assets/img/boosted-sprite.svg#search"/>
</svg>
<span class="visually-hidden">Search</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link nav-icon pt-1 pb-0 position-relative">
<span class="position-relative">
<svg width="1.5rem" height="1.5rem" fill="currentColor" aria-hidden="true" focusable="false" class="overflow-visible">
<use xlink:href="/docs/5.1/assets/img/boosted-sprite.svg#buy"/>
</svg>
<span class="visually-hidden">Basket</span>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-info text-white mt-1">
1
<span class="visually-hidden">shopping basket items</span>
</span>
</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link nav-icon pt-1 pb-0">
<img src="/docs/5.1/assets/img/navbar-contact.png" width="25" height="25" role="img" alt="User" loading="lazy">
<span class="visually-hidden">My account</span>
</a>
</li>
</ul>
</div>
</nav>
{{< /example >}}

You can have a complete overview of how to use supra bars in the dedicated [Design Guidelines page]({{<docsref "/guidelines/global-headers">}})
1 change: 1 addition & 0 deletions site/data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
- title: Modal
- title: Navs & tabs
- title: Navbar
- title: Orange Navbar
- title: Offcanvas
- title: Pagination
- title: Placeholders
Expand Down

0 comments on commit 0638442

Please sign in to comment.