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

ngx-fi-fx-flex

v0.3.0

Published

Responsive flex css framework, inspired by Angular FlexLayout

Downloads

17

Readme

NgxFiFxFlex

Responsive flex css framework, inspired by Angular FlexLayout

Installation

  • npm i ngx-fi-fx-flex --save

How to use

Registration

Consider using one of the below approaches

  • In angular.json

Under styles register flex.min.css or flex.scss

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "projects": {
    "project-name": {
      "architect": {
        "build": {
          "options": {
            "styles": [
              "node_modules/ngx-fi-fx-flex/flex.scss"
               or
              "node_modules/ngx-fi-fx-flex/flex.min.css"
              ...
            ]
          }
        }
      }
    }
  }
}
  • In styles.scss
@import "~ngx-fi-fx-flex/flex.scss";
or
@import "~ngx-fi-fx-flex/flex.min.css";
  • In index.html

Expose flex.min.css in a public location and add to your index.html

<link async rel="stylesheet" href="path_to_styles/flex.min.css" />
  • Using some other mechanism that will load the css / scss file in your solution

Customizations

Feel free to customize as needed per your respective use case

  • The solution consists of the following

    • flex.scss: bootstraps the framework
    • breakpoints.scss: responsive breakpoints
    • vars.scss: vars
    • mixins.scss: mixins
  • mixins.scss

    • flex: produces the entire framework using mixins below
    • fxBoxSizing: produces the generic selector that sets box sizing for every element prefixed using the defined prefix
    • fxBreakpoints: uses fxStyling mixin to produce styles based on defined breakpoints
    • fxStyling($prefixValue): produces styling
      • a blank prefix value would result to something like .fx-dir-row
      • a prefix value like xs would result to something like .fx-xs-dir-row
  • breakpoints.scss

$fxBreakpoints: (
  xxl: (
    (
      min: 5000px,
      max: ""
    )
  ),
  xl: (
    (
      min: 1920px,
      max: 4999.9px
    )
  ),
  lg: (
    (
      min: 1280px,
      max: 1919.9px
    )
  ),
  md: (
    (
      min: 960px,
      max: 1279.9px
    )
  ),
  sm: (
    (
      min: 600px,
      max: 959.9px
    )
  ),
  xs: (
    (
      min: 0,
      max: 599.9px
    )
  )
) !default;
  • vars.scss
$fxNumberOfColumns: 12 !default;
$fxGrowAndShrink: 12 !default;
$fxBasis: (("auto", "auto"), ("0", "0")) !default;
$fxDisplayCollection: (("flex", "flex"), ("inline-flex", "inline-flex")) !default;
$fxDirectionCollection: (
  ("row", "row"),
  ("row-reverse", "row-reverse"),
  ("column", "column"),
  ("column-reverse", "column-reverse")
) !default;
$fxWrapCollection: (("wrap", "wrap"), ("nowrap", "nowrap"), ("wrap-reverse", "wrap-reverse")) !default;
$fxJustifyContentCollection: (
  ("start", "flex-start"),
  ("end", "flex-end"),
  ("center", "center"),
  ("space-around", "space-around"),
  ("space-between", "space-between"),
  ("space-evenly", "space-evenly")
) !default;
$fxItemsAlignmentCollection: (
  ("start", "flex-start"),
  ("end", "flex-end"),
  ("center", "center"),
  ("baseline", "baseline"),
  ("stretch", "stretch")
) !default;
$fxSelfAlignmentCollection: (
  ("auto", "auto"),
  ("start", "flex-start"),
  ("end", "flex-end"),
  ("center", "center"),
  ("baseline", "baseline"),
  ("stretch", "stretch")
) !default;
$fxPrefix: "fx" !default;

Classes

Please check flex.css for the complete listing of all available classes