使用tdcss.js轻松制作自己的style guide
来源:互联网 发布:java 调用firefox内核 编辑:程序博客网 时间:2024/06/16 14:03
http://jakobloekke.github.io/tdcss.js/
在前端开发中,如果能够有一个style guide对于设计来说就显得专业稳定,一致性。在上述链接中,有一个tdcss.js的工具可以帮助你生成可视化的style guide,
非常方便。其原理就是使用那个js文件在html加载完成后对特定section来做重新structure,形成style guide的样式
@stop-color: red;@wait-color: orange;@go-color: green;.btn {padding: 0 30px;font-size: 2em;&.stop {background-color: @stop-color;color: contrast(@stop-color);}&.wait {background-color: @wait-color;color: contrast(@wait-color);}&.go {background-color: @go-color;color: contrast(@go-color);}}
<!DOCTYPE html><html><head><meta charset="utf-8"><title>Style guide</title><link rel="stylesheet/less" type="text/css"href="less/buttons.less"><script src="js/less.min.js"type="text/javascript"></script><!-- TDCSS --><link rel="stylesheet" href="tdcss.js-master/src/tdcss.css"type="text/css" media="screen"><script type="text/javascript"src="https://code.jquery.com/jquery-2.1.1.min.js"></script><script type="text/javascript" src="tdcss.jsmaster/src/tdcss.js"></script><script type="text/javascript">$(function(){$("#tdcss").tdcss();})</script></head><body><div id="tdcss"><!-- # Button styles --><!-- & Collection of buttons. --><!-- : Stop button --><button class="btn stop">Stop</button><!-- : Wait button --><button class="btn wait">Wait</button><!-- : Go button --><button class="btn go">Go</button></div></body></html>
阅读全文
0 0
- 使用tdcss.js轻松制作自己的style guide
- Node.js Style Guide
- 轻松使用自己的回调函数
- 轻松使用自己的回调函数
- 轻松使用自己的回调函数
- 轻松使用自己的回调函数
- 轻松使用自己的回调函数
- 轻松使用自己的回调函数
- Style Guide
- 使用uDig制作geoserver中需要的style
- Google C++ Style Guide的哲学
- Google C++ Style Guide的哲学
- ARCGIS中style的制作
- js style的display
- 轻松制作自己的词云,向心爱的ta表达一下浪漫的心意吧
- FW: C++ Style Guide : C++ Style Guide
- 使用MobileTrack制作自己的基站数据库
- 使用flexpaper制作自己的“文库“
- Less tips:声明变量之前可以引用变量!
- Hibernate_持久化对象的生命周期
- UI开发中的Unit test新工具:网页抓屏比较
- 2017年校招全国统一模拟笔试(第五场)
- 微信小程序上下滚动
- 使用tdcss.js轻松制作自己的style guide
- 用shell测试linux是否能连通外网
- PS太大GIMP可用
- vxWorks设置tlb表项
- 颜色对比比率计算
- Zeppelin 自定义Kafka解释器Interpreter开发
- css validator
- 判断一颗二叉树是是否是另一颗树的子树
- sed: -e expression #1, unknown option to `s'解决办法