less语法
2016-01-07 18:00
197 查看
@color: #4D926F; #header {color: @color;} h2 {color: @color;}
.rounded-corners (@radius: 5px) { -webkit-border-radius: @radius; -moz-border-radius: @radius; -ms-border-radius: @radius; -o-border-radius: @radius; border-radius: @radius;} #header{.rounded-corners;} #footer{.rounded-corners(10px);}
#header { h1 {font-size: 26px;font-weight: bold;} p {font-size: 12px; a {text-decoration: none; &:hover {border-width: 1px} } } }
@the-border: 1px; @base-color: #111; @red: #842210; #header {color: (@base-color * 3);border-left: @the-border;border-right: (@the-border * 2);} #footer {color: (@base-color + #003300);border-color: desaturate(@red, 10%);}
相关文章推荐
- Color Cop V5.4.3_适合网页设计师/多用途的颜色采取器_汉化绿色版 下载
- CSS的color颜色使用说明
- jquery获取css的color值返回RGB的方法
- [IOS地图开发系类]5、改变大头针MKPinAnnotationView的颜色
- 科学坐月子,接受现代理念(转自搜狐母婴)
- 夏天如何科学坐月子
- xml中一些关于设置的细节(简单)
- 文件查找 /which/whereis/locate/find/grep
- nmon 性能:分析 AIX 和 Linux 性能的免费工具
- 烂泥:【转】rsync命令参数详解
- android 各种控件颜色值的设置(使用Drawable,Color)
- Debian vim没有颜色的解决办法
- 华为交换机S9303密码破解
- 9300密码恢复
- PowerPoint技巧与提高
- 网络排错方法总结
- 一次穿透 iptables 防火墙的 UDP ***报文真实案例分析
- 呼叫中心 ACD 系统的介绍
- Jquery控制checkbox中使用attr和prop
- Exchange Server 2010安装测试