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

helper.css

v1.0.2

Published

css classes allow you to build your custom layout without touching any CSS code

Downloads

11

Readme

helper.css

npm version License devDependency Status

helper css classes allow you to build your custom layout without touching any CSS code

these classes are generic helper classes predifined in the CSS of pages, here is quick view what they can do

  • Set margins - Available for all directions from 5 - 90 px stepping value 5px
  • Set padding - Available for all directions from 5 - 90 px stepping value 5px
  • Set border - Available for all sides, default pages border color
  • Border Radius - Option to set border radius, size sm / md / lg

Margins

You can add this helper class to any element in your HTML code to set Margins

FIRST PREFIX ( M-) | SECOND PREFIX(M-T/B/L/R-) | LAST PREFIX(M-T-$VALUE) |-------------------|-----------------------------|--------------------------| m for margin | t : top, b : bottom, l : left, r : right | 5,10,15,20, ... 90

EXAMPLE

  • m-t-10 which means Margin Top 10px
  • m-b-20 which means Margin Bottom 20px
  • m-l-5 which means Margin Left 5px
  • m-r-35 which means Margin Right 35px

RULE

Value can not be anything, 1,2,4,5,6. It has a step of 5px, eg: 5,10,15

OTHER OPTIONS

To remove margin from a HTML element add the class no-margin

<div class="m-t-10">
  I have a 10px margin in bottom
</div>

Padding

You can add this helper class to any element in your HTML code to set Padding

FIRST PREFIX ( P-) | SECOND PREFIX(P-T/B/L/R-) | LAST PREFIX(P-T-$VALUE) |-------------------|-----------------------------|--------------------------| p for padding | t : top, b : bottom, l : left, r : right | 5,10,15,20,... 90

EXAMPLE :

  • p-t-10 which means Padding Top 10px
  • p-b-20 which means Padding Bottom 20px
  • p-l-5 which means Padding Left 5px
  • p-r-35 which means Padding Right 35px

RULE

Value can not be anything, 1,2,4,5,6. It has a step of 5px, eg: 5,10,15

OTHER OPTIONS

To remove padding from a HTML element add the class no-padding

EXAMPLE :

<div class="p-t-10">
  I have a 10px padding in bottom
</div>

Border

You can add this helper class to any element in your HTML code to set Border, border currently supports one pixel

FIRST PREFIX ( B-) | SECOND PREFIX(B-T/B/L/R/A-) |-------------------|-----------------------------| b for border | t : top, b : bottom, l : left, r : right, a : all

Border Style

  • b-dashed - change the border style to 'dashed'
  • b-thick - change the border width to 2px

Border Radius

Helpy class to apply quick border radius.

  • b-rad-sm 3px border radius
  • b-rad-md 5px border radius
  • b-rad-lg 7px border radius

EXAMPLE :

<div class="b-b">
  I have a bottom border
</div>

Absolute positioning

Makes elements to have position:absolute. Add .relative to the parent of the element that you want to be absolute to have relative positioning

<div class="relative" style="height:300px">
  <!-- Equivalent to "pull-up" -->
  <div class="center bg-master-light text-center padding-20">center</div>
  <div class="top-left bg-master-light text-center padding-20">Top-left</div>
  <!-- Equivalent to "pull-bottom" -->
  <div class="bottom-left bg-master-light text-center padding-20">Bottom-left</div>
  <div class="top-right bg-master-light text-center padding-20">Top-right</div>
  <div class="bottom-right bg-master-light text-center padding-20">Bottom-right</div>
</div>

it is also possible to mix two or more classes. ex: Mixing top-left top-right will produce the following CSS styling top:0; left:0; right:0

Font Size

If you wish to change the default font size, then you can apply the following classes, accept 5,10,15,...,100

<!-- In Font Size 5 -->
<p class="fs-5">Font Size 5px </p>

<!-- In Font Size 10 -->
<p class="fs-10">Font Size 10px </p>

<!-- In Font Size 15 -->
<p class="fs-15">Font Size 15px </p>

Font Weights

<!-- Heading Light Weight -->
<h5 class="light">Thinnest</h5>

<!-- Heading Semi-bold Weight -->
<h5 class="semi-bold">Semi-bold</h5>

<!-- Heading bold Weight -->
<h5 class="bold">Most Boldest</h5>

Misc. classes

CLASS NAME | DESCRIPTION |----------|------------| full-width | Spans the element to have 100% width of the parent full-height | Spans the element to have 100% height of the parent scrollable | adds overflow-y:auto center-margin | Adds margin-left:auto; margin-right:auto. Useful when center aligning any div hide | Hides any element inline | Adds display:inline-block break-word| Adds breaking line word bg-blur| Adds gausian blur as background color hint-text | add more opacity into element all-caps | capitalize all strings