|
|
<h1>公有样式示例</h1>
|
|
|
|
|
|
<h2>color</h2>
|
|
|
统一色号(css 中使用统一变量)<br>
|
|
|
统一色号(css 中使用统一变量)
|
|
|
|
|
|
黑色: $black; <span class="example color black"></span><br>
|
|
|
白色: $white; <span class="example color white"></span><br>
|
|
|
红色: $red; <span class="example color red"></span><br>
|
|
|
绿色: $green; <span class="example color green"></span><br>
|
|
|
灰色: $grey; <span class="example color grey"></span><br>
|
|
|
蓝色: $blue; <span class="example color blue"></span><br>
|
|
|
主色调:
|
|
|
底色:
|
|
|
红色:
|
|
|
|
|
|
<h2>icon</h2>
|
|
|
iconfont 新建项目,使用 class 控制图标样式,不要用 unicode<br>
|
|
|
|
|
|
<span class="icon icon-bag"></span>
|
|
|
<span class="icon icon-check"></span>
|
|
|
<span class="icon icon-close"></span>
|
|
|
<span class="icon icon-left"></span>
|
|
|
<span class="icon icon-right"></span>
|
|
|
<span class="icon icon-search"></span>
|
|
|
<span class="icon icon-down"></span>
|
|
|
<span class="icon icon-up"></span>
|
|
|
<span class="icon icon-love"></span>
|
|
|
<span class="icon icon-delete"></span>
|
|
|
|
|
|
iconfont 新建项目,使用 class 控制图标样式,不要用 unicode
|
|
|
|
|
|
<h2>button</h2>
|
|
|
三种尺寸,圆角直角,实心空心<br>
|
|
|
|
|
|
<button class="button">空心</button>
|
|
|
<button class="button button-solid">实心</button>
|
|
|
<hr>
|
|
|
<button class="button button-round">圆角</button>
|
|
|
<button class="button button-round button-solid">圆角,实心</button>
|
|
|
<hr>
|
|
|
<button class="button button-large">大</button>
|
|
|
<hr>
|
|
|
<button class="button button-small">小</button>
|
|
|
<hr>
|
|
|
<button class="button button-large button-round button-solid">大,圆角,实心</button>
|
|
|
三种尺寸,圆角直角,实心空心,选中未选中
|
|
|
|
|
|
<h2>badge</h2>
|
|
|
一个数字的时候是圆形,数字长的时候圆角长方形,类似跑道
|
...
|
...
|
@@ -58,19 +31,14 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode<br> |
|
|
支持 一个按钮,两个按钮,多个按钮
|
|
|
每个按钮支持自定义事件
|
|
|
<p>
|
|
|
<button href="javascript:void(0);" id="modal-overlay">显示覆盖层</button>
|
|
|
<button href="javascript:void(0);" id="modal-alert">Alert</button>
|
|
|
<button href="javascript:void(0);" id="modal-confirm">Confirm</button>
|
|
|
<button href="javascript:void(0);" id="modal-custom">自定义</button>
|
|
|
<a href="javascript:void(0);" id="modal-overlay">显示覆盖层</a>
|
|
|
</p>
|
|
|
|
|
|
<h2>Handlebars Template</h2>
|
|
|
<p>Hello,<span id="hbs-placeholder"></span>!</p>
|
|
|
|
|
|
<h2>Vue 示例(大展示,使用新路由)</h2>
|
|
|
<h2>Vue 示例</h2>
|
|
|
|
|
|
<div id="app">
|
|
|
<app></app>
|
|
|
</div>
|
|
|
|
|
|
<h2>Handlebars 示例</h2>
|
|
|
<div id="hbs-placeholder">
|
|
|
<app></app>
|
|
|
</div> |
...
|
...
|
|