Skip to content

Instantly share code, notes, and snippets.

@IftekherSunny
Last active December 28, 2019 10:08
Show Gist options
  • Save IftekherSunny/80e75b097bcde3d911ce5d041103b7c2 to your computer and use it in GitHub Desktop.
Save IftekherSunny/80e75b097bcde3d911ce5d041103b7c2 to your computer and use it in GitHub Desktop.
var iframe = document.getElementById('iframe');
iframe.onload = function() {
var frameElement = document.getElementById("iframe");
var doc = frameElement.contentDocument;
doc.body.innerHTML = doc.body.innerHTML + '<style>.site-preview--landing-page .content-wrapper .col-md-4,.smartlist .content-wrapper .col-md-4{flex:0 0 100%!important;max-width:100%!important}body .col-md-4 img{display:none}body .card{width:100%}body .col-md-4.mb-4.d-flex.align-items-stretch{margin-bottom:20px!important}body .card-text{display:none}body .card-title{padding:0!important;margin:0!important;text-align: center;}body .card-body{padding:0px;}body .card-title a {padding: 20px;display:block;}.site-preview--landing-page .content-wrapper .card:hover,.smartlist .content-wrapper .card:hover{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important;transform:scale(1.025)}</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment