Skip to content

Instantly share code, notes, and snippets.

@silverliebt
Created February 19, 2019 07:13
Show Gist options
  • Save silverliebt/c023c55b69de788adb205928d2b6af74 to your computer and use it in GitHub Desktop.
Save silverliebt/c023c55b69de788adb205928d2b6af74 to your computer and use it in GitHub Desktop.
Gutenberg Columns
<div class="contain">
<div class="wp-block-columns alignwide has-3-columns"><div class="wp-block-column"><figure class="wp-block-image"><img src="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/yoda.jpg" alt="" class="wp-image-10126" srcset="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/yoda.jpg 720w, https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/yoda-300x169.jpg 300w" sizes="(max-width: 720px) 100vw, 720px"></figure>
<h3>Yoda</h3>
<p>Only a fully trained Jedi Knight with the Force as his ally will conquer Vader and his Emperor. If you end your training now, if you choose the quick and easy path, as Vader did, you will become an agent of evil. Patience. And sacrifice Han and Leia? If you honor what they fight for…yes! If you choose to face Vader, you will do it alone. I cannot interfere. I understand. Artoo, fire up the converters.</p>
</div>
<div class="wp-block-column"><figure class="wp-block-image"><img src="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/obi-wan.jpg" alt="" class="wp-image-10127" srcset="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/obi-wan.jpg 720w, https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/obi-wan-300x169.jpg 300w" sizes="(max-width: 720px) 100vw, 720px"></figure>
<h3>Obi-Wan Kenobi</h3>
<p>General Kenobi, years ago you served my father in the Clone Wars. Now he begs you to help him in his struggle against the Empire. I regret that I am unable to present my father’s request to you in person, but my ship has fallen under attack and I’m afraid my mission to bring you to Alderaan has failed. I have placed information vital to the survival of the Rebellion into the memory systems of this R2 unit. <br></p>
</div>
<div class="wp-block-column"><figure class="wp-block-image"><img src="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/luke.png" alt="" class="wp-image-10128" srcset="https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/luke.png 720w, https://demo.creatorcourses.com/gutenberg/wp-content/uploads/2018/09/luke-300x169.png 300w" sizes="(max-width: 720px) 100vw, 720px"></figure>
<h3>Luke Skywalker</h3>
<p>Luke! Luke! Luke! Hey! Hey! I knew you’d come back! I just knew it! Well, I wasn’t gonna let you get all the credit and take all the reward. Hey, I knew there was more to you than money. Oh, no! Oh, my! Artoo! Can you hear me? Say something! You can repair him, can’t you? We’ll get to work on him right away. You must repair him! Sir, if any of my circuits or gears will help, I’ll gladly donate them. He’ll be all right.</p>
</div>
</div>
</div>
<footer>Learn more: <a target="_blank" href="https://creatorcourses.com/product/gutenberg-theming/">Theming for Gutenberg</a></footer>
/** Some basic styles to make things look nice.**/
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Oswald');
img {
max-width: 100%;
}
h3 {
font-family: 'Oswald', sans-serif;
font-size: 1.6rem;
font-weight: bold;
}
p {
line-height: 1.45em;
font-size: 1.25rem;
font-family: 'Open Sans', sans-serif;
}
footer {
text-align: center;
color: #AFAFAF;
font-size: 0.85rem;
font-family: 'Open Sans', sans-serif;
}
footer a {
color: #999999;
transition: color 0.5s ease;
}
footer a:hover {
color: #333333;
}
/***************/
.wp-block-columns {
display: flex;
margin: 20px 0;
}
.wp-block-column {
flex: 1;
margin: 0 20px;
}
@media (max-width: 764px) {
.wp-block-columns.has-3-columns {
flex-flow: row wrap;
}
.has-3-columns .wp-block-column:first-child {
flex-basis: 100%;
}
}
@media (max-width: 478px) {
.wp-block-columns.has-3-columns {
display: block;
}
.wp-block-column {
margin: 20px 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment