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
@function em($target, $context: 16) { | |
@return ($target/$context) * 1em; | |
} |
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
// Breakpoint mixin breakpoints | |
$breakpoint-small: 768px; | |
$breakpoint-medium: 1004px; | |
$breakpoint-large: 1230px; | |
// Responsive helpers | |
@mixin breakpoint($point) { | |
@if $point == wide { | |
@media (min-width: $breakpoint-large) { @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
// Media block | |
@mixin mb($position: left, $spacing:0, $media: '.media', $block: '.block') { | |
overflow: hidden; | |
#{unquote($media)} { | |
float:$position; | |
@if $spacing > 0 { | |
margin-#{opposite-position($position)}:$spacing; | |
} | |
} | |
#{unquote($block)} { |
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
// Font size in rems, fallback to px | |
@mixin fspxrem($px, $context: 16) { | |
font-size: $px+px; | |
font-size: ($px/$context)+rem; | |
} |
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
// Font size in ems or rems | |
@mixin fs($px, $context: 16, $unit: em) { | |
font-size: ($px/$context)+$unit; | |
} |
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
/*-------------------------------------------------------------- | |
## Captions | |
--------------------------------------------------------------*/ | |
.wp-caption { | |
margin-bottom: 1.5em; | |
max-width: 100%; | |
} | |
.wp-caption img[class*="wp-image-"] { | |
display: block; |
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
.site-title { | |
text-shadow: none; | |
} |
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
add_filter( 'get_the_archive_title', function ( $title ) { | |
if( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} | |
return $title; |
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
@media only screen and (min-width: 62em) | |
.content-area { | |
width: 680px; | |
} |