Skip to content

Commit c6ed562

Browse files
authored
Merge pull request #524 from camerondubas/docs/fix-code-styling
Improve styling of code blocks on documentation site
2 parents 57a03bb + 14d6409 commit c6ed562

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
<CodeBlock @code={{this.snippet.source}} @language={{this.language}} />
1+
<CodeBlock
2+
@code={{this.snippet.source}}
3+
@language={{this.language}}
4+
class="code-snippet"
5+
/>

tests/dummy/app/styles/app.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,15 @@ th, td {
201201
color: #bbb;
202202
}
203203

204+
.code-snippet {
205+
border: none;
206+
margin: 0;
207+
padding: 0 .5rem;
208+
}
209+
204210
.code-template-toggle {
205211
position: relative;
206-
background-color: #f8f8f8;
212+
background-color: #f5f2f0;
207213
pre {
208214
margin: 0 !important;
209215
}

0 commit comments

Comments
 (0)