Skip to content

Commit

Permalink
css fix for posts page
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Jul 1, 2024
1 parent 321455a commit e9be2e2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
4 changes: 2 additions & 2 deletions components/layoutForBlogPost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default function Layout({
</div>

<div
className={`min-h-screen overflow-x-hidden md:overflow-x-visible ${NAV_OFFSET} ${padding == false ? "" : "px-3 md:px-8"}`}
className={`min-h-screen overflow-x-hidden md:overflow-x-visible ${padding == false ? "" : "px-3 md:px-8"}`}
style={{ background: background ? background : "#fbfcff" }}
>
<main
className="mx-auto "
className={`mx-auto ${NAV_OFFSET} overflow-hidden `}
// style={{ maxWidth: padding == false ? "" : "1200px" }}
>
{children}
Expand Down
40 changes: 22 additions & 18 deletions styles/posts-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -520,23 +520,6 @@ figure, pre{
}
}

@media only screen and (max-width: 600px) {
figure{
max-width:100%!important;
img{
max-width:100%!important;
}
}
iframe{
max-width: 100%!important;
}
.max-w-full{
max-width: 100%!important;
// max-width: 50rem!important;
margin-left: 0rem!important;
}
}

.blog-page .blog-content video {
width: 100%;
}
Expand Down Expand Up @@ -800,4 +783,25 @@ figure, pre{
list-style:disc;
padding-left: 0.25rem;
}
}
}

@media only screen and (max-width: 600px) {
figure{
max-width:100%!important;
img{
max-width:100%!important;
}
}

iframe{
max-width: 100%!important;
}
.blog-content figcaption, .blog-content iframe{
max-width: 100%!important;
}
.max-w-full{
max-width: 100%!important;
// max-width: 50rem!important;
margin-left: 0rem!important;
}
}

0 comments on commit e9be2e2

Please sign in to comment.