This file contains hidden or 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
$left: 129px, 394px, 137px; | |
@each $item in $width { | |
$i: index($width, $item); | |
.pig#{$i - 1} { | |
width: $item; | |
height: nth($height, $i); | |
left: nth($left, $i); | |
top: nth($top, $i); | |
} | |
} |
This file contains hidden or 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() { | |
$('a[href*="#"]:not([href="#"])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html, body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
This file contains hidden or 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 getPictureElement = function(data, container) { | |
formFilters.classList.remove('hidden'); | |
var element = elementToClone.cloneNode(true);// error Expected indentation of 2 space characters but found 0 indent | |
var elemImg = element.querySelector('img'); | |
element.querySelector('.picture-comments').textContent = data.comments; | |
element.querySelector('.picture-likes').textContent = data.likes; | |
container.appendChild(element); | |
var elemImgData = new Image();// error Expected indentation of 2 space characters but found 0 indent |
This file contains hidden or 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
@mixin open-sans($style:regular){ | |
font-family: 'Open Sans'; | |
@if ($style==light){ | |
font-weight: 100; | |
} | |
@if ($style==regular){ | |
font-weight: 400; | |
} | |
@if ($style==semibold){ |
This file contains hidden or 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
/* compass sprites end*/ | |
@mixin inlineblock($valine:top){ | |
display: inline-block; | |
vertical-align: $valine; | |
} | |
@mixin forul{ | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
} |
This file contains hidden or 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
@mixin get-sprite ($map, $icon){ | |
$sprite-image: sprite-file($map, $icon); | |
$sprite-map: sprite-url($map); | |
$sprite-position: sprite-position($map, $icon); | |
background: $sprite-map $sprite-position no-repeat; | |
$sprite-height: image-height($sprite-image); | |
$sprite-width: image-width($sprite-image); |
This file contains hidden or 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
/*! normalize.css v1.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. | |
*/ |
This file contains hidden or 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
mixin nav(className, items, activeInd) | |
nav(class=className) | |
ul(class=className + "__lyst") | |
each item, indx in items | |
li(class=className + "__item"+((activeInd==indx) ? className +"__item"+"active": "")) | |
a(href="#" class=className + "__link")= item | |
//+nav("minor", ["Планшеты", "Мобильные телефоны", "Мр3 плееры", "Персональные компьютеры"], 1) |
This file contains hidden or 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": "dz2", | |
"devDependencies": { | |
"browser-sync": "^2.9.11", | |
"gulp": "^3.9.0", | |
"gulp-compass": "^2.1.0", | |
"gulp-jade": "^1.1.0", | |
"gulp-plumber": "^1.0.1" | |
} | |
} |
NewerOlder