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(footerExample): Adding a footer example #922

Merged
merged 12 commits into from
Dec 8, 2021
37 changes: 37 additions & 0 deletions site/content/docs/5.1/components/orange-footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
layout: docs
title: Orange footer
description: Documentation and examples for Boosted's powerful, responsive footer. Includes support for branding, navigation and more.
group: components
aliases: "/docs/5.1/components/orange-footer/"
toc: true
---

## Overview

{{< callout warning >}}
### Orange footer is not a component yet

The feature will be delivered with [#892]({{< param repo >}}/issues/892).

In the meantime, some examples have been developed in the [footers examples section]({{< docsref "/examples/footers" >}}) by using mostly Boosted utilities and our Collapse JavaScript plugin.

Even if the padding applied here is not that responsive and that everything is not perfectly respecting the design guidelines, it will help you while waiting for the component's delivery.
{{< /callout >}}

{{< callout info >}}
### Active colors

In order to have correct active colors in "Mailing list" and "Follow us" bars, some extra classes and CSS are required:

```css
.example-footer-custom-form .btn:active {
border-color: var(--bs-orange) !important;
}

.example-footer-custom-social .btn:active {
color: var(--bs-dark) !important;
background-color: var(--bs-white) !important;
border-color: var(--bs-white) !important;
}
{{< /callout >}}
10 changes: 10 additions & 0 deletions site/content/docs/5.1/examples/footers/footers.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@
vertical-align: -.125em;
fill: currentColor;
}

.example-footer-custom-form .btn:active {
border-color: var(--bs-orange) !important; /* stylelint-disable-line declaration-no-important */
}

.example-footer-custom-social .btn:active {
color: var(--bs-dark) !important; /* stylelint-disable-line declaration-no-important */
background-color: var(--bs-white) !important; /* stylelint-disable-line declaration-no-important */
border-color: var(--bs-white) !important; /* stylelint-disable-line declaration-no-important */
}
524 changes: 375 additions & 149 deletions site/content/docs/5.1/examples/footers/index.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions site/data/examples.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# - category: Snippets
# description: "Common patterns for building sites and apps that build on existing components and utilities with custom CSS and more."
# examples:
- category: Snippets
description: "Common patterns for building sites and apps that build on existing components and utilities with custom CSS and more."
examples:
# - name: Headers
# description: "Display your branding, navigation, search, and more with these header components"
# - name: Heroes
Expand All @@ -9,8 +9,8 @@
# description: "Explain the features, benefits, or other details in your marketing content."
# - name: Sidebars
# description: "Common navigation patterns ideal for offcanvas or multi-column layouts."
# - name: Footers
# description: "Finish every page strong with an awesome footer, big or small."
- name: Footers
description: "Finish every page strong with an awesome footer, big or small."
# - name: Dropdowns
# description: "Enhance your dropdowns with filters, icons, custom styles, and more."
# - name: List groups
Expand Down
1 change: 1 addition & 0 deletions site/data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
- title: Navs & tabs
- title: Navbar
- title: Offcanvas
- title: Orange footer
- title: Orange navbar
- title: Pagination
- title: Placeholders
Expand Down
Binary file modified site/static/docs/5.1/assets/img/examples/footers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified site/static/docs/5.1/assets/img/examples/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.