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

ghost-layout

v1.0.0

Published

Responsive classes for flexbox layouts, grids and spaces.

Downloads

2

Readme

Ghost layout

Responsive classes for flexbox layout, grid and spaces.

Layout

.layout-h - sets horizontal layout
.layout-v - sets vertical layout
.layout-h-reverse - sets reverse order horizontal layout
.layout-v-reverse - sets reverse order vertical layout

Hide

.hide - hides an element

Flex (# - is number from 1 to 12)

.grow-# - sets flex grow to the element
.shrink-# - sets flex shrink to the element
.order-# - sets the order of element
.grid-# - creates grid column, grid 1 lenght will be 1/12 of the screen
.grow = .grow-1
.shrink = .shrink-1

Alignment in cross axis

.start - flex start
.cetner - cetnter
.end - flex end
.stretch - stretch

Alignment in main axis

.justify-start - flex-start
.justify-center - center
.justify-end - flex-end
.justify-around - space-around
.justify - space-between

Alignment in both axis

.-center-center = .center and .justify-center

Scrolling

.scroll - sets overflow to auto
.no-scroll - sets overflow to hidden

Padding

Default set of space sizes: 80px, 72px, 64px, 56px, 48px, 40px, 32px, 24px, 16px, 8px, 4px, 2px

.padding-{size} - sets padding around element
.padding-h-{size} - sets horizontal padding
.padding-v-{size} - sets vertical padding
.padding-t-{size} - sets padding top
.padding-b-{size} - sets padding bottom
.padding-l-{size} - sets padding left
.padding-r-{size} - sets padding right

Margins

.margin-{size} - sets margin around element
.margin-h-{size} - sets horizontal margin
.margin-v-{size} - sets vertical margin
.margin-t-{size} - sets margin top
.margin-b-{size} - sets margin bottom
.margin-l-{size} - sets margin left
.margin-r-{size} - sets margin right

Spaces

.space-h-{size} - adds horizontal space between elements
.space-v-{size} - adds vertical space between elements

Responsive modifiers

Each class can be used with display size modifier. There is two types of modifiers lte (less then or equal) and gt (greater than). And here is the list of screen sizes:

xxs = 480px;
xs = 768px;
s = 1024px;
m = 1280px;
l = 1440px;
xl = 1920px;
xxl = 2560px;

Example:

class="layout-v-xxs-lte layout-h-xxs-gt"  

This means for the screen size <= 480px layout will vertical, for screen size > 480px layout will be horizontal