在Susy中隐藏块

时间:2012-11-17 04:11:03

标签: sass susy-compass

查看susy site,在遇到断点时如何隐藏.secondary

2 个答案:

答案 0 :(得分:1)

取自网站的GutHub source(删除了其他样式):

.guides, .tutorial {   
  .secondary { display: none; } // secondary starts hidden

  @include at-breakpoint($break) {    
    .secondary { display: block; } // secondary becomes visible at breakpoint
  }
}

答案 1 :(得分:1)

试试这个:

@include at-breakpoint($break)  {
                                 .secondary { display: none; }
                             }