UNPKG

arch-editor

Version:

Rich text editor with a high degree of customization.

118 lines (116 loc) 2.92 kB
/*! * ArchEditor v1.0.1-beta.19 * Author: longlongago2 * Build Time: 2021/9/13 9:08:23 */ .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; }