1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: minor css fix + add error message

This commit is contained in:
Ned Palacios
2020-06-10 17:13:42 +08:00
committed by GitHub
parent e38a221dc3
commit e3c40f1df8
4 changed files with 24 additions and 10 deletions

View File

@@ -260,6 +260,9 @@ body {
padding: 1rem;
overflow: hidden;
}
.doc-content p {
line-height: 1.4;
}
.doc-content a {
color: #2779bd;
color: var(--link-color);
@@ -267,6 +270,9 @@ body {
.doc-content > .doc-node {
padding: 5rem 0 2rem 0;
margin-top: -4rem;
overflow: hidden;
word-break: break-all; /* IE11 */
word-break: break-word;
}
.doc-content > .doc-node.const:not(:first-child) {
padding-top: 0;
@@ -408,6 +414,11 @@ pre, code, pre code {
font-size: 0.9rem;
text-shadow: none;
font-family: monospace;
background-color: #edf2f7;
background-color: var(--code-background-color);
border-radius: 0.25rem;
}
pre code {
direction: ltr;
text-align: left;
white-space: pre;
@@ -421,14 +432,13 @@ pre, code, pre code {
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
background-color: #edf2f7;
background-color: var(--code-background-color);
display: block;
border-radius: 0.25rem;
overflow-x: auto;
padding: 1rem;
}
code, pre code {
padding: 1rem;
code {
padding: 0.2rem;
vertical-align: middle;
}
pre {
overflow: auto;

View File

@@ -39,7 +39,6 @@ strong {
font-weight: bolder;
}
code,
kbd,
samp {
font-family: monospace, monospace;