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() { | |
var virtualPagePath = ''; | |
try { | |
// Add subdomain before page path | |
var locationSplitDot = window.location.host.split('.'); | |
if (locationSplitDot && locationSplitDot[1]) { | |
if (locationSplitDot[0] !== 'www') { | |
virtualPagePath = location.host; | |
} |
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 virtualPagePath() { | |
/** | |
* Get the URL parameters | |
* source: https://css-tricks.com/snippets/javascript/get-url-variables/ | |
* @param {String} url The URL | |
* @return {Object} The URL parameters | |
*/ | |
var getParams = function (url) { | |
var params = {}, | |
parser = document.createElement('a'); |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
a { | |
color: blue; | |
&:hover { | |
color: red; | |
} |
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
// Example for handling git through gulp. Useful receipt for sometimes ;) | |
// hive.ir - made by Ehsaan <iehsan.ir@gmail.com> | |
// gulpfile.js | |
var gulp = require( 'gulp' ); | |
var git = require( 'gulp-git' ); | |
var minifyCss = require( 'gulp-minify-css' ); | |
var uglify = require( 'gulp-uglify' ); | |
var concat = require( 'gulp-concat' ); | |
var fs = require( 'fs' ); |
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
// | |
// Functions | |
// | |
// RANGES | |
// We use these functions to define ranges for various things, like media queries. | |
@function lower-bound($range){ | |
@if length($range) <= 0 { | |
@return 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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
// @if | |
// @function | |
// @mixin | |
// Direction Controller |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
// Returns $list as a string | |
// ------------------------------------------------------------------------------- | |
// @documentation http://sassylists.com/documentation/#debug | |
// ------------------------------------------------------------------------------- | |
// @example debug(a b c d e) => [ a, b, c, d, e ] |
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
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
// | |
// Article Info(Fun Part): | |
// | |
@mixin person($who) { | |
#{$who}-name: "Parhum Khoshbakht"; |
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
// | |
// Article Info(Fun Part): | |
// | |
@mixin person($who) { | |
#{$who}-name: "Parhum Khoshbakht"; | |
#{$who}-url: "http://parhum.net"; | |
#{$who}-twitter: "@parhumm"; | |
} | |
%article__info { | |
article-title: "Get Color Data"; |
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
<h1 class="header__logo">Header Logo</h1> | |
<span class="footer__logo">Footer Logo</span> |