Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 46346ba

Browse files
amcdnljelbourn
authored andcommitted
Add box around code snippet examples (#205)
1 parent e450446 commit 46346ba

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/styles/_markdown-theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
.docs-markdown-a {
1313
color: mat-color($primary);
1414
}
15+
16+
.docs-markdown-pre {
17+
background: rgba(mat-color($foreground, secondary-text), .01);
18+
border: .5px solid rgba(mat-color($foreground, secondary-text), .03);
19+
}
1520
}
1621

src/styles/_markdown.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
font-size: 12px;
3030
}
3131

32+
.docs-markdown-pre {
33+
border-radius: 5px;
34+
margin: 16px auto;
35+
display: block;
36+
padding: 20px;
37+
}
38+
3239
code, pre {
3340
font-family: 'Roboto Mono', monospace;
3441
}

0 commit comments

Comments
 (0)