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
Less css trick to generate BEM-styled selectors, by Max Shirsin, http://noteskeeper.ru/1139 + Scss version | |
@block: ~".dm-import-feed"; | |
@{block} { | |
&_step_2 { | |
@{block}__page_step_2 { | |
display: block; | |
} | |
} |
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
Transparent 1px image placeholder | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> | |
And black one: | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="> |
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 unicode($str) | |
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"") | |
$icons: (next: 'e804', prev: 'e805', twi: 'e806', loc: 'e807', fb: 'e808', pin: 'e809', gplus: 'e80a') | |
@each $icon in $icons | |
&_#{nth($icon, 1)} | |
&:before | |
content: unicode(nth($icon, 2)) |
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
git tag -a v1.3 cf50010 -m "v1.3" | |
or simplest way | |
git tag "v1.3" cf50010 | |
git push --tags origin master |
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
icons = next '\e804', prev '\e805', twi '\e806', loc '\e807', fb '\e808', pin '\e809', gplus '\e80a' | |
for icon in icons | |
&_{icon[0]} | |
&:before | |
content: icon[1] |
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 jpost { | |
cp -a _dev/templates/pages/_drafts/_draft.md _dev/templates/pages/_posts/$@.md; | |
explorer "$(pwd -W | sed 's/\//\\/g')\_dev\templates\pages\_posts\\$@.md"; | |
mkdir _dev/img/post/$@; | |
explorer "$(pwd -W | sed 's/\//\\/g')\_dev\img\post\\$@"; | |
} |
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
// Блок | |
.block | |
// ... | |
// Начинаются штучки, касающиеся блока: медиа, миксины, псевдоклассы, псевдоэлементы | |
// @media-примеси блока и другие миксины | |
+below(640px) | |
// ... | |
// Псевдоэлементы блока |
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
//LIVE EXAMPLE: http://codepen.io/orlovmax/pen/PZRXaN?editors=1000 | |
// Define navigation mixin | |
mixin nav(args) | |
- items = args.items || {} | |
- active = args.active || {} | |
- nav = args.nav || {} | |
- list = args.list || {} | |
- item = args.item || {} | |
- item_active = args.item_active || {} |
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
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^/$ | |
RewriteRule .* / [L,R=302] |
OlderNewer