Socket
Socket
Sign inDemoInstall

bootstrap-sass-namespace

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bootstrap-sass-namespace

bootstrap-sass-namespace is a fork of bootstrap-sass with namespace added


Version published
Weekly downloads
24
increased by100%
Maintainers
1
Install size
655 kB
Created
Weekly downloads
 

Readme

Source

Bootstrap for Sass with prefixes

The purpose of the project is using all the power of Bootstrap with bringing as less conflicts with other frameworks as possible.

How to use

  1. Install
npm install --save bootstrap-sass-namespace
  1. Define class prefix in SASS.
$class-prefix: 'my-app';
@import "node_modules/bootstrap-sass-namespace/assets/stylesheets/_bootstrap.scss";
  1. Define class prefix in JS before including JS assets.
<script>
    BOOTSTRAP_NAMESPACE = 'my-app';
</script>
<script src="assets/javascripts/bootstrap.min.js"></script>
  1. Use special class notation *prefix*-html-*tag* on every tag. Below you can find an example of drop down menu.
<div class="my-app-html-div my-app-dropdown">
  <button class="my-app-html-button my-app-btn my-app-btn-default my-app-dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
    Dropdown
    <span class="my-app-html-span my-app-caret"></span>
  </button>
  <ul class="my-app-html-ul my-app-dropdown-menu" aria-labelledby="dropdownMenu1">
    <li class="my-app-html-li"><a class="my-app-html-a" href="#">Action</a></li>
    <li class="my-app-html-li"><a class="my-app-html-a" href="#">Another action</a></li>
    <li class="my-app-html-li"><a class="my-app-html-a" href="#">Something else here</a></li>
    <li class="my-app-html-li my-app-divider" role="separator"></li>
    <li class="my-app-html-li"><a class="my-app-html-a" href="#">Separated link</a></li>
  </ul>
</div>

Contributing

Even though the project in alpha stage, it serves it's initial purpose pretty accurately. If you find any problem, you're more than welcomed to create an issue or pull request.

License

(MIT License)

Copyright (c) 2016 Dima Snisarenko snisarenkodima@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

FAQs

Last updated on 05 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc