PaperModX/assets/css/common/post-entry.css

80 lines
1.4 KiB
CSS

.home-info .entry-content {
-webkit-line-clamp: unset;
}
.post-entry {
position: relative;
margin-bottom: var(--gap);
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
border: 1px solid var(--border);
}
.post-entry:hover .entry-header h2 {
color: var(--link-hover-color);
box-shadow: var(--link-hover-underline-shadow);
}
/* .post-entry:active {
transform: scale(0.97);
} */
.tag-entry .entry-cover {
display: none;
}
.entry-header h2 {
font-size: 24px;
line-height: 1.3;
transition: var(--link-transition);
display: inline-block;
}
.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,
.entry-footer span > a {
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);
width: 100%;
height: auto;
image-rendering: -webkit-optimize-contrast;
}
.entry-cover a {
color: var(--secondary);
box-shadow: 0 1px 0 var(--primary);
}