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
placeholder() | |
&::-webkit-input-placeholder | |
{block} | |
&::-moz-placeholder | |
{block} | |
&:-moz-placeholder | |
{block} | |
&:-ms-input-placeholder | |
{block} |
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
squish-text() | |
font 0/0 serif | |
text-shadow none | |
color transparent |
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
size($width, $height = $width) | |
width $width | |
height $height |
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
import 'module' – импортировать файл ./node_modules/module/<main>, где <main> - содержимое поля "main" в package.json модуля. | |
import 'module/file.js' – импортировать файл ./node_modules/module/file.js |
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
retinaBackground($image, $ext = 'png') { | |
// pixel ratio of 1; background size is 100% (or 100px image) | |
background-image url('../images/' + $image + '.' + $ext) | |
// pixel ratio of 2; background-size is 200% (or 200px image) | |
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { | |
background-image url('../images/' + $image + '@2x.' + $ext) | |
} | |
} |
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="#"])').on('click', function () { | |
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) { | |
let 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
[placeholder]:focus::placeholder | |
color transparent |
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
input | |
textarea | |
resize none | |
user-select text |
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
height 100% | |
width calc(4/3*100%) |