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
<?php | |
//* Shortcode to output video embed with responsive wrapper | |
function dee_video($atts, $content = null) { | |
extract(shortcode_atts(array( | |
'width' => '500', | |
), $atts)); | |
$output = '<div class="video-container" style="max-width:' . $width . 'px;">'; |
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
/* ## Responsive Vimeo Video | |
--------------------------------------------- */ | |
.video-container { | |
margin-bottom: 28px; | |
} | |
.responsive-video { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
padding-top: 0px; |
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
<div class="title-wrapper"> | |
<h2 class="horizontal-line">This is an example title</h2> | |
</div> |
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
/* Horizontal line behind title | |
--------------------------------------------- */ | |
.title-wrapper { | |
border-bottom: 3px solid #10222b; | |
text-align: center; | |
margin-bottom: 41px; | |
} | |
h2.horizontal-line { |
OlderNewer