UNPKG

arch-editor

Version:

Rich text editor with a high degree of customization.

192 lines (189 loc) 4.91 kB
/*! * ArchEditor v1.0.1-beta.19 * Author: longlongago2 * Build Time: 2021/9/13 9:08:23 */ .ArchEditor-table-bar-hover { border: 1px solid #1890ff !important; background-color: #91d5ff; } .ArchEditor-atomic-table { display: inline-block; } .ArchEditor-atomic-table table { border: 0; border-spacing: 0; border-collapse: separate; outline: none; } .ArchEditor-atomic-table table.ArchEditor-readonly { transition: all 0.3s ease; border-right: 1px solid #434343; border-top: 1px solid #434343; } .ArchEditor-atomic-table table.ArchEditor-readonly:hover { box-shadow: 0 0 15px 5px rgba(36, 26, 26, 0.05); } .ArchEditor-atomic-table table tbody tr { display: table-row; } .ArchEditor-atomic-table table tbody td { display: table-cell; border-left: 1px solid #434343; border-bottom: 1px solid #434343; box-sizing: border-box; } .ArchEditor-atomic-table table tbody td .DraftEditor-root { min-width: 90px; min-height: 40px; } .ArchEditor-atomic-table table tbody .ArchEditor-column-bar { height: 15px; background-color: #f0f0f0; } .ArchEditor-atomic-table table tbody .ArchEditor-column-bar td { padding: 0; border-top-width: 1px; border-top-style: solid; border-color: #bfbfbf; border-bottom-color: #434343; transition: all 0.3s ease; } .ArchEditor-atomic-table table tbody .ArchEditor-column-bar td.ArchEditor-last { border-right: 0; border-top: 0; border-bottom-color: #bfbfbf; background-color: #fff; pointer-events: none; } .ArchEditor-atomic-table table tbody .ArchEditor-column-bar td:hover { border: 1px solid #1890ff !important; background-color: #91d5ff; } .ArchEditor-atomic-table table tbody .ArchEditor-row-bar { width: 15px; padding: 0; border-color: #bfbfbf; border-right: 1px solid #bfbfbf; border-left: 1px solid #434343; background-color: #f0f0f0; transition: all 0.3s ease; } .ArchEditor-atomic-table table tbody .ArchEditor-row-bar:hover { border: 1px solid #1890ff !important; background-color: #91d5ff; } .ArchEditor-atomic-table .ArchEditor-edit-toolbar { padding-right: 14px; } .ArchEditor-container { display: inline-block; width: 100%; overflow: auto; box-sizing: border-box; caret-color: #000; } .ArchEditor-container ::selection { color: #fff; background-color: #5d6791; } .ArchEditor-container .DraftEditor-root { height: inherit; min-height: inherit; max-height: inherit; font-size: 14px; } .ArchEditor-container .DraftEditor-root .DraftEditor-editorContainer { height: inherit; min-height: inherit; max-height: inherit; } .ArchEditor-container .DraftEditor-root .DraftEditor-editorContainer .public-DraftEditor-content { height: inherit; min-height: inherit; max-height: inherit; } .ArchEditor-popover-button-group { display: inline-flex; flex-direction: row; align-items: center; margin: 0 -10px; } .ArchEditor-popover-button-group.ArchEditor-large .ArchEditor-popover-button { font-size: 18px; } .ArchEditor-popover-button-group .ArchEditor-popover-button { display: inline-block; width: 40px; border: 0; color: #fff; background-color: transparent; cursor: pointer; font-size: 15px; line-height: 1; } .ArchEditor-popover-button-group .ArchEditor-popover-button:hover { color: #ccc; } .ArchEditor-popover-button-group .ArchEditor-popover-divider { display: inline-block; margin: 0 5px; border: 0; border-left: 1px solid #ccc; height: 15px; margin: 0 5px 0 4px; } .ArchEditor-edit-toolbar { display: block; text-align: right; padding-top: 5px; box-sizing: border-box; } .ArchEditor-edit-toolbar > button { border: 1px solid #5d6791; line-height: 1; font-size: 14px; padding: 5px 10px; color: #5d6791; margin-left: 5px; background-color: #fff; transition: all 0.3s ease; } .ArchEditor-edit-toolbar > button:hover { background-color: #5d6791; color: #fff; } .ArchEditor-edit-toolbar > button.ArchEditor-danger { border-color: #ff4d4f; color: #ff4d4f; } .ArchEditor-edit-toolbar > button.ArchEditor-danger:hover { background-color: #ff4d4f; color: #fff; } .ArchEditor-fade-enter { opacity: 0; -webkit-transform: scale(0); transform: scale(0); } .ArchEditor-fade-enter-active { opacity: 1; -webkit-transform: scale(1); transform: scale(1); transition: opacity 250ms ease, -webkit-transform 250ms ease; transition: opacity 250ms ease, transform 250ms ease; transition: opacity 250ms ease, transform 250ms ease, -webkit-transform 250ms ease; } .ArchEditor-fade-exit { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } .ArchEditor-fade-exit-active { opacity: 0; -webkit-transform: scale(0); transform: scale(0); transition: opacity 250ms ease, -webkit-transform 250ms ease; transition: opacity 250ms ease, transform 250ms ease; transition: opacity 250ms ease, transform 250ms ease, -webkit-transform 250ms ease; }