docs: redesign code highlights + add default code titles (#8628)

* docs: code highlights improvements + default titles

* spacing fixes

* fix terminal detection

* add padding for non-terminal one liners
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-08-19 13:34:07 +03:00
1 parent d571d564c3
commit a77c23c915
9 files changed
+104 -55

No files matched your search

@@ -768,9 +768,10 @@ module.exports = {
".animate-bg-surface": {
"--animation-color": "var(--docs-bg-subtle-pressed)",
},
".code-block-highlight-dark": {
".code-block-highlight": {
"*::selection": {
"background-color": "var(--docs-contrast-bg-highlight)",
"background-color": "var(--docs-contrast-fg-secondary)",
color: "var(--docs-contrast-bg-base)",
},
},
".code-block-highlight-light": {
+1 -1
View File
@@ -96,7 +96,7 @@ const light = {
"--docs-contrast-bg-alpha": "rgba(9, 9, 11, 0.8)",
"--docs-contrast-fg-primary": "rgba(255, 255, 255, 0.88)",
"--docs-contrast-fg-secondary": "rgba(255, 255, 255, 0.56)",
"--docs-contrast-border-base": "rgba(255, 255, 255, 0.15)",
"--docs-contrast-border-base": "rgba(255, 255, 255, 0.16)",
"--docs-contrast-border-top": "rgba(9, 9, 11, 1)",
"--docs-contrast-border-bot": "rgba(255, 255, 255, 0.1)",
}