2014-09-05から1日間の記事一覧

チョコレート消費量とノーベル賞受賞者数の相関

Chocolate consumption and number of Nobel laureates - Imgur DAT CORRELATION !!!!!

その自前 keyframes mixin 使うのやめろ

今まで、keyframes を使うとき、自前で次のような mixin を定義して使ってゐた。 @mixin keyframes($animationName){ @-webkit-keyframes #{$animationName} { @content; } @-moz-keyframes #{$animationName} { @content; } @-ms-keyframes #{$animationNam…

text-shadow で縁取り文字を実現する sass mixin

@mixin font-outline($lineWidth: 2px, $color: #000, $steps: 16){ $q: ""; @for $i from 0 through $steps{ $q: $q + cos($i / $steps * 360) * $lineWidth sin($i / $steps * 360) * $lineWidth 0px $color; @if($i != $steps){ $q: $q + ", "; } } @incl…