2015-09-28 14:01:16 -04:00
|
|
|
.d-editor-container {
|
2017-11-08 04:39:26 -05:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
2017-11-27 15:23:18 -05:00
|
|
|
max-width: 100%;
|
2015-09-28 14:01:16 -04:00
|
|
|
}
|
|
|
|
|
2017-11-08 04:39:26 -05:00
|
|
|
.d-editor {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper,
|
|
|
|
.d-editor-preview-wrapper {
|
2018-12-28 14:52:21 -05:00
|
|
|
flex: 1;
|
2017-11-08 04:39:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--secondary);
|
2017-11-08 04:39:26 -05:00
|
|
|
position: relative;
|
2020-08-03 22:57:10 -04:00
|
|
|
border: 1px solid var(--primary-medium);
|
2018-04-05 23:36:57 -04:00
|
|
|
|
2017-11-27 15:23:18 -05:00
|
|
|
textarea {
|
2017-11-28 21:57:27 -05:00
|
|
|
background: transparent;
|
2017-11-27 15:23:18 -05:00
|
|
|
}
|
|
|
|
|
2020-08-03 10:01:04 -04:00
|
|
|
&.in-focus {
|
2021-02-03 11:45:54 -05:00
|
|
|
@include default-focus;
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
outline: 0;
|
|
|
|
}
|
2020-08-03 10:01:04 -04:00
|
|
|
}
|
|
|
|
|
2018-04-12 11:32:05 -04:00
|
|
|
&.disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
.d-editor-button-bar {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
2017-11-08 04:39:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-preview-wrapper {
|
2017-11-27 15:23:18 -05:00
|
|
|
max-width: 49%;
|
|
|
|
margin-left: 1%;
|
2017-11-08 04:39:26 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2015-09-28 14:01:16 -04:00
|
|
|
.d-editor-button-bar {
|
2017-11-08 04:39:26 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-08-03 22:57:10 -04:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2021-08-23 04:44:19 -04:00
|
|
|
padding: 2px;
|
|
|
|
|
|
|
|
.btn:focus {
|
|
|
|
border-radius: 0;
|
|
|
|
@include default-focus;
|
|
|
|
}
|
2018-04-05 23:36:57 -04:00
|
|
|
|
2019-01-11 15:41:51 -05:00
|
|
|
.btn,
|
|
|
|
.btn-default {
|
2015-09-28 14:01:16 -04:00
|
|
|
background-color: transparent;
|
2019-01-11 15:41:51 -05:00
|
|
|
display: inline-block;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2021-08-23 04:44:19 -04:00
|
|
|
height: 34px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
2019-01-31 13:59:49 -05:00
|
|
|
.d-icon {
|
2020-07-28 18:24:25 -04:00
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
&:hover {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-low);
|
2019-01-31 13:59:49 -05:00
|
|
|
}
|
2019-07-11 09:57:53 -04:00
|
|
|
|
|
|
|
svg {
|
|
|
|
-webkit-transform: translate3d(
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
); // Hack: Reduces composer icon jitter while scrolling in Safari on iOS12
|
2019-01-11 15:41:51 -05:00
|
|
|
}
|
2016-08-12 19:43:15 -04:00
|
|
|
}
|
|
|
|
|
2019-07-11 09:57:53 -04:00
|
|
|
.d-editor-spacer {
|
|
|
|
height: 1em;
|
|
|
|
display: inline-block;
|
2020-08-03 22:57:10 -04:00
|
|
|
border-left: 1px solid var(--primary-low-mid);
|
2019-07-11 09:57:53 -04:00
|
|
|
}
|
|
|
|
|
2016-08-12 19:43:15 -04:00
|
|
|
.btn:not(.no-text) {
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-up-1;
|
2016-08-12 19:43:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn.bold {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2015-09-28 14:01:16 -04:00
|
|
|
}
|
|
|
|
|
2017-12-06 11:28:12 -05:00
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
overflow: auto;
|
|
|
|
cursor: default;
|
2019-06-14 14:26:37 -04:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2021-01-29 20:28:56 -05:00
|
|
|
// the below gives text little space to overflow without being cropped (e.g., Õ in headings)
|
|
|
|
padding-top: 1em;
|
|
|
|
margin-top: -1em;
|
2017-12-06 11:28:12 -05:00
|
|
|
}
|
|
|
|
|
2017-11-08 04:39:26 -05:00
|
|
|
.d-editor-input,
|
|
|
|
.d-editor-preview {
|
|
|
|
box-sizing: border-box;
|
2018-04-05 23:36:57 -04:00
|
|
|
flex: 1 1 100%;
|
|
|
|
width: 100%;
|
2017-11-08 04:39:26 -05:00
|
|
|
margin: 0;
|
|
|
|
min-height: auto;
|
|
|
|
word-wrap: break-word;
|
2017-11-27 15:23:18 -05:00
|
|
|
-webkit-appearance: none;
|
2018-04-05 23:36:57 -04:00
|
|
|
border-radius: 0;
|
2015-09-28 14:01:16 -04:00
|
|
|
}
|
|
|
|
|
2017-11-08 04:39:26 -05:00
|
|
|
.d-editor-input {
|
|
|
|
border: 0;
|
2017-11-27 15:23:18 -05:00
|
|
|
padding: 10px;
|
2017-12-06 11:28:12 -05:00
|
|
|
height: 100%;
|
2017-11-08 04:39:26 -05:00
|
|
|
overflow-x: hidden;
|
2018-04-05 23:36:57 -04:00
|
|
|
resize: none;
|
2017-11-08 04:39:26 -05:00
|
|
|
}
|
|
|
|
|
2015-09-28 14:01:16 -04:00
|
|
|
.d-editor-preview {
|
2017-12-06 11:28:12 -05:00
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-plugin {
|
|
|
|
display: flex;
|
2017-12-06 16:11:25 -05:00
|
|
|
flex: 1 1;
|
2015-09-28 14:01:16 -04:00
|
|
|
overflow: auto;
|
2016-10-17 16:53:07 -04:00
|
|
|
}
|
2017-11-08 04:39:26 -05:00
|
|
|
|
|
|
|
.composing-whisper .d-editor-preview {
|
|
|
|
font-style: italic;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium) !important;
|
2015-09-28 14:01:16 -04:00
|
|
|
}
|
|
|
|
|
2017-11-08 04:39:26 -05:00
|
|
|
.hide-preview .d-editor-preview-wrapper {
|
|
|
|
display: none;
|
|
|
|
flex: 0;
|
|
|
|
}
|
2017-11-10 11:52:08 -05:00
|
|
|
|
2020-02-24 18:49:42 -05:00
|
|
|
.edit-category-tab-topic-template {
|
|
|
|
.emoji.btn {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-10 11:52:08 -05:00
|
|
|
.user-preferences .bio-composer,
|
2018-04-05 23:36:57 -04:00
|
|
|
.group-form-bio,
|
2017-11-10 11:52:08 -05:00
|
|
|
.edit-category-tab-topic-template {
|
|
|
|
textarea {
|
|
|
|
width: 100%;
|
2018-11-08 11:28:58 -05:00
|
|
|
height: 100%;
|
|
|
|
min-height: 10em;
|
2017-11-10 11:52:08 -05:00
|
|
|
}
|
2020-02-24 18:17:43 -05:00
|
|
|
.local-dates.btn {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-11-10 11:52:08 -05:00
|
|
|
.d-editor-container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.d-editor-textarea-wrapper {
|
2020-08-03 22:57:10 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2017-11-10 11:52:08 -05:00
|
|
|
}
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
max-width: 100%;
|
2021-01-29 20:28:56 -05:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2017-11-10 11:52:08 -05:00
|
|
|
}
|
|
|
|
.d-editor-preview {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--primary-very-low);
|
2021-01-29 20:28:56 -05:00
|
|
|
margin-top: 1em;
|
|
|
|
padding: 0.667em;
|
2018-10-24 16:00:22 -04:00
|
|
|
&:empty {
|
2021-01-29 20:28:56 -05:00
|
|
|
margin: 0;
|
2018-10-24 16:00:22 -04:00
|
|
|
padding: 0;
|
|
|
|
}
|
2017-11-10 11:52:08 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-05 23:36:57 -04:00
|
|
|
.user-preferences .bio-composer,
|
|
|
|
.group-form-bio {
|
2017-11-10 11:52:08 -05:00
|
|
|
padding: 10px;
|
2020-08-03 22:57:10 -04:00
|
|
|
border: 1px solid var(--primary-low);
|
2017-11-10 11:52:08 -05:00
|
|
|
}
|
2019-02-27 05:46:16 -05:00
|
|
|
|
2019-03-05 22:10:12 -05:00
|
|
|
.d-editor-preview img {
|
|
|
|
padding-bottom: 1.4em;
|
|
|
|
&.emoji,
|
2019-03-07 22:32:27 -05:00
|
|
|
&.avatar,
|
2021-05-27 01:35:32 -04:00
|
|
|
&.onebox-avatar,
|
2019-03-07 22:32:27 -05:00
|
|
|
&.site-icon {
|
2019-03-05 22:10:12 -05:00
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
2020-03-26 10:40:00 -04:00
|
|
|
&.resizable {
|
|
|
|
object-fit: cover;
|
|
|
|
object-position: top;
|
|
|
|
}
|
2019-03-05 22:10:12 -05:00
|
|
|
}
|
|
|
|
|
2019-02-27 05:46:16 -05:00
|
|
|
.d-editor-preview .image-wrapper {
|
2020-07-06 19:11:58 -04:00
|
|
|
--resizer-height: 1.75em;
|
2019-02-27 05:46:16 -05:00
|
|
|
position: relative;
|
2019-03-05 22:10:12 -05:00
|
|
|
display: inline-block;
|
2020-07-06 19:17:30 -04: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-05 22:10:12 -05:00
|
|
|
|
|
|
|
img {
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2019-02-27 05:46:16 -05:00
|
|
|
&:hover {
|
|
|
|
.button-wrapper {
|
2020-07-06 19:11:58 -04:00
|
|
|
opacity: 1;
|
2019-02-27 05:46:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.button-wrapper {
|
|
|
|
position: absolute;
|
2020-07-06 19:11:58 -04:00
|
|
|
height: var(--resizer-height);
|
2019-03-05 22:10:12 -05:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2020-07-06 19:11:58 -04:00
|
|
|
opacity: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: all 0.25s;
|
|
|
|
z-index: 1; // needs to be higher than image
|
|
|
|
width: 100%;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--secondary); // for when images are wider than controls
|
2019-02-27 05:46:16 -05:00
|
|
|
|
|
|
|
.scale-btn {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--secondary); // for when controls are wider than image
|
|
|
|
color: var(--tertiary);
|
2020-07-06 19:11:58 -04:00
|
|
|
padding: 0 1em;
|
|
|
|
&:first-child,
|
|
|
|
&:last-child {
|
|
|
|
padding: 0;
|
2019-03-05 22:10:12 -05:00
|
|
|
}
|
2019-02-27 05:46:16 -05:00
|
|
|
|
|
|
|
&.active {
|
2019-03-04 21:59:58 -05:00
|
|
|
font-weight: bold;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2019-02-27 05:46:16 -05:00
|
|
|
}
|
|
|
|
|
2019-03-04 21:59:58 -05:00
|
|
|
&:not(.active):hover {
|
2019-02-27 05:46:16 -05:00
|
|
|
text-decoration: underline;
|
2019-03-04 21:59:58 -05:00
|
|
|
cursor: pointer;
|
2019-02-27 05:46:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-view .d-editor-preview .image-wrapper .button-wrapper {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-07-11 09:57:53 -04:00
|
|
|
|
2021-05-20 21:43:47 -04:00
|
|
|
// d-editor bar button sizing for all editors - this is kept separate to keep
|
2019-07-11 09:57:53 -04:00
|
|
|
// everything in one place
|
|
|
|
.d-editor-button-bar {
|
2021-08-23 04:44:19 -04:00
|
|
|
box-sizing: border-box;
|
2019-07-11 09:57:53 -04:00
|
|
|
|
|
|
|
// shared styles for all font sizes
|
|
|
|
.btn,
|
|
|
|
.btn-default {
|
2021-01-27 16:17:08 -05:00
|
|
|
padding: 0.5em;
|
2021-08-23 04:44:19 -04:00
|
|
|
margin: 0;
|
2019-07-11 09:57:53 -04:00
|
|
|
}
|
2021-08-23 04:44:19 -04:00
|
|
|
|
2019-07-11 09:57:53 -04:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|