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{ | |
.cfix() { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
//} |
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
ul>li*>a[href=$#.html]>{$#} |
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
// install | |
// npm i gulp-concat gulp-uglify | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
// concat and clean js | |
gulp.task('compress:js', function () { | |
var jsjq = './app/js/jquery.min.js'; | |
var jscore = './app/js/core.js'; | |
var jsplug = './app/js/plugins.js'; |
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-concat gulp-clean-css gulp-uncss | |
var concat = require('gulp-concat'); | |
var cleanCSS = require('gulp-clean-css'); | |
var uncss = require('gulp-uncss'); | |
// concat, clean and remove unused css | |
gulp.task('compress:css', function() { | |
var cssreset = './app/css/reset.css'; | |
var cssplug = './app/css/plugins.css'; |
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> |
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
{ | |
"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
//install | |
// npm i gulp-autoprefixer browser-sync gulp-cache gulp-clean-css gulp-concat del gulp gulp-if gulp-util gulp-htmlmin gulp-imagemin imagemin-giflossy imagemin-mozjpeg imagemin-pngquant imagemin-zopfli gulp-less gulp-notify gulp-plumber gulp-replace gulp-sourcemaps gulp-uglify -f | |
// node node_modules/jpegtran-bin/lib/install.js | |
// node node_modules/gifsicle/lib/install.js | |
// node node_modules/zopflipng-bin/lib/install.js | |
// node node_modules/mozjpeg/lib/install.js | |
// node node_modules/giflossy/lib/install.js | |
// node node_modules/pngquant-bin/lib/install.js | |
var autoprefixer = require('gulp-autoprefixer'); |
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; |