Key | Action |
---|
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
/* Clearfixes */ | |
/** -- | |
* Original | |
*/ | |
.original:after{ | |
content: "."; | |
display: block; | |
height: 0; |
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
// ========== | |
// Mixins | |
// ========== | |
// Vendor prefix | |
// ベンダープリフィックス付きのプロパティを自動生成します。 | |
// @param $prop {property name} プロパティ名 | |
// @param $value {?} 値 | |
@mixin vendor-prefix ($prop, $value) { |
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
// ========== | |
// Config | |
// ========== | |
// Browser support | |
$support-ie6: false; | |
$support-ie7: false; | |
$support-ie8: true; | |
$support-ie9: true; |
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
cd /d %~dp0 | |
chcp 65001 | |
set LANG=ja_JP.utf8 | |
sass --style expanded --watch _sass:css --cache-location _sass/_cache/.sass-cache |
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
pre { | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
overflow: auto; | |
} |
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
.parent { | |
font-size: 0; | |
letter-spacing: -1px; | |
word-spacing: -1px; | |
/* | |
letter-spacingとword-spacingはそれぞれ | |
「-1」にすると、環境によって崩れる場合があるので、 | |
その場合は「0」にする。 | |
それでもうまく行かなければ、JavaScriptで改行を削除するか、 | |
あらかじめHTMLから改行を消しておく。 |
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 getTextNode ($target, str) { | |
var nodes = $target | |
.contents() | |
.filter(function () { | |
return this.nodeType === 3 // テキストノードか否か | |
&& /\S/.test(this.data) // 空白か否か | |
&& $.inArray($(this).parent(), $target) // 直下か否か | |
&& (typeof str === 'undefined' || str === this.nodeValue); // 文字列の指定がある場合 | |
}); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |