Skip to content

Commit dfd5a1f

Browse files
committed
Add subtle border to code blocks and highlight containers
1 parent d7f76d8 commit dfd5a1f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/components/codeBlock/code-blocks.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
pre[class*='language-'] {
1919
font-size: 0.85rem;
20-
border: 0;
20+
border: 1px solid rgba(255, 255, 255, 0.2);
2121
border-radius: 4px;
2222
margin: 0;
2323
}

src/components/codeHighlights/codeHighlights.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ const HighlightBlockContainer = styled('div')`
132132
background-color: rgba(239, 239, 239, 0.06);
133133
position: relative;
134134
135+
border: 1px solid rgba(255, 255, 255, 0.2);
135136
border-left: 4px solid var(--accent-purple);
137+
border-radius: 4px;
136138
137139
.highlight-line {
138140
padding-left: 8px !important;

src/components/codeTabs.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,14 @@ const Container = styled('div')`
137137
pre[class*='language-'] {
138138
padding: 10px 12px;
139139
border-radius: 0 0 3px 3px;
140+
border: 1px solid rgba(255, 255, 255, 0.2);
141+
border-top: none;
140142
}
141143
`;
142144

143145
const TabBar = styled('div')`
144146
background: var(--code-background);
147+
border: 1px solid rgba(255, 255, 255, 0.2);
145148
border-bottom: 1px solid #40364a;
146149
height: 36px;
147150
display: flex;

0 commit comments

Comments
 (0)