Created
July 28, 2015 15:32
-
-
Save justinhough/2d35f1e8df70a16e0bd0 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="grid-50"> | |
<div id="book-design" class="image-right-after"> | |
<h1>Testing</h1> | |
<p>testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text </p> | |
<p><a href="#">button</a></p> | |
</div> | |
</div> | |
<div class="grid-50"> | |
<div id="book-design-2" class="image-left-after"> | |
<h1>Testing</h1> | |
<p>testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text </p> | |
<p><a href="#">button</a></p> | |
</div> | |
</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) | |
// ---- | |
.grid-50 { | |
width: 50%; | |
margin: 0 auto; | |
text-align: center; | |
min-height: 200px; | |
padding: 5rem 0; | |
position: relative; | |
} | |
.image-right-after { | |
&:after { | |
background-repeat: no-repeat; | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 0; | |
right: 0; | |
} | |
} | |
.image-left-after { | |
&:after { | |
background-repeat: no-repeat; | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
} | |
#book-design { | |
&:after { | |
background-image: url('http://placehold.it/200x250'); | |
height: 250px; | |
width: 200px; | |
right: -225px; | |
} | |
} | |
#book-design-2 { | |
&:after { | |
background-image: url('http://placehold.it/200x250'); | |
height: 250px; | |
width: 200px; | |
left: -225px; | |
} | |
} |
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
.grid-50 { | |
width: 50%; | |
margin: 0 auto; | |
text-align: center; | |
min-height: 200px; | |
padding: 5rem 0; | |
position: relative; | |
} | |
.image-right-after:after { | |
background-repeat: no-repeat; | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 0; | |
right: 0; | |
} | |
.image-left-after:after { | |
background-repeat: no-repeat; | |
content: ''; | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0; | |
} | |
#book-design:after { | |
background-image: url("http://placehold.it/200x250"); | |
height: 250px; | |
width: 200px; | |
right: -225px; | |
} | |
#book-design-2:after { | |
background-image: url("http://placehold.it/200x250"); | |
height: 250px; | |
width: 200px; | |
left: -225px; | |
} |
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="grid-50"> | |
<div id="book-design" class="image-right-after"> | |
<h1>Testing</h1> | |
<p>testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text </p> | |
<p><a href="#">button</a></p> | |
</div> | |
</div> | |
<div class="grid-50"> | |
<div id="book-design-2" class="image-left-after"> | |
<h1>Testing</h1> | |
<p>testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text testing the text </p> | |
<p><a href="#">button</a></p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment