%clearfix {
&:before ,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
| /* | |
| First time, You need access here, and need configure about API Access. | |
| https://code.google.com/apis/console/b/0/ | |
| Next , access here | |
| https://accounts.google.com/o/oauth2/auth?redirect_uri=Uri_you_like_this_code_wirtten&response_type=code&client_id=Your_Client_ID&approval_prompt=force&scope=https://www.googleapis.com/auth/plus.me&access_type=offline | |
| */ | |
| $encoding = 'UTF-8'; |
| @mixin rover($width,$height,$bg,$ext:'gif',$color:''){ | |
| @if $bg != '' { | |
| @if $color != '' { | |
| background:url('../img/' + $bg + '.' + $ext) left top no-repeat $color; | |
| } @else { | |
| background:url('../img/' + $bg + '.' + $ext) left top no-repeat; | |
| } | |
| } | |
| a { |
| @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; |
| @mixin background($path:'',$pos1:'',$pos2:'',$repeat:'',$color:''){ | |
| @if $path != '' { | |
| $path:url(#{$path}); | |
| } @else { | |
| $path:''; | |
| } | |
| @if $pos1 != '' { | |
| $pos1:' #{$pos1}'; | |
| } |
| @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)); | |
| } | |
| } |
| @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); |
| 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); | |
| } |
%clearfix {
&:before ,
&:after {
content:"";
display:table;
}
&:after {
clear:both;
}
| <$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> |
| # 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" |