This file contains 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
/*------------------------------------------------------------------ | |
SASS/BEM STYLE GUIDE (NOT IMPORTED) | |
-------------------------------------------------------------------*/ | |
/*------------------------------------------------------------------ | |
Main section/element class name a.k.a. a "module" | |
-------------------------------------------------------------------*/ | |
.primary-element { | |
// SASS @extend |
This file contains 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
/*------------------------------------------------------------------ | |
SASS/CODEKIT PROJECT STRUCTURE | |
-------------------------------------------------------------------- | |
index.html | |
css.css | |
/images/ | |
/js/ |
This file contains 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
$break-xs: 480px; | |
$break-sm: 768px; | |
$break-md: 992px; | |
$break-lg: 1200px; | |
@mixin respond($media, $type: "max") { | |
@if $media == "xs" { | |
@media ($type+"-width": $break-xs) { | |
@content; | |
} |
This file contains 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
$animation-speed: 1.2s; | |
$animation-name: pulsate; | |
$animation-ease: ease-out; | |
-webkit-animation: $animation-name $animation-speed $animation-ease infinite; | |
-moz-animation: $animation-name $animation-speed $animation-ease infinite; | |
-o-animation: $animation-name $animation-speed $animation-ease infinite; | |
animation: $animation-name $animation-speed $animation-ease infinite; | |
$scale-lrg: 1; |
This file contains 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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
This file contains 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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin respond($media, $type: "min") { | |
@if $media == "xs" { | |
@media ($type+"-width": $break-xs) { | |
@content; | |
} |
This file contains 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
<img src="<?php echo get_template_directory_uri(); ?>/images/image.png" class=" " alt=" "> |
This file contains 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
echo "<pre>"; | |
print_r($master_feed); | |
echo "</pre>"; |
This file contains 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
$thumb_id = get_post_thumbnail_id(); | |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true); | |
$thumb_url = $thumb_url_array[0]; |