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
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700'); | |
html, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
.site-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 screen and (min-width: 768px) { | |
.project-header { | |
background: none; | |
background-color: rgba( 0,0,0,0.5 ); | |
} | |
.project-header a { | |
color: #fff; | |
} | |
} |
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 screen and (min-width: 768px) and (max-width: 769px) { | |
.portfolio-grid-col-3 .project { | |
width: 48.19277% !important; | |
margin-right: 3.61446% !important; | |
} | |
.portfolio-grid-col-3 .project:nth-of-type(2n) { | |
margin-right: 0 !important; | |
} | |
} |
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
# Create a patch from the latest commit. | |
git format-patch -1 HEAD |
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
/** | |
* Sanitizes Checkbox. | |
* | |
* @param string $input potentially dangerous data. | |
*/ | |
function counter_sanitize_checkbox( $input ) { | |
if ( $input ) { | |
return 1; | |
} | |
return 0; |
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
/** | |
* Sanitizes Image Upload. | |
* | |
* @param string $input potentially dangerous data. | |
*/ | |
function counter_sanitize_image( $input ) { | |
$filetype = wp_check_filetype( $input ); | |
if ( $filetype['ext'] && wp_ext2type( $filetype['ext'] ) === 'image' ) { | |
return esc_url( $input ); | |
} |
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 screen and (min-width: 768px), (max-width: 1023px) { | |
.has-post-thumbnail .project-header { | |
opacity: 1; | |
position: static; | |
padding-left: 0; | |
padding-bottom: 0; | |
} | |
} |
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 screen and (min-width: 768px) { | |
.has-post-thumbnail .project-header { | |
opacity: 1; | |
background: 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
/* Margins */ | |
@media screen and (min-width: 415px ) { | |
.portfolio-grid .project { | |
width: calc( 49% - 10px auto; ); | |
margin-right: 10px; | |
} | |
} | |
@media screen and ( min-width: 768px ) { | |
.portfolio-grid { |