core-rich-text-editor { height: 40vh; overflow: hidden; min-height: 30vh; width: 100%; > div { height: 100%; width: 100%; display: flex; flex-direction: column; } .core-rte-editor, .core-textarea { padding: 2px; margin: 2px; width: 100%; resize: none; background-color: $white; flex-grow: 1; * { overflow: hidden; } } .core-rte-editor { -webkit-user-select: auto !important; word-wrap: break-word; overflow-x: hidden; overflow-y: auto; cursor: text; img { padding-left: 2px; max-width: 95%; } &:empty:before { content: attr(data-placeholder-text); display: block; color: $gray-light; font-weight: bold; } // Make empty elements selectable (to move the cursor). *:empty:after { content: '\200B'; } ul { list-style-type: disc; } ol { list-style-type: decimal; } ul, ol { -webkit-padding-start: 15px; list-style-position: inside; ul { list-style-type: circle; } ol { list-style-type: lower-latin; } ul, ol { list-style-position: inside; margin-left: 15px; } } } .core-textarea textarea { margin: 0 !important; padding: 0; height: 100% !important; width: 100% !important; resize: none; overflow-x: hidden; overflow-y: auto; } div.core-rte-toolbar { background: $gray-darker; margin: 0px 1px 15px 1px; text-align: center; flex-grow: 0; width: 100%; z-index: 1; .core-rte-buttons { display: flex; align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: space-evenly; button { background: $gray-darker; color: $white; font-size: 1.1em; height: 35px; min-width: 30px; padding-left: 3px; padding-right: 3px; border-right: 1px solid $gray-dark; border-bottom: 1px solid $gray-dark; flex-grow: 1; } } } }