Skip to content

Commit

Permalink
refactor: Replace container query with media queries for image handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 30, 2024
1 parent 87da5c4 commit 7b1f344
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions hugo-site/themes/freenet/assets/css/freenet.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,7 @@ p.page-end-spacer {
}

/* Mobile image handling */
@container (max-width: 800px) {
div[style*="float: right"] {
float: none !important;
margin: 0 auto 20px auto;
display: block;
}
}

@media screen and (max-width: 480px) {
@media screen and (max-width: 800px) {
div[style*="float: right"] {
float: none !important;
margin: 0 auto 20px auto;
Expand All @@ -336,8 +328,10 @@ p.page-end-spacer {
}

/* Ensure minimum text width next to floating images */
div[style*="float: right"] + p {
min-width: 200px; /* Ensures at least ~10 words can fit */
@media screen and (min-width: 801px) {
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 7b1f344

Please sign in to comment.