docs(site): i18n handler, prettier code blocks and highlighting (#951)

* fix: sirv, commonjs plugin, add rollup sig

* replace deprecated rollup plugins

* remove dollarsign

* fix i18n setting, code snippet styling, lng switch

* fix segment, rm unused styles
This commit is contained in:
Max Peintner
2020-11-11 16:12:09 +01:00
committed by GitHub
parent 8dbf0cfee0
commit b5a7263124
8 changed files with 39 additions and 22 deletions

View File

@@ -184,7 +184,7 @@ strong {
}
tt,
code,
/* code, */
kbd,
samp {
font: 400 var(--code-fs)/1.7 var(--font-mono);
@@ -195,7 +195,8 @@ code {
border-radius: .3em;
white-space: nowrap;
color: var(--text);
-webkit-font-smoothing: initial;
-webkit-font-smoothing: initial;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}
pre code {

View File

@@ -3,7 +3,7 @@ code[class*="language-"] {
color: #d4d4d4;
font-size: 13px;
text-shadow: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace !important;
direction: ltr;
text-align: left;
white-space: pre;
@@ -36,7 +36,7 @@ pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
background: #3c4257;
background: #2A2F45;
border-radius: 8px;
}