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 gulp = require('gulp'); // use gulp 3.9.0 only because in 4.0.0 version task assertion error coming. | |
var sass = require('gulp-sass'); | |
var browserSync = require('browser-sync').create(); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var useref = require('gulp-useref'); | |
var uglify = require('gulp-uglify'); | |
var gulpIf = require('gulp-if'); | |
var cssnano = require('gulp-cssnano'); | |
var imagemin = require('gulp-imagemin'); | |
var cache = require('gulp-cache'); |
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
ctrl + r - to find css classes/IDs easily in a css file | |
ctrl + j - to align multiple lines into single line . mainly useful for single line css | |
ctrl + L - Select a line. | |
ctrl + D - Select a word/ duplicate a word or line(s) | |
ctrl + P - find any file on your project folder in fraction of second | |
ctrl + space - autocomplete for codes respectively | |
ctrl + / - comment purpose | |
ctrl + F - for normal search | |
ctrl + shift + F - Advanced search | |
ctrl + shift + G - wrap a text or codes |
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
.navbar-toggle.expand .icon-bar:nth-child(4){ | |
left: -25px; | |
opacity: 0; | |
} | |
.navbar-toggle.expand .icon-bar:nth-child(5){ | |
left: 35px; | |
opacity: 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
select.input-sm { | |
line-height: 20px; | |
} | |
.navbar-default{ | |
background: none; | |
border: 0; | |
} | |
.navbar{ |
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
/// Select all children from the first to `$num`. | |
/// @group with-arguments | |
/// @content [Write the style you want to apply to the children, and it will be added within the @content directive] | |
/// @param {number} $num - id of the child | |
@mixin first($num) { | |
&:nth-child(-n + #{$num}) { | |
@content; | |
} | |
} |
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
.config(function ($stateProvider, $urlRouterProvider){ | |
$urlRouterProvider.otherwise("/home"); | |
$stateProvider | |
//------------------------------ | |
// HOME | |
//------------------------------ |
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
function breakStr(string, count) { | |
//return [...string.slice(count - 1)].map((_, i) => string.slice(i, i + count)); | |
return [Array.from(string).slice(count - 1)].map((_, i) => string.slice(i, i + count)); | |
} |
OlderNewer