Skip to content

Commit

Permalink
Add box around code snippet examples (angular#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl authored and jelbourn committed Jul 5, 2017
1 parent e450446 commit 46346ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/styles/_markdown-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
.docs-markdown-a {
color: mat-color($primary);
}

.docs-markdown-pre {
background: rgba(mat-color($foreground, secondary-text), .01);
border: .5px solid rgba(mat-color($foreground, secondary-text), .03);
}
}

7 changes: 7 additions & 0 deletions src/styles/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
font-size: 12px;
}

.docs-markdown-pre {
border-radius: 5px;
margin: 16px auto;
display: block;
padding: 20px;
}

code, pre {
font-family: 'Roboto Mono', monospace;
}
Expand Down

0 comments on commit 46346ba

Please sign in to comment.