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

@miraidesigns/helpers

v1.1.1

Published

Mirai Designs Framework: Helpers module

Downloads

3

Readme

Helpers

Collection of helpful CSS classes.


Sass

@forward '@miraidesigns/helpers/styles';

Transitions

Disable transitions generally or on a specific element.

| Name | Description | | ------------------------- | ---------------------------------------------------------------- | | mdf-preload | Apply to the <body> element. Stops all transitions from firing | | mdf-disable-transitions | Stops transitions on the applied element |

Floats

Float elements to the left or right of its parent allowing content to move around it.

| Name | Description | | ----------------- | ------------------------------------------------------------------------- | | mdf-float-left | Float element to the left of the content | | mdf-float-right | Float element to the right of the content | | mdf-clearfix | Apply clearfix to parent element, stops floating content from overflowing |

Visibility

Hide elements in various ways.

| Name | Description | | -------------------- | --------------------------------------------------------------------------------- | | mdf-hidden | Hides an element by setting display to none | | mdf-hidden-mobile | Hides an element on mobile devices by setting display to none | | mdf-hidden-tablets | Hides an element on tablets by setting display to none | | mdf-hidden-laptop | Hides an element on laptops by setting display to none | | mdf-offscreen | Move the element offscreen but keep it content relevant to support ARIA practices |

Sizes

Set the height or width of an element in percentages. Format is either mdf-h-* for height or mdf-w-* for width.

| Name | Description | | ---------------- | ------------- | | one-fifth | 20% | | one-quarter | 25% | | one-third | 33.3% | | two-fifths | 40% | | half | 50% | | three-fifths | 60% | | two-thirds | 66.666666667% | | three-quarters | 75% | | four-fifths | 80% | | full | 100% |

Spacing

Two simple classes to either reset an element's margin or padding.

| Name | Description | | ------------------- | ------------------ | | mdf-margin-reset | Set margin to 0 | | mdf-padding-reset | Set padding to 0 |

Overflow

Hide an element's scrollbar or only show a horizontal or vertical one if necessary.

| Name | Description | | ---------------------- | --------------------------------------------------------------------------- | | mdf-scrollbar-hidden | Set overflow to hidden | | mdf-scrollbar-h | Set overflow-x to auto displaying only a horizontal scrollbar if needed | | mdf-scrollbar-v | Set overflow-y to auto displaying only a vertical scrollbar if needed |

Others

Miscellaneous helper classes that aren't part of a bigger "category".

| Name | Description | | ---------------- | --------------------------------------------------------------------------------- | | mdf-round | Rounds the edges of an element to make it circular. Sets border-radius to 50% | | mdf-rotate-90 | Rotates an element by 90deg. Sets transform to rotate(90deg) | | mdf-rotate-180 | Rotates an element by 180deg. Sets transform to rotate(180deg) | | mdf-rotate-270 | Rotates an element by 270deg. Sets transform to rotate(270deg) |