Created
November 24, 2015 17:00
-
-
Save heroheman/aed3832e94ae01db43ae to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
<div class="teaser"> | |
<div class=teaser__img> | |
<img src=http://placehold.it/350x100 | |
</div> | |
<p class=teaser__text> | |
lorem ipsum | |
</p> | |
</div> | |
<div class="teaser--small no-js"> | |
<div class=teaser__img> | |
<img src=http://placehold.it/350x100 | |
</div> | |
<p class=teaser__text> | |
lorem ipsum | |
</p> | |
</div> |
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
.carousel{ | |
max-width: 400px; | |
display: inline-block; | |
&--small{ | |
@extend .teaser; | |
max-width: 200px; | |
} | |
&__img{ | |
padding: 1rem; | |
.no-js &{ | |
padding: 5rem; | |
} | |
} | |
&__text{ | |
color: green; | |
} | |
} |
This file contains 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
.carousel { | |
max-width: 400px; | |
display: inline-block; | |
} | |
.carousel--small { | |
max-width: 200px; | |
} | |
.carousel__img { | |
padding: 1rem; | |
} | |
.no-js .carousel__img { | |
padding: 5rem; | |
} | |
.carousel__text { | |
color: green; | |
} |
This file contains 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
<div class="teaser"> | |
<div class=teaser__img> | |
<img src=http://placehold.it/350x100 | |
</div> | |
<p class=teaser__text> | |
lorem ipsum | |
</p> | |
</div> | |
<div class="teaser--small no-js"> | |
<div class=teaser__img> | |
<img src=http://placehold.it/350x100 | |
</div> | |
<p class=teaser__text> | |
lorem ipsum | |
</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment