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

css-lite-utils

v1.1.0

Published

Set of CSS utility class which may help you save lot of time for repeatedly writing basic styles

Downloads

4

Readme

css-lite-utils

Set of CSS utility classes for repeatedly writing basic styles.

Inspired by Medium_CSS_Style_Guide.

Getting Started

Use LESS version

npm install --save css-lite-utils

your-main.less

@import "<PROJECT-ROOT>/node_modules/css-lite-utils/lib/main.less"

Use compiled CSS file

Copy dist/css-lite-utils.min.css to your static asset folder.

your.html

<link href='<PATH>/css-lite-utils.min.css' rel='stylesheet' type='text/css'> 

Classes

position

  • .u-positionRelative
  • .u-positionAbsolute

display

  • .u-displayNone
  • .u-displayBlock
  • .u-displayInlineBlock
  • .u-displayInline
  • .u-displayListItem
  • .u-displayTable
  • .u-displayTableRow
  • .u-displayTableCell

text-align

  • .u-textAlignLeft
  • .u-textAlignRight
  • .u-textAlignCenter

vertical-align

  • .u-verticalAlignBaseline
  • .u-verticalAlignBottom
  • .u-verticalAlignMiddle
  • .u-verticalAlignTop

float

  • .u-floatLeft
  • .u-floatRight

margin

Size is 0px - 50px incrementing up by 5px

  • .u-margin0, .u-margin5, ... , .u-margin45, .u-margin50
  • .u-marginTop0, .u-marginTop5, ... , .u-marginTop45, .u-marginTop50
  • .u-marginBottom0, .u-marginBottom5, ... , .u-marginBottom45, .u-marginBottom50
  • .u-marginLeft0, .u-marginLeft5, ... , .u-marginLeft45, .u-marginLeft50
  • .u-marginRight0, .u-marginRight5, ... , .u-marginRight45, .u-marginRight50

padding

Size is 0px - 50px incrementing up by 5px

  • .u-padding0, .u-padding5, ... , .u-padding45, .u-padding50
  • .u-paddingTop0, .u-paddingTop5, ... , .u-paddingTop45, .u-paddingTop50
  • .u-paddingBottom0, .u-paddingBottom5, ... , .u-paddingBottom45, .u-paddingBottom50
  • .u-paddingLeft0, .u-paddingLeft5, ... , .u-paddingLeft45, .u-paddingLeft50
  • .u-paddingRight0, .u-paddingRight5, ... , .u-paddingRight45, .u-paddingRight50

width & height

Size is 5% - 100% incrementing up by 5%

width
  • .u-width5Perc, .u-width10Perc, ... , .u-width95Perc, .u-width100Perc
  • .u-maxWidth5Perc, .u-maxWidth10Perc, ... , .u-maxWidth95Perc, .u-maxWidth100Perc
  • .u-minWidth5Perc, .u-minWidth10Perc, ... , .u-minWidth95Perc, .u-minWidth100Perc
height
  • .u-height5Perc, .u-height10Perc, ... , .u-height95Perc, .u-height100Perc
  • .u-maxHeight5Perc, .u-maxHeight10Perc, ... , .u-maxHeight95Perc, .u-maxHeight100Perc
  • .u-minHeight5Perc, .u-minHeight10Perc, ... , .u-minHeight95Perc, .u-minHeight100Perc

font

Size is 4px - 40px incrementing up by 4px

  • .u-fontSize4, .u-fontSize8, ... , .u-fontSize36, .u-fontSize40
  • .u-fontWeightBold

responsive show-hide

Screen types
  • Mobile: max-width: 767px
  • Tablet: min-width: 768px and max-width: 991px
  • Computer: min-width: 992px
Classes
  • .u-computerOnly: Only displayed on computer
  • .u-tabletOnly: Only displayed on tablet
  • .u-mobileOnly: Only displayed on mobile
Combination:
  • .u-computerOnly.u-tabletOnly: only displayed on computer and tablet
  • And so on with .u-computerOnly.u-mobileOnly, .u-tabletOnly.u-mobileOnly, ...

Misc classes

Some common classes

  • .u-clearBoth
  • .u-cursorPointer
  • .u-textTransformUppercase
  • .u-textTransformLowercase