Skip to content

Commit 6875d57

Browse files
committed
style code tag globally
1 parent f40bd1f commit 6875d57

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/css/base.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ code,
112112
kbd,
113113
pre {
114114
font-family: "Roboto Mono", monospace;
115+
font-size: 0.875rem;
116+
}
117+
118+
code {
119+
color: var(--color-brand-black);
120+
line-height: 1;
121+
word-spacing: -0.125em;
115122
}
116123

117124
b,

src/css/doc.css

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,12 @@
9595
text-decoration: underline;
9696
}
9797

98-
.doc code,
9998
.doc pre {
100-
font-size: 0.875rem;
99+
margin: 0;
101100
}
102101

103102
.doc code {
104103
color: var(--color-code);
105-
word-spacing: -0.125em;
106-
}
107-
108-
.doc pre {
109-
margin: 0;
110104
}
111105

112106
.doc pre code {
@@ -147,7 +141,6 @@
147141
.doc table.tableblock {
148142
border-width: 1px;
149143
border-collapse: collapse;
150-
/* font-size: 0.85em; */
151144
margin: 1.5rem 0 2rem;
152145
/* enable table-layout: fixed if you want the table width to be enforced strictly */
153146
/* alternative is to wrap table in div and set overflow-x: auto on the wrapper */

0 commit comments

Comments
 (0)