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

bdd-flex

v1.0.6

Published

This is set of classes that helps you to with layouting your pages using display flex and flex properties

Downloads

14

Readme

Getting started

  1. run npm install bdd-flex

  2. to use bdd-flex import "node_modules/bdd-flex/src/bdd.scss" in angular.json file in section architext -> build -> styles

    Or import scss file in yout global style.scss like this @import 'bdd-flex/src/bdd-flex.scss';

Documentation

FLEX

  • .bdd-spacer - is used to create flexible empty space within a flex container. It's typically used to distribute remaining space among flex items.

  • .bdd-flex:

    • Specifies that the element should be displayed as a flex container. This class sets the CSS property display: flex; on the element.
  • .bdd-no-flex:

    • Specifies that the element should not be flexible. It sets the CSS property flex: none;, meaning the element will not grow or shrink in a flex container.
  • .bdd-flex-row:

    • Sets the flex direction to row. It changes the layout of flex items to flow horizontally.
  • .bdd-flex-row-r:

    • Sets the flex direction to row-reverse. This reverses the order of flex items within a row.
  • .bdd-flex-col:

    • Sets the flex direction to column. It changes the layout of flex items to flow vertically.
  • .bdd-flex-col-r:

    • Sets the flex direction to column-reverse. This reverses the order of flex items within a column.
  • .bdd-flex-wrap:

    • Specifies that flex items should wrap if necessary. It sets the CSS property flex-wrap: wrap;.
  • .bdd-flex-nowrap:

    • Specifies that flex items should not wrap. It sets the CSS property flex-wrap: nowrap;.
  • .bdd-jc-start:

    • Sets the justification of flex items to flex-start.
  • .bdd-jc-end:

    • Sets the justification of flex items to flex-end.
  • .bdd-jc-center:

    • Sets the justification of flex items to center.
  • .bdd-jc-space-between:

    • Sets the justification of flex items to space-between.
  • .bdd-jc-space-around:

    • Sets the justification of flex items to space-around.
  • .bdd-jc-space-evenly:

    • Sets the justification of flex items to space-evenly.
  • .bdd-ai-stretch:

    • Aligns flex items to stretch to fill the container.
  • .bdd-ai-start:

    • Aligns flex items to the start of the container.
  • .bdd-ai-end:

    • Aligns flex items to the end of the container.
  • .bdd-ai-center:

    • Aligns flex items to the center of the container.
  • .bdd-ai-baseline:

    • Aligns flex items to the baseline of the container.
  • .bdd-as-auto:

    • Sets the align-self property to auto.
  • .bdd-as-stretch:

    • Sets the align-self property to stretch.
  • .bdd-as-center:

    • Sets the align-self property to center.
  • .bdd-as-start:

    • Sets the align-self property to flex-start.
  • .bdd-as-end:

    • Sets the align-self property to flex-end.
  • .bdd-as-baseline:

    • Sets the align-self property to baseline.
  • .bdd-flex-0, .bdd-flex-1, .bdd-flex-2, .bdd-flex-3, .bdd-flex-4, .bdd-flex-5

  • .bdd-flex-b-0, .bdd-flex-b-100, .bdd-flex-b-200, .bdd-flex-b-300, .bdd-flex-b-400, .bdd-flex-b-500

FLEX with BREAK POINTS

  • The class names are generated based on the breakpoints and sizes provided. They follow a pattern like .bdd-[breakpoint]:[property]-[size].

Auto margins

  • .bdd-ml-a
  • .bdd-mr-a
  • .bdd-mt-a
  • .bdd-mb-a
  • .bdd-mx-a
  • .bdd-my-a

Margins and paddings

  • Generated based on the defined padding and margin sizes. Follows a pattern like .bdd-[property]-[size].

Margin and padding with breakpoints

  • Similar to the above, but with breakpoints applied. Follows a pattern like .bdd-[breakpoint]:[property]-[size].

Show and hide classes

  • .bdd-show
  • .bdd-hide
  • Classes for each breakpoint like .bdd-[breakpoint]:show and .bdd-[breakpoint]:hide.