2015-09-29 02:01:16 +08:00
|
|
|
.d-editor-container {
|
2017-11-08 17:39:26 +08:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
2017-11-28 04:23:18 +08:00
|
|
|
max-width: 100%;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-overlay {
|
|
|
|
position: absolute;
|
|
|
|
background-color: black;
|
|
|
|
opacity: 0.8;
|
2015-11-07 04:45:04 +08:00
|
|
|
z-index: 1000;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-modals {
|
|
|
|
position: absolute;
|
2015-11-07 04:45:04 +08:00
|
|
|
z-index: 1001;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
2015-09-29 02:01:16 +08:00
|
|
|
.d-editor .d-editor-modal {
|
|
|
|
min-width: 400px;
|
2017-11-28 04:23:18 +08:00
|
|
|
@media screen and (max-width: 424px) {
|
|
|
|
min-width: 300px;
|
|
|
|
}
|
2015-09-29 02:01:16 +08:00
|
|
|
position: absolute;
|
|
|
|
background-color: $secondary;
|
2017-06-12 10:20:14 +08:00
|
|
|
border: 1px solid $primary-low;
|
2015-09-29 02:01:16 +08:00
|
|
|
padding: 1em;
|
2016-04-09 04:13:29 +08:00
|
|
|
top: 25px;
|
2015-09-29 02:01:16 +08:00
|
|
|
|
|
|
|
input {
|
2017-11-28 04:23:18 +08:00
|
|
|
width: 95%;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor-textarea-wrapper,
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
background-color: $secondary;
|
|
|
|
position: relative;
|
2017-11-28 04:23:18 +08:00
|
|
|
border: 1px solid $primary-medium;
|
|
|
|
|
|
|
|
textarea {
|
2017-11-29 10:57:27 +08:00
|
|
|
background: transparent;
|
2017-11-28 04:23:18 +08:00
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-preview-wrapper {
|
2017-11-28 04:23:18 +08:00
|
|
|
max-width: 49%;
|
|
|
|
margin-left: 1%;
|
2017-11-08 17:39:26 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2015-09-29 02:01:16 +08:00
|
|
|
.d-editor-button-bar {
|
2017-11-08 17:39:26 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2017-11-28 04:23:18 +08:00
|
|
|
border-bottom: none;
|
2017-11-08 17:39:26 +08:00
|
|
|
min-height: 30px;
|
2017-11-28 04:23:18 +08:00
|
|
|
padding-left: 3px;
|
2017-11-29 10:57:27 +08:00
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
|
2015-09-29 02:01:16 +08:00
|
|
|
button {
|
|
|
|
background-color: transparent;
|
2017-11-28 04:23:18 +08:00
|
|
|
color: $primary-high;
|
2016-08-13 07:43:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn:not(.no-text) {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.bold {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-spacer {
|
|
|
|
width: 1px;
|
|
|
|
height: 20px;
|
2017-11-08 17:39:26 +08:00
|
|
|
margin: 0 5px;
|
2017-06-12 10:20:14 +08:00
|
|
|
background-color: $primary-low;
|
2015-09-29 02:01:16 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2017-12-07 00:28:12 +08:00
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
overflow: auto;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor-input,
|
|
|
|
.d-editor-preview {
|
|
|
|
box-sizing: border-box;
|
2017-12-02 02:12:25 +08:00
|
|
|
flex: 1 1 100%;
|
|
|
|
width: 100%;
|
2017-11-08 17:39:26 +08:00
|
|
|
margin: 0;
|
|
|
|
min-height: auto;
|
|
|
|
word-wrap: break-word;
|
2017-11-28 04:23:18 +08:00
|
|
|
-webkit-appearance: none;
|
|
|
|
border-radius: 0;
|
2017-11-08 17:39:26 +08:00
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor-input {
|
|
|
|
border: 0;
|
2017-11-28 04:23:18 +08:00
|
|
|
padding: 10px;
|
2017-12-07 00:28:12 +08:00
|
|
|
height: 100%;
|
2017-11-08 17:39:26 +08:00
|
|
|
overflow-x: hidden;
|
2017-12-07 00:28:12 +08:00
|
|
|
resize: none;
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
2015-09-29 02:01:16 +08:00
|
|
|
.d-editor-preview {
|
2017-12-07 00:28:12 +08:00
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-plugin {
|
|
|
|
display: flex;
|
2017-12-07 05:11:25 +08:00
|
|
|
flex: 1 1;
|
2015-09-29 02:01:16 +08:00
|
|
|
overflow: auto;
|
2016-10-18 04:53:07 +08:00
|
|
|
}
|
2017-11-08 17:39:26 +08:00
|
|
|
|
|
|
|
.composing-whisper .d-editor-preview {
|
|
|
|
font-style: italic;
|
|
|
|
color: $primary-medium !important;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-preview > *:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2017-11-08 17:39:26 +08:00
|
|
|
|
|
|
|
.hide-preview .d-editor-preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
flex: 0;
|
|
|
|
}
|
2017-11-11 00:52:08 +08:00
|
|
|
|
|
|
|
.user-preferences .bio-composer,
|
|
|
|
.edit-category-tab-topic-template {
|
|
|
|
textarea {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.d-editor-container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
}
|
2017-12-12 04:40:04 +08:00
|
|
|
.d-editor-button-bar .btn {
|
|
|
|
padding: 6px 8px;
|
|
|
|
}
|
2017-11-11 00:52:08 +08:00
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
max-width: 100%;
|
|
|
|
margin: 10px 0 0 0;
|
|
|
|
}
|
|
|
|
.d-editor-preview {
|
2017-11-11 00:57:02 +08:00
|
|
|
background-color: $primary-very-low;
|
2017-12-12 04:40:04 +08:00
|
|
|
padding: 5px;
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-preferences .bio-composer {
|
|
|
|
padding: 10px;
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
}
|