CoffeeScript CSS ccss
- 授权协议: MIT
- 开发语言: JavaScript HTML/CSS
- 操作系统: 跨平台
- 软件首页: https://github.com/aeosynth/ccss
软件介绍
CoffeeScript CSS 这个名字跟 CoffeeScript 无关,将脚本化的样式变成 CSS 代码。
install: npm install ccss
main.coffee:
ccss = require 'ccss'
template = require './template.coffee'
css = ccss.compile template
require('fs').writeFileSync 'main.css', css
#or all at once: ccss.compileFile './template.coffee', 'main.css'
template.coffee:
borderRadius = (str) ->
WebkitBorderRadius: str
MozBorderRadius: str
borderRadius: str
boxShadow = (str) ->
WebkitBoxShadow: str
MozBoxShadow: str
boxShadow: str
module.exports =
form:
input:
padding: '5px'
border: '1px solid'
mixins: borderRadius '5px'
'#id .className': do ->
opaque = 1
translucent = opaque / 2
img:
mixins: [
borderRadius '5px'
boxShadow '5px'
]
opacity: translucent
'img:hover':
opacity: opaque
main.css:
form input {
padding: 5px;
border: 1px solid;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
#id .className img {
opacity: 0.5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 5px;
-moz-box-shadow: 5px;
box-shadow: 5px;
}
#id .className img:hover {
opacity: 1;
}
Web信息架构(第3版)
Peter Morville、Louis Rosenfeld / 陈建勋 / 电子工业出版社 / 2008年8月 / 85.00
本书涵盖了信息架构基本原理和实践应用的方方面面。全书共7个部分,包括信息架构概述、信息架构的基本原理、信息架构的开发流程和方法论、信息架构实践、信息架构与组织、两个案例研究,以及参考资料清单。 本书兼具较高的理论价值和实用价值,曾被Web设计领域多本书籍重点推荐,是信息架构领域公认的经典书,不论新手还是专家都能各取所需。本书可供Web设计与开发者、Web架构师、网站管理者及信息管理相关人员参......一起来看看 《Web信息架构(第3版)》 这本书的介绍吧!
