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
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
// CSS3 trasform middle | |
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
@mixin transform-middle(){ | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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
$pixel: px; | |
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
// миксин для центрирования блоков | |
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
@mixin center() { | |
margin-right : auto; | |
margin-left : auto; | |
} |
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 istouch = ( !!('ontouchstart' in window)) ? 'touchstart' : 'click'; |
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
$("input").on("input", function() { | |
this.value = this.value.replace(/[а-яА-ЯёЁ]+/i, ""); | |
}); |
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 add = (function () { | |
var counter = 0; | |
return function () {return counter += 1;} | |
})(); | |
add(); | |
add(); | |
add(); | |
// the counter is now 3 |
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
doctype html | |
html(lang="ru") | |
head | |
title Jade title | |
meta(charset="UTF-8") | |
meta(http-equiv="X-UA-Compatible", content="IE=edge") | |
meta(name="viewport", content="width=device-width, initial-scale=1") | |
//- no scale page |
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
.login-wrap { | |
position: fixed; | |
left: 0; | |
top: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 1; | |
text-align: center; | |
&:after { | |
display: inline-block; |
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
# Numerous always-ignore extensions | |
*.bak | |
*.diff | |
*.err | |
*.exe | |
*.log | |
*.orig | |
*.rej | |
*.sass-cache | |
*.swo |
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
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |