2017-11-28 04:23:18 +08:00
|
|
|
#reply-control {
|
|
|
|
.reply-area {
|
|
|
|
margin: 0 auto;
|
2021-12-01 00:41:22 +08:00
|
|
|
padding: 8px;
|
2017-11-28 04:23:18 +08:00
|
|
|
box-sizing: border-box;
|
2021-12-30 00:03:21 +08:00
|
|
|
height: calc(100% - 11px);
|
2017-11-28 04:23:18 +08:00
|
|
|
width: 100%;
|
2021-12-01 00:41:22 +08:00
|
|
|
|
2017-11-28 04:23:18 +08:00
|
|
|
.submit-panel {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
}
|
2018-02-15 11:49:10 +08:00
|
|
|
|
2024-02-27 17:17:30 +08:00
|
|
|
.autocomplete {
|
|
|
|
max-width: 600px;
|
|
|
|
}
|
|
|
|
|
2021-10-30 04:26:37 +08:00
|
|
|
.select-kit.is-expanded {
|
|
|
|
z-index: z("composer", "dropdown") + 1;
|
2018-02-15 11:49:10 +08:00
|
|
|
}
|
2018-04-26 08:46:54 +08:00
|
|
|
|
2021-10-30 04:26:37 +08:00
|
|
|
&.private-message {
|
|
|
|
.with-tags {
|
|
|
|
.title-and-category {
|
2023-12-23 04:17:26 +08:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
gap: 0.5em;
|
2021-10-30 04:26:37 +08:00
|
|
|
.mini-tag-chooser {
|
2023-12-23 04:17:26 +08:00
|
|
|
max-width: 50%;
|
2021-12-01 00:41:22 +08:00
|
|
|
margin-bottom: 8px; // match title input margin
|
2023-12-23 04:17:26 +08:00
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.title-input {
|
|
|
|
max-width: 50%;
|
|
|
|
min-width: 0;
|
|
|
|
input {
|
|
|
|
min-width: 0;
|
2021-10-30 04:26:37 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-21 01:32:00 +08:00
|
|
|
|
2021-10-30 04:26:37 +08:00
|
|
|
#private-message-users,
|
|
|
|
.users-input {
|
|
|
|
width: 100%;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
&.can-warn {
|
|
|
|
// space for warning, inverse of mini-tag-chooser width
|
|
|
|
width: 60%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.add-warning {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
|
|
|
span {
|
|
|
|
// protects the space of the user input in case there's a very long translation
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
}
|
2018-04-26 08:46:54 +08:00
|
|
|
}
|
2017-11-28 04:23:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.closed {
|
|
|
|
.grippie {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.open {
|
|
|
|
.grippie {
|
|
|
|
cursor: row-resize;
|
2018-01-25 22:53:36 +08:00
|
|
|
padding: 4px 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--tertiary);
|
2021-12-01 00:41:22 +08:00
|
|
|
|
2017-11-28 04:23:18 +08:00
|
|
|
&:before {
|
2018-06-08 17:49:31 +08:00
|
|
|
content: "";
|
2017-11-28 04:23:18 +08:00
|
|
|
display: block;
|
2021-12-01 00:41:22 +08:00
|
|
|
width: 24px;
|
2017-11-28 04:23:18 +08:00
|
|
|
margin: auto;
|
2021-12-01 00:41:22 +08:00
|
|
|
border-top: 3px double var(--tertiary-medium);
|
2017-11-28 04:23:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-26 05:04:14 +08:00
|
|
|
.discourse-touch {
|
|
|
|
.open {
|
|
|
|
.grippie {
|
|
|
|
padding: 7px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
.composer-popup {
|
2021-07-21 01:58:38 +08:00
|
|
|
box-sizing: border-box;
|
2015-12-29 05:51:07 +08:00
|
|
|
position: absolute;
|
2022-01-20 21:21:13 +08:00
|
|
|
width: calc(50% - 16px);
|
|
|
|
top: 19px; // grippie (11px) + .reply-area padding (8px)
|
2021-12-01 00:41:22 +08:00
|
|
|
bottom: 8px;
|
2021-12-24 19:38:33 +08:00
|
|
|
right: 8px;
|
2015-12-29 05:51:07 +08:00
|
|
|
overflow-y: auto;
|
2022-01-21 00:55:55 +08:00
|
|
|
z-index: z("composer", "dropdown") + 1;
|
2021-12-24 19:38:33 +08:00
|
|
|
padding: 1.5em;
|
2023-06-14 04:38:31 +08:00
|
|
|
box-shadow: var(--shadow-dropdown);
|
2023-02-21 17:15:49 +08:00
|
|
|
background: var(--highlight-bg);
|
2021-12-01 00:41:22 +08:00
|
|
|
|
2023-10-03 21:09:54 +08:00
|
|
|
> p,
|
|
|
|
h3 {
|
|
|
|
&:first-of-type {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-right: 3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-07 07:35:47 +08:00
|
|
|
&.urgent {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--danger-low);
|
2014-03-07 07:35:47 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2015-12-04 11:49:55 +08:00
|
|
|
&.education-message {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-low);
|
2015-11-25 19:01:17 +08:00
|
|
|
}
|
|
|
|
|
2021-08-24 06:34:23 +08:00
|
|
|
&.dominating-topic-message,
|
|
|
|
&.get-a-room {
|
2021-07-21 01:58:38 +08:00
|
|
|
bottom: unset;
|
|
|
|
padding: 2.25em 6em 2.5em 2.25em;
|
|
|
|
p {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
2023-10-03 21:09:54 +08:00
|
|
|
button:not(.close) {
|
2021-07-21 01:58:38 +08:00
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-20 02:45:55 +08:00
|
|
|
h3 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2023-10-03 21:09:54 +08:00
|
|
|
.btn.close {
|
|
|
|
flex-direction: row-reverse;
|
2019-02-26 06:03:29 +08:00
|
|
|
align-items: center;
|
2017-08-19 03:40:34 +08:00
|
|
|
position: absolute;
|
2023-11-30 15:51:50 +08:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2023-10-03 21:09:54 +08:00
|
|
|
color: var(--primary-medium);
|
2022-09-27 20:52:09 +08:00
|
|
|
font-size: var(--font-0);
|
|
|
|
.d-icon {
|
2023-10-03 21:09:54 +08:00
|
|
|
color: currentColor;
|
2022-09-27 20:52:09 +08:00
|
|
|
font-size: var(--font-up-1);
|
2023-10-03 21:09:54 +08:00
|
|
|
margin: 0 0 0 0.25em;
|
2022-09-27 20:52:09 +08:00
|
|
|
}
|
2023-10-03 21:09:54 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2017-08-19 03:40:34 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2019-02-26 06:03:29 +08:00
|
|
|
ul {
|
2013-09-06 03:37:07 +08:00
|
|
|
margin: 0;
|
2021-02-19 07:47:27 +08:00
|
|
|
padding: 0 0 0 1.5em;
|
|
|
|
&.list,
|
|
|
|
&.topics {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
li {
|
|
|
|
font-weight: normal;
|
2015-06-26 16:53:19 +08:00
|
|
|
margin-top: 8px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 04:23:18 +08:00
|
|
|
.composer-controls {
|
|
|
|
.d-chevron-down {
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
2017-11-08 17:39:26 +08:00
|
|
|
}
|
|
|
|
|
2016-06-07 04:58:35 +08:00
|
|
|
.custom-body {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-low);
|
2016-06-07 04:58:35 +08:00
|
|
|
p {
|
|
|
|
max-width: 98%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-10 04:54:33 +08:00
|
|
|
.similar-topics {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary-low);
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2024-02-07 15:15:54 +08:00
|
|
|
.similar-topic {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
a[href] {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.posts-count {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--tertiary);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2015-06-25 03:08:22 +08:00
|
|
|
|
2024-02-07 15:15:54 +08:00
|
|
|
.topic-title {
|
|
|
|
flex: 0 1 auto;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
span.badge-wrapper {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.blurb {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
.topic-title,
|
|
|
|
.blurb {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
.d-icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2015-06-25 03:08:22 +08:00
|
|
|
}
|
2024-02-07 15:15:54 +08:00
|
|
|
}
|
|
|
|
span.topic {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-07-02 17:26:43 +08:00
|
|
|
|
2024-02-07 15:15:54 +08:00
|
|
|
.first-line {
|
|
|
|
flex: 1;
|
|
|
|
}
|
2019-07-02 17:26:43 +08:00
|
|
|
|
2024-02-07 15:15:54 +08:00
|
|
|
.second-line {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: baseline;
|
|
|
|
gap: 0.5em;
|
2019-07-02 17:26:43 +08:00
|
|
|
|
2024-02-07 15:15:54 +08:00
|
|
|
.discourse-tags {
|
|
|
|
font-size: var(--font-down-1);
|
2019-07-02 17:26:43 +08:00
|
|
|
}
|
2018-01-19 02:52:40 +08:00
|
|
|
}
|
2015-06-25 03:08:22 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup:nth-of-type(2) {
|
2015-12-29 05:51:07 +08:00
|
|
|
width: calc(50% - 65px);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2019-05-30 02:37:32 +08:00
|
|
|
a.toggle-preview {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-high);
|
2019-05-30 02:37:32 +08:00
|
|
|
&:hover {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-08 17:39:26 +08:00
|
|
|
#draft-status,
|
|
|
|
#file-uploading {
|
|
|
|
text-align: right;
|
2014-04-21 23:54:57 +08:00
|
|
|
}
|
2024-02-24 01:21:26 +08:00
|
|
|
|
|
|
|
// fullscreen composer styles
|
|
|
|
.fullscreen-composer {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.profiler-results {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#reply-control {
|
|
|
|
&.fullscreen {
|
|
|
|
// important needed because of inline styles when height is changed manually with grippie
|
|
|
|
height: 100vh !important;
|
|
|
|
max-height: 100%; // prevents devices from miscalculating using vh
|
|
|
|
z-index: z("header") + 1;
|
|
|
|
|
|
|
|
@supports (--custom: property) {
|
|
|
|
height: calc(var(--composer-vh, 1vh) * 100) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-preview-wrapper {
|
|
|
|
margin-top: 1%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-to {
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.d-editor-textarea-wrapper {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
&.show-preview .d-editor-textarea-wrapper {
|
|
|
|
border-right: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
#draft-status,
|
|
|
|
#file-uploading {
|
|
|
|
margin-left: 0;
|
|
|
|
text-align: initial;
|
|
|
|
}
|
|
|
|
.composer-popup {
|
|
|
|
top: 30px;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
background: var(--secondary);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: fixed;
|
|
|
|
z-index: -1;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.composer-fullscreen-prompt {
|
|
|
|
animation: fadeIn 1s ease-in-out;
|
|
|
|
animation-delay: 1.5s;
|
|
|
|
animation-direction: reverse;
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
animation-duration: 0s;
|
|
|
|
}
|
|
|
|
position: fixed;
|
|
|
|
left: 50%;
|
|
|
|
top: 10%;
|
|
|
|
transform: translate(-50%, 0);
|
|
|
|
.rtl & {
|
|
|
|
// R2 is not smart enough to support this swap
|
|
|
|
transform: translate(50%, 0);
|
|
|
|
}
|
|
|
|
z-index: z("header") + 1;
|
|
|
|
background: var(--primary-very-high);
|
|
|
|
color: var(--secondary);
|
|
|
|
padding: 0.5em 0.75em;
|
|
|
|
pointer-events: none;
|
|
|
|
border-radius: 2px;
|
|
|
|
kbd {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $reply-area-max-width) {
|
|
|
|
.sidebar-wrapper .sidebar-container {
|
|
|
|
.has-sidebar-page & {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#reply-control:not(.fullscreen) {
|
|
|
|
.has-sidebar-page & {
|
|
|
|
width: auto;
|
|
|
|
max-width: calc(
|
|
|
|
(var(--d-max-width) + (var(--d-sidebar-width) / 2)) - 1.5rem
|
|
|
|
);
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
transform: translateX(
|
|
|
|
calc(
|
|
|
|
((100vw - var(--d-max-width) - (var(--d-sidebar-width) / 0.5)) / 2) +
|
|
|
|
17em + 1rem
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
&.hide-preview {
|
|
|
|
max-width: calc(740px);
|
|
|
|
transform: translateX(
|
|
|
|
calc(
|
|
|
|
((100vw - 740px - var(--d-sidebar-width)) / 2) +
|
|
|
|
var(--d-sidebar-width)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|