Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $my-font-size:14px;
  2.  
  3. p{
  4. font-size:$my-font-size;
  5. }
  6. div.section{
  7. &.type-1,&.type-2{
  8. h1{
  9. font-size:$my-font-size;
  10. }
  11. }
  12. }
  13.  
  14. p,div.section.type-1 h1, div.section.type-2 h1{$font-size:$my-font-size;}
  15.  
  16. p,div.section((&.type-1,&.type-2)) h1{$font-size:$my-font-size;}
  17.  
  18. div.section{
  19. &.type-1,&.type-2{
  20. h1{
  21.  
  22. p, #{selector-nest(append-selector('div.section', ('.type-1', '.type-2')), h1)} {font-size:$my-font-size;}
  23.  
  24. p, #{nest(append-selector('div.section', '.type-1, .type-2'), h1)} {font-size:$my-font-size;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement