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; | |
} |
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
<article id="post-<?php the_ID(); ?>" <?php post_class( 'hentry--masonry' ); ?>> | |
<div class="entry-wrap"> | |
<a href="<?php echo esc_url( get_permalink() ); ?>"> | |
<div class="entry-image"> | |
<?php if ( has_post_thumbnail() ) : ?> | |
<?php the_post_thumbnail( 'post-thumb-cropped' ); ?> | |
<?php else : ?> | |
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/post-thumb-cropped.svg" alt="thumbnail"> | |
<?php endif; ?> | |
</div> |
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
// Styled dropdowns | |
.styled-select { | |
width: 100%; | |
height: em(44); | |
overflow: hidden; | |
background: #fff image-url('bg-styled-select-arrow.png') no-repeat 96% 50%; | |
border: 1px solid #d3d3d3; | |
select { | |
background: transparent; |
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; | |
} |