blog/themes/mytheme/assets/css/common/post-entry.css

127 lines
2.2 KiB
CSS
Raw Normal View History

2023-11-02 21:11:03 +09:00
.first-entry {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
2023-11-07 08:02:06 +09:00
align-items: center;
2023-11-02 21:11:03 +09:00
min-height: 320px;
2023-11-07 08:02:06 +09:00
height: calc(100vh - var(--header-height) * 2 - var(--gap) * 1);
2023-11-07 19:59:46 +09:00
margin: 0 0 calc(var(--header-height) + var(--gap) * 2) 0;
border-bottom: solid 2px var(--entry);
2023-11-02 21:11:03 +09:00
}
2023-11-08 16:42:38 +09:00
@media (max-width: 768px) {
.first-entry {
height: calc(var(--vh, 1vh) * 100 - var(--header-height) * 2 - var(--gap) * 1);
}
}
2023-11-02 21:11:03 +09:00
.first-entry .entry-header {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.first-entry .entry-header h1 {
2023-11-07 08:02:06 +09:00
font-size: 28px;
2023-11-02 21:11:03 +09:00
line-height: 1.3;
}
.first-entry .entry-content {
2023-11-07 08:02:06 +09:00
margin: 24px 0;
2023-11-02 21:11:03 +09:00
font-size: 16px;
-webkit-line-clamp: 3;
}
.first-entry .entry-footer {
2023-11-07 08:02:06 +09:00
position: absolute;
width: 80%;
padding: 4px 0;
margin: 0 auto;
display: flex;
justify-content: center;
2023-11-07 19:59:46 +09:00
bottom: var(--gap);
2023-11-02 21:11:03 +09:00
font-size: 14px;
}
2023-11-07 19:59:46 +09:00
.post-entry-title {
padding: var(--gap);
2023-11-07 08:02:06 +09:00
}
2023-11-02 21:11:03 +09:00
.home-info .entry-content {
-webkit-line-clamp: unset;
}
.post-entry {
position: relative;
/** margin-bottom: var(--gap); **/
padding: var(--gap);
/** background: var(--entry);
border: 1px solid var(--border); **/
border-radius: var(--radius);
transition: transform 0.1s;
}
.post-entry:active {
2023-11-08 16:27:50 +09:00
transform: scale(0.99);
2023-11-02 21:11:03 +09:00
}
.tag-entry .entry-cover {
display: none;
}
.entry-header h2 {
2023-11-07 08:02:06 +09:00
font-weight: 450;
2023-11-02 21:11:03 +09:00
font-size: 18px;
line-height: 1.3;
}
.entry-content {
margin: 8px 0;
color: var(--secondary);
font-size: 14px;
line-height: 1.6;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.entry-footer {
color: var(--secondary);
font-size: 13px;
}
.entry-link {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.entry-cover,
.entry-isdraft {
font-size: 14px;
color: var(--secondary);
}
.entry-cover {
margin-bottom: var(--gap);
text-align: center;
}
.entry-cover img {
border-radius: var(--radius);
pointer-events: none;
width: 100%;
height: auto;
}
.entry-cover a {
color: var(--secondary);
box-shadow: 0 1px 0 var(--primary);
}