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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
> Top-level control structures can assign to global variables | |
> without needing !global. Variables first defined in these | |
> structures will still be local without !global. |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
/* | |
* Issue with using `inspect()` for a string accidentally | |
* | |
* `inspect()`: Return a string containing the value as its Sass representation. | |
* @url http://sass-lang.com/documentation/Sass/Script/Functions.html#inspect-instance_method |
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
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
/* Sass 3.2.x | |
* -> Required argument $values must come before any optional arguments. | |
*/ | |
@mixin foo($val-1: 0, $val-2...) { |
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
<h1>font weight check <span class="note">on Mac OS X 10.10</span></h1> | |
<div class="helvetica"> | |
<h2>Helvetica Neue</h2> | |
<p class="note">Six weights</p> | |
<p class="fw100">ABCabc0123 あのイーハトーヴォの <span class="note">Thin</span></p> | |
<p class="fw200">ABCabc0123 あのイーハトーヴォの <span class="note">UltraLight</span></p> | |
<p class="fw300">ABCabc0123 あのイーハトーヴォの <span class="note">Light</span></p> | |
<p class="fw400">ABCabc0123 あのイーハトーヴォの <span class="note">Regular</span></p> | |
<p class="fw500">ABCabc0123 あのイーハトーヴォの <span class="note">Medium</span></p> | |
<p class="fw600">ABCabc0123 あのイーハトーヴォの <span class="note">Bold</span></p> |
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
" Select CSS Rule Set | |
" カーソルから一番近いCSSルールセットを選択する | |
" | |
" vimrcに↓を追加すると var で動きます。 | |
" nnoremap <silent> var :<C-u>call SelectCssRuleSet()<CR> | |
function! SelectCssRuleSet() | |
let save_reg = @@ | |
silent normal $va{Voy | |
let first_yank = @@ |
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
" .@:CenteringText {{{1 | |
" | |
" 例えば、「|」にカーソルがある状態で、 | |
" | |
" /* ------------------------------ | |
" * | hoge | |
" * ------------------------------ */ | |
" | |
" :call CenteringText(30)といった感じで、 | |
" 引数に「-」の数を指定して実行すると、 |
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
" endtagcomment.vim | |
" こういうHTMLがあったときに | |
" <div id="hoge" class="fuga"> | |
" ... | |
" </div> | |
" | |
" 実行するとこうなる | |
" <div id="hoge" class="fuga"> | |
" ... | |
" <!-- /div#hoge.fuga --></div> |