hugo-theme-wondermod/assets/css/common/post-entry.css

105 lines
1.7 KiB
CSS
Raw Normal View History

2020-07-21 10:50:35 +02:00
.first-entry {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
2022-07-24 01:39:42 +02:00
min-height: 220px;
margin: var(--gap) 0 calc(var(--gap) * 2) 0;
2020-07-21 10:50:35 +02:00
}
.first-entry .entry-header {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
2020-07-21 10:50:35 +02:00
}
.first-entry .entry-header h1 {
font-size: 34px;
2022-07-24 01:39:42 +02:00
line-height: 1.4;
2020-07-21 10:50:35 +02:00
}
.first-entry .entry-content {
margin: 14px 0;
2020-07-21 10:50:35 +02:00
font-size: 16px;
-webkit-line-clamp: 3;
2020-07-21 10:50:35 +02:00
}
.first-entry .entry-footer {
font-size: 14px;
2020-07-21 10:50:35 +02:00
}
.home-info .entry-content {
-webkit-line-clamp: unset;
}
2020-07-21 10:50:35 +02:00
.post-entry {
position: relative;
margin-bottom: var(--gap);
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
2021-06-11 10:04:55 +02:00
transition: transform 0.1s;
border: 1px solid var(--border);
2020-07-21 10:50:35 +02:00
}
.post-entry:active {
2021-06-11 10:04:55 +02:00
transform: scale(0.96);
2020-07-21 10:50:35 +02:00
}
.tag-entry .entry-cover {
display: none;
2020-07-21 10:50:35 +02:00
}
.entry-header h2 {
font-size: 24px;
line-height: 1.3;
2020-07-21 10:50:35 +02:00
}
.entry-content {
margin: 8px 0;
2020-07-21 10:50:35 +02:00
color: var(--secondary);
font-size: 14px;
line-height: 1.6;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
2020-07-21 10:50:35 +02:00
}
.entry-footer {
color: var(--secondary);
font-size: 13px;
2020-07-21 10:50:35 +02:00
}
.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);
}