update selection styling to use css variable (#10437)

This commit is contained in:
Azri Kahar
2021-12-11 00:42:03 +08:00
committed by GitHub
parent 99ed135f0d
commit 5a7e31bc98
2 changed files with 4 additions and 1 deletions

View File

@@ -23,6 +23,9 @@ export default function getEditorStyles(font: 'sans-serif' | 'serif' | 'monospac
url(${merriweatherRegular}) format('woff');
}
::selection {
background: ${cssVar('--background-normal-alt')};
}
body {
color: ${cssVar('--foreground-normal')};
background-color: ${cssVar('--background-input')};

View File

@@ -108,7 +108,7 @@ strong {
}
::selection {
background: #e1f0fa;
background: var('--background-normal-alt');
}
dl > div {