@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
108 lines (102 loc) • 4.47 kB
JavaScript
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
import { css } from '@emotion/react';
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, -- Ignored via go/DSP-18766
export var buttonGroupStyleBeforeVisualRefresh = css({
display: 'inline-flex',
alignItems: 'center',
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
'& > div': {
display: 'flex'
},
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'button:not(#local-media-upload-button)': {
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
}
});
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
export var buttonGroupStyle = css({
display: 'inline-flex',
alignItems: 'center',
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
'& > div': {
display: 'flex'
},
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'button:not(#local-media-upload-button)': {
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
},
gap: "var(--ds-space-050, 4px)",
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
'div[role=group]': {
gap: "var(--ds-space-050, 4px)"
}
});
// If you make change here, change in above file as well.
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
export var separatorStyles = css({
background: "var(--ds-border, #091E4224)",
width: '1px',
height: '24px',
display: 'inline-block',
margin: "0 ".concat("var(--ds-space-100, 8px)"),
userSelect: 'none'
});
// If you make change here, change in above file as well.
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
export var wrapperStyle = css({
display: 'flex',
alignItems: 'center',
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
'> div, > span': {
display: 'flex'
},
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
'> div > div': {
display: 'flex'
},
marginLeft: 0,
minWidth: 'auto',
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
button: {
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
}
});
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
export var triggerWrapperStyles = css({
display: 'flex',
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
button: {
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
}
});
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
export var triggerWrapperStylesWithPadding = css({
display: 'flex',
paddingRight: "var(--ds-space-025, 2px)",
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
button: {
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
}
});
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
export var disableBlueBorderStyles = css({
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
'&:not([disabled])::after': {
border: 'none' // remove blue border when an item has been selected
}
});