Last active
August 3, 2020 09:03
-
-
Save nabettu/1da9aef5ddc7e3dda2631de159429797 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.header__link { | |
justify-content: center; | |
} | |
.header__img:hover { | |
opacity: 0.75; | |
} | |
.contents .pagelink:hover { | |
background-color: transparent; | |
opacity: 0.75; | |
} | |
.coverImage { | |
max-width: 800px; | |
} | |
.contents .pagelink { | |
display: flex; | |
border-top: 1px solid #999; | |
padding: 1em 0 0; | |
margin: 1em 0 0; | |
text-decoration: none; | |
overflow: hidden; | |
align-items: flex-start; | |
} | |
.contents .pagelink__title { | |
font-weight: bold; | |
font-size: 1em; | |
} | |
.contents .pagelink__title svg { | |
display: none; | |
} | |
.contents .pagelink__coverImage { | |
display: block; | |
width: 40%; | |
min-height: 70px; | |
border-radius: 4px; | |
margin-right: 1em; | |
} | |
.contents .pagelink:hover .pagelink__coverImage { | |
opacity: 0.75; | |
} | |
/* blogでのみ、ページリンクで日付を表示する */ | |
.page-blog .contents .pagelink__title { | |
padding-bottom: 0; | |
} | |
.page-blog .pagelink__datetime { | |
display: block; | |
margin: 0; | |
font-size: 0.8em; | |
color: #666; | |
} | |
.pagelink__datetime__created { | |
display: inline; | |
margin-right: 1em; | |
} | |
.pagelink__datetime__created::before { | |
font-family: "Material Icons"; | |
content: "today"; | |
position: relative; | |
top: 3px; | |
margin-right: 4px; | |
} | |
.pagelink__datetime__edited { | |
display: none; | |
} | |
.pagelink__datetime__created__time { | |
display: none; | |
} | |
/* 記事内画像に影 */ | |
.contents figure { | |
width: 94%; | |
margin: 2em auto; | |
} | |
.contents figure img { | |
margin: 0 auto; | |
width: 100% !important; | |
height: auto !important; | |
max-height: 400px; | |
object-fit: contain; | |
box-shadow: 0px 0px 10px #999; | |
} | |
.contents figcaption { | |
margin-top: 1em; | |
text-align: center; | |
} | |
.container .contents h2 { | |
border-left: 4px solid #ff9800; | |
padding-left: 0.5em; | |
font-size: 1.5em; | |
} | |
.container .contents h3 { | |
border-left: 4px solid #ffea00; | |
padding-left: 0.7em; | |
font-size: 1.3em; | |
} | |
.footer { | |
border-top: dotted 4px #ff9800; | |
margin-top: 64px; | |
text-align: center; | |
font-weight: bold; | |
font-size: 120%; | |
} | |
.footer a:hover { | |
opacity: 0.5; | |
} | |
.footer p a[target="_self"] { | |
margin: 0; | |
display: block; | |
} | |
@media screen and (min-width: 480px) { | |
/* 画面サイズが480pxからはここを読み込む */ | |
header .header__img { | |
height: 40px; | |
} | |
.contents .pagelink__title { | |
font-size: 1.3em; | |
} | |
.page-blog .pagelink__datetime { | |
font-size: 1em; | |
} | |
.contents .pagelink__coverImage { | |
min-height: 120px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment