Skip to content

Commit cdd6673

Browse files
author
Luca Forstner
authored
Add background to inline code blocks in headings (#10445)
1 parent ec08af8 commit cdd6673

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

app/globals.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@
140140
Courier, monospace;
141141

142142
--fade-in-animation: fadeIn;
143+
144+
/* https://storybook.sentry.dev/?path=/story/core-colors--page */
145+
--gray-500: #2B2233;
146+
--gray-400: #3E3446;
147+
--gray-300: #80708F;
148+
--gray-200: #DBD6E1;
149+
--gray-100: #EBE6EF;
143150
}
144151

145152
body {

src/components/docPage/type.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424

2525
code {
2626
color: var(--darkPurple);
27-
font-weight: 600;
27+
font-weight: 400;
28+
background-color: var(--gray-100);
29+
padding: 3px 6px;
30+
border-radius: 4px;
31+
white-space: nowrap;
2832
}
2933

3034
scroll-margin-top: calc(var(--header-height) + 1.5rem);

0 commit comments

Comments
 (0)