デザインのカスタマイズ
http://q.hatena.ne.jp/1229439729
解決しないままなのは残念なので、簡単に出来るようにしてみました。
以下をそれぞれコピーして、それぞれの欄にそのまま貼り付けるだけです。
時間ができたら試してみてください。
※タイトル背景の画像と本文などの白い背景画像に関しては、そのまま使っても大丈夫です。
とりあえずしばらく削除する予定はありません。
表示が問題ないことが確認できてから、自分のフォトライフにアップした画像のパスに変更してみてください。
@charset "euc-jp"; body { background: #e8e9f2 url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/background.gif"); text-align: center; color: #313131; font-family:arial, sans-sarif; } img { border :0 ; } * { margin: 0; padding: 0; } a { color: #8fc31f; } a.keyword { color: #313131; text-decoration: none; border-bottom: 1px dotted #ccc; } .ad { width: 500px; margin: 0 auto; } /* ヘッダー */ div.adminmenu { width: 930px; _width: 950px; background: transparent url("http://img.f.hatena.ne.jp/images/fotolife/r/rouge_2008/20081223/20081223172320.gif") repeat-y; margin: 0 auto; padding: 10px; text-align: left; } .adminmenu span.adminmenu { font-size: 80%; padding-left: 10px; font-family: sans-serif; } #simple-header { width: 950px; background: transparent url("http://img.f.hatena.ne.jp/images/fotolife/r/rouge_2008/20081223/20081223172320.gif") repeat-y; margin: 0 auto; padding: 5px 0 10px 0; text-align: left; } #simple-header img, #simple-header input { vertical-align: middle; } #simple-header img { margin-top: 2px; border:none; } #simple-header a img { border: none; } #simple-header img#logo-hatena { margin-left: 10px; } #simple-header form.search-form { display: inline; } #simple-header input, #simple-header select{ margin: 0 5px 0 0; font-size: 12px; height: 18px; padding: 0; } #simple-header input.search-word { width: 10em; font-size: 12px; border: 1px solid #b5b5b5; background: #fff; margin-left: 5px; } #simple-header input.search-button { background: #a6a3a2; border: 1px solid #b5b5b5; width: 38px; color: #ffffff; font-family: sans-serif; } #simple-header ul { position: static; list-style: none; margin: 5px 5px 5px 7px; padding: 0; } #simple-header ul li { display: inline; font-size: 80%; padding-left: 5px; font-family: sans-serif; } #simple-header ul li a { color: #8fc31f; text-decoration: none; } #simple-header ul li a:hover { text-decoration: underline; } h1 { width: 390px; _width: 950px; *width: 950px; height: 110px; _height: 200px; *height: 200px; padding-left: 560px; padding-top: 90px; background: url("http://img.f.hatena.ne.jp/images/fotolife/r/rouge_2008/20081223/20081223192011.gif") no-repeat top left; margin: 0 auto; text-align: center; font-size: 95%; font-family: serif; color: #8fc31f; } h1 a { text-decoration: none; } /* adsense */ .google_color_text { color:#333344; } .google_color_link { color:#333344; } .google_color_url { color:#be0c0c; } .google_color_bg { color:#ffffff; } .google_color_border { color:#ffffff; } /* 全体のDIV設定 */ .hatena-body { width: 950px; background: url("http://img.f.hatena.ne.jp/images/fotolife/r/rouge_2008/20081223/20081223172320.gif") repeat-y; margin: 0 auto; padding-bottom: 20px; font-size: 90%; text-align: left; } .hatena-body:after { display: block; content: ""; clear: both; } .main { width: 700px; float: left; background: #fff; padding-top: 20px; padding-bottom: 20px; text-align: left; } .sidebar { width: 250px; float: left; text-align: left; color: #fff; } /* 記事部分 */ .calendar { width: 660px; background: #fff; padding: 10px 20px 3px 20px; margin: 0 0 20px 0; text-align: right; } #days { } .day { width: 640px; _width: 700px; overflow: hidden; padding: 10px 30px 30px 30px; } .day img { max-width: 500px; } .day h2 a { color: #8fc31f; font-size: 80%; text-decoration: none; } h2 span.title { color: #8fc31f; } .body .photo { float: right; margin: 5px; padding: 5px 5px 10px 5px; border: 1px solid #8fc31f; } div.section { margin-top: 10px; margin-bottom: 40px; line-height: 200%; } .timestamp { color: #313131; font-size: 85%; font-weight: normal; } .day .sanchor { display: block; width: 20px; float: left; padding-left: 10px; padding-right: 10px; color: #8fc31f; } h3 { background: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/section.gif") no-repeat; min-height: 37px; _height: 37px; padding-top: 5px; padding-bottom: 10px; _padding-bottom: 30px; } h3.title { padding: 0 10px 10px 45px; color: #535353; font-size: 150%; font-weight: bold; font-family: sans-serif; line-height: 37px; } h3.title a { color: #535353; line-height: 120%; } h3 a { text-decoration: none; color: #8fc31f; } h3:after { display: block; content: ""; clear: left; } .sectioncategory a { font-size: 110%; color: #8fc31f; } p.sectionheader { min-height: 20px; _height: 20px; text-align: left; margin-top: -10px; margin-bottom: 10px; padding-left: 45px; } .sectionfooter { clear: both; margin-top: 1em; text-align: right; } /* comment */ .comment { clear: both; width: 640px; margin-bottom: 20px; _margin-bottom: 10px; } .comment .caption { background: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/comment-caption.gif"); margin: auto 0; padding: 10px; } .comment .caption a { color: #000; } .commentshort { border: 1px solid #c2c0bf; padding: 20px; } .hatena-id-icon { margin-right: 5px; } .commentform textarea { width: 580px; } .refererlist { clear: both; width: 640px; margin-bottom: 20px; } .refererlist .caption { background: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/comment-caption.gif"); padding: 10px; } .refererlist .caption a { color: #313131; } .refererlist ul { border: 1px solid #c2c0bf; padding: 20px; } .refererlist li { list-style: none; border-bottom: 1px dotted #ccc; padding: 5px; margin-bottom: 2px; } /* 記法周り */ h4 { margin-top: 2em; margin-bottom: 1em; border-bottom: 1px solid #ccc; font-size: 120%; } h5 { font-size: 100%; } .day ul { padding: 5px 20px 5px 20px; } .day ol { padding: 5px 20px 5px 20px; } blockquote { border: 1px dotted #8fc31f; margin: 10px 0 10px 30px; padding: 20px; } pre { padding: 5px; _width: 100%; *width: 100%; overflow: auto; background: #e5e5e5; } span.footnote { font-size: 80%; } div.footnote { margin: 10px 0; font-size: 80%; } .hatena-asin-detail { border: 1px dotted #8fc31f; margin: 10px 0 10px 0; padding: 20px; font-size: 90%; } .hatena-asin-detail:after { display: block; content: ""; clear: both; } .hatena-asin-detail ul { list-style: none; } .hatena-asin-detail-image { float: left; margin-right: 10px; } .section table { border: 1px solid #ccc; border-collapse: collapse; margin-top: 1em; margin-bottom: 1em; } .section th { background: #e3e5e8; border: 1px solid #bfbcbc; padding: 5px; font-size: 90%; } .section td { border: 1px solid #bfbcbc; padding: 5px; font-size: 95%; } /* サブページ */ div#hatena-about, div#hatena-archive, div#hatena-keywordlist, div#hatena-keywordcloud { min-height: 500px; _height: 500px; } #hatena-about h3 { background: transparent; margin: 0; padding: 0; clear: both; } #hatena-about .photo { float: none; } #hatena-archive h3 { background: transparent; margin: 0; padding: 0; } #hatena-keywordlist h3 { background: transparent; margin: 0; padding: 0; } #hatena-keywordcloud h3{ background: transparent; margin: 0; padding: 0; } .section .photo { margin-bottom: 10px; } ul.hatena-profile-list { margin: 0; padding: 0; } .hatena-profile-list li { float: left; list-style: none; margin-right: 10px; padding: 5px; border: 1px solid #8fc31f; } ul.hatena-profile-list:after { display: block; content: ""; clear: both; } /* サイドバー */ .sidebar .hatena-moduletitle { background: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/hatena-moduletitle.gif"); filter: alpha(opacity=45); -moz-opacity:0.55; opacity:0.55; _width: 250px; padding: 10px; color: #000; font-weight: bold; } .sidebar .hatena-module .hatena-moduletitle a { color: #000; text-decoration: none; } .sidebar .hatena-modulebody{ background: #fff; filter: alpha(opacity=60); -moz-opacity:0.65; opacity:0.65; _width: 250px; margin-bottom: 20px; padding: 20px; color: #323232; line-height: 120%; } .sidebar .hatena-modulebody a { color: #313131; text-decoration: underline; } .sidebar .hatena-modulebody a:visited { color: #9a9a9a; } .sidebar .hatena-modulebody li { margin-bottom: 5px; padding-bottom: 5px; list-style: none; border-bottom: 1px dotted #ccc; } .sidebar .hatena-modulebody dd { border-bottom: 1px dotted #ccc; margin-bottom: 5px; padding-bottom: 5px; } .sidebar .hatena-modulebody ul.keywordcloud { font-size: 85%; line-height: 250%; } .sidebar p.hatena-profile-id { margin-top: 10px; margin-bottom: 10px; } .sidebar p.hatena-profile-id a{ color: #8fc31f; font-weight: bold; } .sidebar table.calendar { width: 210px; background: transparent; margin: 0; padding: 0; } .sidebar table.calendar td { text-align: center; padding: 2px; } .sidebar table.calendar td img{ width: 15px; height: 15px; } .sidebar table.calendar td.calendar-day a{ font-weight: bold; color: #8fc31f; } .sidebar table.calendar td.calendar-day a:visited { color: #9a9a9a; } .sidebar .hatena-modulebody ul.hatena-photo { margin: 0; padding: 0; } .sidebar .hatena-modulebody ul.hatena-photo li { display: inline; border-bottom: 0; } .sidebar .hatena-modulebody ul.hatena-photo li img { margin: 2px 2px 4px 2px; vertical-align: middle; } .sidebar .hatena-clock { margin-bottom: 20px; padding: 10px 20px 10px 20px; } /* Hatena-Star */ .hatena-star-star-image { } .hatena-star-comment-button-image { background-image: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/star-comment.gif"); } .hatena-star-comment-button-image-active { background-image: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/star-comment-active.gif"); } .hatena-star-add-button-image { background-image: url("http://d.hatena.ne.jp/theme/hatena_kimono-korinkiri/star-add.gif"); } .hatena-star-inner-count{ color: #8fc31f; font-size: 10px; padding-right: 3px; padding-left: 3px; } .hatena-star-comment-button { margin-right: 0 !important; margin-left: 10px !important; } div.section img.hatena-fotolife { max-width: 500px; } img.hatena-fotolife { max-width: 150px; }
ページのヘッダ欄
<div class="headermenu"> <ul class="clearfix"> <li><a href="http://d.hatena.ne.jp/***/about">about</a></li> <li><a href="http://a.hatena.ne.jp/***/">antenna</a></li> <li><a href="http://b.hatena.ne.jp/***/">bookmark</a></li> </ul> </div> <div class="main">
※***は自分のアカウントに変更します。
※タイトル背景画像下のヘッダメニューが必要ない場合は、以下のようにしても大丈夫です。
<div class="main">
ページのフッタ欄
</div> <div class="sidebar"> <div class="hatena-widget widget-harbot"><script type="text/javascript" src="http://www.so-net.ne.jp/character/harbot/harbotclock.js" charset="UTF-8"></script> </div> <hatena name="section" template="hatena-module"> <hatena name="comment" template="hatena-module"> <hatena name="trackback" template="hatena-module"> <hatena name="sectioncategory" template="hatena-module"> <hatena name="mycomment" template="hatena-module"> <hatena name="rss" url="http://f.hatena.ne.jp/miharaseihyou/rss" template="hatena-photo" listlimit="5"> <hatena name="photo" template="hatena-module"> </div>
※最新タイトルやコメントなどの表示順は現在と同じになるようにしたつもりですが、違う部分は確認して入れ替えてください。
※フォトライフにアップした任意の画像をサイドバーに表示したい場合は、<div class="sidebar">から</div>の間の好きな位置に次の記述を追加して、手動でその都度変更してください。
<div class="hatena-module"> <div class="hatena-moduletitle">fotolife pick-up!</div> <div class="hatena-modulebody"> <dl><dt>画像1のタイトル</dt> <dd>コピーした画像1表示用のタグ</dd> <dt>画像2のタイトル</dt> <dd>コピーした画像2表示用のタグ</dd> ...以降、必要なだけここに<dt></dt><dd></dd>を追加します。 </dl> </div> </div>
※フォトライフからコピーした画像のタグには、クラス名「hatena-fotolife」を付けてください。
<img src="〜" class="hatena-fotolife">のようにimgタグに「 class="hatena-fotolife"」を追加します。
(画像の最大表示幅を制限して、サイドバーをはみ出さないように表示するためです。)
この分のスタイルシートの記述追加についてはコメントでも説明済みですが、imgタグへのクラス名の追加については抜けていました。
重ね重ねすみませんでした・・・。m(_ _;)m