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

bs4-utilities-for-bs3

v4.0.1

Published

Backport of Boostrap 4's utility classes

Downloads

51

Readme

Bootstrap 4's Utility Classes for Bootstrap 3

Backports Bootstrap 4's awesome utility/helper classes for use in your Bootstrap 3 project.

Using

  • Install with npm: npm install bs4-utilities-for-bs3
  • CSS only
    • <link rel="stylesheet" href="dist/css/bs4-utilities-for-bs3.css">
  • Import SASS
    • @import 'node_modules/bs4-utilities-for-bs3/src/bs4-utilities-for-bs3'
    • Tip: Avoid specifying "node_modules/" in the path by using the includePaths option.

Reference

Spacing

BS4 size | BS3 size | Notes :-------- |:-------- |:----- 1 | xs | Ex: .mt-1 for margin-top: $padding-xs-vertical; 2 | sm | Ex: .ml-2 for margin-left: $padding-sm-horizontal; 3 | default | Ex: .pt-3 for padding-top: $padding-base-vertical; 4 | lg | Ex: .pl-4 for padding-left: $padding-lg-horizontal; 5 | NA | BS3 doesn't have an equivalent size.

All the Things

Class | BS3 | Notes :----- |:---:|:----- .border || .border-top || .border-right || .border-bottom || .border-left || .border-0 || .border-top-0 || .border-right-0 || .border-bottom-0 || .border-left-0 || .border-primary || .border-secondary || Not ported. Uses color only available in BS4. .border-success || .border-danger || .border-warning || .border-info || .border-light || Not ported. Uses color only available in BS4. .border-dark || Not ported. Uses color only available in BS4. .border-white || .rounded || .rounded-top || .rounded-right || .rounded-bottom || .rounded-left || .rounded-circle || .rounded-0 || .clearfix | ✓ | .close | ✓ | .text-primary | ✓ | .text-secondary || Not ported. Uses color only available in BS4. .text-success | ✓ | .text-info | ✓ | .text-warning | ✓ | .text-danger | ✓ | .text-light || Not ported. Uses color only available in BS4. .text-dark || Not ported. Uses color only available in BS4. .text-muted | ✓ | .text-white | ✓ | .bg-primary | ✓ | .bg-secondary || Not ported. Uses color only available in BS4. .bg-success | ✓ | .bg-danger | ✓ | .bg-warning | ✓ | .bg-info | ✓ | .bg-light || Not ported. Uses color only available in BS4. .bg-dark || Not ported. Uses color only available in BS4. .bg-white || .d-none || Also provides .d-(sm\|md\|lg)-none .d-inline || Also provides .d-(sm\|md\|lg)-inline .d-inline-block || Also provides .d-(sm\|md\|lg)-inline-block .d-block || Also provides .d-(sm\|md\|lg)-block .d-table || Also provides .d-(sm\|md\|lg)-table .d-table-row || Also provides .d-(sm\|md\|lg)-table-row .d-table-cell || Also provides .d-(sm\|md\|lg)-table-cell .d-flex || Also provides .d-(sm\|md\|lg)-flex .d-inline-flex || Also provides .d-(sm\|md\|lg)-inline-flex .d-print-none || .d-print-inline || .d-print-inline-block || .d-print-block || .d-print-table || .d-print-table-row || .d-print-table-cell || .d-print-flex || .d-print-inline-flex || Flexbox utilities|| Too many too list! See the Bootstrap 4 docs. .float-left || Also provides .float-(sm\|md\|lg)-left .float-right || Also provides .float-(sm\|md\|lg)-right .float-none || Also provides .float-(sm\|md\|lg)-none .text-hide | ✓ | .fixed-top || .fixed-bottom || .sticky-top || .sr-only | ✓ | .sr-only-focusable | ✓ | .w-25 || .w-50 || .w-75 || .w-100 || .h-25 || .h-50 || .h-75 || .h-100 || .mw-100 || .mh-100 || .m-[0-4], .m(t\|r\|b\|l\|x\|y)-[0-4] || Also provides responsive, e.g. .mr-(sm\|md\|lg)-1 .m-auto, .m(t\|r\|b\|l\|x\|y)-auto || Also provides responsive, e.g. .m-(sm-md-lg)-auto .p-[0-4], .p(t\|r\|b\|l\|x\|y)-[0-4] || Also provides responsive, e.g. .pr-(sm\|md\|lg)-1 .text-justify || .text-left | ✓ | Also provides .text-(sm\|md\|lg)-left .text-center | ✓ | Also provides .text-(sm\|md\|lg)-center .text-right | ✓ | Also provides .text-(sm\|md\|lg)-right .text-nowrap || .text-truncate || .text-lowercase || .text-uppercase || .text-capitalize || .font-weight-bold || .font-weight-normal || .font-weight-light || Not ported. Uses color only available in BS4. .font-italic || .text-hide || .align-baseline || .align-top || .align-middle || .align-bottom || .align-text-top || .align-text-bottom || .visible || .invisible ||

Deprecated

BS3 Class | Notes :----- | ----- .caret | Not available in BS4 .center-block | Same as .mx-auto .show | Same as .d-(inline\|block\|etc) .hide | Same as .d-none .pull-left | Same as .float-left .pull-right | Same as .float-right .visible-*, .hidden-* | Replaced by .d-* utilities