Skip to content

Instantly share code, notes, and snippets.

@Twilyze
Last active February 28, 2019 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twilyze/2ee7f008ce47f2fe3d6ad0a7b8b96ea7 to your computer and use it in GitHub Desktop.
Save Twilyze/2ee7f008ce47f2fe3d6ad0a7b8b96ea7 to your computer and use it in GitHub Desktop.
続・はてなブログのカスタマイズ http://twilyze.hatenablog.jp/entry/hatena-blog-custom3
@media screen and (min-width: 1139px) {
#content {
margin: 20px 55px 35px;
}
}
/* 記事のフォントサイズ */
.entry-content {
font-size: 100%;
line-height: 27px;
}
/* 記事の見出し */
.entry-title {
font-size: 120% !important;
}
.entry-content h3:first-child {
margin-top: 1em;
}
.entry-content h3 {
font-size: 1.4rem;
margin-top: 3em;
margin-bottom: 1em;
background: #f7f7f7;
border-left: 5px solid #888;
border-bottom: 3px solid #cfcfcf;
padding: 6px 12px 4px;
}
.entry-content h4 {
font-size: 1.3rem;
margin-top: 2em;
margin-bottom: 1em;
border-left: 5px solid #888;
border-bottom: 3px solid #cfcfcf;
padding-left: 10px;
}
.entry-content h5 {
font-size: 1.15rem;
margin-top: 1.5em;
margin-bottom: 1em;
border-left: 5px solid #888;
padding-left: 10px;
}
.entry-content h3 + h4 {
margin-top: 1em;
}
.entry-content h4 + h5 {
margin-top: 1em;
}
/* 目次 */
#main-inner .table-of-contents {
background-color: #f8f8f8;
margin: 16px 48px 16px 16px;
padding: 60px 70px 20px 50px !important;
border: 1px solid #e5e5e5;
font-size: 15px;
}
@media screen and (max-width: 1138px) {
#main-inner .table-of-contents {
margin: 16px 8px;
}
}
#main-inner .table-of-contents li {
line-height: 1.5em;
}
#main-inner .table-of-contents a:not(.keyword) {
color: #1487bd;
display: block;
}
#main-inner .table-of-contents a:visited {
color: #789dae;
}
#main-inner .table-of-contents a:hover {
color: #0f5373;
text-decoration-line: underline;
}
#main-inner .table-of-contents li > ul {
margin-left: 1.6em;
padding-left: 0;
}
#main-inner .table-of-contents + h3 {
margin-top: 1em;
}
#main-inner .table-of-contents + h4 {
margin-top: 1em;
}
#main-inner .table-of-contents li a {
line-height: 27px;
}
/* 続きを読む */
.entry-see-more {
margin: 8px 0 20px;
padding: 8px 20px;
color: #fcfcfc;
background-color: #636363;
text-decoration: none;
border-radius: 6px;
display: inline-block;
border: 2px solid #636363;
transition: color .15s ease-in-out, background-color .15s ease-in-out;
}
.entry-see-more:visited {
color: #fcfcfc;
}
.entry-see-more:hover {
color: #454545;
background-color: transparent;
}
.entry-see-more::before {
content: "\f0a9";
display: inline-block;
font-family: FontAwesome;
margin-right: 7px;
}
.hatena-star-container,
.social-buttons,
.comment-box {
display: none;
}
.page-entry .hatena-star-container,
.page-entry .social-buttons,
.page-entry .comment-box {
display: block;
}
li p {
margin: 0 !important;
}
.entry-content code {
border: 1px solid #d8d8d8;
}
.entry-content blockquote {
padding: 10px;
}
#stoc a {
color: #789dae;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment