View sublime settings
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Nexus/Nexus.tmTheme", | |
"detect_indentation": false, | |
"detect_slow_plugins": false, | |
"draw_minimap_border": true, | |
"draw_shadows": false, |
View sublime packages
{ | |
"installed_packages": | |
[ | |
"AdvancedNewFile", | |
"Alignment", | |
"Animate.css Snippets", | |
"ASCII Comment Snippets", | |
"AutoFileName", | |
"Autoprefixer", | |
"Better CoffeeScript", |
View sublime config 19.03.2015
{ | |
"enable_tab_scrolling": false, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"remember_open_files": true, | |
"trim_trailing_white_space_on_save": true | |
"Seti_SB_h_med": true, | |
"Seti_SB_v_med": true, | |
"Seti_mouse_wheel_tabswitche": true, |
View scripts
$(function() { | |
// Preloader | |
$(window).on( 'load', function() { | |
setTimeout(function() { | |
$('body').addClass('is-load'); | |
}, 100); | |
}); | |
// Scroll Header |
View afg site scripts
$(document).ready(function() { | |
$(".toggle-mnu").click(function() { | |
$(this).toggleClass("on"); | |
$(".main-mnu").slideToggle(); | |
return false; | |
}); | |
$(".main-footer .toggle-mnu").click(function() { | |
$("html, body").animate({ scrollTop: $(document).height() }, "slow"); |
View stylus mixins
// Mixins. | |
m-nl() | |
margin 0 | |
padding 0 | |
text-indent 0 | |
list-style none | |
list-style-position outside | |
m-cf() |
View block-scroll.css
/* the page should not change width as content is loaded */ | |
body { | |
overflow-y: scroll; | |
} | |
/* block scrolling without losing the scroll bar and shifting the page */ | |
/* add this class when a modal is open */ | |
body.block-scroll { | |
overflow: hidden; | |
overflow-y: scroll !important; |
View post-receive
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
View fullpage + height fixed header
var h_header = $('header').height(); | |
$('#fullpage').fullpage({ | |
paddingTop: h_header | |
}); | |
var hf = function(){ | |
var h_header = $('header').height(); | |
var h_footer = $('footer').height(); | |
$('.content').css({ | |
'paddingTop': h_header, |
View scroll block
$(window).scroll(function() { | |
var sb_m = 20; // отступ сверху и снизу | |
var mb = 500; // высота подвала с запасом | |
var st = $(window).scrollTop(); | |
var sb = $(".sticky-block"); | |
var sbi = $(".sticky-block .inner"); | |
var sb_ot = sb.offset().top; | |
var sbi_ot = sbi.offset().top; | |
var sb_h = sb.height(); |
OlderNewer