@atlaskit/renderer 103.0.1 → 104.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/react/marks/textColor.js +8 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +8 -5
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +3 -3
- package/dist/cjs/ui/Renderer/index.js +11 -1
- package/dist/cjs/ui/Renderer/style.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/marks/textColor.js +7 -2
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +10 -7
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +16 -7
- package/dist/es2019/ui/Renderer/index.js +11 -2
- package/dist/es2019/ui/Renderer/style.js +284 -284
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/marks/textColor.js +7 -2
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +7 -6
- package/dist/esm/react/nodes/codeBlockCopyButton.js +2 -2
- package/dist/esm/ui/Renderer/index.js +13 -2
- package/dist/esm/ui/Renderer/style.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/events.d.ts +1 -0
- package/dist/types/ui/Renderer/index.d.ts +5 -0
- package/package.json +15 -22
- package/report.api.md +38 -30
- package/dist/types-ts4.0/actions/index.d.ts +0 -61
- package/dist/types-ts4.0/actions/matches-utils.d.ts +0 -7
- package/dist/types-ts4.0/actions.d.ts +0 -3
- package/dist/types-ts4.0/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.0/analytics/enums.d.ts +0 -56
- package/dist/types-ts4.0/analytics/events.d.ts +0 -110
- package/dist/types-ts4.0/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.0/consts.d.ts +0 -12
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -20
- package/dist/types-ts4.0/i18n/da.d.ts +0 -20
- package/dist/types-ts4.0/i18n/de.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -20
- package/dist/types-ts4.0/i18n/es.d.ts +0 -20
- package/dist/types-ts4.0/i18n/et.d.ts +0 -8
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -20
- package/dist/types-ts4.0/i18n/index.d.ts +0 -31
- package/dist/types-ts4.0/i18n/it.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -20
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -20
- package/dist/types-ts4.0/i18n/th.d.ts +0 -20
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -20
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -20
- package/dist/types-ts4.0/index.d.ts +0 -11
- package/dist/types-ts4.0/messages.d.ts +0 -61
- package/dist/types-ts4.0/react/hooks/use-bidi-warnings.d.ts +0 -10
- package/dist/types-ts4.0/react/hooks/use-in-viewport.d.ts +0 -5
- package/dist/types-ts4.0/react/hooks/use-observed-width.d.ts +0 -3
- package/dist/types-ts4.0/react/index.d.ts +0 -118
- package/dist/types-ts4.0/react/marks/alignment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/annotation.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/breakout.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/code.d.ts +0 -16
- package/dist/types-ts4.0/react/marks/confluence-inline-comment.d.ts +0 -8
- package/dist/types-ts4.0/react/marks/data-consumer.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/em.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/fragment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/indentation.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/index.d.ts +0 -21
- package/dist/types-ts4.0/react/marks/link.d.ts +0 -9
- package/dist/types-ts4.0/react/marks/strike.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/strong.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/subsup.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/textColor.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/underline.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedMark.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedNodeAttribute.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/blockCard.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/bodiedExtension.d.ts +0 -24
- package/dist/types-ts4.0/react/nodes/bulletList.d.ts +0 -5
- package/dist/types-ts4.0/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlock/codeBlock.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -12
- package/dist/types-ts4.0/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlockCopyButton.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/date.d.ts +0 -11
- package/dist/types-ts4.0/react/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/decisionList.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/doc.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/embedCard.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/emoji.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/extension.d.ts +0 -113
- package/dist/types-ts4.0/react/nodes/fallback.d.ts +0 -16
- package/dist/types-ts4.0/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/heading-anchor.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/heading.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/index.d.ts +0 -94
- package/dist/types-ts4.0/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.0/react/nodes/inlineCard.d.ts +0 -65
- package/dist/types-ts4.0/react/nodes/inlineExtension.d.ts +0 -18
- package/dist/types-ts4.0/react/nodes/layoutColumn.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/layoutSection.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/media.d.ts +0 -27
- package/dist/types-ts4.0/react/nodes/mediaGroup.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/mediaInline.d.ts +0 -20
- package/dist/types-ts4.0/react/nodes/mediaSingle/index.d.ts +0 -23
- package/dist/types-ts4.0/react/nodes/mediaSingle/styles.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/mention.d.ts +0 -13
- package/dist/types-ts4.0/react/nodes/orderedList.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/panel.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/placeholder.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/status.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/table/colgroup.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/table/sticky.d.ts +0 -38
- package/dist/types-ts4.0/react/nodes/table/table.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table/types.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table.d.ts +0 -269
- package/dist/types-ts4.0/react/nodes/tableCell.d.ts +0 -81
- package/dist/types-ts4.0/react/nodes/tableRow.d.ts +0 -24
- package/dist/types-ts4.0/react/nodes/task-item-with-providers.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/taskItem.d.ts +0 -19
- package/dist/types-ts4.0/react/nodes/taskList.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/text-wrapper.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.0/react/renderer-node.d.ts +0 -4
- package/dist/types-ts4.0/react/types.d.ts +0 -57
- package/dist/types-ts4.0/react/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.0/react/utils/element-selection.d.ts +0 -9
- package/dist/types-ts4.0/react/utils/getCardClickHandler.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/inject-props.d.ts +0 -6
- package/dist/types-ts4.0/react/utils/links.d.ts +0 -3
- package/dist/types-ts4.0/react/utils/lists.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/performance/RenderTracking.d.ts +0 -15
- package/dist/types-ts4.0/react/utils/use-select-all-trap.d.ts +0 -2
- package/dist/types-ts4.0/render-document.d.ts +0 -23
- package/dist/types-ts4.0/renderer-context.d.ts +0 -9
- package/dist/types-ts4.0/serializer.d.ts +0 -4
- package/dist/types-ts4.0/steps/index.d.ts +0 -14
- package/dist/types-ts4.0/text/index.d.ts +0 -8
- package/dist/types-ts4.0/text/nodes/blockquote.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/bulletList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/date.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/hardBreak.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/heading.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/index.d.ts +0 -6
- package/dist/types-ts4.0/text/nodes/inlineCard.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mention.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/orderedList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/panel.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/status.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/table.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/unknown.d.ts +0 -3
- package/dist/types-ts4.0/text-serializer.d.ts +0 -1
- package/dist/types-ts4.0/types/i18n.d.ts +0 -5
- package/dist/types-ts4.0/types/mediaOptions.d.ts +0 -12
- package/dist/types-ts4.0/types/smartLinksOptions.d.ts +0 -3
- package/dist/types-ts4.0/ui/Expand.d.ts +0 -21
- package/dist/types-ts4.0/ui/ExtensionRenderer.d.ts +0 -42
- package/dist/types-ts4.0/ui/MediaCard.d.ts +0 -77
- package/dist/types-ts4.0/ui/Renderer/ErrorBoundary.d.ts +0 -24
- package/dist/types-ts4.0/ui/Renderer/breakout-ssr.d.ts +0 -11
- package/dist/types-ts4.0/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.0/ui/Renderer/index.d.ts +0 -33
- package/dist/types-ts4.0/ui/Renderer/style.d.ts +0 -14
- package/dist/types-ts4.0/ui/Renderer/truncated-wrapper.d.ts +0 -12
- package/dist/types-ts4.0/ui/Renderer/types.d.ts +0 -16
- package/dist/types-ts4.0/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
- package/dist/types-ts4.0/ui/RendererActionsContext/index.d.ts +0 -9
- package/dist/types-ts4.0/ui/SmartCardStorage.d.ts +0 -60
- package/dist/types-ts4.0/ui/SortingIcon.d.ts +0 -23
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/active-header-id-provider.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/context.d.ts +0 -27
- package/dist/types-ts4.0/ui/annotations/draft/component.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.0/ui/annotations/draft/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/position.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/text.d.ts +0 -11
- package/dist/types-ts4.0/ui/annotations/element/index.d.ts +0 -10
- package/dist/types-ts4.0/ui/annotations/element/mark.d.ts +0 -14
- package/dist/types-ts4.0/ui/annotations/hooks/index.d.ts +0 -3
- package/dist/types-ts4.0/ui/annotations/hooks/use-events.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
- package/dist/types-ts4.0/ui/annotations/hooks/user-selection.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/index.d.ts +0 -5
- package/dist/types-ts4.0/ui/annotations/selection/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/selection/mounter.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.0/ui/annotations/selection/wrapper.d.ts +0 -8
- package/dist/types-ts4.0/ui/annotations/types.d.ts +0 -22
- package/dist/types-ts4.0/ui/annotations/view/index.d.ts +0 -7
- package/dist/types-ts4.0/ui/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/renderer-props.d.ts +0 -100
- package/dist/types-ts4.0/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.0/utils.d.ts +0 -24
|
@@ -294,409 +294,409 @@ export const rendererStyles = wrapperProps => theme => {
|
|
|
294
294
|
theme
|
|
295
295
|
};
|
|
296
296
|
return css`
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
font-size: ${editorFontSize(themeProps)}px;
|
|
298
|
+
line-height: 1.5rem;
|
|
299
|
+
color: ${themed({
|
|
300
300
|
light: token('color.text', colors.N800),
|
|
301
301
|
dark: token('color.text', '#B8C7E0')
|
|
302
302
|
})(themeProps)};
|
|
303
303
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
304
|
+
.${RendererCssClassName.DOCUMENT}::after {
|
|
305
|
+
// we add a clearfix after ak-renderer-document in order to
|
|
306
|
+
// contain internal floats (such as media images that are "wrap-left")
|
|
307
|
+
// to just the renderer (and not spill outside of it)
|
|
308
|
+
content: '';
|
|
309
|
+
visibility: hidden;
|
|
310
|
+
display: block;
|
|
311
|
+
height: 0;
|
|
312
|
+
clear: both;
|
|
313
|
+
}
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
${fullPageStyles(wrapperProps, themeProps)}
|
|
316
|
+
${fullWidthStyles(wrapperProps)}
|
|
317
317
|
|
|
318
318
|
& h1 {
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
${headingAnchorStyle('h1')}
|
|
320
|
+
}
|
|
321
321
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
322
|
+
& h2 {
|
|
323
|
+
${headingAnchorStyle('h2')}
|
|
324
|
+
}
|
|
325
325
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
& h3 {
|
|
327
|
+
${headingAnchorStyle('h3')}
|
|
328
|
+
}
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
& h4 {
|
|
331
|
+
${headingAnchorStyle('h4')}
|
|
332
|
+
}
|
|
333
333
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
& h5 {
|
|
335
|
+
${headingAnchorStyle('h5')}
|
|
336
|
+
}
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
338
|
+
& h6 {
|
|
339
|
+
${headingAnchorStyle('h6')}
|
|
340
|
+
}
|
|
341
341
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
& span.akActionMark {
|
|
343
|
+
color: ${token('color.link', colors.B400)};
|
|
344
|
+
text-decoration: none;
|
|
345
345
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
&:hover {
|
|
347
|
+
color: ${token('color.link', colors.B300)};
|
|
348
|
+
text-decoration: underline;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&:active {
|
|
352
|
+
color: ${token('color.link.pressed', colors.B500)};
|
|
353
|
+
}
|
|
349
354
|
}
|
|
350
355
|
|
|
351
|
-
|
|
352
|
-
|
|
356
|
+
& span.akActionMark {
|
|
357
|
+
cursor: pointer;
|
|
353
358
|
}
|
|
354
|
-
}
|
|
355
359
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
360
|
+
& span[data-placeholder] {
|
|
361
|
+
color: ${colors.placeholderText(themeProps)};
|
|
362
|
+
}
|
|
359
363
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
364
|
+
${whitespaceSharedStyles};
|
|
365
|
+
${blockquoteSharedStyles};
|
|
366
|
+
${headingsSharedStyles(themeProps)};
|
|
367
|
+
${ruleSharedStyles(themeProps)};
|
|
368
|
+
${paragraphSharedStyles};
|
|
369
|
+
${listsSharedStyles};
|
|
370
|
+
${indentationSharedStyles};
|
|
371
|
+
${blockMarksSharedStyles};
|
|
372
|
+
${codeMarkSharedStyles(themeProps)};
|
|
373
|
+
${shadowSharedStyle};
|
|
374
|
+
${dateSharedStyle};
|
|
375
|
+
${textColorStyles};
|
|
376
|
+
${tasksAndDecisionsStyles};
|
|
377
|
+
${smartCardSharedStyles}
|
|
363
378
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
${blockMarksSharedStyles};
|
|
372
|
-
${codeMarkSharedStyles(themeProps)};
|
|
373
|
-
${shadowSharedStyle};
|
|
374
|
-
${dateSharedStyle};
|
|
375
|
-
${textColorStyles};
|
|
376
|
-
${tasksAndDecisionsStyles};
|
|
377
|
-
${smartCardSharedStyles}
|
|
378
|
-
|
|
379
|
-
& .UnknownBlock {
|
|
380
|
-
font-family: ${fontFamily()};
|
|
381
|
-
font-size: ${relativeFontSizeToBase16(fontSize())};
|
|
382
|
-
font-weight: 400;
|
|
383
|
-
white-space: pre-wrap;
|
|
384
|
-
word-wrap: break-word;
|
|
385
|
-
}
|
|
379
|
+
& .UnknownBlock {
|
|
380
|
+
font-family: ${fontFamily()};
|
|
381
|
+
font-size: ${relativeFontSizeToBase16(fontSize())};
|
|
382
|
+
font-weight: 400;
|
|
383
|
+
white-space: pre-wrap;
|
|
384
|
+
word-wrap: break-word;
|
|
385
|
+
}
|
|
386
386
|
|
|
387
|
-
|
|
388
|
-
|
|
387
|
+
& span.date-node {
|
|
388
|
+
background: ${themed({
|
|
389
389
|
light: token('color.background.neutral', colors.N30A),
|
|
390
390
|
dark: token('color.background.neutral', colors.DN70)
|
|
391
391
|
})(themeProps)};
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
border-radius: ${borderRadius()}px;
|
|
393
|
+
color: ${themed({
|
|
394
394
|
light: token('color.text', colors.N800),
|
|
395
395
|
dark: token('color.text', colors.DN600)
|
|
396
396
|
})(themeProps)};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
397
|
+
padding: 2px 4px;
|
|
398
|
+
margin: 0 1px;
|
|
399
|
+
transition: background 0.3s;
|
|
400
|
+
}
|
|
401
401
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
402
|
+
& span.date-node-highlighted {
|
|
403
|
+
background: ${token('color.background.danger', colors.R50)};
|
|
404
|
+
color: ${token('color.text.danger', colors.R500)};
|
|
405
|
+
}
|
|
406
406
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
407
|
+
& .renderer-image {
|
|
408
|
+
max-width: 100%;
|
|
409
|
+
display: block;
|
|
410
|
+
margin: ${gridSize() * 3}px 0;
|
|
411
|
+
}
|
|
412
412
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
413
|
+
.${richMediaClassName}.rich-media-wrapped
|
|
414
|
+
+ .${richMediaClassName}:not(.rich-media-wrapped) {
|
|
415
|
+
clear: both;
|
|
416
|
+
}
|
|
417
417
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
418
|
+
& .code-block,
|
|
419
|
+
& blockquote,
|
|
420
|
+
& hr,
|
|
421
|
+
& > div > div:not(.rich-media-wrapped),
|
|
422
|
+
.${richMediaClassName}.rich-media-wrapped
|
|
423
|
+
+ .rich-media-wrapped
|
|
424
|
+
+ *:not(.rich-media-wrapped),
|
|
425
|
+
.${richMediaClassName}.rich-media-wrapped + div:not(.rich-media-wrapped),
|
|
426
|
+
.${richMediaClassName}.image-align-start,
|
|
427
|
+
.${richMediaClassName}.image-center,
|
|
428
|
+
.${richMediaClassName}.image-align-end {
|
|
429
|
+
clear: both;
|
|
430
|
+
}
|
|
431
431
|
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
432
|
+
& .rich-media-wrapped {
|
|
433
|
+
& + h1,
|
|
434
|
+
& + h2,
|
|
435
|
+
& + h3,
|
|
436
|
+
& + h4,
|
|
437
|
+
& + h5,
|
|
438
|
+
& + h6 {
|
|
439
|
+
margin-top: 8px;
|
|
440
|
+
}
|
|
440
441
|
}
|
|
441
|
-
}
|
|
442
442
|
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
${alignedHeadingAnchorStyle(wrapperProps)}
|
|
444
|
+
/* plugin styles */
|
|
445
445
|
${mediaSingleSharedStyle} &
|
|
446
446
|
div[class^='image-wrap-'] + div[class^='image-wrap-'] {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/* Breakout for tables and extensions */
|
|
452
|
-
.${RendererCssClassName.DOCUMENT} > {
|
|
453
|
-
* .${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
454
|
-
width: 100% !important;
|
|
455
|
-
left: 0 !important;
|
|
447
|
+
margin-left: 0;
|
|
448
|
+
margin-right: 0;
|
|
456
449
|
}
|
|
457
450
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
451
|
+
/* Breakout for tables and extensions */
|
|
452
|
+
.${RendererCssClassName.DOCUMENT} > {
|
|
453
|
+
* .${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
454
|
+
width: 100% !important;
|
|
455
|
+
left: 0 !important;
|
|
456
|
+
}
|
|
461
457
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
458
|
+
* .${RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER} {
|
|
459
|
+
overflow-x: auto;
|
|
460
|
+
}
|
|
466
461
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
462
|
+
& .${RendererCssClassName.EXTENSION}:first-child {
|
|
463
|
+
margin-top: 0;
|
|
464
|
+
}
|
|
470
465
|
}
|
|
471
466
|
|
|
472
|
-
.${RendererCssClassName.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
467
|
+
.${RendererCssClassName.DOCUMENT} {
|
|
468
|
+
.${RendererCssClassName.EXTENSION} {
|
|
469
|
+
margin-top: ${blockNodesVerticalMargin};
|
|
470
|
+
}
|
|
476
471
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
.${RendererCssClassName.EXTENSION_CENTER_ALIGN} {
|
|
473
|
+
margin-left: 50%;
|
|
474
|
+
transform: translateX(-50%);
|
|
475
|
+
}
|
|
480
476
|
|
|
481
|
-
.${shadowObserverClassNames.SHADOW_CONTAINER}
|
|
482
477
|
.${TableSharedCssClassName.TABLE_NODE_WRAPPER} {
|
|
483
|
-
|
|
478
|
+
overflow-x: auto;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.${shadowObserverClassNames.SHADOW_CONTAINER}
|
|
482
|
+
.${TableSharedCssClassName.TABLE_NODE_WRAPPER} {
|
|
483
|
+
display: flex;
|
|
484
|
+
}
|
|
484
485
|
}
|
|
485
|
-
}
|
|
486
486
|
|
|
487
|
-
|
|
487
|
+
${tableSharedStyle(themeProps)}
|
|
488
488
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
489
|
+
.${RendererCssClassName.DOCUMENT} .${TableSharedCssClassName.TABLE_CONTAINER} {
|
|
490
|
+
z-index: 0;
|
|
491
|
+
transition: all 0.1s linear;
|
|
492
|
+
display: flex; /* needed to avoid position: fixed jumpiness in Chrome */
|
|
493
493
|
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
494
|
+
/** Shadow overrides */
|
|
495
|
+
&.${shadowClassNames.RIGHT_SHADOW}::after,
|
|
496
|
+
&.${shadowClassNames.LEFT_SHADOW}::before {
|
|
497
|
+
top: ${tableMarginTop - 1}px;
|
|
498
|
+
height: calc(100% - ${tableMarginTop}px);
|
|
499
|
+
z-index: ${akEditorStickyHeaderZIndex};
|
|
500
|
+
}
|
|
501
501
|
|
|
502
|
-
&
|
|
503
|
-
.${shadowObserverClassNames.SENTINEL_LEFT},
|
|
504
502
|
&
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
.${shadowObserverClassNames.SENTINEL_LEFT},
|
|
504
|
+
&
|
|
505
|
+
.${shadowObserverClassNames.SENTINEL_RIGHT} {
|
|
506
|
+
height: calc(100% - ${tableMarginTop}px);
|
|
507
|
+
}
|
|
508
508
|
|
|
509
|
-
|
|
509
|
+
/**
|
|
510
510
|
* A hack for making all the <th /> heights equal in case some have shorter
|
|
511
511
|
* content than others.
|
|
512
512
|
*
|
|
513
513
|
* This is done to make sort buttons fill entire <th />.
|
|
514
514
|
*/
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
515
|
+
table {
|
|
516
|
+
height: 1px; /* will be ignored */
|
|
517
|
+
${tableSortableColumnStyle(wrapperProps)};
|
|
518
|
+
margin-left: 0;
|
|
519
|
+
margin-right: 0;
|
|
520
|
+
}
|
|
521
521
|
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
table tr:first-of-type {
|
|
523
|
+
height: 100%;
|
|
524
524
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
td,
|
|
526
|
+
th {
|
|
527
|
+
position: relative;
|
|
528
|
+
}
|
|
528
529
|
}
|
|
529
|
-
}
|
|
530
530
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
531
|
+
table[data-number-column='true'] {
|
|
532
|
+
.${RendererCssClassName.NUMBER_COLUMN} {
|
|
533
|
+
background-color: ${themed({
|
|
534
534
|
light: token('color.background.neutral', akEditorTableToolbar),
|
|
535
535
|
dark: token('color.background.neutral', akEditorTableToolbarDark)
|
|
536
536
|
})(themeProps)};
|
|
537
|
-
|
|
538
|
-
|
|
537
|
+
border-right: 1px solid
|
|
538
|
+
${themed({
|
|
539
539
|
light: token('color.border', akEditorTableBorder),
|
|
540
540
|
dark: token('color.border', akEditorTableBorderDark)
|
|
541
541
|
})(themeProps)};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
width: ${akEditorTableNumberColumnWidth}px;
|
|
543
|
+
text-align: center;
|
|
544
|
+
color: ${themed({
|
|
545
545
|
light: token('color.text.subtlest', colors.N200),
|
|
546
546
|
dark: token('color.text.subtlest', colors.DN400)
|
|
547
547
|
})(themeProps)};
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
font-size: ${relativeFontSizeToBase16(fontSize())};
|
|
549
|
+
}
|
|
550
550
|
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
.fixed .${RendererCssClassName.NUMBER_COLUMN} {
|
|
552
|
+
border-right: 0px none;
|
|
553
|
+
}
|
|
553
554
|
}
|
|
554
555
|
}
|
|
555
|
-
}
|
|
556
556
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
557
|
+
tr[data-header-row].fixed {
|
|
558
|
+
position: fixed !important;
|
|
559
|
+
display: flex;
|
|
560
|
+
overflow: hidden;
|
|
561
|
+
z-index: ${akEditorStickyHeaderZIndex};
|
|
562
562
|
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
border-right: 1px solid
|
|
564
|
+
${themed({
|
|
565
565
|
light: token('color.border', akEditorTableBorder),
|
|
566
566
|
dark: token('color.border', akEditorTableBorderDark)
|
|
567
567
|
})(themeProps)};
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
border-bottom: 1px solid
|
|
569
|
+
${themed({
|
|
570
570
|
light: token('color.border', akEditorTableBorder),
|
|
571
571
|
dark: token('color.border', akEditorTableBorderDark)
|
|
572
572
|
})(themeProps)};
|
|
573
573
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
574
|
+
/* this is to compensate for the table border */
|
|
575
|
+
transform: translateX(-1px);
|
|
576
|
+
}
|
|
577
577
|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
578
|
+
.sticky > th {
|
|
579
|
+
z-index: ${akEditorStickyHeaderZIndex};
|
|
580
|
+
position: sticky !important;
|
|
581
|
+
top: 0;
|
|
582
|
+
}
|
|
583
583
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
584
|
+
/* Make the number column header sticky */
|
|
585
|
+
.sticky > td {
|
|
586
|
+
position: sticky !important;
|
|
587
|
+
top: 0;
|
|
588
|
+
}
|
|
589
589
|
|
|
590
|
-
|
|
590
|
+
/* add border for position: sticky
|
|
591
591
|
and work around background-clip: padding-box
|
|
592
592
|
bug for FF causing box-shadow bug in Chrome */
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
593
|
+
.sticky th,
|
|
594
|
+
.sticky td {
|
|
595
|
+
box-shadow: 0px 1px
|
|
596
|
+
${themed({
|
|
597
597
|
light: token('color.border', akEditorTableBorder),
|
|
598
598
|
dark: token('color.border', akEditorTableBorderDark)
|
|
599
599
|
})(themeProps)},
|
|
600
|
-
|
|
600
|
+
0px -0.5px ${themed({
|
|
601
601
|
light: token('color.border', akEditorTableBorder),
|
|
602
602
|
dark: token('color.border', akEditorTableBorderDark)
|
|
603
603
|
})(themeProps)},
|
|
604
|
-
|
|
604
|
+
inset -1px 0px ${themed({
|
|
605
605
|
light: token('color.border', akEditorTableToolbar),
|
|
606
606
|
dark: token('color.border', akEditorTableToolbarDark)
|
|
607
607
|
})(themeProps)},
|
|
608
|
-
|
|
608
|
+
0px -1px ${themed({
|
|
609
609
|
light: token('color.border', akEditorTableToolbar),
|
|
610
610
|
dark: token('color.border', akEditorTableToolbarDark)
|
|
611
611
|
})(themeProps)};
|
|
612
|
-
|
|
612
|
+
}
|
|
613
613
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
614
|
+
/* this will remove jumpiness caused in Chrome for sticky headers */
|
|
615
|
+
.fixed + tr {
|
|
616
|
+
min-height: 0px;
|
|
617
|
+
}
|
|
618
618
|
|
|
619
|
-
|
|
619
|
+
/*
|
|
620
620
|
* We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.
|
|
621
621
|
* See ED-4159.
|
|
622
622
|
*/
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
grid-template-columns: minmax(0, 1fr);
|
|
633
|
-
position: relative;
|
|
634
|
-
border-radius: ${borderRadius()}px;
|
|
623
|
+
& .code-block {
|
|
624
|
+
max-width: 100%;
|
|
625
|
+
/* -ms- properties are necessary until MS supports the latest version of the grid spec */
|
|
626
|
+
/* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */
|
|
627
|
+
display: -ms-grid;
|
|
628
|
+
display: grid;
|
|
629
|
+
-ms-grid-columns: auto 1fr;
|
|
630
|
+
/* stylelint-enable */
|
|
635
631
|
|
|
636
|
-
|
|
632
|
+
grid-template-columns: minmax(0, 1fr);
|
|
633
|
+
position: relative;
|
|
634
|
+
border-radius: ${borderRadius()}px;
|
|
635
|
+
|
|
636
|
+
/*
|
|
637
637
|
* The overall renderer has word-wrap: break; which causes issues with
|
|
638
638
|
* code block line numbers in Safari / iOS.
|
|
639
639
|
*/
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
640
|
+
word-wrap: normal;
|
|
641
|
+
|
|
642
|
+
& > span {
|
|
643
|
+
/* stylelint-disable value-no-vendor-prefix */
|
|
644
|
+
-ms-grid-row: 1;
|
|
645
|
+
-ms-grid-column: 2;
|
|
646
|
+
/* stylelint-enable */
|
|
647
|
+
grid-column: 1;
|
|
648
|
+
}
|
|
648
649
|
}
|
|
649
|
-
}
|
|
650
650
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
651
|
+
& .MediaGroup,
|
|
652
|
+
& .code-block {
|
|
653
|
+
margin-top: ${blockNodesVerticalMargin};
|
|
654
654
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
655
|
+
&:first-child {
|
|
656
|
+
margin-top: 0;
|
|
657
|
+
}
|
|
658
658
|
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
659
|
+
&:hover button.copy-to-clipboard,
|
|
660
|
+
.copy-to-clipboard:focus {
|
|
661
|
+
opacity: 1;
|
|
662
|
+
position: absolute;
|
|
663
|
+
height: 32px;
|
|
664
|
+
width: 32px;
|
|
665
|
+
right: 6px;
|
|
666
|
+
top: 4px;
|
|
667
|
+
padding: 2px;
|
|
668
|
+
}
|
|
668
669
|
}
|
|
669
|
-
}
|
|
670
670
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
${columnLayoutSharedStyle};
|
|
674
|
-
& [data-layout-section] {
|
|
675
|
-
margin-top: ${gridSize() * 2.5}px;
|
|
676
|
-
& > div + div {
|
|
677
|
-
margin-left: ${gridSize() * 4}px;
|
|
678
|
-
}
|
|
671
|
+
${getLightWeightCodeBlockStylesForRootRendererStyleSheet()}
|
|
679
672
|
|
|
680
|
-
|
|
673
|
+
${columnLayoutSharedStyle};
|
|
674
|
+
& [data-layout-section] {
|
|
675
|
+
margin-top: ${gridSize() * 2.5}px;
|
|
681
676
|
& > div + div {
|
|
682
|
-
margin-left:
|
|
677
|
+
margin-left: ${gridSize() * 4}px;
|
|
683
678
|
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
679
|
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
margin-top: 0;
|
|
680
|
+
@media screen and (max-width: ${gridMediumMaxWidth}px) {
|
|
681
|
+
& > div + div {
|
|
682
|
+
margin-left: 0;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
693
685
|
}
|
|
694
686
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
687
|
+
& li {
|
|
688
|
+
> .code-block {
|
|
689
|
+
margin: ${blockNodesVerticalMargin} 0 0 0;
|
|
690
|
+
}
|
|
691
|
+
> .code-block:first-child {
|
|
692
|
+
margin-top: 0;
|
|
693
|
+
}
|
|
698
694
|
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
695
|
+
> div:last-of-type.code-block {
|
|
696
|
+
margin-bottom: ${blockNodesVerticalMargin};
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
${browser.safari ? codeBlockInListSafariFix : ''}
|
|
700
|
+
}
|
|
701
|
+
`;
|
|
702
702
|
};
|