Skip to content

Commit

Permalink
No background for <code> in <pre>
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Danielewski committed Jan 22, 2016
1 parent fe318d8 commit 8c310bc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions themes/prism-coy.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ pre[class*="language-"] {
}
}

pre[class*="language-"] > code {
background: none;
}

code[class*="language"] {
max-height: inherit;
height: 100%;
Expand Down
4 changes: 4 additions & 0 deletions themes/prism-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ pre[class*="language-"] {
box-shadow: 1px 1px .5em black inset;
}

pre[class*="language-"] > code {
background: none;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .15em .2em .05em;
Expand Down
4 changes: 4 additions & 0 deletions themes/prism-okaidia.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ pre[class*="language-"] {
border-radius: 0.3em;
}

pre[class*="language-"] > code {
background: none;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #272822;
Expand Down
4 changes: 4 additions & 0 deletions themes/prism-tomorrow.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ pre[class*="language-"] {
overflow: auto;
}

pre[class*="language-"] > code {
background: none;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
Expand Down
4 changes: 4 additions & 0 deletions themes/prism-twilight.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ pre[class*="language-"]::selection {
background: hsl(200, 4%, 16%); /* #282A2B */
}

pre[class*="language-"] > code {
background: none;
}

/* Text Selection colour */
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
Expand Down
4 changes: 4 additions & 0 deletions themes/prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ pre[class*="language-"] {
overflow: auto;
}

pre[class*="language-"] > code {
background: none;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
Expand Down

0 comments on commit 8c310bc

Please sign in to comment.