functions.php内に以下のようなコードを追加
register_sidebar( array(
'name' => 'サイドバー',
'id' => 'sidebar001',
'before_widget' => '<div class="box %2$s">',
'after_widget' => '</div>',
具体的な数字が入っているのは、記事・タグ・カテゴリーのID
ページ名称 | クラス名 |
---|---|
トップページ | body.home.blog |
タグ一覧ページ | body.archive.tag.tag-template.tag-95 |
カテゴリ一覧ページ | body.archive.category.category-1 |
記事詳細ページ | body.single.single.post.postid-1241.single-format-standard |
検索結果一覧ページ | body.search.search-results |
シングルページ | body.page.page-id-2.page-template-default |
gulp.task 'compass', -> | |
gulp.src '_scss/**/*.scss' | |
.pipe compass | |
config_file : './config.rb' | |
sass : '_scss/' | |
css: './public/css/' | |
fonts: './public/fonts' | |
image: './public/img' | |
environment : 'dev' | |
line_comments: false |
gulp = require 'gulp' | |
gulp.task 'move-image', -> | |
# フォルダ名は任意で変更する | |
gulp.src '/filename-assets/*.{jpg,png}' | |
.pipe gulp.dest 'public/img' |
gulp = require 'gulp' | |
zip = require 'gulp-zip' | |
gulp.task 'archive', -> | |
date = new Date() | |
gulp.src ['public/**/*'] | |
.pipe zip(date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() + '_' +date.getHours() + '-' + date.getMinutes() + '.zip') | |
.pipe gulp.dest('dest/') |
// 余白を追加したり除去する | |
$devices : ('xs': $screen-xs-min, 'sm': $screen-sm-min, 'md': $screen-md-min, 'lg': $screen-lg-min); | |
@each $device, $size in $devices { | |
@media (min-width: $size) { | |
.mt-#{$device}-0 { | |
margin-top: 0; | |
} | |
.mb-#{$device}-0 { | |
margin-bottom: 0; |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS3 font-stretch Test</title> | |
<style> | |
p { | |
font-size: 60px; | |
font-stretch: condensed; | |
} |
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS3 font-stretch Test</title> | |
<style> | |
p { | |
font-family: Futura; | |
font-stretch: condensed; | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |