In this lesson, you will learn how to iteratively generate CSS selectors and attributes using Sass loops. We will create a gradient of 100 elements, each with 1% darker colour using only a couple of lines of Sass.

@for $i from 1 through 100 {
.block#{$i} {
background: darken(white, $i);
}
}

最新文章

  1. Maven 配置 Selenium + testNG + reportNG 运行环境
  2. Python的第一天
  3. rsync服务器的配置和使用
  4. [译]Redis大冒险
  5. 转自 Good morning 的几句精辟的话
  6. CC++初学者编程教程(15) 基于cocos2dx的安卓打包环境
  7. asp.net 将ppt,word转化为pdf实现在线浏览详解
  8. ajax分页实现(php)
  9. MVC 网站部署常见问题汇总
  10. Pyhton爬虫实战 - 抓取BOSS直聘职位描述 和 数据清洗
  11. 从Myeclipse到Intelj Idea
  12. DOS下串口通信程序来传送文件的源代码
  13. Python进程
  14. Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
  15. JavaScript小实例:拖拽应用(二)
  16. chat聊天系统项目
  17. sqlalchemy数据库分层操作
  18. java后台发送请求并获取返回值
  19. mysql自增ID过大修改方法
  20. mysql 常用功能

热门文章

  1. 《c程序设计语言》读书笔记-3.4-数字转字符串
  2. HDU 1153 magic bitstrings(读题+)
  3. OPENCV mat类
  4. hdu 6119 …&&百度之星 T6
  5. How to duplicate a UIButton in Objective C?
  6. 【原创】Linux环境下的图形系统和AMD R600显卡编程(5)——AMD显卡显命令处理机制
  7. Linux虚拟地址空间布局以及进程栈和线程栈总结
  8. mysql打开文件数太多的解决办法
  9. Android_html5交互 弹框localstorage 存值 整体案例
  10. 51nod 1094 和为k的连续区间【前缀和/区间差/map】