diff --git a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js index 483ff4de..82eacedf 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js +++ b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js @@ -215,7 +215,7 @@ const StatusDropdownItem = styled(DropdownItem)` } `; -class EditorToolbar extends React.Component { +export class EditorToolbar extends React.Component { static propTypes = { isPersisting: PropTypes.bool, isPublishing: PropTypes.bool, @@ -502,6 +502,7 @@ class EditorToolbar extends React.Component { showDelete, hasChanged, hasUnpublishedChanges, + useOpenAuthoring, isPersisting, isDeleting, isNewEntry, @@ -522,7 +523,7 @@ class EditorToolbar extends React.Component { hasChanged && onPersist()}> {isPersisting ? t('editor.editorToolbar.saving') : t('editor.editorToolbar.save')} , - !showDelete && !hasUnpublishedChanges && !isModification ? null : ( + (!showDelete || useOpenAuthoring) && !hasUnpublishedChanges && !isModification ? null : ( ({ + // eslint-disable-next-line react/display-name + Icon: props => , + // eslint-disable-next-line react/display-name + Dropdown: props => , + // eslint-disable-next-line react/display-name + DropdownItem: props => , + // eslint-disable-next-line react/display-name + StyledDropdownButton: props => , + colorsRaw: {}, + colors: {}, + components: {}, + buttons: {}, + zIndex: {}, +})); +jest.mock('../../UI', () => ({ + // eslint-disable-next-line react/display-name + SettingsDropdown: props => , +})); +jest.mock('react-router-dom', () => { + return { + // eslint-disable-next-line react/display-name + Link: props => , + }; +}); + +describe('EditorToolbar', () => { + const props = { + isPersisting: false, + isPublishing: false, + isUpdatingStatus: false, + isDeleting: false, + onPersist: jest.fn(), + onPersistAndNew: jest.fn(), + onPersistAndDuplicate: jest.fn(), + showDelete: true, + onDelete: jest.fn(), + onDeleteUnpublishedChanges: jest.fn(), + onChangeStatus: jest.fn(), + onPublish: jest.fn(), + unPublish: jest.fn(), + onDuplicate: jest.fn(), + onPublishAndNew: jest.fn(), + onPublishAndDuplicate: jest.fn(), + hasChanged: false, + collection: fromJS({ name: 'posts' }), + hasWorkflow: false, + useOpenAuthoring: false, + hasUnpublishedChanges: false, + isNewEntry: false, + isModification: false, + onLogoutClick: jest.fn(), + loadDeployPreview: jest.fn(), + t: jest.fn(key => key), + editorBackLink: '', + }; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('should render with default props', () => { + const { asFragment } = render(); + expect(asFragment()).toMatchSnapshot(); + }); + + [false, true].forEach(useOpenAuthoring => { + it(`should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=true,useOpenAuthoring=${useOpenAuthoring}`, () => { + const { asFragment } = render( + , + ); + expect(asFragment()).toMatchSnapshot(); + }); + + it(`should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=false,useOpenAuthoring=${useOpenAuthoring}`, () => { + const { asFragment } = render( + , + ); + expect(asFragment()).toMatchSnapshot(); + }); + + it(`should render with workflow controls hasUnpublishedChanges=false,isNewEntry=false,isModification=false,useOpenAuthoring=${useOpenAuthoring}`, () => { + const { asFragment } = render( + , + ); + expect(asFragment()).toMatchSnapshot(); + }); + }); +}); diff --git a/packages/netlify-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap b/packages/netlify-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap new file mode 100644 index 00000000..486f765f --- /dev/null +++ b/packages/netlify-cms-core/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap @@ -0,0 +1,1364 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`EditorToolbar should render with default props 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-10 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-10 { + padding: 0 10px; + } +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=false,isNewEntry=false,isModification=false,useOpenAuthoring=false 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-8 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-8 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=false,isNewEntry=false,isModification=false,useOpenAuthoring=true 1`] = ` + + .emotion-16 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-12 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ +
+
+
+
+ +
+
+ +`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=false,useOpenAuthoring=false 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-8 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-8 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=false,useOpenAuthoring=true 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-8 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-8 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=true,useOpenAuthoring=false 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-8 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-8 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +`; + +exports[`EditorToolbar should render with workflow controls hasUnpublishedChanges=true,isNewEntry=false,isModification=true,useOpenAuthoring=true 1`] = ` + + .emotion-18 { + box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1),0 2px 54px rgba(0,0,0,0.1); + position: fixed; + top: 0; + left: 0; + width: 100%; + min-width: 800px; + background-color: #fff; + height: 66px; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; +} + +.emotion-0 { + font-size: 21px; + font-weight: 600; + margin-right: 16px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-2 { + font-size: 14px; +} + +.emotion-4 { + margin-top: 6px; +} + +.emotion-4::after { + height: 12px; + width: 15.5px; + margin-left: 5px; + position: relative; + top: 1px; + content: url("data:image/svg+xml; utf8, "); +} + +.emotion-14 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + -webkit-flex: 10; + -ms-flex: 10; + flex: 10; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + padding: 0 10px; +} + +.emotion-10 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} + +.emotion-8 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-8 { + padding: 0 10px; + } +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; +} + +.emotion-16 { + height: 100%; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + border: 0 solid; + border-left-width: 1px; + padding: 0 7px; +} + +.emotion-6 { + margin: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + display: block; +} + +@media (max-width:1200px) { + .emotion-6 { + padding: 0 10px; + } +} + +
+ +
+ ← +
+
+
+ editor.editorToolbar.backCollection +
+
+ editor.editorToolbar.changesSaved +
+
+
+
+
+ + +
+
+
+
+ +
+
+ +`;