@atlaskit/editor-core 209.1.1 → 209.1.2
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 +9 -0
- package/dist/cjs/ui/ContentStyles/index.js +8 -7
- package/dist/cjs/ui/ContentStyles/status.js +14 -7
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +19 -9
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +174 -1
- package/dist/cjs/ui/EditorContentContainer/styles/mentions.js +31 -1
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +102 -1
- package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +117 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +32 -6
- package/dist/es2019/ui/ContentStyles/status.js +24 -11
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +23 -13
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +225 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +34 -0
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +153 -0
- package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +116 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +9 -8
- package/dist/esm/ui/ContentStyles/status.js +14 -7
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +23 -13
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +173 -0
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +30 -0
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +101 -0
- package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +116 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/ContentStyles/status.d.ts +1 -1
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/mentions.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/smartCardStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/statusStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mentions.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/smartCardStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/statusStyles.d.ts +2 -0
- package/package.json +6 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.statusStylesMixin_without_fg_platform_component_visual_refresh = exports.statusStylesMixin_fg_platform_component_visual_refresh = exports.statusStyles = void 0;
|
|
6
|
+
exports.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match = exports.statusStylesMixin_without_fg_platform_component_visual_refresh = exports.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match = exports.statusStylesMixin_fg_platform_component_visual_refresh = exports.statusStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -124,6 +124,52 @@ var statusStylesMixin_fg_platform_component_visual_refresh = exports.statusStyle
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
128
|
+
var statusStylesMixin_fg_platform_component_visual_refresh_with_search_match = exports.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match = (0, _react.css)({
|
|
129
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
130
|
+
'.statusView-content-wrap:not(.search-match-block)': {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
|
+
'&.ak-editor-selected-node .status-lozenge-span > span': {
|
|
133
|
+
boxShadow: "0 0 0 2px ".concat("var(--ds-border-selected, #0C66E4)")
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
137
|
+
'[data-prosemirror-node-name="status"] .lozenge-text': {
|
|
138
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
139
|
+
color: '#292A2E'
|
|
140
|
+
},
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
142
|
+
'[data-prosemirror-node-name="status"] > [data-color=neutral] > .lozenge-wrapper': {
|
|
143
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
144
|
+
backgroundColor: '#DDDEE1'
|
|
145
|
+
},
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
147
|
+
'[data-prosemirror-node-name="status"] > [data-color=purple] > .lozenge-wrapper': {
|
|
148
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
149
|
+
backgroundColor: '#D8A0F7'
|
|
150
|
+
},
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
152
|
+
'[data-prosemirror-node-name="status"] > [data-color=blue] > .lozenge-wrapper': {
|
|
153
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
154
|
+
backgroundColor: '#8FB8F6'
|
|
155
|
+
},
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
157
|
+
'[data-prosemirror-node-name="status"] > [data-color=yellow] > .lozenge-wrapper': {
|
|
158
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
159
|
+
backgroundColor: '#F9C84E'
|
|
160
|
+
},
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
162
|
+
'[data-prosemirror-node-name="status"] > [data-color=red] > .lozenge-wrapper': {
|
|
163
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
164
|
+
backgroundColor: '#FD9891'
|
|
165
|
+
},
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
167
|
+
'[data-prosemirror-node-name="status"] > [data-color=green] > .lozenge-wrapper': {
|
|
168
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
169
|
+
backgroundColor: '#B3DF72'
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
|
|
127
173
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
128
174
|
var statusStylesMixin_without_fg_platform_component_visual_refresh = exports.statusStylesMixin_without_fg_platform_component_visual_refresh = (0, _react.css)({
|
|
129
175
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -192,4 +238,74 @@ var statusStylesMixin_without_fg_platform_component_visual_refresh = exports.sta
|
|
|
192
238
|
'[data-prosemirror-node-name="status"] > [data-color=green] .lozenge-text': {
|
|
193
239
|
color: "var(--ds-text-success, #216E4E)"
|
|
194
240
|
}
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
244
|
+
var statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match = exports.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match = (0, _react.css)({
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
246
|
+
'.statusView-content-wrap:not(.search-match-block)': {
|
|
247
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
248
|
+
'&.ak-editor-selected-node .status-lozenge-span > span': {
|
|
249
|
+
// getSelectionStyles([SelectionStyle.BoxShadow]);
|
|
250
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
251
|
+
borderColor: 'transparent',
|
|
252
|
+
// hideNativeBrowserTextSelectionStyles
|
|
253
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
254
|
+
'&::selection, & *::selection': {
|
|
255
|
+
backgroundColor: 'transparent'
|
|
256
|
+
},
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
258
|
+
'&::-moz-selection, & *::-moz-selection': {
|
|
259
|
+
backgroundColor: 'transparent'
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
264
|
+
'[data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-wrapper': {
|
|
265
|
+
backgroundColor: "var(--ds-background-neutral, #091E420F)"
|
|
266
|
+
},
|
|
267
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
268
|
+
'[data-prosemirror-node-name="status"] > [data-color=neutral] .lozenge-text': {
|
|
269
|
+
color: "var(--ds-text-subtle, #44546F)"
|
|
270
|
+
},
|
|
271
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
272
|
+
'[data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-wrapper': {
|
|
273
|
+
backgroundColor: "var(--ds-background-discovery, #F3F0FF)"
|
|
274
|
+
},
|
|
275
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
276
|
+
'[data-prosemirror-node-name="status"] > [data-color=purple] .lozenge-text': {
|
|
277
|
+
color: "var(--ds-text-discovery, #5E4DB2)"
|
|
278
|
+
},
|
|
279
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
280
|
+
'[data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-wrapper': {
|
|
281
|
+
backgroundColor: "var(--ds-background-information, #E9F2FF)"
|
|
282
|
+
},
|
|
283
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
284
|
+
'[data-prosemirror-node-name="status"] > [data-color=blue] .lozenge-text': {
|
|
285
|
+
color: "var(--ds-text-information, #0055CC)"
|
|
286
|
+
},
|
|
287
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
288
|
+
'[data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-wrapper': {
|
|
289
|
+
backgroundColor: "var(--ds-background-warning, #FFF7D6)"
|
|
290
|
+
},
|
|
291
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
292
|
+
'[data-prosemirror-node-name="status"] > [data-color=yellow] .lozenge-text': {
|
|
293
|
+
color: "var(--ds-text-warning, #A54800)"
|
|
294
|
+
},
|
|
295
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
296
|
+
'[data-prosemirror-node-name="status"] > [data-color=red] .lozenge-wrapper': {
|
|
297
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)"
|
|
298
|
+
},
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
+
'[data-prosemirror-node-name="status"] > [data-color=red] .lozenge-text': {
|
|
301
|
+
color: "var(--ds-text-danger, #AE2E24)"
|
|
302
|
+
},
|
|
303
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
304
|
+
'[data-prosemirror-node-name="status"] > [data-color=green] .lozenge-wrapper': {
|
|
305
|
+
backgroundColor: "var(--ds-background-success, #DCFFF1)"
|
|
306
|
+
},
|
|
307
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
308
|
+
'[data-prosemirror-node-name="status"] > [data-color=green] .lozenge-text': {
|
|
309
|
+
color: "var(--ds-text-success, #216E4E)"
|
|
310
|
+
}
|
|
195
311
|
});
|
|
@@ -19,7 +19,7 @@ import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
|
19
19
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
20
20
|
import { CodeBlockSharedCssClassName, MediaSharedClassNames, SmartCardSharedCssClassName, annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, ruleSharedStyles, shadowSharedStyle, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
22
|
-
import { findReplaceStyles, findReplaceStylesNewYellow, findReplaceStylesNewMagenta } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
22
|
+
import { findReplaceStyles, findReplaceStylesNewYellow, findReplaceStylesNewMagenta, findReplaceStylesNewMagentaNoImportant } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
23
23
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
24
24
|
import { placeholderTextStyles, placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour } from '@atlaskit/editor-plugins/placeholder-text/styles';
|
|
25
25
|
import { SelectionStyle, akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorDefaultLayoutWidth, akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles } from '@atlaskit/editor-shared-styles';
|
|
@@ -138,14 +138,40 @@ const mentionSelectionStyles = css`
|
|
|
138
138
|
color: ${"var(--ds-text-subtle, #44546F)"}
|
|
139
139
|
}
|
|
140
140
|
`;
|
|
141
|
+
const mentionsSelectionStylesWithSearchMatch = css`
|
|
142
|
+
.danger {
|
|
143
|
+
.editor-mention-primitive {
|
|
144
|
+
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px ${akEditorDeleteBorder};
|
|
145
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.${akEditorSelectedNodeClassName}:not(.search-match-block) > .editor-mention-primitive,
|
|
150
|
+
.${akEditorSelectedNodeClassName}:not(.search-match-block) > .editor-mention-primitive.mention-self,
|
|
151
|
+
.${akEditorSelectedNodeClassName}:not(.search-match-block) > .editor-mention-primitive.mention-restricted {
|
|
152
|
+
${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Background])}
|
|
153
|
+
/* need to specify dark text colour because personal mentions
|
|
154
|
+
(in dark blue) have white text by default */
|
|
155
|
+
color: ${"var(--ds-text-subtle, #44546F)"}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.${akEditorSelectedNodeClassName}.search-match-block > .editor-mention-primitive,
|
|
159
|
+
.${akEditorSelectedNodeClassName}.search-match-block > .editor-mention-primitive.mention-self,
|
|
160
|
+
.${akEditorSelectedNodeClassName}.search-match-block > .editor-mention-primitive.mention-restricted {
|
|
161
|
+
${getSelectionStyles([SelectionStyle.Background])}
|
|
162
|
+
/* need to specify dark text colour because personal mentions
|
|
163
|
+
(in dark blue) have white text by default */
|
|
164
|
+
color: ${"var(--ds-text-subtle, #44546F)"}
|
|
165
|
+
}
|
|
166
|
+
`;
|
|
141
167
|
const mentionsStyles = css`
|
|
142
168
|
.${MentionSharedCssClassName.MENTION_CONTAINER} {
|
|
143
169
|
&.${akEditorSelectedNodeClassName} [data-mention-id] > span {
|
|
144
170
|
${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Background])}
|
|
145
171
|
|
|
146
172
|
/* need to specify dark text colour because personal mentions
|
|
147
|
-
|
|
148
|
-
|
|
173
|
+
(in dark blue) have white text by default */
|
|
174
|
+
color: ${"var(--ds-text-subtle, #44546F)"};
|
|
149
175
|
}
|
|
150
176
|
}
|
|
151
177
|
|
|
@@ -403,7 +429,7 @@ const legacyContentStyles = props => css`
|
|
|
403
429
|
${mentionsStyles}
|
|
404
430
|
${mentionNodeStyles}
|
|
405
431
|
${fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding}
|
|
406
|
-
${mentionSelectionStyles}
|
|
432
|
+
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles}
|
|
407
433
|
${emojiStyles}
|
|
408
434
|
${tasksAndDecisionsStyles}
|
|
409
435
|
${gridStyles}
|
|
@@ -412,14 +438,14 @@ const legacyContentStyles = props => css`
|
|
|
412
438
|
${dateSharedStyle}
|
|
413
439
|
${extensionStyles}
|
|
414
440
|
${expandStyles()}
|
|
415
|
-
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ? findReplaceStylesNewMagenta : findReplaceStylesNewYellow : findReplaceStyles}
|
|
441
|
+
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewMagentaNoImportant : findReplaceStylesNewMagenta : findReplaceStylesNewYellow : findReplaceStyles}
|
|
416
442
|
${textHighlightStyle}
|
|
417
443
|
${taskDecisionStyles}
|
|
418
444
|
${taskItemStyles}
|
|
419
445
|
/* Switch between the two icons based on the visual refresh feature gate */
|
|
420
446
|
${fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh}
|
|
421
447
|
${!fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh}
|
|
422
|
-
${statusStyles}
|
|
448
|
+
${statusStyles()}
|
|
423
449
|
${statusNodeStyles()}
|
|
424
450
|
${annotationSharedStyles()}
|
|
425
451
|
${smartCardStyles()}
|
|
@@ -3,22 +3,34 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSelectedBoldBoxShadow, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
|
|
6
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
7
|
const getVisualRefreshStatusStyles = () =>
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
9
|
-
fg('platform-component-visual-refresh') ?
|
|
9
|
+
fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? css({
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
11
|
+
[`&.${akEditorSelectedNodeClassName}:not('.search-match-block') .${StatusSharedCssClassName.STATUS_LOZENGE} > span`]: {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
13
|
+
boxShadow: akEditorSelectedBoldBoxShadow
|
|
14
|
+
}
|
|
15
|
+
}) :
|
|
10
16
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
11
17
|
css`
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
&.${akEditorSelectedNodeClassName} .${StatusSharedCssClassName.STATUS_LOZENGE} > span {
|
|
19
|
+
box-shadow: ${akEditorSelectedBoldBoxShadow};
|
|
20
|
+
}
|
|
21
|
+
` : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ?
|
|
16
22
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
17
23
|
css`
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
&.${akEditorSelectedNodeClassName}:not('.search-match-block') .${StatusSharedCssClassName.STATUS_LOZENGE} > span {
|
|
25
|
+
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
26
|
+
}
|
|
27
|
+
` :
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
29
|
+
css`
|
|
30
|
+
&.${akEditorSelectedNodeClassName} .${StatusSharedCssClassName.STATUS_LOZENGE} > span {
|
|
31
|
+
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
22
34
|
const getStatusColors = () => fg('platform-component-visual-refresh') ? css({
|
|
23
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
24
36
|
'[data-prosemirror-node-name="status"] .lozenge-text': {
|
|
@@ -145,7 +157,7 @@ export const statusNodeStyles = () => css`
|
|
|
145
157
|
`;
|
|
146
158
|
|
|
147
159
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
148
|
-
export const statusStyles = css`
|
|
160
|
+
export const statusStyles = () => css`
|
|
149
161
|
.${TableSharedCssClassName.TABLE_CELL_WRAPPER},
|
|
150
162
|
.${TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER},
|
|
151
163
|
[data-layout-section] {
|
|
@@ -158,6 +170,7 @@ export const statusStyles = css`
|
|
|
158
170
|
}
|
|
159
171
|
}
|
|
160
172
|
}
|
|
173
|
+
|
|
161
174
|
.${StatusSharedCssClassName.STATUS_CONTAINER} {
|
|
162
175
|
> span {
|
|
163
176
|
cursor: pointer;
|
|
@@ -32,7 +32,7 @@ import { embedCardStyles } from './styles/embedCardStyles';
|
|
|
32
32
|
import { emojiStyles } from './styles/emoji';
|
|
33
33
|
import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes } from './styles/expandStyles';
|
|
34
34
|
import { extensionStyles } from './styles/extensionStyles';
|
|
35
|
-
import { findReplaceStyles, findReplaceStylesNewMagenta, findReplaceStylesNewYellow } from './styles/findReplaceStyles';
|
|
35
|
+
import { findReplaceStyles, findReplaceStylesNewMagenta, findReplaceStylesNewMagentaNoImportant, findReplaceStylesNewYellow } from './styles/findReplaceStyles';
|
|
36
36
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
37
37
|
import { firstFloatingToolbarButtonStyles } from './styles/floatingToolbarStyles';
|
|
38
38
|
import { fullPageEditorStyles } from './styles/fullPageEditorStyles';
|
|
@@ -44,7 +44,7 @@ import { layoutBaseStyles, layoutBaseStylesAdvanced, layoutBaseStylesFixesUnderN
|
|
|
44
44
|
import { hyperLinkFloatingToolbarStyles, linkLegacyIconStylesFix, linkStyles, linkStylesOld } from './styles/link';
|
|
45
45
|
import { listsStyles, listsStylesSafariFix } from './styles/list';
|
|
46
46
|
import { mediaAlignmentStyles, mediaGroupStyles, mediaStyles } from './styles/mediaStyles';
|
|
47
|
-
import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles, mentionsStylesMixin_platform_editor_centre_mention_padding } from './styles/mentions';
|
|
47
|
+
import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles, mentionsStylesMixin_platform_editor_centre_mention_padding, mentionsSelectionStylesWithSearchMatch } from './styles/mentions';
|
|
48
48
|
import { panelStyles, panelStylesMixin, panelStylesMixin_fg_platform_editor_add_border_for_nested_panel, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles } from './styles/panelStyles';
|
|
49
49
|
import { paragraphStylesOld, paragraphStylesUGCRefreshed } from './styles/paragraphStyles';
|
|
50
50
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderTextStylesMixin_fg_platform_editor_system_fake_text_highlight_colour, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
@@ -54,8 +54,8 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
|
|
|
54
54
|
import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
|
|
55
55
|
import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
|
|
56
56
|
import { shadowStyles } from './styles/shadowStyles';
|
|
57
|
-
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
|
|
58
|
-
import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh } from './styles/statusStyles';
|
|
57
|
+
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartLinksInLivePagesStyles, smartLinksInLivePagesStylesOld } from './styles/smartCardStyles';
|
|
58
|
+
import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
59
59
|
import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
60
60
|
import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
|
|
61
61
|
import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
|
|
@@ -185,9 +185,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
185
185
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
186
186
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
187
187
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
188
|
-
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ?
|
|
188
|
+
fg('platform-visual-refresh-icons') && expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_magenta_match') ? fg('platform_editor_find_and_replace_improvements_1')
|
|
189
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
190
|
-
|
|
190
|
+
? findReplaceStylesNewMagentaNoImportant
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
192
|
+
: findReplaceStylesNewMagenta :
|
|
191
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
192
194
|
findReplaceStylesNewYellow :
|
|
193
195
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -203,15 +205,21 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
203
205
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
204
206
|
decisionIconWithoutVisualRefresh,
|
|
205
207
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
206
|
-
statusStyles, fg('platform-component-visual-refresh') ?
|
|
208
|
+
statusStyles, fg('platform-component-visual-refresh') ? expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1')
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
210
|
+
? statusStylesMixin_fg_platform_component_visual_refresh_with_search_match
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
212
|
+
: statusStylesMixin_fg_platform_component_visual_refresh : expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1')
|
|
207
213
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
208
|
-
|
|
214
|
+
? statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match
|
|
209
215
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
210
|
-
statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
216
|
+
: statusStylesMixin_without_fg_platform_component_visual_refresh,
|
|
211
217
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
212
|
-
annotationStyles,
|
|
218
|
+
annotationStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1')
|
|
213
219
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
214
|
-
|
|
220
|
+
? smartCardStylesWithSearchMatch
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
222
|
+
: smartCardStyles, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
|
|
215
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
216
224
|
editorControlsSmartCardStyles,
|
|
217
225
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -305,9 +313,11 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
305
313
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
306
314
|
firstBlockNodeStyles,
|
|
307
315
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
308
|
-
mentionNodeStyles,
|
|
316
|
+
mentionNodeStyles, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1')
|
|
317
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
318
|
+
? mentionsSelectionStylesWithSearchMatch
|
|
309
319
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
310
|
-
mentionsSelectionStyles, fg('platform_editor_centre_mention_padding') &&
|
|
320
|
+
: mentionsSelectionStyles, fg('platform_editor_centre_mention_padding') &&
|
|
311
321
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
312
322
|
mentionsStylesMixin_platform_editor_centre_mention_padding,
|
|
313
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -442,6 +442,231 @@ export const findReplaceStylesNewMagenta = css({
|
|
|
442
442
|
},
|
|
443
443
|
/** Dark mode */
|
|
444
444
|
|
|
445
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
446
|
+
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
447
|
+
boxShadow: `
|
|
448
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
449
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
450
|
+
`,
|
|
451
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #50253F)",
|
|
452
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
453
|
+
'.ak-editor-expand__title-input': {
|
|
454
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
458
|
+
'.search-match-expand-title.selected-search-match.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
459
|
+
boxShadow: `
|
|
460
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
461
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
462
|
+
`,
|
|
463
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
464
|
+
}
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
468
|
+
export const findReplaceStylesNewMagentaNoImportant = css({
|
|
469
|
+
/** Text match styles */
|
|
470
|
+
|
|
471
|
+
/** Light mode */
|
|
472
|
+
|
|
473
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
474
|
+
'.search-match-text': {
|
|
475
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
476
|
+
boxShadow: `
|
|
477
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
478
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
479
|
+
`,
|
|
480
|
+
// we need to use !important here as we need to override inline selection styles
|
|
481
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
482
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"} !important`,
|
|
483
|
+
color: "var(--ds-text, #172B4D)"
|
|
484
|
+
},
|
|
485
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
486
|
+
'.search-match-text.selected-search-match': {
|
|
487
|
+
boxShadow: `
|
|
488
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
489
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
490
|
+
`,
|
|
491
|
+
// we need to use !important here as we need to override inline selection styles
|
|
492
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
493
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"} !important`
|
|
494
|
+
},
|
|
495
|
+
/** Dark mode */
|
|
496
|
+
|
|
497
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
498
|
+
'.search-match-text.search-match-dark': {
|
|
499
|
+
boxShadow: `
|
|
500
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
501
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
502
|
+
`,
|
|
503
|
+
// we need to use !important here as we need to override inline selection styles
|
|
504
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
505
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"} !important`,
|
|
506
|
+
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
507
|
+
},
|
|
508
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
509
|
+
'.search-match-text.selected-search-match.search-match-dark': {
|
|
510
|
+
boxShadow: `
|
|
511
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
512
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
513
|
+
`,
|
|
514
|
+
// we need to use !important here as we need to override inline selection styles
|
|
515
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
516
|
+
backgroundColor: `${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"} !important`
|
|
517
|
+
},
|
|
518
|
+
/** Block match styles */
|
|
519
|
+
|
|
520
|
+
/** Light mode */
|
|
521
|
+
|
|
522
|
+
/** Without node selection */
|
|
523
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
524
|
+
'.search-match-block': {
|
|
525
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
526
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
527
|
+
boxShadow: `
|
|
528
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
529
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
530
|
+
`
|
|
531
|
+
},
|
|
532
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
533
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
534
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
538
|
+
'.search-match-block.search-match-block-selected': {
|
|
539
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
540
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
541
|
+
boxShadow: `
|
|
542
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
543
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
544
|
+
`
|
|
545
|
+
},
|
|
546
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
547
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
548
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
/** With node selection */
|
|
552
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
553
|
+
'.search-match-block.ak-editor-selected-node': {
|
|
554
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
555
|
+
'.loader-wrapper>div::after': {
|
|
556
|
+
boxShadow: `
|
|
557
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
558
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"},
|
|
559
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
560
|
+
`
|
|
561
|
+
},
|
|
562
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
563
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
564
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
568
|
+
'.search-match-block.search-match-block-selected.ak-editor-selected-node': {
|
|
569
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
570
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
571
|
+
boxShadow: `
|
|
572
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
573
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"},
|
|
574
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
575
|
+
`
|
|
576
|
+
},
|
|
577
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
578
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
579
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"}`
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
/** Dark mode */
|
|
583
|
+
/** Without node selection */
|
|
584
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
585
|
+
'.search-match-block.search-match-dark': {
|
|
586
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
587
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
588
|
+
boxShadow: `
|
|
589
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
590
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}
|
|
591
|
+
`
|
|
592
|
+
},
|
|
593
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
594
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
595
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
599
|
+
'.search-match-block.search-match-block-selected.search-match-dark': {
|
|
600
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
601
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
602
|
+
boxShadow: `
|
|
603
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
604
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}
|
|
605
|
+
`
|
|
606
|
+
},
|
|
607
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
608
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
609
|
+
boxShadow: `0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
/** With node selection */
|
|
613
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
614
|
+
'.search-match-block.search-match-dark.ak-editor-selected-node': {
|
|
615
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
616
|
+
'.loader-wrapper>div::after': {
|
|
617
|
+
boxShadow: `
|
|
618
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
619
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"},
|
|
620
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
621
|
+
`
|
|
622
|
+
},
|
|
623
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
624
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
625
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-pressed, #50253F)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
629
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-selected-node': {
|
|
630
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
631
|
+
'[data-smart-link-container="true"], .loader-wrapper>div::after': {
|
|
632
|
+
boxShadow: `
|
|
633
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"},
|
|
634
|
+
inset 0 0 0 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"},
|
|
635
|
+
0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}
|
|
636
|
+
`
|
|
637
|
+
},
|
|
638
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
639
|
+
'.loader-wrapper>a, .lozenge-wrapper, .editor-mention-primitive, .date-lozenger-container>span': {
|
|
640
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #0C66E4)"}, 0px 0px 0px 4px ${"var(--ds-background-accent-magenta-bolder-hovered, #943D73)"}, 0px 0px 0px 5px ${"var(--ds-background-accent-magenta-bolder, #AE4787)"}`
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
/** Expand title match styles */
|
|
644
|
+
|
|
645
|
+
/** Light mode */
|
|
646
|
+
|
|
647
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
648
|
+
'.search-match-expand-title > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
649
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
650
|
+
boxShadow: `
|
|
651
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
652
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtler, #FDD0EC)"}
|
|
653
|
+
`,
|
|
654
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)",
|
|
655
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
656
|
+
'.ak-editor-expand__title-input': {
|
|
657
|
+
color: "var(--ds-text, #172B4D)"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
661
|
+
'.search-match-expand-title.selected-search-match > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
662
|
+
boxShadow: `
|
|
663
|
+
inset 0 0 0 1px ${"var(--ds-background-accent-magenta-subtler-pressed, #E774BB)"},
|
|
664
|
+
inset 0 0 0 5px ${"var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"}
|
|
665
|
+
`,
|
|
666
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #F797D2)"
|
|
667
|
+
},
|
|
668
|
+
/** Dark mode */
|
|
669
|
+
|
|
445
670
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
446
671
|
'.search-match-expand-title.search-match-dark > .ak-editor-expand__title-container > .ak-editor-expand__input-container': {
|
|
447
672
|
boxShadow: `
|