Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. // block sections, to be used within .containers
  2. // all exist on a 12 unit grid and are relative in
  3. // size to the container element
  4. $break: 50em;
  5.  
  6. @mixin width($num) {
  7. width: 100% * ($num / 12)
  8. }
  9.  
  10. .block_1,
  11. .block_2,
  12. .block_3,
  13. .block_4,
  14. .block_5,
  15. .block_6,
  16. .block_7,
  17. .block_8,
  18. .block_9,
  19. .block_10,
  20. .block_11,
  21. .block_12 {
  22. display: block;
  23. @media (min-width: $break) {
  24. float: left;
  25. }
  26. &.block_right {
  27. float: right;
  28. }
  29. }
  30.  
  31. @media (min-width: $break) {
  32. .block_1 { @include width(1); }
  33. .block_2 { @include width(2); }
  34. .block_3 { @include width(3); }
  35. .block_4 { @include width(4); }
  36. .block_5 { @include width(5); }
  37. .block_6 { @include width(6); }
  38. .block_7 { @include width(7); }
  39. .block_8 { @include width(8); }
  40. .block_9 { @include width(9); }
  41. .block_10 { @include width(10); }
  42. .block_11 { @include width(11); }
  43. .block_12 { @include width(12); }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement