Input

npm package npm downloads jsdelivr github
npm package npm downloads jsdelivr github

安装

$ yarn add @_nu/css-input

目录结构

@_nu/css-input/
lib
├── index.css                // base style
└── skins
    └── default
        ├── block.css        // block input
        ├── capsule.css      // capsule input 💊
        ├── disabeld.css     // disabeld
        ├── focus.css        // on focus
        ├── large.css        // large input
        ├── line.css         // line input
        └── small.css        // small input

核心接口

Selector Function
input.nu_input base selector
.nu_input input status of disabled
<input class="nu_input" type="text" placeholder="Enter" />
<label class="nu_input">
  <input type="text" placeholder="Enter" />
</label>

为了灵活性这两个写法是等价的。

皮肤接口

Selector Function skin
input:disabled disabled input disabled.css
input:focus focus input focus.css
._l large input large.css
._s small input small.css
._capsule variant of input capsule.css
._block block input block.css
._line line of disabled line.css

所有的皮肤选择器都是在有核心接口选择器的前提之下的。

More

上次更新: 5/16/2020, 3:33:45 PM