@vope/scss

2.4.3 • Public • Published

@vope/scss

Install

npm install @vope/scss

API

文档

npm 命令

命令

Usage

Function fcalc 对原生函数 calc 扩展了强大的计算能力

.content{
  --basic-value: 50px;

  $this-width: fcalc-single(--basic-value, 2, 1); //calc(var(--basic-value) * 2)
  $this-height: fcalc((exp: --basic-value, multiple: 2)); //calc(var(--basic-value) / 2)
  $this-left: fcalc(($this-height, -10%, 3em)); //calc(var(--basic-value) / 2 - 10% + 3em)
}

Changlog

日志

Readme

Keywords

Package Sidebar

Install

npm i @vope/scss

Weekly Downloads

1

Version

2.4.3

License

ISC

Unpacked Size

88.1 kB

Total Files

30

Last publish

Collaborators

  • vope