%clearfix {
&:before ,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
| <div id="player" data-movieid="動画ID"></div> |
| http://fladdict.net/blog/2011/02/auto-kerning.html | |
| グローバル汚染を無くしたのと、jQueryらしくかけるようにしました。 | |
| // 引数なしの場合デフォルトのカーニングが摘要される。 | |
| $(selector).FLAutoKerning(); | |
| // 引数を入れた場合、そのカーニングが摘要される。 | |
| $(selector).FLAutoKerning(myKerningInfo); | |
| ライセンスは元のFLAutoKerning.jsを継承します。 |
| # Require any additional compass plugins here. | |
| require 'ruby-growl' | |
| # Set this to the root of your project when deployed: | |
| http_path = "/" | |
| css_dir = "css" | |
| sass_dir = "sass" | |
| images_dir = "img" | |
| javascripts_dir = "js" |
| <$mt:pagebasename setvar="bname"$> | |
| <ul> | |
| <mt:pagefolder> | |
| <mt:pages sort_by="created_on" sort_order="ascend"> | |
| <mt:if tag="pagebasename" eq="$bname"> | |
| <$mt:getvar name="__counter__" setvar="pagenum"$> | |
| </mt:if> | |
| </mt:pages> |
%clearfix {
&:before ,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
| var href = location.href.split('/'); | |
| var path = ''; | |
| var localRegex = /^\d+\.\d+\.\d+\.\d+/; //Local IP Address | |
| var workRegex = /^.*\/pc\/[^\/]+\/.*$/; //Change regex if you want. | |
| for(i = 0 ; i < href.length ; i++){ | |
| if(href[i] == '' || i == href.length - 1 && href[i].indexOf('.') !== -1){ | |
| href.splice(i,1); | |
| } |
| @function dummytext($length:0,$lang:'ja'){ | |
| $base:''; | |
| @if $lang == 'ja' { | |
| $base:こ こ に 文 章 が 入 り ま す 。; | |
| } @else if $lang == 'en' { | |
| $base:t h i s \ i s \ d u m m y \ t e x t \.; | |
| } | |
| $text:''; | |
| $num:floor($length / length($base)); | |
| $rest:$length % length($base); |
| @function margin($margin,$lheight,$base,$unit:0){ | |
| @if $unit != 0 { | |
| @return ($margin + (((1 - (($lheight) / $base)) / 2) * $base))+px; | |
| } @else { | |
| @return ($margin + (((1 - (($lheight) / $base)) / 2) * $base)); | |
| } | |
| } |
| @mixin background($path:'',$pos1:'',$pos2:'',$repeat:'',$color:''){ | |
| @if $path != '' { | |
| $path:url(#{$path}); | |
| } @else { | |
| $path:''; | |
| } | |
| @if $pos1 != '' { | |
| $pos1:' #{$pos1}'; | |
| } |
| @function margin($margin,$lheight,$base){ | |
| @return $margin + (((1 - (($lheight) / $base)) / 2) * $base); | |
| } | |
| @function pxtoem($target,$base){ | |
| @return ($target / $base)+em; | |
| } | |
| @function emtopx($target,$base){ | |
| @return ($target * $base)+px; |