Fix code colors and add support for linked code

This commit is contained in:
Nishanth Shanmugham
2015-12-26 15:41:42 -06:00
parent 45cc9efecd
commit 2e46d6823c
2 changed files with 13 additions and 2 deletions

View File

@@ -48,7 +48,6 @@ code, pre {
code { code {
/* enclosed by single backtick (`) */ /* enclosed by single backtick (`) */
padding: .15em .5em; padding: .15em .5em;
color: darken(#d01040, 10%);
border-radius: 2px; border-radius: 2px;
} }
@@ -71,6 +70,13 @@ pre code {
font-size: 0.9rem; font-size: 0.9rem;
} }
a code {
color: @accent !important;
&:hover {
text-decoration: underline;
}
}
// //
// Body text // Body text
// //

View File

@@ -604,7 +604,6 @@ section.main .content .markdown pre {
section.main .content .markdown code { section.main .content .markdown code {
/* enclosed by single backtick (`) */ /* enclosed by single backtick (`) */
padding: .15em .5em; padding: .15em .5em;
color: #a10c31;
border-radius: 2px; border-radius: 2px;
} }
section.main .content .markdown pre { section.main .content .markdown pre {
@@ -624,6 +623,12 @@ section.main .content .markdown pre code {
padding: 0; padding: 0;
font-size: 0.9rem; font-size: 0.9rem;
} }
section.main .content .markdown a code {
color: #428bca !important;
}
section.main .content .markdown a code:hover {
text-decoration: underline;
}
section.main .content .markdown p { section.main .content .markdown p {
/* Invoked by line break */ /* Invoked by line break */
font-size: 1rem; font-size: 1rem;