.d-editor-container { display: flex; flex-grow: 1; max-width: 100%; } .d-editor-overlay { position: absolute; background-color: black; opacity: 0.8; z-index: z("modal", "overlay"); } .d-editor-modals { position: absolute; z-index: z("modal", "content"); } .d-editor { display: flex; flex-grow: 1; min-height: 0; } .d-editor .d-editor-modal { min-width: 400px; @media screen and (max-width: 424px) { min-width: 300px; } position: absolute; background-color: $secondary; border: 1px solid $primary-low; padding: 1em; top: 25px; input { width: 95%; } h3 { margin-bottom: 0.5em; } } .d-editor-textarea-wrapper, .d-editor-preview-wrapper { flex: 1; } .d-editor-textarea-wrapper { display: flex; flex-direction: column; background-color: $secondary; position: relative; border: 1px solid $primary-medium; textarea { background: transparent; } &.disabled { cursor: not-allowed; .d-editor-button-bar { visibility: hidden; } } } .d-editor-preview-wrapper { max-width: 49%; margin-left: 1%; display: flex; flex-direction: column; } .d-editor-button-bar { display: flex; align-items: center; min-height: 30px; padding-left: 3px; border-bottom: 1px solid $primary-low; .btn, .btn-default { background-color: transparent; padding: 4px 8px; display: inline-block; .d-icon { color: $primary-medium; } @media all and (max-width: 800px) { padding: 5px; } } .btn:not(.no-text) { font-size: $font-up-1; } .btn.bold { font-weight: bolder; } .btn.italic { font-style: italic; } } .d-editor-spacer { height: 16px; margin: 0 5px; display: inline-block; border-left: 1px solid $primary-low-mid; } .d-editor-preview-wrapper { overflow: auto; cursor: default; -webkit-overflow-scrolling: touch; } .d-editor-input, .d-editor-preview { box-sizing: border-box; flex: 1 1 100%; width: 100%; margin: 0; min-height: auto; word-wrap: break-word; -webkit-appearance: none; border-radius: 0; &:focus { box-shadow: none; border: 0; outline: 0; } } .d-editor-input { border: 0; padding: 10px; height: 100%; overflow-x: hidden; resize: none; } .d-editor-preview { height: auto; } .d-editor-plugin { display: flex; flex: 1 1; overflow: auto; } .composing-whisper .d-editor-preview { font-style: italic; color: $primary-medium !important; } .d-editor-preview > *:first-child { margin-top: 0; } .hide-preview .d-editor-preview-wrapper { display: none; flex: 0; } .user-preferences .bio-composer, .group-form-bio, .edit-category-tab-topic-template { textarea { width: 100%; height: 100%; min-height: 10em; } .d-editor-container { display: block; } .d-editor-textarea-wrapper { border: 1px solid $primary-low; } .d-editor-button-bar .btn { padding: 6px 8px; } .d-editor-preview-wrapper { max-width: 100%; margin: 10px 0 0 0; } .d-editor-preview { background-color: $primary-very-low; padding: 5px; &:empty { padding: 0; } } } .user-preferences .bio-composer, .group-form-bio { padding: 10px; border: 1px solid $primary-low; } .d-editor-preview img { padding-bottom: 1.4em; &.emoji, &.avatar, &.site-icon { padding-bottom: 0; } } .d-editor-preview .image-wrapper { position: relative; display: inline-block; padding-bottom: 1.4em; img { padding-bottom: 0; } &:hover { .button-wrapper { opacity: 0.9; } } .button-wrapper { opacity: 0; position: absolute; transition: all 0.25s; display: flex; align-items: center; bottom: 0; left: 0; .separator { color: $primary-low-mid; } .scale-btn { color: $tertiary; padding: 0 0.4em; &:first-of-type { padding-left: 0; } &.active { font-weight: bold; color: $primary; } &:not(.active):hover { text-decoration: underline; cursor: pointer; } } } } .mobile-view .d-editor-preview .image-wrapper .button-wrapper { opacity: 1; }