Skip to content

Commit

Permalink
[samples] css update for inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Oct 13, 2023
1 parent d34b25c commit 50ac504
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions samples/docs/res/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -279,19 +279,26 @@ th, td {

/* Code */

code {
font-size: 0.8em;
padding: .25em .5em;
color: var(--orange-light);
background-color: var(--pre-bg-color);
}

pre {
position: relative;
color: var(--pre-color);
background-color: var(--pre-bg-color);
padding: 1em;
font-size: 0.9rem;
max-width: 100%;
overflow: auto;
}

code, pre, kbd {
white-space: pre;
font-family: "DejaVu Sans Mono", monospace, monospace;
font-size: 0.90rem;
line-height: 154%;
tab-size: 4;
-moz-tab-size: 4;
Expand All @@ -314,6 +321,13 @@ pre > code::before {
padding: 0 0.25em;
}

pre > code {
font-size: inherit;
color: inherit;
background: none;
padding: 0;
}

pre.chroma {
/* position: relative; */
margin-bottom: 0;
Expand All @@ -332,13 +346,6 @@ pre.chroma {

/* Note: see chroma.css for syntax highlighting */

/* Inline Code */
p code {
padding: .25em .5em;
color: var(--orange-light);
background-color: var(--pre-bg-color);
}

blockquote {
border-left: 4px solid var(--fg);
background: var(--dark);
Expand Down

0 comments on commit 50ac504

Please sign in to comment.