占位符一个罗盘扩展,它生成将适用于所有断点的占位符。在SASS中使用占位符的当前限制是无法跨指令扩展。Placeholderize与以生成一组基于断点命名空间的占位符。还有一个选项可以合并一个。例如这个... $sm-screen = 40rem;
$md-screen = 64rem;
$breakpoints : ( sm : $sm-screen , md : $md-screen );
@include placeholderize (bg - red)
{ background-color : red ; }
@include placeholderize (bg - green)
{ background-color : green ; }
@include placeholderize (bg - blue)
{ background-color : blue ; }
placeholderize:一个罗盘扩展,生成适用于所有断点的占位符
文件列表
placeholderize-master.zip
(预估有个5文件)
placeholderize-master
CHANGELOG.markdown
376B
lib
placeholderize.rb
151B
stylesheets
_placeholderize.scss
2KB
README.markdown
4KB
placeholderize.gemspec
733B
暂无评论