Created
May 24, 2018 15:48
-
-
Save NickDeckerDevs/e810e46a7d4448c0aa3dce736625e327 to your computer and use it in GitHub Desktop.
Sass Loop using nth of type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| &.client-logo-gallery { | |
| @include breakpoint(maxdesktop) { | |
| @for $i from 10 through 20 { | |
| .et_pb_gallery_item:nth-of-type(#{$i}) { | |
| display: none!important | |
| } | |
| } | |
| } | |
| @include breakpoint(phone) { | |
| @for $i from 7 through 20 { | |
| .et_pb_gallery_item:nth-of-type(#{$i}) { | |
| display: none!important; | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment