backdrop-contrib / bootstrap5_lite

GNU General Public License v2.0
2 stars 6 forks source link

Bootstrap 5 Lite

This is a Bootstrap 5 version of the Backdrop Bootstrap Lite theme, which is itself inspired by the Drupal Bootstrap theme. It is a totally separate project from the Drupal Bootstrap theme with no guaranteed compatibility between the two themes.

This theme is still in beta and is subject to changes that may break your theme during upgrade. We recommend that you only upgrade if necessary or if you are prepared to fix minor changes.

Features

  1. Bootswatch support included. Easy to pick a Bootswatch free theme.
  2. Load Bootstrap/Bootswatch, Bootstrap icons, and FontAwesome from BootstrapCDN or from bundled libraries.
  3. Other tweaks:
    • Navbar settings (fixed, static, top, bottom).
    • Navbar user menu with cog icon.
    • Breadcrumbs tweaks.
    • Ability to use fluid or fixed width.
    • "XX time ago" for nodes and comments instead of regular time.

Installation

Install this theme using the official Backdrop CMS instructions.

The navbar content is controlled by a layout block - "Header block". By changing settings for the "Header block", you can control the visibility of the menu, logo, sitename and site slogan.

Documentation

See the official Bootstrap 5 documentation for a general description of Bootstrap CSS, components, and JS resources supported by the module.

Differences from Bootstrap 3

This theme uses the Bootstrap 5 library (versus the Bootstrap Lite theme that uses Bootstrap 3).

Note that Bootstrap 5 has different icons than Bootstrap 3 did. In Bootstrap 3, icons are provided from the Glyphicon Halflings font, while Bootstrap 5 is intended to use Bootstrap Icons, which is a set of SVG icons in a separate library and uses different HTML to render. You can use Boostrap Icons in your site by installing the Bootstrap Icons contrib module.

Examples:

You can also use Font Awesome 4 and/or 5 icons, which are provided by the FontAwesome contrib module.

If you enable a Font Awesome library, this would also provide a cart icon:

Some icons differ between Font Awesome 4 and 5. For example:

Differences from Drupal 7

These features were dropped in the port from the Drupal Bootstrap theme:

Issues

Bugs and feature requests should be reported in the Issue Queue.

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

Bootstrap and the Bootswatch themes are provided under the MIT License.