Skip to content

Instantly share code, notes, and snippets.

View netmagik's full-sized avatar

Irina Blumenfeld netmagik

View GitHub Profile
/* http://nicolasgallagher.com/another-css-image-replacement-technique/ */
.ir {
font: 0/0 a;
text-shadow: none;
color: transparent;
}
/* Align Simple Social Icons Centered */
.simple-social-icons ul.alignright,
.simple-social-icon ul.alignleft {
text-align: center;
}
.simple-social-icons ul.alignright li,
.simple-social-icons ul.alignleft li {
display: inline-block;
float: none;
@netmagik
netmagik / .gitignore
Last active August 29, 2015 14:12 — forked from marcjenkins/.gitignore
# Thanks to: https://gist.github.com/jdbartlett/444295
# Ignore everything in the root except the "wp-content" directory.
/*
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories.
wp-content/*
!wp-content/plugins/

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

#responsive-menu-icon::before {
color: #333;
content: "\f333";
font: normal 24px/1 'dashicons';
margin: 0 auto;
}
#responsive-menu-icon::after {
content: “Menü”;
font-style: normal;
text-transform: uppercase;
font-size: 2em;
padding-left: 10px;
position: relative;
top:-13px;
}
@netmagik
netmagik / Hamburger responsive menu icon with text Menu
Last active December 26, 2020 15:13
How to add text Menu next to Hamburger responsive menu icon
.responsive-menu-icon::before {
content: "\f333";
font: normal 20px/1 'dashicons';
margin: 0 auto;
text-align: center;
}
.responsive-menu-icon::after {
content: "Menu";
font-style: normal;
@netmagik
netmagik / Previous Next Post navigation in Genesis
Last active May 8, 2019 16:17
How to add Previous/Next links on single pages of custom post type in Genesis
/** Genesis Previous/Next Post Post Navigation */
add_action( 'genesis_after_entry', 'custom_prev_next_post_nav' );
function custom_prev_next_post_nav() {
if ( ! is_singular( 'portfolio' ) ) return;
echo '<div id="prev-next">';
previous_post_link( '<div class="prev-link"> %link</div>', '<span>&larr;</span>%title' );
next_post_link( '<div class="next-link"> %link</div>', '%title<span>&rarr;</span>' );
echo '</div><!-- .prev-next-navigation -->';
}
@netmagik
netmagik / Style previous-next post navigation
Last active April 18, 2016 16:54
How to style previous/next post navigation links
/* Previous and Next post links on single posts
------------------------------------------------------------ */
#prev-next {
float: left;
margin: 30px 0 40px;
width: 100%;
}
#prev-next .prev-link {