2018-08-31 10:26:37 +02:00
|
|
|
ion-app.app-root core-rich-text-editor {
|
2018-01-18 16:38:11 +01:00
|
|
|
height: 40vh;
|
|
|
|
overflow: hidden;
|
2018-08-17 17:28:24 +02:00
|
|
|
min-height: 200px; /* Just in case vh is not supported */
|
|
|
|
min-height: 40vh;
|
2018-04-09 13:14:55 +02:00
|
|
|
width: 100%;
|
2018-08-17 17:28:24 +02:00
|
|
|
position: relative;
|
2018-08-29 09:14:42 +02:00
|
|
|
display: block;
|
2018-01-18 16:38:11 +01:00
|
|
|
|
|
|
|
> div {
|
2018-08-17 17:28:24 +02:00
|
|
|
position: absolute;
|
|
|
|
@include position(0, 0, 0, 0);
|
2018-01-18 16:38:11 +01:00
|
|
|
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 {
|
2018-08-29 16:42:12 +02:00
|
|
|
@include padding(null, null, null, 2px);
|
2018-01-18 16:38:11 +01:00
|
|
|
max-width: 95%;
|
|
|
|
}
|
|
|
|
&:empty:before {
|
|
|
|
content: attr(data-placeholder-text);
|
|
|
|
display: block;
|
|
|
|
color: $gray-light;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-05-30 11:50:59 +02:00
|
|
|
|
2018-06-12 10:08:48 +02:00
|
|
|
// Make empty elements selectable (to move the cursor).
|
|
|
|
*:empty:after {
|
|
|
|
content: '\200B';
|
|
|
|
}
|
2018-01-18 16:38:11 +01:00
|
|
|
}
|
|
|
|
|
2018-08-17 17:28:24 +02:00
|
|
|
.core-textarea {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0;
|
|
|
|
height: 100% !important;
|
|
|
|
width: 100% !important;
|
|
|
|
resize: none;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
position: absolute;
|
|
|
|
@include position(0, 0, 0, 0);
|
|
|
|
}
|
2018-01-18 16:38:11 +01:00
|
|
|
}
|
|
|
|
|
2018-05-29 16:56:47 +02:00
|
|
|
div.core-rte-toolbar {
|
|
|
|
background: $gray-darker;
|
2018-08-29 16:42:12 +02:00
|
|
|
@include margin(0px, 1px, 15px, 1px);
|
2018-01-18 16:38:11 +01:00
|
|
|
text-align: center;
|
|
|
|
flex-grow: 0;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 1;
|
2018-05-29 16:56:47 +02:00
|
|
|
|
|
|
|
.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;
|
2018-08-29 16:42:12 +02:00
|
|
|
@include padding(null, 3px, null, 3px);
|
|
|
|
@include border-end(qpx, solid, $gray-dark);
|
2018-05-29 16:56:47 +02:00
|
|
|
border-bottom: 1px solid $gray-dark;
|
2018-08-29 16:42:12 +02:00
|
|
|
@include position(-6px, 0, null, null);
|
2018-05-29 16:56:47 +02:00
|
|
|
flex-grow: 1;
|
2018-06-18 16:24:27 +02:00
|
|
|
margin: 0;
|
2018-05-29 16:56:47 +02:00
|
|
|
}
|
2018-01-18 16:38:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-17 17:28:24 +02:00
|
|
|
}
|
|
|
|
|
2018-08-31 10:26:37 +02:00
|
|
|
body.keyboard-is-open ion-app.app-root core-rich-text-editor {
|
2018-08-17 17:28:24 +02:00
|
|
|
min-height: 200px;
|
2018-01-18 16:38:11 +01:00
|
|
|
}
|