Skip to content

Instantly share code, notes, and snippets.

@feNyaHub
feNyaHub / modx_ace_material.txt
Created April 5, 2017 15:19 — forked from agragregra/modx_ace_material.txt
MODx Ace Material Theme
MODx Ace Material Theme
1. Системные настройки > Пространство имен "ace":
Размер шрифта: 18px
Высота области редактирования: 560
Невидимые символы: Да
Мягкая табуляция: Нет
Размер табуляции: 2
Тема редактора: tomorrow_night
@feNyaHub
feNyaHub / Full Slow Toggle Menu + link a
Last active April 1, 2017 08:30
slow-toggle-mnu (advanced)
@feNyaHub
feNyaHub / button.sass
Created March 27, 2017 19:12 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
@feNyaHub
feNyaHub / scroll-top.html
Created March 27, 2017 19:11 — forked from agragregra/scroll-top.html
Scroll Top Button
<div class="top" title="Наверх"><i class="fa fa-angle-double-up"></i></div>
.top
position: fixed
bottom: 25px
background-color: #E0E0E0
border-radius: 10em
color: #666
font-size: 26px
width: 50px
@feNyaHub
feNyaHub / slow-toggle-mnu.js
Last active March 22, 2017 15:26
Full Slow Toggle Menu
$( ".toggle-close" ).hide();
$( ".overlap-mnu" ).hide();
$( ".toggle-open" ).click(function() {
$( ".overlap-mnu" ).slideToggle(500);
$( ".toggle-open" ).hide();
$( ".toggle-close" ).show();
});
$( ".toggle-close" ).click(function() {
@feNyaHub
feNyaHub / .htaccess
Created March 19, 2017 14:12 — forked from agragregra/.htaccess
htaccess wget disable
RewriteCond %{HTTP_USER_AGENT} wget [NC]
RewriteRule .* - [F]
@feNyaHub
feNyaHub / .htaccess
Created March 19, 2017 14:11 — forked from agragregra/.htaccess
htaccess index.html & www redirect
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} www.placeburg.com [NC]
RewriteRule (.*) http://placeburg.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(htm(l)?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(htm(l)?|php)$ http://placeburg\.com/$1 [R=301,L]
@feNyaHub
feNyaHub / header_fadeout.js
Created March 19, 2017 10:48 — forked from agragregra/header_fadeout.js
jQuery Header Content FadeOut on Scroll
$(window).scroll(function() {
var st = $(this).scrollTop();
if($(window).height()+500 > $("header").height()) {
$("header .col-md-12").css({
"transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"-webkit-transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"opacity" : "1" - st/700
});
@feNyaHub
feNyaHub / mfp-blurred.css
Created March 19, 2017 10:40 — forked from agragregra/mfp-blurred.css
Magnific-Popup Blurred Background
CSS:
* {
transition: filter .25s ease;
}
.mfp-wrap ~ * {
filter: blur(1px);
}
Sass:
*
@feNyaHub
feNyaHub / parallax-translate3d.js
Created March 19, 2017 10:37 — forked from agragregra/parallax-translate3d.js
Smooth Parallax Scroll
$(window).scroll(function() {
var st = $(this).scrollTop() /10;
$(".object").css({
"transform" : "translate3d(0px, " + st + "%, .01px)",
"-webkit-transform" : "translate3d(0px, " + st + "%, .01px)"
});
});