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
// install | |
// cd node_modules \ | |
// chmod -R a+rwX . | |
// run without sudo | |
// npm i del gulp-responsive --unsafe-perm | |
var del = require('del'); | |
var responsive = require('gulp-responsive'); |
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
/* fonts var */ | |
@fdir: '../fonts/'; | |
@ff-name: AvenirNextCyr CirceRoundedAlt; | |
@ff-style-1: Regular Bold BoldItalic; | |
@ff-style-2: Regular Bold; | |
@ff-count: length(@ff-name); | |
/* set to none if no need. Then use .ff(n,n) where first n - number of font, second for style of font */ | |
@ff-name-short: av ci; | |
@ff-style-1-short: rg bd bdi; | |
@ff-style-2-short: rg bd; |
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
@fdir: '../fonts/'; | |
@ff-name: 'CirceRoundedAlt'; | |
@rg: '@{ff-name}-Regular1'; | |
@bd: '@{ff-name}-Regular2'; | |
.ff(@ff) { | |
font-family: e(replace(@ff, @ff-name, "cust-ff")), Arial, Helvetica Neue, Helvetica, sans-serif; | |
} | |
.ff-mix(@ff) { |
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
/node_modules/ | |
/dist/ | |
*.7z | |
*.dmg | |
*.gz | |
*.iso | |
*.jar | |
*.rar | |
*.tar | |
*.zip |
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
&:after, | |
&:before { | |
content: ''; | |
@s: 2px; | |
width: 100%; | |
height: @s; | |
background-color: @brandcol1; | |
display: block; | |
position: absolute; | |
left: 0; |
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
html { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} |
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
@max1200: ~"(max-width: 1199px)"; | |
@max992: ~"(max-width: 991px)"; | |
@max768: ~"(max-width: 767px)"; | |
@max320: ~"(max-width: 320px)"; | |
@min1200: ~"(min-width: 1200px)"; | |
@min992: ~"(min-width: 992px)"; | |
@min768: ~"(min-width: 768px)"; | |
@min320: ~"(min-width: 321px)"; | |
@992to1200: @min992 and @max1200; | |
@768to992: @min768 and @max992; |
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
// install | |
// npm i gulp-bump gulp-git run-sequence | |
var bump = require('gulp-bump'); | |
var git = require('gulp-git'); | |
var runSequence = require('run-sequence'); | |
var fs = require('fs'); | |
// get project files | |
var allgit = ['./app/**/*', './gulpfile.js', './package.json', './faviconData.json']; | |
// get project version | |
// get project version |
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
{ | |
"name": "new project", | |
"version": "0.0.0", | |
"description": "new project", | |
"main": "gulpfile.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Loy Egor <loyegor@gmail.com> (http://loyegor.com/)", | |
"license": "ISC", |
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
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4.0[678] no-gzip | |
BrowserMatch bMSIE !no-gzip !gzip-only-text/html | |
FileETag MTime Size | |
<ifmodule mod_expires.c> | |
<filesmatch ".(jpg|gif|png|css|js|swf|svg|woff|woff2|ttf|eot)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 7 day" | |
</filesmatch> |