Skip to content

Commit 29a676a

Browse files
authored
Improve the rendering of inline <code> (#1573)
1 parent cf5eeff commit 29a676a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/resources/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ pre.prettyprint {
237237
pre code {
238238
white-space: pre;
239239
word-wrap: initial;
240+
font-size: 100%
240241
}
241242

242243
.fixed {
@@ -253,7 +254,10 @@ code {
253254
font-family: 'Source Code Pro', monospace;
254255
/* overriding bootstrap */
255256
color: inherit;
256-
background-color: #eee;
257+
padding: 0.2em 0.4em;
258+
font-size: 85%;
259+
background-color: rgba(27,31,35,0.05);
260+
border-radius: 3px;
257261
}
258262

259263
h2 .crossdart {

testing/test_package_docs/static-assets/styles.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ pre.prettyprint {
237237
pre code {
238238
white-space: pre;
239239
word-wrap: initial;
240+
font-size: 100%
240241
}
241242

242243
.fixed {
@@ -253,7 +254,10 @@ code {
253254
font-family: 'Source Code Pro', monospace;
254255
/* overriding bootstrap */
255256
color: inherit;
256-
background-color: #eee;
257+
padding: 0.2em 0.4em;
258+
font-size: 85%;
259+
background-color: rgba(27,31,35,0.05);
260+
border-radius: 3px;
257261
}
258262

259263
h2 .crossdart {

0 commit comments

Comments
 (0)