Skip to content

Commit

Permalink
fix(code-styles): add tough border to code blocks (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi authored May 4, 2022
1 parent c497ac5 commit 1ba97ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/CodeBlocks/LiveCode.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.preview {
@apply flex-auto;
@apply w-full md:w-1/2;
@apply border-solid border-dark;
@apply border-l border-r border-b;
}

.error {
Expand Down
2 changes: 1 addition & 1 deletion contents/implementFancyCodeBlock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const App = () => {
<div
onClick={() => setCount(count => count + 1)}
style={{
paddingTop: '3rem',
padding: '3rem',
textAlign: 'center',
cursor: 'pointer',
}}
Expand Down
5 changes: 5 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ li.task-list-item > div {
.ant-image-mask-info {
@apply flex items-center;
}

/* Remove border radius for sandpack editor */
.sp-wrapper .sp-layout {
@apply rounded-none;
}

1 comment on commit 1ba97ae

@vercel
Copy link

@vercel vercel bot commented on 1ba97ae May 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-git-main-sabertaz.vercel.app
blog-sabertaz.vercel.app
blog.tazimi.dev

Please sign in to comment.