UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

97 lines (96 loc) 5.61 kB
import _defineProperty from "@babel/runtime/helpers/defineProperty"; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 import { css } from '@emotion/react'; import { akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles'; var richMediaClassName = 'rich-media-item'; var wrappedMediaBreakoutPoint = 410; var mediaSingleSharedStyle = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), { margin: 0 }), '&.ua-chrome li > .mediaSingleView-content-wrap::before', { content: "''", display: 'block', height: 0 }), '&.ua-firefox', { // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '.mediaSingleView-content-wrap': { userSelect: 'none' }, // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '.captionView-content-wrap': { userSelect: 'text' } }), ".mediaSingleView-content-wrap[layout='center']", { clear: 'both' }), "table .".concat(richMediaClassName), { marginTop: "var(--ds-space-150, 12px)", marginBottom: "var(--ds-space-150, 12px)", clear: 'both', // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': { clear: 'none', // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766 '&:first-child': { marginTop: "var(--ds-space-150, 12px)" } } }), ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), { clear: 'both' }), ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), { marginRight: 0, marginLeft: 0 }), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), { // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": { float: 'none', overflow: 'auto', margin: "var(--ds-space-150, 12px)".concat(" 0") } })); var mediaSingleSharedStyleNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "li .".concat(richMediaClassName), { margin: 0 }), '&.ua-chrome li > .mediaSingleView-content-wrap::before', { content: "''", display: 'block', height: 0 }), '&.ua-firefox', { // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '.mediaSingleView-content-wrap': { userSelect: 'none' }, // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '.captionView-content-wrap': { userSelect: 'text' } }), ".mediaSingleView-content-wrap[layout^='wrap-']", { position: 'relative', // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values zIndex: akEditorWrappedNodeZIndex }), ".mediaSingleView-content-wrap[layout='center']", { clear: 'both' }), "table .".concat(richMediaClassName), { marginTop: "var(--ds-space-150, 12px)", marginBottom: "var(--ds-space-150, 12px)", clear: 'both', // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 '&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': { clear: 'none', // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766 '&:first-child': { marginTop: "var(--ds-space-150, 12px)" } } }), ".".concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left"), { clear: 'both' }), ".".concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-right, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-left + .").concat(richMediaClassName, ".image-wrap-left, .").concat(richMediaClassName, ".image-wrap-right + .").concat(richMediaClassName, ".image-wrap-right"), { marginRight: 0, marginLeft: 0 }), "@media all and (max-width: ".concat(wrappedMediaBreakoutPoint, "px)"), { // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766 "div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": { float: 'none', overflow: 'auto', margin: "var(--ds-space-150, 12px)".concat(" 0") } })); // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766 export { mediaSingleSharedStyle, mediaSingleSharedStyleNew, richMediaClassName };