Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nav-link-underline #17

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -526,19 +526,20 @@ <h6>Heading 6</h4>

<div class="b-example-divider"></div>

<nav class="py-2 bg-body-tertiary border-bottom">
<nav class="bg-body-tertiary border-bottom">
<div class="container d-flex flex-wrap">
<ul class="nav me-auto">
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2 active" aria-current="page">Home</a>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2 active"
aria-current="page">Home</a>
</li>
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">Features</a></li>
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">Pricing</a></li>
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">FAQs</a></li>
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">About</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">Features</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">Pricing</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">FAQs</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">About</a></li>
</ul>
<ul class="nav">
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">Login</a></li>
<li class="nav-item"><a href="#" class="nav-link link-body-emphasis px-2">Sign up</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">Login</a></li>
<li class="nav-item"><a href="#" class="nav-link nav-link-underline link-body-emphasis p-2">Sign up</a></li>
</ul>
</div>
</nav>
Expand All @@ -559,7 +560,7 @@ <h6>Heading 6</h4>
<div class="b-example-divider"></div>

<header>
<div class="px-3 py-2 text-bg-dark border-bottom">
<div class="px-3 text-bg-dark border-bottom">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<a href="/" class="d-flex align-items-center my-2 my-lg-0 me-lg-auto text-white text-decoration-none">
Expand All @@ -570,39 +571,39 @@ <h6>Heading 6</h4>

<ul class="nav col-12 col-lg-auto my-2 justify-content-center my-md-0 text-small">
<li>
<a href="#" class="nav-link text-secondary">
<a href="#" class="nav-link nav-link-underline link-body-emphasis active">
<svg class="bi d-block mx-auto mb-1" width="24" height="24">
<use xlink:href="#home" />
</svg>
Home
</a>
</li>
<li>
<a href="#" class="nav-link text-white">
<a href="#" class="nav-link nav-link-underline link-body-emphasis">
<svg class="bi d-block mx-auto mb-1" width="24" height="24">
<use xlink:href="#speedometer2" />
</svg>
Dashboard
</a>
</li>
<li>
<a href="#" class="nav-link text-white">
<a href="#" class="nav-link nav-link-underline link-body-emphasis">
<svg class="bi d-block mx-auto mb-1" width="24" height="24">
<use xlink:href="#table" />
</svg>
Orders
</a>
</li>
<li>
<a href="#" class="nav-link text-white">
<a href="#" class="nav-link nav-link-underline link-body-emphasis">
<svg class="bi d-block mx-auto mb-1" width="24" height="24">
<use xlink:href="#grid" />
</svg>
Products
</a>
</li>
<li>
<a href="#" class="nav-link text-white">
<a href="#" class="nav-link nav-link-underline link-body-emphasis">
<svg class="bi d-block mx-auto mb-1" width="24" height="24">
<use xlink:href="#people-circle" />
</svg>
Expand Down
1 change: 1 addition & 0 deletions index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ $theme-colors: map-merge($theme-colors, $custom-colors);
@import "scss/components/cta";
@import "scss/components/forms";
@import "scss/components/list";
@import "scss/components/nav";
@import "scss/components/resources";
@import "scss/components/scroll-container";
@import "scss/components/utilities";
Expand Down
5 changes: 5 additions & 0 deletions scss/components/_nav.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.nav-link-underline.active {
@extend .border-bottom;
@extend .border-primary;
@extend .border-4;
}