|
|
@@ -87,26 +87,22 @@ const toolbarTheme = EditorView.theme({
|
|
|
padding: '0 4px',
|
|
|
margin: '4px 0',
|
|
|
lineHeight: '1',
|
|
|
- '&:not(:first-of-type)': {
|
|
|
- borderLeft: '1px solid rgba(125, 125, 125, 0.3)',
|
|
|
- '&.ol-cm-toolbar-end': {
|
|
|
- borderLeft: 'none',
|
|
|
- },
|
|
|
- '&.ol-cm-toolbar-stretch': {
|
|
|
- flex: 1,
|
|
|
- },
|
|
|
- '&.overflow-hidden': {
|
|
|
- borderLeft: 'none',
|
|
|
+ borderLeft: '1px solid rgba(125, 125, 125, 0.3)',
|
|
|
+ '&.ol-cm-toolbar-end': {
|
|
|
+ borderLeft: 'none',
|
|
|
+ },
|
|
|
+ '&.ol-cm-toolbar-stretch': {
|
|
|
+ flex: 1,
|
|
|
+ '.editor-toggle-switch + &': {
|
|
|
+ borderLeft: 'none', // avoid a left border when no toolbar buttons are shown
|
|
|
},
|
|
|
},
|
|
|
'&.overflow-hidden': {
|
|
|
+ borderLeft: 'none',
|
|
|
width: 0,
|
|
|
padding: 0,
|
|
|
},
|
|
|
},
|
|
|
- '.formatting-buttons-wrapper': {
|
|
|
- flex: 1,
|
|
|
- },
|
|
|
'.ol-cm-toolbar-button': {
|
|
|
display: 'inline-flex',
|
|
|
alignItems: 'center',
|