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
<snippet> | |
<content><![CDATA[ | |
@include mq(${1}) { | |
${2} | |
} | |
]]></content> | |
<tabTrigger>mq</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
@include rem(${1}, ${2}); | |
]]></content> | |
<tabTrigger>rem</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
em(${1}); | |
]]></content> | |
<tabTrigger>em</tabTrigger> | |
</snippet> |
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
<snippet> | |
<content><![CDATA[ | |
rem(${1}); | |
]]></content> | |
<tabTrigger>rm</tabTrigger> | |
</snippet> |
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
// Markup Sample | |
<img src="<?php echo $image[0]; ?>" | |
width="<?php echo $image[1]; ?>" | |
height="<?php echo $image[2]; ?>" | |
alt="<?php echo $image_alt; ?>" /> | |
// Markup Sample (Media Query Sync) | |
<figure> | |
<img class="responsive" | |
src="<?php echo $media_sml[0]; ?>" |
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
// Markup | |
<img src="<?php echo $src; ?>" | |
alt="<?php echo $alt; ?>" | |
width="<?php echo $width; ?>" | |
height="<?php echo $height; ?>" /> |
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
/** | |
* Generate image markup through WP function. | |
* | |
* Requires ACF setting of ID. | |
* The crop can be custom, or one of WP default ones, or leave empty. | |
* | |
* This method does not work great with Media Query Sync. However, this method | |
* allows you to define custom settings, and the width, height, and alt tags will | |
* be auto generated for you. Which is great for semantics. | |
* |
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
/** | |
* Pull Featured Image | |
* | |
* This method only pulls the featured image. | |
* | |
* the_post_thumbnail( $size, $attr ); | |
* http://codex.wordpress.org/Function_Reference/the_post_thumbnail | |
*/ | |
<?php |
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
<body> | |
<header class="global-header"> | |
<nav> | |
<ul> | |
<li><a href="#" title="">Nav Item</a></li> | |
<li><a href="#" title="">Nav Item</a></li> | |
<li><a href="#" title="">Nav Item</a></li> | |
</ul> | |
</nav> | |
</header> |