User Tools

Site Tools


sasset:using_the_content_container

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sasset:using_the_content_container [2016/04/02 13:48] (current)
leo created
Line 1: Line 1:
 +|<- [[Creating list elements]]|[[Conditional @if statements and argument lists]] ->|
  
 +Il est possible, dans les mixins, d'​utiliser du sous-code.
 +
 +<​code>​
 +@mixin break($length) {
 +  @media (min-width: $length) {
 +    @content;
 +  }
 +}
 +
 +.branding {
 +  float: left;
 +  display: none;
 +  @include break(1000px){
 +    display: block;
 +  };
 +}
 +</​code>​
 +
 +Donne :
 +
 +<​code>​
 +.branding {
 +  float: left;
 +  display: none;
 +}
 +@media (min-width: 1000px) {
 +  .branding {
 +    display: block;
 +  }
 +}
 +</​code>​
sasset/using_the_content_container.txt ยท Last modified: 2016/04/02 13:48 by leo