Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save StephenPunwasi/546949a9c52b52d3f4886e2f50a43376 to your computer and use it in GitHub Desktop.
Save StephenPunwasi/546949a9c52b52d3f4886e2f50a43376 to your computer and use it in GitHub Desktop.
<script>
// Fix for themeforest preview frame
if( self != top ) {
headTag = document.getElementsByTagName("head")[0].innerHTML;
var frameCSS = headTag + '<style type="text/css">@media screen and (max-width:600px){.carousel-item-transparent{max-height:420px;}}</style>';
document.getElementsByTagName('head')[0].innerHTML = frameCSS;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment