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
@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
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
&: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
/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
@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
/* 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
// 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
// npm i gulp-real-favicon | |
var realFavicon = require('gulp-real-favicon'); | |
var fs = require('fs'); | |
// File where the favicon markups are stored | |
var FAVICON_DATA_FILE = 'faviconData.json'; | |
// Generate the icons. | |
gulp.task('generate-favicon', function(done) { |
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
// check transitions end | |
function whichTransitionEvent() { | |
var t, | |
el = document.createElement("fakeelement"); | |
var transitions = { | |
"transition": "transitionend", | |
"OTransition": "oTransitionEnd", | |
"MozTransition": "transitionend", | |
"WebkitTransition": "webkitTransitionEnd" |