feat(keymap-upgrader): Highlight changes

Updated the keymap upgrader to highlight which lines it changed as well
as indicate when nothing needed to be upgraded.

Also adjusted the line highlight colors to be more readable in both
light and dark color schemes.
This commit is contained in:
Joel Spadin
2024-01-21 19:31:55 -06:00
parent 84e056793b
commit 37fcf190e6
6 changed files with 109 additions and 45 deletions

View File

@@ -15,10 +15,15 @@
--ifm-color-primary-lighter: #0280e3;
--ifm-color-primary-lightest: #0690fc;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 8%);
}
[data-theme="dark"] {
--docusaurus-highlighted-code-line-bg: rgb(255 255 255 / 8%);
}
.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);