Skip to content

Instantly share code, notes, and snippets.

View dougedgington's full-sized avatar

Doug Edgington dougedgington

View GitHub Profile
<?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;">';
/* ## Responsive Vimeo Video
--------------------------------------------- */
.video-container {
margin-bottom: 28px;
}
.responsive-video {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 0px;
@dougedgington
dougedgington / example.html
Created March 5, 2016 08:57
Horizontal line behind title HTML
<div class="title-wrapper">
<h2 class="horizontal-line">This is an example title</h2>
</div>
@dougedgington
dougedgington / example.css
Created March 5, 2016 09:02
Horizontal line behind title CSS
/* Horizontal line behind title
--------------------------------------------- */
.title-wrapper {
border-bottom: 3px solid #10222b;
text-align: center;
margin-bottom: 41px;
}
h2.horizontal-line {