日記書いたりメモ書いたり
mixi のレイアウトがいろいろ気に入らなかったから,自分でいろいろいじってみた。使ったのは,Firefox の extension の Stylish。この extension は,userchrome.cssやusercontent.cssと同じ機能を、再起動せずに反映・管理できるユーザースタイルシート拡張
だから,どんなサイトもいじり放題。で,やった結果は以下。
やったことは,
こんなあたり。やっぱ,一番上のでかい mixi の画像が無くなったのがいい。あれはあってもじゃまなだけだ。
<div class="entry">
内では,img
要素に float: left;
を当てているのだが,float
の性質の関係上,どうしてもリストとかの 左余白が無くなっちまう。どうしたもんか。
このエントリがブックマークされてしまったみたいなので、一応今現在使っているスタイルを晒してみる。晒すために清書したのは内緒。
mixi の HTML が多少変わっていたのでスタイルを更新。
mixi の HTML がまた変わっていたので更新。どうも id
とか class
をちゃんとつけているようだ。良い傾向だ。でもテーブルレイアウトは無くならないんだろうなぁ。
@-moz-document url-prefix(http://mixi.jp/) {
/* リンク色をクリック済みか否か可視化 */
a:visited {
color:#996699 !important;
}
a[href*="view_diary.pl?url="] {
border-bottom: dashed 1px #333 !important;
text-decoration: none !important;
}
/* 非表示系 */
body > div#header, /* トップのバナーとかロゴ */
body input[src="http://img.mixi.jp/img/search_3b1.gif"], /* 検索欄の横の日記ボタン */
body input[src="http://img.mixi.jp/img/search_3b3.gif"], /* 検索欄の横の Web ボタン */
body > map + div + ul + img + br + table > tbody > tr > td > table > tbody > tr > td[width="100"], /* 日付関連のボックス */
body > map + div + ul + img + br + table > tbody > tr > td[width="224"], /* 右上の 224 * 100 の広告 */
body > table > tbody > tr > td > table[style="margin-bottom: 5px;"] td[height="24"], /* 検索欄の横の search ボタン */
img[src = "http://img.mixi.jp/img/keitai07.gif"], /* 携帯からチェック */
a[onClick = "MM_openBrWindow('mobile_access.pl','','width=410,height=600,toolbar=no,scrollbars=yes,left=10,top=10')"], /* 携帯からチェック */
img[src *= "http://img-p3.mixi.jp/img/pen"], /* 日付前のペンの画像 */
img[src *= "http://img.mixi.jp/img/pen"], /* 日付前のペンの画像 */
body > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td[colspan = "2"][bgcolor = "#f2ddb7"] /* 非表示にしている部分 (mixi ニュースとか) */
{
display: none !important;
}
/* おおもとの幅調節 */
body > ul#snavi,
body > ul#snavi + img + br + table,
body > ul#snavi + img + br + table + img + br + table {
width: 865px !important;
}
/* 2段目メニューの上余白 */
body > ul#snavi {
margin-top: 10px !important;
}
/* 左カラムの余白 */
body > map + div + ul + img + br + table + img + br + table > tbody > tr > td > table > tbody > tr > td[width="280"] {
padding-left: 25px !important;
padding-right: 25px !important;
}
/* 検索欄とお知らせボックスの table の調節 */
body > map + div + ul + img + br + table {
margin-top: 3px !important;
}
/* 検索欄とお知らせボックスの table 下の table の調節 */
body > map + div + ul + img + br + table table {
background: transparent !important;
}
/* 検索欄とお知らせボックスの調節 */
body > map + div + ul + img + br + table > tbody > tr > td > table[width="570"] {
border: none !important;
}
/* 検索欄の調節 */
body > map + div + ul + img + br + table > tbody > tr > td > table > tbody > tr > td > table[width="565"] {
width: 450px !important;
border: none !important;
position: relative !important;
top: 15px !important;
}
body > map + div + ul + img + br + table > tbody > tr > td > table > tbody > tr > td > table[width="565"] > tbody > tr > td > table {
position: relative !important;
left: -115px !important;
}
/* 検索欄の背景非表示 */
body > table td[background="http://img.mixi.jp/img/search_bg03.gif"] {
background: transparent !important;
border: none !important;
}
/* 検索欄の幅調節 */
body > table td[background="http://img.mixi.jp/img/search_bg03.gif"] input[name="MT"] {
width: 145px !important;
}
/* お知らせボックスの調節 */
body > map + div + ul + img + br + table > tbody > tr > td > table[width="570"] + table[width="570"] {
width: 492px !important;
margin-top: -30px !important;
margin-bottom: 3px !important;
position: relative !important;
left: 323px !important;
}
body > map + div + ul + img + br + table > tbody > tr > td > table[width="570"] + table[width="570"] > tbody > tr > td {
display: none !important;
}
body > map + div + ul + img + br + table > tbody > tr > td > table[width="570"] + table[width="570"] > tbody > tr > td[width="460"] {
display: table-cell !important;
}
body > map + div + ul + img + br + table > tbody > tr > td > table[width="570"] + table[width="570"] *[width="460"] {
width: 492px !important;
}
body > map + div + ul + img + br + table table[width="460"] {
outline: 1px solid #c93 !important;
}
/* 行間調節 */
body > map + div + ul + img + br + table + img + br + table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td[bgcolor="#f2ddb7"][width="80"][nowrap] + td, /* 自分の最新日記表示欄 */
body > map + div + ul + img + br + table + img + br + table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td[width="425"] /* マイミク日記やコミュニティの最新書き込み表示欄 */
{
line-height: 1.4 !important;
}
/* フッターの幅調節 */
body > div#footer {
width: 843px !important;
background-image: none !important;
}
}
@-moz-document url(http://mixi.jp/show_log.pl) {
td > div > embed {
display: none !important;
}
}