Skip to content

Commit

Permalink
css cleanup for blockquotes, images, sidebar nav
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Apr 28, 2024
1 parent aeda5eb commit 8ae5e17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 6 additions & 8 deletions components/ItemWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@ const StyledItemWrapper = styled('div', { label: 'ItemWrapper' })`
// HTML Normalization below, used for Content and ContentRemote
& p {
margin-block-start: ${(props) => props.theme.spacing(0.5)};
margin-block-end: ${(props) => props.theme.spacing(0.5)};
margin-inline-start: 0;
margin-inline-end: 0;
margin-block: ${(props) => props.theme.spacing(0.5)};
margin-inline: 0;
}
& ul,
& ol,
& blockquote {
margin-block-start: ${(props) => props.theme.spacing(0.5)};
margin-block-end: ${(props) => props.theme.spacing(0.5)};
margin-inline-start: 0;
margin-inline-end: 0;
margin-block: ${(props) => props.theme.spacing(0.5)};
margin-inline: 0;
padding-left: ${(props) => props.theme.spacing(2)};
}
${(props) => props.theme.breakpoints.down('sm')} {
Expand Down Expand Up @@ -84,6 +81,7 @@ const StyledItemWrapper = styled('div', { label: 'ItemWrapper' })`
& img:not([alt='thumbnail']) {
max-height: calc(100vh - 50px);
height: auto;
}
${(props) => props.theme.breakpoints.down('md')} {
Expand Down
2 changes: 2 additions & 0 deletions components/content/SiteMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { Drawer, useMediaQuery } from '@mui/material';
export const SITE_MAP_WIDTH = 175;

const Nav = styled('nav', transientOptions)`
position: sticky;
top: ${(props) => props.theme.spacing(1)};
height: calc(100vh - ${(props) => props.theme.spacing(1)} * 2);
width: ${SITE_MAP_WIDTH}px;
overflow: auto;
Expand Down

0 comments on commit 8ae5e17

Please sign in to comment.