Skip to content

Commit

Permalink
style: Enhance mobile image layout with text width condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 30, 2024
1 parent 0fd576e commit f8105ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hugo-site/themes/freenet/assets/css/freenet.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,17 @@ p.page-end-spacer {
}

/* Mobile image handling */
@media screen and (max-width: 480px) {
@media screen and (max-width: 480px),
(min-width: 481px) and (max-width: 800px) and (min-content-width: < 200px) {
div[style*="float: right"] {
float: none !important;
margin: 0 auto 20px auto;
display: block;
}

div[style*="float: right"] + p {
min-width: 200px; /* Ensures at least ~10 words can fit */
}
}

.navbar-item.ghost-key:hover {
Expand Down

0 comments on commit f8105ae

Please sign in to comment.