npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bootstrap-advanced-dropdown

v0.9.3

Published

Advanced bootstrap dropdowns, multi-level, scrollable, icons, badges. css/scss only

Downloads

3

Readme

Bootstrap Advanced Dropdowns

Bower npm downloads npm version License

Improved dropdown menus for bootstrap. Highly customizable SCSS styles with a modular approach and easymode theme creation.

Comes with several ready to use example themes.

View Demo

Features

Dropdown features
  • Unlimited multi-level dropdown menu
  • Scrollable dropdown
  • Dropdown notification list
  • Dropdown task list
  • Normal and inversed dropdown colors
  • Icons and badges
  • Headers, footers, seperators.
  • Additional utility classes to help with positioning and dimensions
Implementation features
  • Easy to override or extend
  • Modular approach. Exclude stuff you don't want / Include only the stuff you want.
  • Highly customisable
  • Or if your already content with the package as-is, simply include the css or scss in your own project.

Installation

Bower

bower install --save bootstrap-advanced-dropdowns

Npm

npm install --save bootstrap-advanced-dropdowns

Direct download

Click here to download the latest version

Implementing

CSS

Without the use of SCSS, you can simply reference bootstrap-advaced-dropdowns in your html.

<link href="path/to/bootstrap-advanced-dropdowns/bootstrap-advaced-dropdowns.css" type="text/css" rel="stylesheet"/>
<link href="path/to/bootstrap-advanced-dropdowns/themes/dropdown-theme-default.css" type="text/css" rel="stylesheet"/>
SCSS

By using SCSS you will have multiple ways of implementing.

Here's an example of how to completely customize bootstrap-advanced-dropdowns.

Note that there are other ways of implementing. This is the most complete one.

Before importing any bootstrap-advanced-dropdowns scss file, ensure bootstrap variables and mixins have been imported

@import "path/to/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/variables";
@import "path/to/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins";

your-project / _variables.scss

// ... your code ...

$dropdown-class-prefix:                                     'dropdown';
$dropdown-include-utilities:                                true;
$dropdown-include-notifications:                            true;
$dropdown-include-task-list:                                true;
$dropdown-include-scrollable:                               true;

// ... your code ...

your-project / stylesheet.scss

// ... your code ...

@import "your-project/_variables.scss"

// ... your code ...

@import "path/to/bootstrap-advanced-dropdowns/dropdown";

If your SCSS structure uses a multi-theme approach, you can add the following to the theme file. Otherwise, you could append it to the code above.

your-project / themes / theme-one-stylesheet.scss

// ... your code ...

@import "your-project/_variables.scss"

// ... your code ...


// Overide bootstrap-advanced-dropdown theme variables.
// Check out the bootstrap-advanced-dropdown/_theme-variables.scss file for all variables

@import "path/to/bootstrap-advanced-dropdowns/theme-variables";

$dropdown-box-shadow-size:                                  5px;
$dropdown-wide-min-width:                                   300px;
$dropdown-header-font-size:                                 13px;
$dropdown-bg:                                               #ffffff;
$dropdown-box-shadow-color:                                 rgba(#222, 0.2);
$dropdown-header-bg:                                        #e4e4e4;
$dropdown-inverse-bg:                                       #333333;
$dropdown-inverse-box-shadow-color:                         rgba(#000, 0.2);
$dropdown-inverse-header-bg:                                #454545;
$dropdown-inverse-header-color:                             #b3b3b3;
$dropdown-tasklist-item-border-color:                       #e4e4e4;
$dropdown-inverse-tasklist-item-border-color:               #484848;
$dropdown-inverse-notifications-icon-color:                 #d8d1d1;
$dropdown-inverse-notifications-item-border-color:          #484848;

@import "path/to/bootstrap-advanced-dropdowns/themes/theme";