Created
August 31, 2017 18:22
-
-
Save topleague/f6a1970b121b3b054ed71e5e438250ff to your computer and use it in GitHub Desktop.
CSS for Featured Widgets in Grid Layout
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
/* Front Page Featured Widget Area Styling */ | |
.front-page-section .widget-title { | |
text-align: center; | |
font-size: 48px; | |
font-size: 4.8rem; | |
margin-bottom: 40px; | |
font-weight: 400; | |
} | |
.front-page-2 p { | |
font-size: 30px; | |
font-size: 3rem; | |
line-height: 1.75; | |
} | |
.front-page .widget p.thirty { | |
margin-bottom: 30px; | |
} | |
.front-page-2 .content-box h4 { | |
font-family: 'Raleway', sans-serif; | |
font-size: 14px; | |
font-size: 1.4rem; | |
letter-spacing: 2px; | |
text-transform: uppercase; | |
} | |
.front-page-2 .content-box p { | |
font-size: 18px; | |
font-size: 1.8rem; | |
line-height: 1.625; | |
margin-bottom: 0; | |
} | |
.front-page-2 { | |
padding-bottom: 180px; | |
padding-top: 170px; | |
text-align: center; | |
} | |
.content-box .icon { | |
font-size: 30px; | |
} | |
.front-page-2 .content-box { | |
padding: 50px 40px 60px; | |
} | |
.front-page-2 .solid-section .content-box { | |
background-color: #f5f5f5; | |
} | |
.front-page-1 .wrap, .front-page-2 .wrap { | |
margin-left: auto; | |
margin-right: auto; | |
max-width: 1280px; | |
padding-left: 20px; | |
padding-right: 20px; | |
} | |
.front-page-2 { | |
border-top: 73px solid transparent; | |
margin-top: -73px; | |
-webkit-background-clip: padding-box; | |
-moz-background-clip: padding; | |
background-clip: padding-box; | |
position: relative; | |
z-index: 9; | |
} | |
/* Flexible Widgets */ | |
.flexible-widgets .widget { | |
float: left; | |
margin-bottom: 20px; | |
padding-left: 10px; | |
padding-right: 10px; | |
} | |
.flexible-widgets .widget:last-of-type { | |
margin-bottom: 0; | |
} | |
.flexible-widgets.widget-area .widget:nth-of-type(1) { | |
width: 100%; | |
} | |
.flexible-widgets.widget-halves.uneven .widget:last-of-type { | |
width: 50%; | |
} | |
.flexible-widgets.widget-halves .widget { | |
width: 50%; | |
} | |
.flexible-widgets.widget-thirds .widget { | |
width: 33.33%; | |
} | |
.flexible-widgets.widget-fourths .widget { | |
width: 25%; | |
} | |
.flexible-widgets.widget-halves .widget:nth-child(even), | |
.flexible-widgets.widget-thirds .widget:nth-child(3n+2), | |
.flexible-widgets.widget-fourths .widget:nth-child(4n+2) { | |
clear: left; | |
} | |
/* Media Queries */ | |
@media only screen and (max-width: 800px) { | |
.front-page-2 .wrap { | |
padding-left: 5%; | |
padding-right: 5% | |
} | |
.flexible-widgets.widget-thirds .widget { | |
float: none; | |
width: 100%; | |
} | |
.flexible-widgets .widget { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.front-page-2 p { | |
font-size: 24px; | |
font-size: 2.4rem; | |
line-height: 1.75; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment