"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CLASS = void 0;
var common_1 = require("../common");
exports.CLASS = common_1.constants.CSS.CLASS;
var CELL = exports.CLASS.CELL, GRID = exports.CLASS.GRID;
var STYLES = {
    CELL: (_a = {},
        _a["." + CELL.BASE] = {
            all: 'unset',
            whiteSpace: 'normal',
            boxSizing: 'border-box',
            pointerEvents: 'none',
            fontSize: 14,
            color: common_1.color.format(-0.7),
        },
        _a["." + CELL.BASE + "." + GRID.FIRST.ROW] = {},
        _a["." + CELL.DEFAULT] = {
            paddingLeft: 4,
            paddingRight: 4,
            position: 'absolute',
            left: 0,
            top: 0,
            right: 0,
            bottom: 0,
        },
        _a["." + CELL.BOLD] = { fontWeight: 'bolder' },
        _a["." + CELL.ITALIC] = { fontStyle: 'italic' },
        _a["." + CELL.UNDERLINE] = { textDecoration: 'underline' },
        _a["." + CELL.FORMULA] = {
            color: '#7ED321',
            fontFamily: common_1.constants.MONOSPACE.FAMILY,
            fontWeight: 'bolder',
        },
        _a["." + CELL.ERROR] = {
            color: '#E30000',
        },
        _a),
    MARKDOWN: {
        '*': {
            paddingInlineStart: 0,
            marginBlockStart: 0,
            marginBlockEnd: 0,
            whiteSpace: 'normal',
        },
        'h1, h2': {
            borderBottom: 'none',
            paddingBottom: 0,
        },
        h1: { fontSize: '1.4em', margin: 0, marginBottom: '0.1em', marginTop: '0.1em' },
        h2: { fontSize: '1.2em', margin: 0, marginBottom: '0.1em', marginTop: '0.1em' },
        h3: { fontSize: '1em', margin: 0 },
        h4: { fontSize: '1em', margin: 0 },
        hr: {
            marginTop: '0.1em',
            marginBottom: '0.1em',
            borderBottomWidth: "3px",
        },
        p: { paddingTop: 1 },
        pre: {
            marginTop: '1em',
            marginBottom: '1em',
            lineHeight: '1.2em',
        },
        'blockquote:last-child, pre:last-child': {
            marginBottom: 4,
        },
    },
};
common_1.style.global(STYLES.CELL);
common_1.style.global(STYLES.MARKDOWN, { prefix: "." + CELL.MARKDOWN });
