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

dress-css

v2.0.10

Published

CSS helper mobile library

Downloads

7

Readme

dress-css is:

lightweight CSS flex grid library Tiny Grid

CSS helper library Dress.css

For creating responsive UI's

Install

    npm i dress-css

or

Logo

Tiny Grid

    ./dist/css/helpers/tinygrid.css

or with a CDN

    <link rel="stylesheet" href="https://res.cloudinary.com/chakstudio/raw/upload/v1640448879/tinygrid-min_bpguow.css">

And the following structure in your html tags:

    <div class="tg-container">
        <div class="tg-row">
            <div class="tg-col-4 tg-col-md-6 tg-col-sm-12">                
            </div>
        </div>
    </div>

Where:

  • ".tg-container" css class for a container to wrap the flex container
  • ".tg-row" css class for the flex container
  • ".tg-col-{1-12}" css class for desktop views
  • ".tg-col-md-{1-12}" css class for tablet and mid screen views
  • ".tg-col-sm-{1-12}" css class for smarthphone views
    And:
  • ".lg-hide" for hide in desktop views
  • ".md-hide" for hide in tablet and mid screen views
  • ".sm-hide" for hide in smarthphone views
    For advance control in the flex grid behavior:
  • ".tg-justify{-, -md-,-sm-}{flex-start,flex-end,center}" for control flex justify behavior
  • ".tg-align{-, -md-,-sm-}{flex-start,flex-end,center,strech,baseline}" for control flex align behavior
  • ".tg-align-content{-, -md-,-sm-}{flex-start,flex-end,center,strech,space-between,space-around}" for control flex align-content behavior

Dress.css

    ./dist/css/min/dress.2.0.min.css

or with a CDN

    <link rel="stylesheet" href="https://res.cloudinary.com/chakstudio/raw/upload/v1702018321/dress.2.0.min_isykfo.css">

And the following class in your parent container:

    <body class="dress">

For dressing your container & his children with the following helper's

    <head>
        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        <link rel="stylesheet" href="./css/dress.2.0.min.css">
        <title>Dress.css Demo</title>
    </head>
    <body class="dress bg-grey">
        <div class="p-1 w-5 text-center sqr-48 box-shadow border-blue border-solid border-s4 md-hide">
            <i class="material-icons fs-48 w-100 c-pointer green mouse-over">check</i>
        </div>
    </body>

Helper's

Width:
  • ".w-{1-100}" in steps of 1% (1,2,3,4...)
Height:
  • ".h-{1-100}" in steps of calc(1vh) (1,2,3,4...)
Margin:
  • ".m-{0-100}" in steps of 1% (1,2,3,4...)
  • ".ml-{1-100}" margin left in steps of 1% (1,2,3,4...)
  • ".mr-{1-100}" margin right in steps of 1% (1,2,3,4...)
  • ".mt-{1-100}" margin top in steps of 1% (1,2,3,4...)
  • ".mb-{1-100}" margin bottom in steps of 1% (1,2,3,4...)
Padding:
  • ".p-{0-100}" in steps of 1% (1,2,3,4...)
  • ".pl-{1-100}" padding left in steps of 1% (1,2,3,4...)
  • ".pr-{1-100}" padding right in steps of 1% (1,2,3,4...)
  • ".pt-{1-100}" padding top in steps of 1% (1,2,3,4...)
  • ".pb-{1-100}" padding bottom in steps of 1% (1,2,3,4...)
Text Decoration:
  • ".text-{uppercase,lowercase,capitalize,bold,bolder,underline,overline,line-through,blink,decoration-none}"
    for text decoration and basic styling
Text Position:
  • ".text-{left,right,center,justify}"
    for text alignment
Font Size:
  • ".fs-{6-72}" in steps of 1px (6,7,8,...,72)
Cursors:
  • ".c-{pointer,move,help,wait,hand}"
    for cursor icons
Shapes:
  • ".rounded"
    for rounded corners on elements of 5px of border-radius
  • ".circle"
    for circle elements of 50% of border-radius
  • ".sqr-{24,48,96,128}"
    for square shapes in pixels
  • ".rec-{24,48,96,128}"
    for rectangle shapes WHERE the height is the double of the width in pixels

Colors:

  • "black", "white", "gray", "silver", "maroon", "red", "purple", *
  • "hotpink", "green", "lime", "olive", "yellow", "navy", "blue", *
  • "teal", "aqua" *
Font
  • ".{"black", "white", "gray", "silver", "maroon", "red", "purple", "hotpink", "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua"}"
    for font color
Background
  • ".bg-{"black", "white", "gray", "silver", "maroon", "red", "purple", "hotpink", "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua"}"
    for background color
Border Color
  • ".border-{"black", "white", "gray", "silver", "maroon", "red", "purple", "hotpink", "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua"}"
    for border color
Border Size
  • ".border-s{1-25}" in steps of 1px
Border Style
  • ".border-{"solid", "dashed", "dotted", "double", "ridge", "none"}"
    for border-style propierty
Shadows
  • ".{"text", "box"}-shadow"
    for shadows in font and elements
Opacity
  • ".op-{0-10}"
    for opacity changes in elements
Elements
  • ".overflow-{auto, hidden, scroll, autohide}"
    for change overflow elements behaivor
  • ".{center, left, right, absolute, relative, fixed}"
    for position elements with margin: 0 auto, float and position
  • ".d-{none, block, inline-block}"
    for visibility elements with display
  • ".mouse-over"
    for mouseover element styling with box-shadow and border-radius