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
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper,
|
|
|
|
.d-editor-preview-wrapper {
|
2018-12-29 03:52:21 +08:00
|
|
|
flex: 1;
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2018-04-06 11:36:57 +08:00
|
|
|
|
2017-11-28 04:23:18 +08:00
|
|
|
textarea {
|
2017-11-29 10:57:27 +08:00
|
|
|
background: transparent;
|
2017-11-28 04:23:18 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 23:32:05 +08:00
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.d-editor-button-bar {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
min-height: 30px;
|
2017-11-29 10:57:27 +08:00
|
|
|
border-bottom: 1px solid $primary-low;
|
2018-04-06 11:36:57 +08:00
|
|
|
|
2019-01-12 04:41:51 +08:00
|
|
|
.btn,
|
|
|
|
.btn-default {
|
2015-09-29 02:01:16 +08:00
|
|
|
background-color: transparent;
|
2019-01-12 04:41:51 +08:00
|
|
|
display: inline-block;
|
2019-02-01 02:59:49 +08:00
|
|
|
.d-icon {
|
|
|
|
color: $primary-medium;
|
|
|
|
}
|
2019-07-11 21:57:53 +08:00
|
|
|
|
|
|
|
svg {
|
|
|
|
-webkit-transform: translate3d(
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
); // Hack: Reduces composer icon jitter while scrolling in Safari on iOS12
|
2019-01-12 04:41:51 +08:00
|
|
|
}
|
2016-08-13 07:43:15 +08:00
|
|
|
}
|
|
|
|
|
2019-07-11 21:57:53 +08:00
|
|
|
.d-editor-spacer {
|
|
|
|
height: 1em;
|
|
|
|
display: inline-block;
|
|
|
|
border-left: 1px solid $primary-low-mid;
|
|
|
|
}
|
|
|
|
|
2016-08-13 07:43:15 +08:00
|
|
|
.btn:not(.no-text) {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-1;
|
2016-08-13 07:43:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.bold {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
2017-12-07 00:28:12 +08:00
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
overflow: auto;
|
|
|
|
cursor: default;
|
2019-06-15 02:26:37 +08:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2017-12-07 00:28:12 +08:00
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
.d-editor-input,
|
|
|
|
.d-editor-preview {
|
|
|
|
box-sizing: border-box;
|
2018-04-06 11:36:57 +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;
|
2018-04-06 11:36:57 +08:00
|
|
|
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;
|
2018-04-06 11:36:57 +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,
|
2018-04-06 11:36:57 +08:00
|
|
|
.group-form-bio,
|
2017-11-11 00:52:08 +08:00
|
|
|
.edit-category-tab-topic-template {
|
|
|
|
textarea {
|
|
|
|
width: 100%;
|
2018-11-09 00:28:58 +08:00
|
|
|
height: 100%;
|
|
|
|
min-height: 10em;
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
|
|
|
.d-editor-container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
}
|
|
|
|
.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;
|
2018-10-25 04:00:22 +08:00
|
|
|
&:empty {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-06 11:36:57 +08:00
|
|
|
.user-preferences .bio-composer,
|
|
|
|
.group-form-bio {
|
2017-11-11 00:52:08 +08:00
|
|
|
padding: 10px;
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
}
|
2019-02-27 18:46:16 +08:00
|
|
|
|
2019-03-06 11:10:12 +08:00
|
|
|
.d-editor-preview img {
|
|
|
|
padding-bottom: 1.4em;
|
|
|
|
&.emoji,
|
2019-03-08 11:32:27 +08:00
|
|
|
&.avatar,
|
|
|
|
&.site-icon {
|
2019-03-06 11:10:12 +08:00
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
.d-editor-preview .image-wrapper {
|
|
|
|
position: relative;
|
2019-03-06 11:10:12 +08:00
|
|
|
display: inline-block;
|
|
|
|
padding-bottom: 1.4em;
|
|
|
|
|
|
|
|
img {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
&:hover {
|
|
|
|
.button-wrapper {
|
2019-03-05 10:59:58 +08:00
|
|
|
opacity: 0.9;
|
2019-02-27 18:46:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.button-wrapper {
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
2019-03-05 10:59:58 +08:00
|
|
|
transition: all 0.25s;
|
2019-02-27 18:46:16 +08:00
|
|
|
display: flex;
|
2019-03-05 10:59:58 +08:00
|
|
|
align-items: center;
|
2019-03-06 11:10:12 +08:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2019-02-27 18:46:16 +08:00
|
|
|
.separator {
|
2019-03-06 11:10:12 +08:00
|
|
|
color: $primary-low-mid;
|
2019-02-27 18:46:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.scale-btn {
|
|
|
|
color: $tertiary;
|
2019-03-06 11:10:12 +08:00
|
|
|
padding: 0 0.4em;
|
|
|
|
&:first-of-type {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2019-02-27 18:46:16 +08:00
|
|
|
|
|
|
|
&.active {
|
2019-03-05 10:59:58 +08:00
|
|
|
font-weight: bold;
|
|
|
|
color: $primary;
|
2019-02-27 18:46:16 +08:00
|
|
|
}
|
|
|
|
|
2019-03-05 10:59:58 +08:00
|
|
|
&:not(.active):hover {
|
2019-02-27 18:46:16 +08:00
|
|
|
text-decoration: underline;
|
2019-03-05 10:59:58 +08:00
|
|
|
cursor: pointer;
|
2019-02-27 18:46:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-view .d-editor-preview .image-wrapper .button-wrapper {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-07-11 21:57:53 +08:00
|
|
|
|
|
|
|
// d-editor bar button sizing for all editors - this is kept seprate to keep
|
|
|
|
// everything in one place
|
|
|
|
.d-editor-button-bar {
|
|
|
|
margin: 0.25em;
|
|
|
|
|
|
|
|
// shared styles for all font sizes
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.5em;
|
|
|
|
}
|
|
|
|
.d-editor-spacer {
|
|
|
|
margin: 0 0.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// small text size
|
|
|
|
.text-size-smaller & {
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.4em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.3em;
|
|
|
|
}
|
|
|
|
.d-editor-spacer {
|
|
|
|
margin: 0 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// normal text size
|
|
|
|
.text-size-normal & {
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.35em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.25em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// larger text size
|
|
|
|
.text-size-larger & {
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// largest text size
|
|
|
|
.text-size-largest & {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
font-size: $font-down-1;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint(mobile-large) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
|
|
|
padding: 0 0.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|