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

saduocss

v1.2.5

Published

saduocss一个轻量好用的原子类

Downloads

19

Readme

💒saduocss原子类css仓库

🌈特点介绍

  • 轻量
  • 实用
  • 小巧 因为轻,所以值得拥有,很好的一个原子类css样式库。

⛱️软件架构

  • 重置和基本样式
@import './reset.css';
@import './scrollbar.css';
@import './var.css';
  • 响应式
@import './screen.css';
@import './base.css';
  • 位置
@import './row.css';
@import './col.css';
@import './position.css';
  • 间距
@import './margin.css';
@import './padding.css';
@import './top.css';
  • 高度&高度
@import './width.css';
@import './height.css';
@import './line-height.css';
  • 列表&文本
@import './list.css';
@import './text.css';
@import './font.css';
  • 阴影
@import './shadow.css';
  • 透明度
@import './opacity.css';
  • 滤镜
@import './filters.css';
  • 颜色
@import './color.css';

🚧响应式断点

断点设置,768px,1024px,1536px,1536px,1920px。

  • 小屏幕手机
@media (max-width: 768px){}
  • 大屏幕手机/小平板
@media (min-width: 769px) and (max-width: 1024px) {}
  • 平板
@media (min-width: 1025px) and (max-width: 1280px) {}
  • 桌面
@media (min-width: 1281px) and (max-width: 1536px) {}
  • 大桌面
@media (min-width: 1537px){}

**注意:正常情况下,只区分wap和pc,只需写一份断点1024即可,如下: **


//兼容移动端
@media (max-width:1024px){

}

//pc端 ...

使用说明

安装方式一

1.安装依赖包


npm i saduocss --save
npm i saduocss-rem --save (适配移动端rem,可选。小于1024px的元素,会自动转换成rem单位)

2.引入样式

import "saduocss/src/all.css";

cdn引入

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/assets/css/index.css">
或者
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/assets/css/index.css">
rem适配
<link rel="stylesheet" href="https://unpkg.com/[email protected]/src/rem.css">
或者
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/src/rem.css">

安装方式二

1.下载文件

联系作者

微信:yanyutao2014
主页:https://gitee.com/yanyutao0402/saduocss