Skip to content

Commit

Permalink
feat: responsive bookmark for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dotoleeoak committed Feb 24, 2024
1 parent d92d193 commit e6e5d0a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions layouts/shortcodes/bookmark.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
padding: 0;
}
.bookmark-description {
color: #666;
font-size: 14px;
margin: 0;
}
.bookmark-image {
Expand All @@ -33,6 +35,24 @@
object-fit: cover;
border-radius: 0 4px 4px 0;
}
@media (max-width: 440px) {
.bookmark {
flex-direction: column;
}
.bookmark-title {
font-size: 14px;
line-height: 1.5;
}
.bookmark-description {
font-size: 12px;
line-height: 1.5;
}
.bookmark-image {
width: 100%;
height: auto;
border-radius: 4px 4px 0 0;
}
}
/* .bookmark-image img {
max-width: 100px;
height: auto;
Expand Down

0 comments on commit e6e5d0a

Please sign in to comment.