Skip to content

Instantly share code, notes, and snippets.

@chromaphobic
chromaphobic / gist:593af076b33762925bc2
Last active August 29, 2015 14:10
Responsive Embed HTML
<!-- The below code is all that is required for embedding a responsive YouTube video -->
<!-- Any width or height attributes should be removed from the iframe -->
<!-- The frameborder='0' and allowfullscreen attributes should be present -->
<div class="embed-container">
<iframe src="http://www.youtube.com/embed/HsRD6pTnlb8" frameborder='0' allowfullscreen></iframe>
</div>
<!-- By default, the iframe will automatically be sized to the dimensions of a video -->
<!-- If you need taller iframes (for non-YouTube content) two other classes exist: -->
<!-- "embed-container-tall" and "embed-container-extra-tall" -->
<!-- This is the default syntax. This will create a pull quote floated right that is 220px wide. -->
<!-- This is the same width as the "col4" class for images, which is used for many of the inline images -->
<blockquote class="pull-quote">
<p>Providing Innovative, Personalized Care for Patients with Digestive and Liver Diseases</p>
</blockquote>
<!-- If you want to set it to a different width, the same "col" classes that we use on images can be used -->
<!-- The width for the "col" classes on a blockquote will match if it had been used on an img -->
@chromaphobic
chromaphobic / gist:7123e7347b7fa82c05af
Last active August 29, 2015 14:10
YouTube Playlist Player
<!-- The div, ul, and script are all required -->
<!-- The data-source is copied from the YouTube playlist's URL -->
<!-- data-playlist-name data-thumbnail-path are required and should be left empty -->
<div id="youtube-playlist"></div>
<ul id="playlists">
<li data-source="list=PLD17355887F6284EE" data-playlist-name="" data-thumbnail-path=""></li>
</ul>
<script type="text/javascript">$(document).ready(function() { loadPlaylistPlayer(); });</script>
@chromaphobic
chromaphobic / gist:63e15277c174bc42401b
Last active August 29, 2015 14:13
Highlight Boxes
<!-- These boxes can be used to highlight small bits of content that we want to draw attention to. -->
<!-- For general uses, there are two main styles/classes: -->
<!-- "highlight-info" - This is a light gray background with black text -->
<!-- "highlight-invert" - A dark gray background with white text. -->
<div class="highlight-info">
<h3>Sed posuere consectetur est at lobortis</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo.</p>
</div>
<!-- There are 3 additional utility classes, primarily for status messages and such -->
<!-- As these utility classes use non-branded colors, they should not be used as design elements: -->
@chromaphobic
chromaphobic / gist:ab796c373b7604b1b13c
Created January 9, 2015 14:37
Printable PDF Button
<button type="button" class="pdf-print-button"><img src="/Content/Images/downloadIcon.jpg">Save a printable PDF</button>
@chromaphobic
chromaphobic / gist:78e847669c1dd2d822d7
Last active September 19, 2016 15:33
Responsive Lightbox
<!-- Include the following snippets in the "Custom CSS and JS" section of Sitecore -->
<!-- In the "Vendor CSS" box: -->
<link href="/content/magnific-popup.css" type="text/css" rel="stylesheet">
<!-- In the "Custom JS" box: -->
<script src="/scripts/jquery.magnific-popup.min.js"></script>
<!-- For single images: -->
<script>
$(document).ready(function() {
@chromaphobic
chromaphobic / gist:1636d87f6b230e87345c
Created October 26, 2015 15:51
Museo Slab Web Font
<!-- Include the following snippet in the "Custom CSS and JS" section of Sitecore: -->
<script src="//use.typekit.net/nwl5dzm.js"></script><script>try{Typekit.load({ async: true });}catch(e){}</script>
<!-- For the CSS, use the following example font-family declration: -->
<style>
h1 {
font-family: 'Museo Slab', 'museo-slab', 'Helvetica', 'Arial', sans-serif;
}
</style>
<!-- Currentlym the valid font weights are 300, 500, and 700 -->