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
// styling a | |
$a-tags: 'a, a:active, a:hover, a:visited'; | |
$a-tags-hover: 'a:active, a:hover'; | |
#{$a-tags} { | |
color: inherit; | |
text-decoration: none; | |
@include transition(all 0.3s ease-in-out); | |
} |
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
var m_lastScrollTop = 0; | |
$(window).scroll(function() { | |
var m_getscroll = $(window).scrollTop(); | |
//Scroll UP & DOWN | |
m_getscroll = m_getscroll; | |
if (m_getscroll > m_lastScrollTop) { //-----------DOWN | |
console.log('pa abajo'); | |
} else { //-----------UP |
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 lock_scroll(){ | |
// lock scroll position, but retain settings for later | |
var scrollPosition = [ | |
self.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, | |
self.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop | |
]; | |
var html = jQuery('html'); // it would make more sense to apply this to body, but IE7 won't have that | |
html.data('scroll-position', scrollPosition); | |
html.data('previous-overflow', html.css('overflow')); | |
html.css('overflow', 'hidden'); |
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
$('.elemt').on('click',function(e){ | |
//e.preventDefault(e); | |
$('html,body').animate({scrollTop:0}, 600); | |
}); |
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
@mixin rotating($tg) { | |
-webkit-transform: rotate(#{$tg}deg); | |
-ms-transform: rotate(#{$tg}deg); | |
transform: rotate(#{$tg}deg); | |
} | |
div { | |
width: 100px; | |
height: 100px; | |
position: absolute; |
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
$(document).ready(function() { | |
var configs = { | |
wrap: '#output', | |
data: { | |
labels: ['one', 'two', 'three'], | |
values1: [5, 7, 9], | |
values2: [10, 14, 18] | |
} | |
}; |
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
echo esc_url( get_template_directory_uri() ); |
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
@mixin clean { | |
&::after, | |
&::before { | |
content: ""; | |
display: table; | |
} | |
&::after { | |
clear: both; | |
} | |
} |
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
@mixin placeholder { | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&:-moz-placeholder { | |
/* Firefox 18- */ | |
@content; | |
} | |
&::-moz-placeholder { | |
/* Firefox 19+ */ |
OlderNewer