Last active
September 10, 2017 04:15
-
-
Save topleague/0655b9f4550d5229b73ad8b2c74df70b to your computer and use it in GitHub Desktop.
Display Featured Services using CSS Grid in Genesis
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
/* GRID FOR FEATURED SERVICES */ | |
.your-widget-class { | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr; | |
margin-top: 40px; | |
text-align: center; | |
padding-top: 50px; | |
padding-bottom: 50px; | |
grid-column-gap: 20px; | |
grid-row-gap: 0; | |
} | |
.your-widget-class .content-box { | |
background: #f5f5f5; | |
padding: 50px 40px 60px; | |
} | |
.your-widget-class .content-box .icon { | |
font-size: 30px; | |
} | |
.your-widget-class .widget { | |
margin-bottom: 20px; | |
} | |
.your-widget-class .content-box h4 { | |
text-transform: uppercase; | |
font-size: 14px; | |
letter-spacing: 2px; | |
} | |
@media only screen and (max-width: 1023px) { | |
.your-widget-class { | |
grid-template-columns: 1fr 1fr; | |
}} | |
@media only screen and (max-width: 500px) { | |
.your-widget-class { | |
grid-template-columns: 1fr; | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment