
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@_nu/css-button
Advanced tools
| npm package | npm downloads | github | jsDelivr |
|---|---|---|---|
$ yarn add @_nu/css-button
@_nu/css-button/
├── lib
│ ├── index.css // 核心代码
│ └── skins
│ ├── bootstrap.css // bootstrap 按钮皮肤
│ ├── loading.css // 按钮loading 效果
│ ├── material.css // material-ui 按钮皮肤
│ └── webnovel.css // webnovel 按钮皮肤
└── module // 和lib 一摸一样,除了多了一个文件后缀
├── index.module.css
└── skins
├── bootstrap.module.css
├── loading.module.css
├── material.module.css
└── webnovel.module.css
| 选择器 | 功能 |
|---|---|
| .nu_btn | 默认的按钮选择器 |
| .nubtn.[color] | 按钮颜色 |
| .nubtn.[size] | 按钮尺寸 |
| .nubtn.[variant] | 按钮形状 |
| .nu_btn:disabled, .nu_btn[disabled] | 按钮不可用 |
| .nu_btn._loading | loading 按钮 |
| .nu_btn._capsule | 圆角按钮 💊 |
| .nu_btn._block | 占一行的按钮 |
| .nu_btn._circle | 正圆按钮,这个并没有实现只是约定了名称 |
_default、_primary、_secondary、_warning、_success、_danger_fill、_ghost_large、_middle、_small_disabled、_loading、_block、_capsule、_circle除了 颜色、形状、和尺寸是互斥的三个状态,其它选择器都是可以相互组合。
默认按钮大小,在large和 middle之间。
/** primary button */
.nu_btn._primary:not(._fill) {
color: blue;
}
.nu_btn._primary._fill {
background-color: blue;
}
/** warning button */
.nu_btn._warning:not(._fill) {
color: yellow;
}
.nu_btn._warning._fill {
background-color: yellow;
}
.nu_btn._large {
padding: 0.5rem 1rem;
font-size: 1.25rem;
line-height: 1.5;
border-radius: 0.3rem;
}
/* 其它同理 */
.nu_btn:disabled,
.nu_btn[disabled] {
cursor: not-allowed;
pointer-events: none;
}
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.