Amaze UI

CSS

浏览器默认样式统一,基础样式,网格,表格、表单、按钮及常用组件样式。

Badge


添加 .am-badge class 到 <div> 或者 <span> 元素。

默认样式

1 2 3 4 5 6 Allmobilize
Free Secondary Success Warning Danger
<span class="am-badge">1</span>
<span class="am-badge am-badge-primary">2</span>
<span class="am-badge am-badge-secondary">3</span>
<span class="am-badge am-badge-success">4</span>
<span class="am-badge am-badge-warning">5</span>
<span class="am-badge am-badge-danger">6</span>
<span class="am-badge am-badge-success">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary">Free</a>
<a class="am-badge am-badge-secondary">Secondary</a>
<a class="am-badge am-badge-success">Success</a>
<a class="am-badge am-badge-warning">Warning</a>
<a class="am-badge am-badge-danger">Danger</a>

圆角样式

在默认样式的基础上添加 .am-radius class。

1 2 3 4 5 6 Allmobilize
Free Secondary Success Warning Danger
<span class="am-badge am-radius">1</span>
<span class="am-badge am-badge-primary am-radius">2</span>
<span class="am-badge am-badge-secondary am-radius">3</span>
<span class="am-badge am-badge-success am-radius">4</span>
<span class="am-badge am-badge-warning am-radius">5</span>
<span class="am-badge am-badge-danger am-radius">6</span>
<span class="am-badge am-badge-success am-radius">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary am-radius">Free</a>
<a class="am-badge am-badge-secondary am-radius">Secondary</a>
<a class="am-badge am-badge-success am-radius">Success</a>
<a class="am-badge am-badge-warning am-radius">Warning</a>
<a class="am-badge am-badge-danger am-radius">Danger</a>

直角样式

在默认样式的基础上添加 .am-square class。

1 2 3 4 5 6 Allmobilize
Free Secondary Success Warning Danger
<span class="am-badge am-square">1</span>
<span class="am-badge am-badge-primary am-square">2</span>
<span class="am-badge am-badge-secondary am-square">3</span>
<span class="am-badge am-badge-success am-square">4</span>
<span class="am-badge am-badge-warning am-square">5</span>
<span class="am-badge am-badge-danger am-square">6</span>
<span class="am-badge am-badge-success am-square">Allmobilize</span>
<br>
<a class="am-badge am-badge-primary am-square">Free</a>
<a class="am-badge am-badge-secondary am-square">Secondary</a>
<a class="am-badge am-badge-success am-square">Success</a>
<a class="am-badge am-badge-warning am-square">Warning</a>
<a class="am-badge am-badge-danger am-square">Danger</a>
侧栏导航
Amaze UI 微信
在微信上关注我们