Warning
This topic is a draft and may contain wrong information.
$('body').on('shown.bs.modal', '.modal', function(){ | |
var windowHeight = parseInt($(window).height()); | |
var height = parseInt($('.modal-content').height()); | |
if(windowHeight > height) height = windowHeight; | |
//the 60 ekstra pixels is to correct for the margin top and button of the modal when initiated | |
$('.modal-backdrop').height(height+60); | |
}); |
/** | |
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
* | |
* To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
* the height of element `.foo` —which is a full width and height cover image. | |
* | |
* iOS Resolution Quick Reference: http://www.iosres.com/ | |
*/ | |
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> | |
<?php $i=1; while(has_sub_field('sections')) : ?> | |
<div class="panel panel-default"> | |
<div class="panel-heading" role="tab" id="heading-<?php echo $i; ?>"> | |
<h2 class="panel-title"> | |
<a data-toggle="collapse" data-parent="#accordion" href="#collapse-<?php echo $i; ?>" aria-expanded="true" aria-controls="collapseOne"> | |
<?php the_sub_field('heading'); ?> | |
</a> | |
</h2> | |
</div> |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
.tableCol{ | |
width:100%; | |
border-collapse:collapse; | |
} | |
.tableCol td{ | |
padding:7px; border:#4e95f4 1px solid; | |
} | |
/* improve visual readability for IE8 and below */ | |
.tableCol tr{ | |
background: #b8d1f3; |
<?php | |
/* | |
* Plugin Name: Disable wpautop | |
* Plugin URI: http://masterscene.com | |
* Author: Mahmoud Yasseen | |
* Author URI: http://masterscene.com | |
* Version: 1.1 | |
* Description: Disable wpautop on posts/pages with custom field 'wpautop' == false. | |
*/ |
/*Solution 1 (Recommended)*/ | |
ol { | |
counter-reset: item; | |
list-style-type: none; | |
} | |
li { | |
display: block; | |
} |
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |