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

@oneline/style

v0.0.23

Published

oneline 样式库

Downloads

9

Readme

style

@oneline/style 是oneline的基础样式类库, 用于组装不同组件或者业务代码的基础.

使用

预处理或者js导入方式


import '@oneline/style/dist/index.css';
//or app css
import '@oneline/style/dist/index.app.css';

脚本引入方式


 <link href="http://cdn.jsdelivr.net/npm/@oneline/[email protected]/dist/index.css" rel="stylesheet"/>
 // or app
 <link href="http://cdn.jsdelivr.net/npm/@oneline/[email protected]/dist/index.app.css" rel="stylesheet" />

说明

样式库以 ol 作为class名称的前缀.

大小样式

类名|解释|描述 --|--|-- ol-fs| font-size | 文字大小 ol-w | width | 宽度 ol-h | height | 高度 ol-p | padding | 内间距 ol-m | margin | 外间距 ol-lh | line-height | 行高

布局样式

类名 | 解释 | 描述 --|--|-- ol-layout-h | 水平布局 | 水平方式布局 ol-layout-v | 垂直布局 | 垂直方式布局 ol-layout-g | 格子布局 | 格子方式布局 ol-ps-ab | 绝对定位 | 相对body定位 ol-ps-rt | 相对定位 | 相对父元素定位 ol-ps-fx | fixed定位 | 相对于可视窗口定位

外部样式

类名 | 解释 | 描述 --|--|-- ol-c | color | 文字颜色 ol-bg-c | background-color | 背景颜色 ol-b | border | 边框 ol-br | border-radius | 边框圆角 ol-block | display: block | 块元素 ol-inline | display: inline-block | 行内元素 ol-hover | ::hover && ::active | 鼠标悬停样式 ol-line | 伪类:after 高度为1px | 为某个box增加一个底部线