fix: Make code blocks look more conventional

This commit is contained in:
Oliver Eyton-Williams
2019-05-06 17:42:22 +02:00
committed by mrugesh mohapatra
parent 1ca15d75b8
commit 0e24bffe22
2 changed files with 8 additions and 12 deletions

View File

@ -44,8 +44,8 @@
.night .challenge-instructions pre, .night .challenge-instructions pre,
.night .challenge-instructions pre code { .night .challenge-instructions pre code {
color: #c7254e; background-color: #242424;
background: #222; color: #02a902;
} }
.night code { .night code {

View File

@ -2,7 +2,8 @@
font-size: 16px; font-size: 16px;
} }
.challenge-instructions blockquote, .challenge-instructions pre { .challenge-instructions blockquote,
.challenge-instructions pre {
background-color: #eee; background-color: #eee;
color: #c7254e; color: #c7254e;
padding: 10px 10px 10px 15px; padding: 10px 10px 10px 15px;
@ -11,17 +12,12 @@
margin-bottom: 1.45rem; margin-bottom: 1.45rem;
font-family: monospace; font-family: monospace;
font-size: 16px; font-size: 16px;
word-spacing: normal; border: none;
word-break: normal;
word-wrap: break-word;
border: unset;
} }
.challenge-instructions pre code { .challenge-instructions pre code {
white-space: pre-wrap; line-height: 1.42;
word-wrap: break-word; text-shadow: none;
line-height: 1.42857143; font-family: 'SFMono-Regular', Consolas, 'Roboto Mono', 'Droid Sans Mono', 'Liberation Mono', Menlo, Courier, monospace;
text-shadow: initial;
font-family: monospace;
color: #c7254e; color: #c7254e;
} }