Skip to content

Commit

Permalink
Style for inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
rajgoel committed Sep 19, 2023
1 parent da1291b commit f23f17a
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,21 @@ kbd {
/*********************************************
* Inline code
*********************************************/
:not(pre) > code {
background-color: darkgray!important;
padding: 4px 4px 4px 4px;
border-radius: 4px;
text-shadow: none;
font-family: courier;
}

/*
Inline code is also used to escape math blocks.
The rendered math is then embedded within a span
and should not receive the code background.
*/
:not(pre) > code > span {
background-color: var(--r-background-color);
padding: 0;
border-radius: 0px;
code:not(:empty):not(:has(*)):not(pre code) {
background-color: darkgray;
padding: 4px 4px 4px 4px;
border-radius: 4px;
text-shadow: none;
font-family: courier;
}


/*********************************************
* Fragments
*********************************************/
Expand Down

0 comments on commit f23f17a

Please sign in to comment.