UNPKG

rich-react-editor

Version:

react editor with support of image and multi languages

378 lines (358 loc) 10.3 kB
.note-editor.note-frame { position: inherit; width: 100%; border: 0; } .note-toolbar-wrapper { height: 0 !important; } .note-resizebar { display: none; } .btn-group { border: solid 0.8px #eeeeee; border-radius: 4px; } .btn-group .btn-group, .btn-group .btn { border: none; } .btn-group .btn:focus, .btn-group .btn:hover { box-shadow: none; } .panel-heading { background-color: #ffffff !important; } .note-editor .note-editable p { margin-bottom: 0; } .note-editable ul { list-style-type: circle !important; padding: 5px 70px!important; } .note-statusbar { display: none; } .dropdown-toggle::after { content: ""; display: none; } .React-editor-container .modal-header { display: none !important; } .note-image-popover, .note-link-popover, .note-table-popover { display: none !important; } .note-popover .popover-content .dropdown-menu, .panel-heading.note-toolbar .dropdown-menu { max-height: 130px; overflow-y: scroll; width: max-content; } .note-popover .popover-content .dropdown-menu, .panel-heading.note-toolbar .dropdown-menu li a { text-decoration: none; color: #404040; } .panel-heading.note-toolbar { z-index: 1; } .note-btn { margin-bottom: 0; padding: .50rem !important; background: #f3f3f369; } /* modal */ .React-editor-container .modal-open { overflow: hidden; } .React-editor-container .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .React-editor-container .modal { position: fixed; top: 0; left: 0; z-index: 1050; display: none; width: 100%; height: 100%; overflow: hidden; outline: 0; } .React-editor-container .modal-dialog { position: relative; width: auto; margin: 0.5rem; pointer-events: none; } .React-editor-container .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -50px); transform: translate(0, -50px); } .React-editor-container .modal.show .modal-dialog { -webkit-transform: none; transform: none; } @media (prefers-reduced-motion: reduce) { .React-editor-container .modal.fade .modal-dialog { transition: none; } } .React-editor-container .modal-dialog-scrollable { display: -ms-flexbox; display: flex; max-height: calc(100% - 1rem); } .React-editor-container .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 1rem); overflow: hidden; } .React-editor-container .modal-dialog-scrollable .modal-header, .React-editor-container .modal-dialog-scrollable .modal-footer { -ms-flex-negative: 0; flex-shrink: 0; } .React-editor-container .modal-dialog-scrollable .modal-body { overflow-y: auto; } .React-editor-container .modal-dialog-centered { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; min-height: calc(100% - 1rem); } .React-editor-container .modal-dialog-centered::before { display: block; height: calc(100vh - 1rem); content: ""; } .React-editor-container .modal-dialog-centered.modal-dialog-scrollable { -ms-flex-direction: column; flex-direction: column; -ms-flex-pack: center; justify-content: center; height: 100%; } .React-editor-container .modal-dialog-centered.modal-dialog-scrollable .modal-content { max-height: none; } .React-editor-container .modal-dialog-centered.modal-dialog-scrollable::before { content: none; } .React-editor-container .modal-content { position: relative; display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; width: 100%; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 0.3rem; outline: 0; } .React-editor-container .modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1040; width: 100vw; height: 100vh; background-color: #000; } .React-editor-container .modal-backdrop.fade { opacity: 0; } .React-editor-container .modal-backdrop.show { opacity: 0.5; } .React-editor-container .modal-header { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; -ms-flex-pack: justify; justify-content: space-between; padding: 1rem 1rem; border-bottom: 1px solid #dee2e6; border-top-left-radius: 0.3rem; border-top-right-radius: 0.3rem; } .React-editor-container .modal-header .close { padding: 1rem 1rem; margin: -1rem -1rem -1rem auto; } .React-editor-container .modal-title { margin-bottom: 0; line-height: 1.5; } .React-editor-container .modal-body { position: relative; -ms-flex: 1 1 auto; flex: 1 1 auto; padding: 1rem; } .React-editor-container .modal-footer { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: end; justify-content: flex-end; padding: 1rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: 0.3rem; border-bottom-left-radius: 0.3rem; } .React-editor-container .modal-footer > :not(:first-child) { margin-left: 0.25rem; } .React-editor-container .modal-footer > :not(:last-child) { margin-right: 0.25rem; } .React-editor-container .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 576px) { .React-editor-container .modal-dialog { max-width: 500px; margin: 1.75rem auto; } .React-editor-container .modal-dialog-scrollable { max-height: calc(100% - 3.5rem); } .React-editor-container .modal-dialog-scrollable .modal-content { max-height: calc(100vh - 3.5rem); } .React-editor-container .modal-dialog-centered { min-height: calc(100% - 3.5rem); } .React-editor-container .modal-dialog-centered::before { height: calc(100vh - 3.5rem); } .React-editor-container .modal-sm { max-width: 300px; } } @media (min-width: 992px) { .React-editor-container .modal-lg, .React-editor-container .modal-xl { max-width: 800px; } } @media (min-width: 1200px) { .React-editor-container .modal-xl { max-width: 1140px; } } /* tooltip */ .React-editor-container .tooltip { position: absolute; z-index: 1070; display: block; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-style: normal; font-weight: 400; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; letter-spacing: normal; word-break: normal; word-spacing: normal; white-space: normal; line-break: auto; font-size: 0.875rem; word-wrap: break-word; opacity: 0; } .React-editor-container .tooltip.show { opacity: 0.9; } .React-editor-container .tooltip .arrow { position: absolute; display: block; width: 0.8rem; height: 0.4rem; } .React-editor-container .tooltip .arrow::before { position: absolute; content: ""; border-color: transparent; border-style: solid; } .React-editor-container .bs-tooltip-top, .React-editor-container .bs-tooltip-auto[x-placement^="top"] { padding: 0.4rem 0; } .React-editor-container .bs-tooltip-top .arrow, .React-editor-container .bs-tooltip-auto[x-placement^="top"] .arrow { bottom: 0; } .React-editor-container .bs-tooltip-top .arrow::before, .React-editor-container .bs-tooltip-auto[x-placement^="top"] .arrow::before { top: 0; border-width: 0.4rem 0.4rem 0; border-top-color: #000; } .React-editor-container .bs-tooltip-right, .React-editor-container .bs-tooltip-auto[x-placement^="right"] { padding: 0 0.4rem; } .React-editor-container .bs-tooltip-right .arrow, .React-editor-container .bs-tooltip-auto[x-placement^="right"] .arrow { left: 0; width: 0.4rem; height: 0.8rem; } .React-editor-container .bs-tooltip-right .arrow::before, .React-editor-container .bs-tooltip-auto[x-placement^="right"] .arrow::before { right: 0; border-width: 0.4rem 0.4rem 0.4rem 0; border-right-color: #000; } .React-editor-container .bs-tooltip-bottom, .React-editor-container .bs-tooltip-auto[x-placement^="bottom"] { padding: 0.4rem 0; } .React-editor-container .bs-tooltip-bottom .arrow, .React-editor-container .bs-tooltip-auto[x-placement^="bottom"] .arrow { top: 0; } .React-editor-container .bs-tooltip-bottom .arrow::before, .React-editor-container .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { bottom: 0; border-width: 0 0.4rem 0.4rem; border-bottom-color: #000; } .React-editor-container .bs-tooltip-left, .React-editor-container .bs-tooltip-auto[x-placement^="left"] { padding: 0 0.4rem; } .React-editor-container .bs-tooltip-left .arrow, .React-editor-container .bs-tooltip-auto[x-placement^="left"] .arrow { right: 0; width: 0.4rem; height: 0.8rem; } .React-editor-container .bs-tooltip-left .arrow::before, .React-editor-container .bs-tooltip-auto[x-placement^="left"] .arrow::before { left: 0; border-width: 0.4rem 0 0.4rem 0.4rem; border-left-color: #000; } .React-editor-container .tooltip-inner { max-width: 200px; padding: 0.25rem 0.5rem; color: #fff; text-align: center; background-color: #000; border-radius: 0.25rem; } .justify-to-center { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; text-align: center; align-content: center; }