Skip to content

Instantly share code, notes, and snippets.

View leogono's full-sized avatar
🎯
Focusing

Leo Gono leogono

🎯
Focusing
View GitHub Profile
@leogono
leogono / .gitignore
Created December 6, 2013 05:49
Gitignore for SublimeText3
.DS_Store
.AppleDouble
.LSOverride
# Icon must ends with two \r.
Icon
# Thumbnails
._*
@leogono
leogono / font-size-rem.less
Created November 29, 2013 19:07
Rem Font Size mixins
.font-size(@sizeValue) {
@pxValue: @sizeValue;
@remValue: (@sizeValue / 10);
font-size: ~"@{pxValue}px";
font-size: ~"@{remValue}rem";
}
//Apply it by adding .font-size(16); to get 16px and 1.6rem
@leogono
leogono / post_thumbnail.php
Created October 11, 2013 19:17
WordPress post thumbnail with class and fallbackto placehold.it
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail('posts-thumb', array('class' => 'img-responsive'));
}
else {
echo '<img src="http://placehold.it/300x320&amp;text=No+featured+image" class="img-responsive" alt="">';
}
?>
@leogono
leogono / inline-block.css
Last active December 25, 2015 07:18
Cross Browser CSS. Compilation of cross browsers CSS.
li {
width: 200px;
min-height: 250px;
display: -moz-inline-stack;
display: inline-block;
vertical-align: top;
zoom: 1;
*display: inline;
_height: 250px;
}