83 lines
1.9 KiB
SCSS
Raw Normal View History

core-rich-text-editor {
height: 40vh;
overflow: hidden;
min-height: 30vh;
2018-04-09 13:14:55 +02:00
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;
}
}
.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;
}
}
}
}