ブログのテンプレートのカスタマイズ
テンプレートは、Nature というごくベーシックなもの。
背景色だけ変えて使っていたけど、サイドバー(aside)が一番下なのがイヤで、
カスタマイズしてみることにした。
他のテンプレートの中から、サイドバーが横にあるものを試してみたけどしっくりこない。
文字が大きいとか、文字の色が好きじゃないとか・・・
今思うと、文字を変える方が楽だったんだけど。
下にあるサイドバーを横に持ってくればいいや と短絡的に考えて、
レイアウトを変えることにした。
まだ気にいらないけど、とりあえずはこれで。
■ 書き加えたCSS
body {
background: #b2d8bd;
}
#container {
padding: 0px;
border: 2px dashed #ff4a2d;
border-radius: 8px;
box-shadow: 0px 0px 0px 3px rgba(255,255,255,1.0);
box-sizing: border-box;
}
.entry-content {
font-size: 16px;
line-height: 1.6;
}
.entry-content p {
margin: 0;
}
#blog-title {
background: #EEE;
padding-bottom: 10px;
text-shadow: 1px 1px 1px rgba(255,255,255,1);
}
.entry-title {
margin-bottom: 10px;
}
.entry-title a {
font-size: 20px;
font-weight: 600;
background: #EEE;
text-shadow: 1px 1px 1px rgba(255,255,255,1);
padding: 4px 10px;
width: 100%;
}
#bottom-editarea div object {
position: relative;
}
#bottom-editarea div object embed {
position: absolute;
bottom: 50px;
left: 500px;
}
aside#box2 {
width: 200px;
position: absolute;
top: 90px;
right: -1000px;
}
.twitter-share-button {
width: 100px !important;
}
.date.first {
width: 52px;
margin-left: 15px;
}
#blog-title-inner {
margin-left: 40px;
}
■ 元のレイアウト
■ 新しいレイアウト