Skip to content

Commit a2846be

Browse files
Added better styling to pre and code elements
closes #11, #21
1 parent ebc4792 commit a2846be

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Diff for: assets/built/screen.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/built/screen.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: assets/css/screen.css

+21
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,27 @@ unless a heading is the very first element in the post content */
22422242
padding-right: 0;
22432243
}
22442244

2245+
.gh-content pre {
2246+
overflow: auto;
2247+
padding: 16px;
2248+
font-size: 1.5rem;
2249+
line-height: 1.5em;
2250+
background: var(--color-lighter-gray);
2251+
border-radius: 6px;
2252+
font-family: var(--font-mono);
2253+
}
2254+
2255+
.gh-content :not(pre) > code {
2256+
vertical-align: baseline;
2257+
padding: 0.15em 0.4em;
2258+
font-weight: 400;
2259+
font-size: 0.95em;
2260+
line-height: 1em;
2261+
background: var(--color-lighter-gray);
2262+
border-radius: 0.25em;
2263+
font-family: var(--font-mono);
2264+
}
2265+
22452266
/* 16. Cards
22462267
/* ---------------------------------------------------------- */
22472268

0 commit comments

Comments
 (0)