Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artiely/tool.less
https://github.com/artiely/tool.less
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/artiely/tool.less
- Owner: artiely
- Created: 2020-04-13T01:59:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T02:57:00.000Z (over 4 years ago)
- Last Synced: 2024-10-01T14:59:15.616Z (about 1 month ago)
- Language: CSS
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tool.less
> 一个自己常用的less工具集,内置reset.css
## 安装
```sh
npm i tool.less
```
## 使用
```sh
@import 'tool.less'```
注意只支持在less的上下文中使用
## 常见方法
左右浮动及清浮动
```less
.fl
.fr
.clearfix
```
扩大点击范围 (使用时注意伪类冲突)
```less
.tap-area
```
文字强制换行
```less
.break-word
```
文本超出隐藏
```less
.text-ellipsis
.text-ellipsis2
.text-ellipsis() // line 为任意行数
```
```less
.select-none // 禁止用户选择
```......