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

slcss

v1.2.4

Published

This is an atomic CSS collection

Downloads

16

Readme

SLCSS

这是一个css集合,适用于所有基于 node-sassless 打包的项目。

1、在SCSS文件中使用

首先向 node-sass 添加 includePaths。

// node_modules 在磁盘中的完整路径
includePaths: [path.join(__dirname, 'xxxx', 'node_modules')]

引用:

@import 'slcss/scss/index'; // 原子基类
@import 'slcss/scss/reset/index';
@import 'slcss/scss/pc-scrollBar/index';

Ps:若打包工具使用 webpack 可跳过上一步。

2、在LESS文件中使用

@import 'slcss/less/index';
@import 'slcss/less/reset/index';
@import 'slcss/less/pc-scrollBar/index';

3、在 js 文件中使用

import 'slcss'
import 'slcss/css/reset/index.css'
import 'slcss/css/pc-scrollBar/index.css'

4、在 wepy 项目中使用

需要设计稿以 iphone6 为基准才可使用。

首先向 node-sass 添加 includePaths。

// node_modules 在磁盘中的完整路径
includePaths: [path.join(__dirname, 'xxxx', 'node_modules')]

引用:

@import 'slcss/scss/mp/index';
@import 'slcss/scss/mp-hover/index';
@include hover-color('#F8F8F8');

样式对照表

| 类名 | 说明 | | :---- | :---- | | .tc, .tl, .tr, .tj | text-align 相关 | | .ov-a, .ov-h, .ov-s | overflow 相关 | | .o-0, .o-05, .o-10 ~ .o-100 | opacity 相关, 10 ~ 100 之间 10 的倍数 | | .dn, .di, .db, .df, .dib, .dit, .dt, .dtc, .dt-row | display 相关 | | .ws-normal, .nowrap, .pre | white-space 相关 | | .strike, .underline, .no-underline | text-decoration 相关 | | .cur-p, .cur-d | cursor 相关 | | .v-base, .v-mid, .v-top, .v-btm | vertical-align 相关 | | .fl, .fr, .fn | float 相关 | | .br0, .br-50, .br-100, .br-pill | border-radius 相关 | | .relative, .absolute, .fixed, .static | position相关 | | .absolute--fill | absolute 全局居中 | | .absolute--middle | absolute 纵向居中 | | .absolute--center | absolute 水平居中 | | .lh-solid | line-height: 1; | | .border-box | box-sizing: border-box; | | .m-0, .p-0 | margin: 0 !important; padding: 0 !important; |

| 类名 | 数值范围 | 示例/说明 | | :---- | :---- | :---- | | .mt-#{$i}, .mr-#{$i}, .mb-#{$i}, .ml-#{$i} | 0 ≤ $i ≤ 100 偶数和 5 的倍数 | .mt-50 (margin-top: 50px;) | | .pt-#{$i}, .pr-#{$i}, .pb-#{$i}, .pl-#{$i} | 0 ≤ $i ≤ 100 偶数和 5 的倍数 | .pt-50 (padding-top: 50px;) | | .w#{$i}, .h#{$i} | 0 ≤ $i ≤ 100 偶数和 5 的倍数 | .w50 (width: 50px;) | | .w#{$i}p, .h#{$i}p | 0 ≤ $i ≤ 100 10 的倍数 | .w50p (width: 50%;) | | .mw#{$i}p, .mh#{$i}p | 0 ≤ $i ≤ 100 10 的倍数 | .mw50p (max-width: 50%;) | | .top-#{$i}, .right-#{$i}, .bottom-#{$i}, .left-#{$i} | 0 ≤ $i ≤ 100 5 的倍数 | .top-50 (top: 50px;) | | .lh#{$i} | 0 ≤ $i ≤ 50 偶数和 5 的倍数 | .lh50 (line-height: 50px;) | | .fw#{$i} | 0 < $i < 10 数值乘以 100 | .fw5 (font-weight: 500;) | | .f#{$i} | 12 ≤ $i ≤ 30 | .f25 (font-size: 25px;) |