Skip to content

Commit

Permalink
fix overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Jul 6, 2024
1 parent 8b90676 commit 3323015
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export async function getStaticPaths() {
const { entry } = Astro.props;
const { Content, headings, remarkPluginFrontmatter } = await entry.render();
console.log(headings);
import Base from "../../layouts/Base.astro";
import Footer from "../../components/Footer.astro";
Expand Down Expand Up @@ -61,6 +60,8 @@ import Footer from "../../components/Footer.astro";
#content {
/* max-width: 100%; */
grid-column: 1 / span 2;

overflow: auto; /* why??? */
}

#sidebar {
Expand Down
30 changes: 30 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ h3 {
}

h4 {
font-weight: 800;
color: rgb(57, 57, 57);
}

Expand All @@ -58,3 +59,32 @@ h3:hover {
a:hover {
text-decoration: underline;
}

ul {
list-style-type: disc;
}

ol {
list-style: decimal;
}

ul,
ol {
padding-left: 1.5rem;
}


p>code {
background-color: rgba(44, 44, 44, 0.246);
box-sizing: border-box;
padding: 0.2rem 0.3rem;
border-radius: 0.2rem;
}

hr {
/* border: 3px solid rgb(255, 0, 0); */
border-radius: 5px;
padding: 3px 0;
background-color: red;
margin: 2rem 3rem;
}

0 comments on commit 3323015

Please sign in to comment.