Skip to content

Commit 97a8c16

Browse files
committed
optimize style for <code> in docs
1 parent 0b17527 commit 97a8c16

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

public/site.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,17 @@ body {
185185
column-count: 2;
186186
}
187187
}
188+
/* See goplus/www/goplus.org/utils/index.scss */
188189
.text-wrapper pre, .text-wrapper code {
189-
font-family: 'Menlo', 'Monaco', 'Consolas', 'Lucida Console', monospace;
190+
padding: 0.2em 0.4em;
191+
margin: 0;
192+
font-size: 85%;
193+
border-radius: 6px;
194+
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
195+
}
196+
197+
.text-wrapper code {
198+
background-color: rgba(175, 184, 193, 0.2);
190199
}
191200

192201
/* next example link in example page */

0 commit comments

Comments
 (0)