mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-14 05:52:53 +00:00
Add text post previews. (#328)
* Add text post previews. * Add mask gradient over post preview text * Increase post title font weight for contrast Co-authored-by: spikecodes <19519553+spikecodes@users.noreply.github.com>
This commit is contained in:
parent
3a9e6b4ca0
commit
c2053524c7
3 changed files with 21 additions and 2 deletions
|
@ -722,6 +722,7 @@ a.search_subreddit:hover {
|
|||
|
||||
.post_title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
margin: 5px 15px;
|
||||
grid-area: post_title;
|
||||
|
@ -837,11 +838,16 @@ a.search_subreddit:hover {
|
|||
.post_body {
|
||||
opacity: 0.9;
|
||||
font-weight: normal;
|
||||
margin: 5px 15px;
|
||||
padding: 5px 15px;
|
||||
grid-area: post_body;
|
||||
width: calc(100% - 30px);
|
||||
}
|
||||
|
||||
.post_preview {
|
||||
mask-image: linear-gradient(180deg,#000 60%,transparent);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.post_footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue