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

postcss-chef

v0.3.3

Published

It is a small postcss library capable of simplifying the creation of flexbox-based layout.

Downloads

36

Readme

Logotipo Chef

chef-flex

Es una pequeña librería de postcss capaz de simplificar la creación de layout a base de flexbox.

Ejemplo

chef-flex analiza el uso de row y column, para modificar los parámetros que lo acompañen simplificando la definición al momento de construir layout con flexbox

row

permite que el contenido dentro del contenedor se alinea como enseña la imagen.

Ejemplo de alineación

/**entrada**/
.container{
   chef-flex : row;
}
/**salida**/
.container{
   display:flex;
   flex-direction : row;
   flex-wrap : wrap;
}

##column

permite que el contenido dentro del contenedor se alinea como enseña la imagen.

Ejemplo de alineación

/**entrada**/
.container{
   chef-flex : column;
}
/**salida**/
.container{
   display:flex;
   flex-direction : column;
   flex-wrap : nowrap;
}

inline

contenedor que resetea el largo a automático y modifica la propiedad display flex por inline-flex

/**entrada**/
.container{
   chef-flex : row inline;
}
/**salida**/
.container{
   display:inline-flex;
   flex-direction : row;
   flex-wrap : wrap;
}

top

permite direccionar el contenido en la parte superior del contenedor

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row top;
}
/**salida**/
.container{
   display:flex;
   flex-direction : row;
   flex-wrap : wrap;
   align-items: flex-start;
}

column

/**entrada**/
.container{
   chef-flex : column top;
}
/**salida**/
.container{
   display:flex;
   flex-direction : column;
   flex-wrap : wrap;
   justify-content: flex-start;
}

right

permite direccionar el contenido en la parte derecha del contenedor

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row right;
}
/**salida**/
.container{
   display:flex;
   flex-direction : row;
   flex-wrap : wrap;
   justify-content: flex-end;
}

column

/**entrada**/
.container{
   chef-flex : column right;
}
/**salida**/
.container{
   display:flex;
   flex-direction : column;
   flex-wrap : wrap;
   align-items:flex-end;
}

bottom

permite direccionar el contenido en la parte inferior del contenedor

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row bottom;
}
/**salida**/
.container{
   display:flex;
   flex-direction : row;
   flex-wrap : wrap;
   align-items: flex-end;
}

column

/**entrada**/
.container{
   chef-flex : column bottom;
}
/**salida**/
.container{
   display:flex;
   flex-direction : column;
   flex-wrap : wrap;
   justify-content: flex-end;
}

left

permite ampliar el contenido en la parte izquierda del contenedor

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row left;
}
/**salida**/
.container{
   display:flex;
   flex-direction : row;
   flex-wrap : wrap;
   justify-content: flex-start;
}

column

/**entrada**/
.container{
   chef-flex : column left;
}
/**salida**/
.container{
   display:flex;
   flex-direction : column;
   flex-wrap : wrap;
   align-items:flex-start;
}

middle

permite direccionar el contenido al centro del en el eje Y

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: center;
}

column

/**entrada**/
.container{
   chef-flex : column middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: column;
   flex-wrap: nowrap;
   justify-content: center;
}

center

permite direccionar el contenido al centro del en el eje X

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   justify-content: center;
}

column

/**entrada**/
.container{
   chef-flex : column middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: column;
   flex-wrap: nowrap;
   align-items: center;
}

centered

permite apilar todo el contenido al centro

Ejemplo de alineación

row

/**entrada**/
.container{
   chef-flex : row middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
}

column

/**entrada**/
.container{
   chef-flex : column middle;
}
/**salida**/
.container{
   display: flex;
   flex-direction: column;
   flex-wrap: nowrap;
   align-items: center;
   justify-content: center;
}

flex(split)

otorga la propiedad de ancho autoajustable

Ejemplo de alineación

.container{
  flex: 1 1 0%;
}

flex(reset)

otorga la propiedad de ancho autoajustable

Ejemplo de alineación

.container{
   flex: 0 0 auto;
}

relative | absolute | fixed

permite definir si el contenedor posee la propiedad position como relative, absolute o fixed.

around | between | evenly

permite definir si el contenedor posee la propiedad justify-content como around, between o evenly.