docs(v2): code block line highlighting (#1904)

* docs(v2): code block line highlighting

* misc: update CHANGELOG

* misc: respond to review

* docs: add line highlighting to the template
This commit is contained in:
Yangshun Tay 2019-10-29 14:59:24 +08:00 committed by GitHub
parent 7714afb00f
commit f635f9aba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 166 additions and 69 deletions

View file

@ -31,3 +31,10 @@ html[data-theme='dark'] {
--ifm-font-size-base: 17px;
}
}
.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}