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%;
|
2023-06-09 03:49:18 +08:00
|
|
|
|
|
|
|
&.has-form-template {
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
flex: 0;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
|
2021-12-24 19:38:33 +08:00
|
|
|
.d-editor-textarea-column {
|
|
|
|
display: flex;
|
2018-12-29 03:52:21 +08:00
|
|
|
flex: 1;
|
2021-12-24 19:38:33 +08:00
|
|
|
flex-direction: column;
|
2022-01-18 05:05:27 +08:00
|
|
|
max-width: 100%;
|
2022-07-18 02:16:11 +08:00
|
|
|
min-width: 0;
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
display: flex;
|
2021-12-24 19:38:33 +08:00
|
|
|
flex: 1;
|
2017-11-08 17:39:26 +08:00
|
|
|
flex-direction: column;
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
2017-11-08 17:39:26 +08:00
|
|
|
position: relative;
|
2021-12-24 19:38:33 +08:00
|
|
|
border: 1px solid var(--primary-medium);
|
2022-11-17 00:35:09 +08:00
|
|
|
border-radius: var(--d-input-border-radius);
|
2022-03-12 01:18:27 +08:00
|
|
|
min-height: 0;
|
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
|
|
|
}
|
|
|
|
|
2020-08-03 22:01:04 +08:00
|
|
|
&.in-focus {
|
2021-02-04 00:45:54 +08:00
|
|
|
@include default-focus;
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
outline: 0;
|
|
|
|
}
|
2020-08-03 22:01:04 +08:00
|
|
|
}
|
|
|
|
|
2018-04-12 23:32:05 +08:00
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.d-editor-button-bar {
|
2021-10-19 04:00:22 +08:00
|
|
|
opacity: 0.5;
|
|
|
|
pointer-events: none;
|
2018-04-12 23:32:05 +08:00
|
|
|
}
|
|
|
|
}
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
display: flex;
|
2021-12-24 19:38:33 +08:00
|
|
|
flex: 1;
|
2017-11-08 17:39:26 +08:00
|
|
|
flex-direction: column;
|
2021-12-24 19:38:33 +08:00
|
|
|
margin-left: 16px;
|
2017-12-07 00:28:12 +08:00
|
|
|
overflow: auto;
|
2023-10-05 22:58:17 +08:00
|
|
|
overflow-anchor: none;
|
2017-12-07 00:28:12 +08:00
|
|
|
cursor: default;
|
2019-06-15 02:26:37 +08:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2023-08-10 16:23:41 +08:00
|
|
|
overscroll-behavior: contain;
|
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;
|
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;
|
2023-08-10 16:23:41 +08:00
|
|
|
overscroll-behavior: contain;
|
2023-10-10 21:50:02 +08:00
|
|
|
overflow-anchor: none;
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium) !important;
|
2015-09-29 02:01:16 +08:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2020-02-25 07:49:42 +08:00
|
|
|
.edit-category-tab-topic-template {
|
|
|
|
.emoji.btn {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
2020-02-25 07:17:43 +08:00
|
|
|
.local-dates.btn {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-11-11 00:52:08 +08:00
|
|
|
.d-editor-container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.d-editor-textarea-wrapper {
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
max-width: 100%;
|
2021-01-30 09:28:56 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
|
|
|
.d-editor-preview {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--primary-very-low);
|
2021-01-30 09:28:56 +08:00
|
|
|
margin-top: 1em;
|
|
|
|
padding: 0.667em;
|
2018-10-25 04:00:22 +08:00
|
|
|
&:empty {
|
2021-01-30 09:28:56 +08:00
|
|
|
margin: 0;
|
2018-10-25 04:00:22 +08:00
|
|
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
border: 1px solid var(--primary-low);
|
2017-11-11 00:52:08 +08:00
|
|
|
}
|
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,
|
2021-05-27 13:35:32 +08:00
|
|
|
&.onebox-avatar,
|
2019-03-08 11:32:27 +08:00
|
|
|
&.site-icon {
|
2019-03-06 11:10:12 +08:00
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2020-03-26 22:40:00 +08:00
|
|
|
&.resizable {
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: top;
|
|
|
|
}
|
2019-03-06 11:10:12 +08:00
|
|
|
}
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
.d-editor-preview .image-wrapper {
|
2020-07-07 07:11:58 +08:00
|
|
|
--resizer-height: 1.75em;
|
2019-02-27 18:46:16 +08:00
|
|
|
position: relative;
|
2019-03-06 11:10:12 +08:00
|
|
|
display: inline-block;
|
2020-07-07 07:17:30 +08:00
|
|
|
.desktop-view & {
|
|
|
|
// need the extra space on mobile because controls are always visible
|
|
|
|
padding-bottom: var(--resizer-height);
|
|
|
|
margin-bottom: calc(var(--resizer-height) * -1);
|
|
|
|
}
|
2019-03-06 11:10:12 +08:00
|
|
|
|
|
|
|
img {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
&:hover {
|
|
|
|
.button-wrapper {
|
2020-07-07 07:11:58 +08:00
|
|
|
opacity: 1;
|
2019-02-27 18:46:16 +08:00
|
|
|
}
|
|
|
|
}
|
2021-11-09 14:34:09 +08:00
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
.button-wrapper {
|
2021-11-19 10:57:09 +08:00
|
|
|
min-width: 10em;
|
|
|
|
width: 100%;
|
|
|
|
|
2021-11-09 14:34:09 +08:00
|
|
|
display: flex;
|
2023-06-08 02:15:57 +08:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
2021-11-09 14:34:09 +08:00
|
|
|
gap: 0 0.5em;
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
position: absolute;
|
2023-06-08 02:15:57 +08:00
|
|
|
height: calc(var(--resizer-height) + 0.5em);
|
2019-03-06 11:10:12 +08:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2020-07-07 07:11:58 +08:00
|
|
|
opacity: 0;
|
|
|
|
transition: all 0.25s;
|
|
|
|
z-index: 1; // needs to be higher than image
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--secondary); // for when images are wider than controls
|
2019-02-27 18:46:16 +08:00
|
|
|
|
2021-11-22 10:23:42 +08:00
|
|
|
&[editing] {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2021-11-09 14:34:09 +08:00
|
|
|
.scale-btn-container,
|
2021-11-19 10:57:09 +08:00
|
|
|
.alt-text-readonly-container,
|
2022-08-05 04:33:23 +08:00
|
|
|
.alt-text-edit-container,
|
|
|
|
.delete-image-button {
|
2021-11-09 14:34:09 +08:00
|
|
|
background: var(--secondary);
|
|
|
|
display: flex;
|
|
|
|
height: var(--resizer-height);
|
|
|
|
align-items: center;
|
2021-11-19 10:57:09 +08:00
|
|
|
|
|
|
|
&[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-11-09 14:34:09 +08:00
|
|
|
}
|
|
|
|
|
2019-02-27 18:46:16 +08:00
|
|
|
.scale-btn {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2020-07-07 07:11:58 +08:00
|
|
|
padding: 0 1em;
|
2021-11-09 14:34:09 +08:00
|
|
|
|
2020-07-07 07:11:58 +08:00
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
padding: 0;
|
2019-03-06 11:10:12 +08:00
|
|
|
}
|
2019-02-27 18:46:16 +08:00
|
|
|
|
|
|
|
&.active {
|
2019-03-05 10:59:58 +08:00
|
|
|
font-weight: bold;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--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
|
|
|
}
|
|
|
|
}
|
2021-11-09 14:34:09 +08:00
|
|
|
|
|
|
|
.alt-text-readonly-container {
|
2023-06-08 02:15:57 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
// arbitrary min-width value allows for correct shrinking
|
|
|
|
min-width: 100px;
|
2021-11-09 14:34:09 +08:00
|
|
|
|
|
|
|
.alt-text {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2021-11-19 10:57:09 +08:00
|
|
|
.alt-text-edit-btn {
|
|
|
|
cursor: pointer;
|
2022-08-05 04:33:23 +08:00
|
|
|
color: var(--tertiary);
|
2021-11-19 10:57:09 +08:00
|
|
|
|
|
|
|
svg {
|
|
|
|
padding-right: 0.5em;
|
|
|
|
}
|
2021-11-09 14:34:09 +08:00
|
|
|
}
|
2021-11-19 10:57:09 +08:00
|
|
|
}
|
2021-11-09 14:34:09 +08:00
|
|
|
|
2021-11-19 10:57:09 +08:00
|
|
|
.alt-text-edit-container {
|
|
|
|
gap: 0 0.25em;
|
|
|
|
flex: 1;
|
2023-06-08 02:15:57 +08:00
|
|
|
max-width: 100%;
|
2021-11-19 10:57:09 +08:00
|
|
|
|
|
|
|
.alt-text-input,
|
|
|
|
.alt-text-edit-ok,
|
|
|
|
.alt-text-edit-cancel {
|
2021-11-09 14:34:09 +08:00
|
|
|
height: var(--resizer-height);
|
2021-11-19 10:57:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.alt-text-input {
|
2023-06-08 02:15:57 +08:00
|
|
|
display: inline-flex;
|
2021-11-19 10:57:09 +08:00
|
|
|
flex: 1;
|
2021-11-09 14:34:09 +08:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0;
|
2023-06-08 02:15:57 +08:00
|
|
|
padding-left: 0.25em;
|
2021-11-19 10:57:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.alt-text-edit-ok,
|
|
|
|
.alt-text-edit-cancel {
|
|
|
|
border: none;
|
|
|
|
width: var(--resizer-height);
|
2021-11-09 14:34:09 +08:00
|
|
|
|
2021-11-19 10:57:09 +08:00
|
|
|
svg {
|
|
|
|
margin: 0;
|
2021-11-09 14:34:09 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-19 10:57:09 +08:00
|
|
|
|
2022-08-05 04:33:23 +08:00
|
|
|
.delete-image-button {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--danger);
|
|
|
|
|
|
|
|
.d-icon-trash-alt {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-08 02:15:57 +08:00
|
|
|
.wrap-image-grid-button {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--tertiary);
|
|
|
|
}
|
|
|
|
|
2021-11-19 10:57:09 +08:00
|
|
|
svg {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
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
|
|
|
|
2021-09-18 05:26:48 +08:00
|
|
|
// d-editor bar button sizing
|
2019-07-11 21:57:53 +08:00
|
|
|
.d-editor-button-bar {
|
2022-09-14 02:20:33 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(2.35em, 1fr));
|
|
|
|
@include breakpoint(tablet) {
|
|
|
|
// occupy available space on narrower screens
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(2em, 1fr));
|
|
|
|
}
|
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2021-09-18 05:26:48 +08:00
|
|
|
align-items: center;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
width: 100%;
|
2021-08-23 16:44:19 +08:00
|
|
|
box-sizing: border-box;
|
2022-07-18 02:16:11 +08:00
|
|
|
flex-shrink: 0;
|
2021-08-23 16:44:19 +08:00
|
|
|
|
2021-09-18 05:26:48 +08:00
|
|
|
.btn:focus {
|
|
|
|
@include default-focus;
|
2019-07-11 21:57:53 +08:00
|
|
|
}
|
|
|
|
|
2021-09-18 05:26:48 +08:00
|
|
|
.btn {
|
|
|
|
margin: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
color: var(--primary-medium);
|
2019-07-11 21:57:53 +08:00
|
|
|
|
2021-09-18 05:26:48 +08:00
|
|
|
.d-icon {
|
|
|
|
color: currentColor;
|
2019-07-11 21:57:53 +08:00
|
|
|
}
|
2022-09-14 02:20:33 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary-low);
|
|
|
|
}
|
2019-07-11 21:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-14 02:20:33 +08:00
|
|
|
.select-kit-header-wrapper {
|
|
|
|
justify-content: center;
|
2019-07-11 21:57:53 +08:00
|
|
|
}
|
|
|
|
}
|
2023-05-30 05:47:18 +08:00
|
|
|
|
2023-06-09 03:49:18 +08:00
|
|
|
.d-editor #form-template-form {
|
2023-05-30 05:47:18 +08:00
|
|
|
overflow: auto;
|
|
|
|
background: var(--primary-very-low);
|
|
|
|
padding: 1rem;
|
|
|
|
border: 1px solid var(--primary-medium);
|
|
|
|
}
|