Fix selection styles
This commit is contained in:
parent
8bc0b18e4f
commit
55d9a1c986
2 changed files with 12 additions and 5 deletions
|
@ -1,12 +1,19 @@
|
|||
import CssBaseline from "@material-ui/core/CssBaseline";
|
||||
import { createStyles, withStyles } from "@material-ui/core/styles";
|
||||
import { createStyles, Theme, withStyles } from "@material-ui/core/styles";
|
||||
import { fade } from "@material-ui/core/styles/colorManipulator";
|
||||
import React from "react";
|
||||
|
||||
const styles = createStyles({
|
||||
const styles = createStyles((theme: Theme) => ({
|
||||
"@global": {
|
||||
"@import": "url('https://rsms.me/inter/inter.css')"
|
||||
"@import": "url('https://rsms.me/inter/inter.css')",
|
||||
|
||||
// For some reason @import clause must be put on top
|
||||
// eslint-disable-next-line sort-keys
|
||||
"::selection": {
|
||||
background: fade(theme.palette.primary.main, 0.2)
|
||||
}
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
const Baseline = withStyles(styles, {
|
||||
name: "Baseline"
|
||||
|
|
|
@ -39,7 +39,7 @@ const useStyles = makeStyles(
|
|||
minHeight: 24
|
||||
},
|
||||
"& .ce-block--selected .ce-block__content": {
|
||||
background: `${fade(theme.palette.primary.main, 0.4)} !important`
|
||||
background: `${fade(theme.palette.primary.main, 0.2)} !important`
|
||||
},
|
||||
"& .ce-block__content": {
|
||||
margin: 0,
|
||||
|
|
Loading…
Reference in a new issue