Last active
January 23, 2018 05:22
-
-
Save Josh00/df6ed6a5d665913199c5d028639f2bf9 to your computer and use it in GitHub Desktop.
Hatena_トップページの記事一覧表示
タイトルとサムネイル画像だけ表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* 記事一覧本文、更新時間非表示 */ | |
.entry-list .entry-content p, .entry-list .entry-footer { | |
display: none; | |
} | |
/* 日付とタイトルを右に */ | |
.list-entry-header { | |
float: right; | |
width: 70%; | |
} | |
/* アイキャッチ画像を左に */ | |
.list-entry-article .entry-body { | |
display: table; | |
width: 30%; | |
} | |
.list-entry-article .entry-body .thumb { | |
float: left; | |
width: 30%; | |
} | |
.list-entry-article { | |
overflow: hidden; | |
} | |
.list-entry-article .thumb-image { | |
width: 80px; | |
height: 80px; | |
border-radius: .3em; | |
} | |
/* 記事タイトルの装飾 */ | |
.list-entry-article .entry-title { | |
font-weight: 700; | |
font-size: 86%; | |
margin-top: .5em; | |
margin-bottom: .5em; | |
} | |
/* 日付の装飾 */ | |
.date { | |
padding: 2px 3px; | |
background-color: #fc9d9d; /* 日付の背景色 */ | |
color: #fff; /* 日付の文字色 */ | |
} | |
.hatena-module-title { | |
font-weight: 700; | |
border-bottom: 0; | |
margin-bottom: .8em; | |
background-color: #b4daed; | |
padding: 3px 0 3px 6px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment