var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { makeStyles } from '@mui/styles';
var highlightBeforeStyles = {
    content: '""',
    position: 'absolute',
    left: '-1000px',
    top: '0px',
    width: '5000px',
    height: 'calc(100% - 10px)',
    animationName: '$highlightAnimation',
    animationDuration: '2s',
    animationIterationCount: 1,
    opacity: 0
};
var ERROR_COLOR = 'rgba(255, 0, 0, 0.06)';
var WARNING_COLOR = 'rgba(228, 151, 0, 0.08)';
export var useStyles = makeStyles(function () { return ({
    '@keyframes highlightAnimation': {
        '0%': { opacity: 0 },
        '50%': { opacity: 1 },
        '100%': { opacity: 0 }
    },
    highlightError: {
        '&::before': __assign(__assign({}, highlightBeforeStyles), { background: ERROR_COLOR })
    },
    highlightWarning: {
        '&::before': __assign(__assign({}, highlightBeforeStyles), { background: WARNING_COLOR })
    },
    simpleAttribute: {
        position: 'relative',
        '&::before': {
            top: '-4px',
            height: 'calc(100% + 8px)'
        }
    }
}); });
