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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hysryt/flexutil

v2.12.1

Published

Flexboxの詰め合わせ

Downloads

3

Readme

FlexUtil

<div class="u-flex _center-x">
  <div class="u-flex-item">...</div>
  <div class="u-flex-item">...</div>
  <div class="u-flex-item _full">...</div>
</div>

前置き

  • flex-direction: column は基本的に使わない。

  • ブレークポイントは

    • 0px - 767px(スマートフォン用)
    • 768px - 991px(タブレット用)
    • 992px - 無限大(PC用)
  • _ で始まるクラスは sp または tb または pc をつけてブレークポイントごとの指定ができる。 例) _equally_sp-equally

    | 識別子 | 対象 | | - | - | | sp | スマートフォン | | tb | タブレット | | pc | PC |

u-flex

display: flex を適用する。

_center-x

justify-items: center を適用する。

_center-y

align-items: center を適用する。

_left

justify-items: flex-start を適用する。 ただし _reverse が指定されている場合は justify-items: flex-end を適用する。

_right

justify-items: flex-end を適用する。 ただし _reverse が指定されている場合は justify-items: flex-start を適用する。

_equally

子要素の u-flex-item を均等な幅で横一列に並べる。

_col-n

子要素を縦n列に並べる。 n1 から $col-maxnum までで、 $col-maxnum のデフォルトは 5

_reverse

flex-direction: row-reverse を適用する。

_space-between, _sbw

justify-items: space-between を適用する。

_gap

u-flex-item 同士の左右間に隙間を作る。 sp- などのプレフィックスは使えない。

u-flex-item

_grow

flex: 1 を適用する。

_full

flex: 0 0 100% を適用する。

_basis-n

flex-basis: nflex-shrink: 1 を適用する。

n$u-flex-item-basis-list にリストで指定する。 $u-flex-item-basis-list のデフォルトは 100, 200, 300, 400, 500

_basis-np

flex-basis: n%flex-shrink: 1 を適用する。

n$u-flex-item-basis-percent-list にリストで指定する。 $u-flex-item-basis-percent-list のデフォルトは 10, 20, 30, 40, 50, 60, 70, 80, 90, 100

mixin

gap($size)

子要素の左右間に隙間を作る。