Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $width: 260px;
  2.  
  3. @for $i from 1 through 50 {
  4. $min-width: ($width * $i) + 10px;
  5. $max-width: ($width * ($i + 1)) + 10px;
  6.  
  7. $min-width: if(($min-width + 260px) >= $sidebar-breakpoint, $min-width + 260px, $min-width);
  8. $max-width: if(($max-width + 260px) >= $sidebar-breakpoint, $max-width + 260px, $max-width);
  9.  
  10. $item-width: 100% / $i;
  11.  
  12. @media only screen and (min-width: $min-width) and (max-width: $max-width) {
  13. .video {
  14. width: $item-width;
  15.  
  16. &:nth-of-type(#{$i}n + 1) {
  17. clear: both;
  18. }
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement