"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.supsubStyles = exports.longdivStyles = exports["default"] = exports.commonMqKeyboardStyles = exports.commonMqFontStyles = void 0;

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

var commonMqFontStyles = {
  fontFamily: 'MJXZERO, MJXTEX !important',
  '-webkit-font-smoothing': 'antialiased !important',
  '& .mq-math-mode > span > var': {
    fontFamily: 'MJXZERO, MJXTEX-I !important'
  },
  '& .mq-math-mode span var': {
    fontFamily: 'MJXZERO, MJXTEX-I !important'
  },
  '& .mq-math-mode .mq-nonSymbola': {
    fontFamily: 'MJXZERO, MJXTEX-I !important'
  },
  '& .mq-math-mode > span > var.mq-operator-name': {
    fontFamily: 'MJXZERO, MJXTEX !important'
  }
};
exports.commonMqFontStyles = commonMqFontStyles;
var longdivStyles = {
  '& .mq-longdiv-inner': {
    marginTop: '-1px',
    marginLeft: '5px !important;',
    '& > .mq-empty': {
      padding: '0 !important',
      marginLeft: '0px !important',
      marginTop: '2px'
    }
  },
  '& .mq-math-mode .mq-longdiv': {
    display: 'inline-flex !important'
  }
};
exports.longdivStyles = longdivStyles;
var supsubStyles = {
  '& .mq-math-mode sup.mq-nthroot': {
    fontSize: '70% !important',
    verticalAlign: '0.5em !important',
    paddingRight: '0.15em'
  },
  '& .mq-math-mode .mq-supsub': {
    fontSize: '70.7% !important'
  },
  '& .mq-supsub ': {
    fontSize: '70.7%'
  },
  '& .mq-math-mode .mq-supsub.mq-sup-only': {
    verticalAlign: '-0.1em !important',
    '& .mq-sup': {
      marginBottom: '0px !important'
    }
  },

  /* But when the base is a fraction, move it higher */
  '& .mq-math-mode .mq-fraction + .mq-supsub.mq-sup-only': {
    verticalAlign: '0.4em !important'
  },
  '& .mq-math-mode .mq-supsub.mq-sup-only.mq-after-fraction-group': {
    verticalAlign: '0.4em !important'
  }
};
exports.supsubStyles = supsubStyles;
var commonMqKeyboardStyles = {
  '& *': _objectSpread(_objectSpread(_objectSpread({}, commonMqFontStyles), longdivStyles), {}, {
    '& .mq-math-mode .mq-sqrt-prefix': {
      top: '0 !important'
    },
    '& .mq-math-mode .mq-empty': {
      padding: '9px 1px !important'
    },
    '& .mq-math-mode .mq-supsub': {
      fontSize: '70.7% !important'
    },
    '& .mq-math-mode .mq-sqrt-stem': {
      marginTop: '-5px',
      paddingTop: '4px'
    },
    '& .mq-math-mode .mq-paren': {
      verticalAlign: 'middle !important'
    },
    '& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty': {
      padding: '0 !important'
    },
    '& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ': {
      padding: '0 !important'
    }
  })
};
exports.commonMqKeyboardStyles = commonMqKeyboardStyles;
var _default = {
  commonMqFontStyles: commonMqFontStyles,
  longdivStyles: longdivStyles,
  supsubStyles: supsubStyles,
  commonMqKeyboardStyles: commonMqKeyboardStyles
};
exports["default"] = _default;
//# sourceMappingURL=common-mq-styles.js.map