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 5367f47
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 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 {
white-space: nowrap;
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,14 @@ pre > code::before {
padding: 0 0.25em;
}

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

pre.chroma {
/* position: relative; */
margin-bottom: 0;
Expand All @@ -332,13 +347,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 5367f47

Please sign in to comment.