Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // ----
  2. // libsass (v3.2.5)
  3. // ----
  4.  
  5. // Деректива if
  6. @mixin module($width) {
  7.  
  8. // Интерполяция, экранирование
  9. //@debug "width = #{$width}";
  10. //@warn "width = #{$width}";
  11.  
  12. @if $width >= 480px and $width < 768px {
  13. @media all and (min-width: 480px) {
  14. width: 50%;
  15. }
  16. }
  17. @else {
  18. width: 100%;
  19. }
  20. }
  21.  
  22. .module {
  23. @include module(480px);
  24. }
  25.  
  26. $width: 480px;
  27.  
  28. // Функция if
  29. .module1 {
  30. background: if($width>200px,green,red);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement