blog/themes/farallon/assets/scss/templates/single.scss

219 lines
4.7 KiB
SCSS

.post--single {
max-width: 678px;
margin-left: auto;
margin-right: auto;
&__title {
font-size: 32px;
font-weight: bold;
line-height: 1.5;
margin-bottom: 20px;
}
&__meta {
font-size: 14px;
color: var(--farallon-text-gray);
display: flex;
align-items: center;
svg {
margin-right: 4px;
fill: var(--farallon-text-gray-lightest);
margin-left: 10px;
&:first-child {
margin-left: 0;
}
}
}
&__copyright {
color: var(--farallon-text-gray);
}
&__action {
display: flex;
align-items: center;
justify-content: center;
padding: 20px 0;
.button--like {
svg {
fill: var(--farallon-text-gray);
}
&:hover,
&.is-active {
svg {
fill: var(--jl-hover-color);
}
}
}
}
&__related {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 20px;
padding-top: 10px;
&__item {
padding: 10px;
border: 1px solid var(--farallon-border-color);
border-radius: 10px;
display: flex;
flex-direction: column;
.cover {
border-radius: 8px;
width: 100%;
height: 160px;
object-fit: cover;
}
&__title {
font-size: 14px;
font-weight: bold;
line-height: 1.4;
margin-bottom: 5px;
}
&:hover {
background-color: #fafafa;
background: linear-gradient(
89.99999999999999deg,
rgba(255, 233, 244, 0.3) 0%,
rgba(234, 243, 255, 0.5) 100%
);
}
.meta {
font-size: 12px;
color: var(--farallon-text-gray);
line-height: 1;
}
}
}
}
@media (max-width: 768px) {
.post--single {
&__title {
font-size: 28px;
margin-bottom: 10px;
}
}
}
.author--card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 0;
border-top: 1px solid var(--farallon-border-color);
margin-top: 20px;
.avatar {
border-radius: 100%;
}
.author--name {
font-weight: bold;
margin-top: 10px;
font-size: 18px;
}
.author--description {
font-size: 14px;
color: var(--farallon-text-gray);
}
.author--sns {
margin-top: 12px;
display: flex;
align-items: center;
a {
margin: 0 10px 0 0;
&:last-child {
margin-right: 0;
}
}
svg {
fill: var(--farallon-text-color);
&:hover {
fill: var(--farallon-hover-color);
}
width: 24px;
height: 24px;
&.sns {
fill: none;
stroke: var(--farallon-text-color);
}
}
}
}
.tag--list {
display: flex;
align-items: center;
padding: 15px 0 5px;
flex-wrap: wrap;
a {
margin-right: 10px;
margin-bottom: 10px;
background: #f2f4f6;
font-size: 14px;
padding: 2px 12px;
border-radius: 5px;
color: var(--farallon-text-gray);
&:hover {
background-color: #e0e0e0;
}
}
}
.related--posts__title {
font-size: 18px;
font-weight: 600;
}
.related--content {
padding-top: 15px;
}
.toc {
font-size: 14px;
padding: 10px 15px;
background-color: var(--farallon-background-gray);
border-radius: 10px;
margin-bottom: 20px;
summary {
cursor: pointer;
}
&-title {
font-weight: 600;
}
ul {
padding-left: 10px;
margin-bottom: 10px;
li {
&::before {
content: "·";
margin-right: 5px;
}
& > ul {
margin-left: 10px;
font-size: 12px;
}
}
}
}
.translatedCard {
margin-bottom: 20px;
font-size: 14px;
h4 {
font-weight: 700;
}
ul {
list-style: square;
margin-left: 30px;
li {
a {
text-decoration: underline;
&:hover {
color: var(--farallon-hover-color);
}
}
}
}
}