Skip to content

Commit

Permalink
style: Improve look and feel of site
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcroat committed May 16, 2021
1 parent e7ceecf commit 8129384
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
1 change: 0 additions & 1 deletion components/screens/Post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export function Post({ content, frontMatter }: PostProps) {
<Box
maxW="72ch"
mx="auto"
px={{ base: 8, lg: 0 }}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
>
Expand Down
2 changes: 1 addition & 1 deletion components/shared/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {

export function Layout({ children, ...metadata }: Props) {
return (
<Box maxW={{ sm: '80%' }} mx="auto" px={{ base: 8, sm: 0 }}>
<Box maxW={{ sm: '80%' }} mx="auto" px={{ base: 4, sm: 0 }}>
<Seo {...metadata} />
<Box
as="main"
Expand Down
4 changes: 2 additions & 2 deletions components/ui/MDXComponents/CodeBlock/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function CodeBlock({ children, ...props }: Props) {
}

return (
<Box pos="relative" mb={8} {...props}>
<Box pos="relative" mb={8} mx={{ base: -4, sm: -8 }} {...props}>
<Box pos="absolute" top={-9} right={4} zIndex={1}>
<Box pos="absolute" right={10}>
<Confetti active={isCopied} config={config} />
Expand All @@ -67,7 +67,7 @@ export function CodeBlock({ children, ...props }: Props) {
as="pre"
pos="relative"
bg={codeBg[colorMode]}
fontSize={[16, 18, 20]}
fontSize={[16, 18]}
p={6}
overflow="auto"
boxShadow="lg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Props {

export function CodeBlockTitle({ children, ...props }: Props) {
return (
<Box fontSize={[16, 16, 18]} {...props}>
<Box fontSize={16} {...props}>
{children}
</Box>
)
Expand Down
3 changes: 2 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ function GlobalStyle({ children }: GlobalStyleProps) {
}
blockquote {
padding: 0.4rem 2rem;
padding: 0.5rem 2rem;
margin: 1rem 0;
border-left: 4px solid ${quoteBorderColor[colorMode]};
background-color: ${quoteBg[colorMode]};
}
Expand Down
2 changes: 1 addition & 1 deletion styles/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const inlineCodeBg = { light: 'blue.200', dark: 'orange.200' }
export const inlineCodeText = { light: 'blue.900', dark: 'orange.900' }

export const quoteBorderColor = { light: '#2b6cb0', dark: '#fbd38d' }
export const quoteBg = { light: '#f1f8ff', dark: '#272e3e' }
export const quoteBg = { light: '#f1f8ff', dark: '#222937' }
6 changes: 3 additions & 3 deletions styles/prism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ const prismBaseTheme = css`
position: relative;
z-index: -1;
max-width: max-content;
transform: translate(20px, 4px);
top: 4px;
font-family: ${chakraTheme.fonts.mono};
font-weight: ${chakraTheme.fontWeights.semibold};
background-color: ${chakraTheme.colors.orange[200]};
font-weight: ${chakraTheme.fontWeights.bold};
color: ${chakraTheme.colors.orange[900]};
background-color: ${chakraTheme.colors.orange[200]};
padding: ${chakraTheme.space[2]} ${chakraTheme.space[4]};
border-radius: ${chakraTheme.radii.base};
box-shadow: ${chakraTheme.shadows.lg};
Expand Down

0 comments on commit 8129384

Please sign in to comment.