Skip to content

Commit

Permalink
fix to support hilighting styles
Browse files Browse the repository at this point in the history
  • Loading branch information
minoritea committed Jul 28, 2021
1 parent 4fd03dc commit 5edfe78
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,45 @@ a {
color: black;
}

pre {
pre:not(.highlight *) {
white-space: pre-wrap;
background: gray;
background: #bbb;
font-size: 0.9em;
padding: 0.5em;
padding: 0.5em 1em;
border-radius: 3px;
}

div.highlight {
border: 1px solid #bbb;
border-radius: 3px;
margin: 2em 0;
}

code, pre {
font-family: SFMono-Regular, Consolas, 'Courier New', 'BIZ UDGothic', Meiryo, monospace;
}

blockquote {
border-left: 4px solid #b0b0b0;
background: #d0d0d0;
border-left: 4px solid #bbb;
background: #ddd;
padding: 1em 2em;
margin: 0 1em 2em 1em;
}

hr {
height:0;
border:0;
border-top:1px solid #d0d0d0;
border-top:1px solid #ddd;
border-bottom:1px solid #fff;
}

table tr:nth-child(odd) td {
background: #d0d0d0;
table:not(.highlight *) tr:nth-child(odd) td {
background: #ddd;
padding: 0.25em;
}

table tr:nth-child(even) td {
background: #b0b0b0;
table:not(.highlight *) tr:nth-child(even) td {
background: #bbb;
padding: 0.25em;
}

Expand Down

0 comments on commit 5edfe78

Please sign in to comment.