Skip to content

Instantly share code, notes, and snippets.

View zearadoua's full-sized avatar

Zine-el Abdine Radoua zearadoua

View GitHub Profile
@zearadoua
zearadoua / got-top.js
Last active October 18, 2017 09:56
button go-top always stay o top of footer
// Button go Top
$(window).on('scroll' ,function (event) {
var el = $(".region-footer");
var elTop = el.offset().top;
var windowTop = $(window).scrollTop();
var windowHeight = $(window).height();
var windowBottom = windowTop + windowHeight;
var elVisible = windowBottom - elTop;
@zearadoua
zearadoua / scss
Created September 25, 2017 11:09
bootstrap mixin for rtl
@mixin rtl() {
html[dir=rtl] & {
@content;
}
}
// float element right in rtl
@mixin float-columns-right($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
@for $i from (1 + 1) through $grid-columns {
$list: "#{$list}, .col-#{$class}-#{$i}";