Skip to content

Instantly share code, notes, and snippets.

@RhythmShahriar
Created August 25, 2017 05:11
Show Gist options
  • Save RhythmShahriar/ecd44a7786e9fbcd5fcc9354fe8bf5af to your computer and use it in GitHub Desktop.
Save RhythmShahriar/ecd44a7786e9fbcd5fcc9354fe8bf5af to your computer and use it in GitHub Desktop.
/*-------------------- ROGUE/DIVI CSS ADJUSTMENT --------------------*/
/*-------------------------------------------------------------------*/
/*-- bootstrap container size with design */
.container {
max-width: 1200px !important;
width: 100% !important;
}
/*-- divi spacig with bootstrap */
.page .et_pb_section, .single .et_pb_section {
padding: 0 !important;
}
.page .et_pb_section .et_pb_row, .single .et_pb_section .et_pb_row {
max-width: 100% !important;
}
*:focus {
outline: 0 !important
}
/*-- page/post/archive spacing & anchor color */
.page:not(.home) #main-content,
.single #main-content,
.archive #main-content {
padding: 60px 0 15px;
}
.page:not(.home) #main-content a,
.single #main-content a,
.archive #main-content a {
color: #37cad1 !important;
}
.page:not(.home) #main-content a:hover, .page:not(.home) #main-content a:focus,
.single #main-content a:hover,
.single #main-content a:focus,
.archive #main-content a:hover,
.archive #main-content a:focus {
color: #333 !important;
}
.single .wp-post-image {
margin: 30px auto;
}
/*-- archive more link style */
.archive #main-content .container .col-md-8 a:nth-child(3){
padding: 8px 20px;
display: inline-block;
border: 1px solid #37cad1;
margin-top: 15px;
}
.archive #main-content .container .col-md-8 a:nth-child(3):hover,.archive #main-content .container .col-md-8 a:nth-child(3):focus{
background-color: #37cad1;
color: #fff !important;
}
/* divi break point : adjust archive list spacing */
@media only screen and (min-width: 979px) {
.category-articles h2,
.category-services h2 {
margin-top: 0 !important;
}
.category-articles #main-content img,
.category-services #main-content img {
margin-top: 5px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment