mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-26 20:41:37 +01:00
e04e248ae1
show others * taxonomies are meant to be browsed faster
111 lines
1.8 KiB
CSS
111 lines
1.8 KiB
CSS
/* Post entry
|
|
-------------------------------------------------- */
|
|
.first-entry {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-height: 320px;
|
|
margin: var(--gap) 0 calc(var(--gap) * 2) 0;
|
|
}
|
|
|
|
@media screen and (max-width: 600px) {
|
|
.first-entry {
|
|
min-height: 260px;
|
|
}
|
|
}
|
|
|
|
.first-entry .entry-header {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
|
|
.first-entry .entry-header h2 {
|
|
font-size: 34px;
|
|
}
|
|
|
|
.first-entry .entry-content {
|
|
margin: 14px 0;
|
|
font-size: 16px;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
|
|
.first-entry .entry-footer {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.home-info .entry-content {
|
|
-webkit-line-clamp: 5;
|
|
}
|
|
|
|
.post-entry {
|
|
position: relative;
|
|
margin-bottom: var(--gap);
|
|
padding: var(--gap);
|
|
background: var(--entry);
|
|
border-radius: var(--radius);
|
|
transition: transform 0.1s;
|
|
}
|
|
|
|
.post-entry:active {
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.tag-entry .entry-cover {
|
|
display: none;
|
|
}
|
|
|
|
.entry-header h2 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.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-isdraft {
|
|
display: inline;
|
|
color: var(--secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.entry-cover {
|
|
margin-bottom: var(--gap);
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: var(--secondary);
|
|
}
|
|
|
|
.entry-cover img {
|
|
border-radius: var(--radius);
|
|
pointer-events: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.entry-cover a {
|
|
color: var(--secondary);
|
|
box-shadow: 0 1px 0 var(--primary);
|
|
}
|