2017-11-27 15:23:18 -05:00
|
|
|
#reply-control {
|
|
|
|
.reply-area {
|
|
|
|
margin: 0 auto;
|
2021-11-30 11:41:22 -05:00
|
|
|
padding: 8px;
|
2017-11-27 15:23:18 -05:00
|
|
|
box-sizing: border-box;
|
2021-12-29 11:03:21 -05:00
|
|
|
height: calc(100% - 11px);
|
2017-11-27 15:23:18 -05:00
|
|
|
width: 100%;
|
2021-11-30 11:41:22 -05:00
|
|
|
|
2017-11-27 15:23:18 -05:00
|
|
|
.submit-panel {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
}
|
2018-02-14 22:49:10 -05:00
|
|
|
|
2024-02-27 04:17:30 -05:00
|
|
|
.autocomplete {
|
|
|
|
max-width: 600px;
|
|
|
|
}
|
|
|
|
|
2021-10-29 16:26:37 -04:00
|
|
|
.select-kit.is-expanded {
|
|
|
|
z-index: z("composer", "dropdown") + 1;
|
2018-02-14 22:49:10 -05:00
|
|
|
}
|
2018-04-25 20:46:54 -04:00
|
|
|
|
2021-10-29 16:26:37 -04:00
|
|
|
&.private-message {
|
|
|
|
.with-tags {
|
|
|
|
.title-and-category {
|
2023-12-22 15:17:26 -05:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
gap: 0.5em;
|
2024-06-19 10:55:29 -04:00
|
|
|
.tags-input {
|
2023-12-22 15:17:26 -05:00
|
|
|
max-width: 50%;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.title-input {
|
|
|
|
max-width: 50%;
|
|
|
|
min-width: 0;
|
|
|
|
input {
|
|
|
|
min-width: 0;
|
2021-10-29 16:26:37 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-20 12:32:00 -05:00
|
|
|
|
2021-10-29 16:26:37 -04: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-25 20:46:54 -04:00
|
|
|
}
|
2017-11-27 15:23:18 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.closed {
|
|
|
|
.grippie {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.open {
|
|
|
|
.grippie {
|
|
|
|
cursor: row-resize;
|
2018-01-25 09:53:36 -05:00
|
|
|
padding: 4px 0;
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--tertiary);
|
2021-11-30 11:41:22 -05:00
|
|
|
|
2017-11-27 15:23:18 -05:00
|
|
|
&:before {
|
2018-06-08 05:49:31 -04:00
|
|
|
content: "";
|
2017-11-27 15:23:18 -05:00
|
|
|
display: block;
|
2021-11-30 11:41:22 -05:00
|
|
|
width: 24px;
|
2017-11-27 15:23:18 -05:00
|
|
|
margin: auto;
|
2021-11-30 11:41:22 -05:00
|
|
|
border-top: 3px double var(--tertiary-medium);
|
2017-11-27 15:23:18 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-25 16:04:14 -05:00
|
|
|
.discourse-touch {
|
|
|
|
.open {
|
|
|
|
.grippie {
|
|
|
|
padding: 7px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-05 15:37:07 -04:00
|
|
|
.composer-popup {
|
2021-07-20 13:58:38 -04:00
|
|
|
box-sizing: border-box;
|
2015-12-28 16:51:07 -05:00
|
|
|
position: absolute;
|
2022-01-20 08:21:13 -05:00
|
|
|
width: calc(50% - 16px);
|
|
|
|
top: 19px; // grippie (11px) + .reply-area padding (8px)
|
2021-11-30 11:41:22 -05:00
|
|
|
bottom: 8px;
|
2021-12-24 06:38:33 -05:00
|
|
|
right: 8px;
|
2015-12-28 16:51:07 -05:00
|
|
|
overflow-y: auto;
|
2022-01-20 11:55:55 -05:00
|
|
|
z-index: z("composer", "dropdown") + 1;
|
2021-12-24 06:38:33 -05:00
|
|
|
padding: 1.5em;
|
2023-06-13 16:38:31 -04:00
|
|
|
box-shadow: var(--shadow-dropdown);
|
2023-02-21 04:15:49 -05:00
|
|
|
background: var(--highlight-bg);
|
2021-11-30 11:41:22 -05:00
|
|
|
|
2023-10-03 09:09:54 -04:00
|
|
|
> p,
|
|
|
|
h3 {
|
|
|
|
&:first-of-type {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-right: 3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-06 18:35:47 -05:00
|
|
|
&.urgent {
|
2020-08-03 22:57:10 -04:00
|
|
|
background: var(--danger-low);
|
2014-03-06 18:35:47 -05:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
|
2015-12-03 22:49:55 -05:00
|
|
|
&.education-message {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary-low);
|
2015-11-25 06:01:17 -05:00
|
|
|
}
|
|
|
|
|
2021-08-23 18:34:23 -04:00
|
|
|
&.dominating-topic-message,
|
|
|
|
&.get-a-room {
|
2021-07-20 13:58:38 -04:00
|
|
|
bottom: unset;
|
|
|
|
padding: 2.25em 6em 2.5em 2.25em;
|
|
|
|
p {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
2023-10-03 09:09:54 -04:00
|
|
|
button:not(.close) {
|
2021-07-20 13:58:38 -04:00
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-19 13:45:55 -05:00
|
|
|
h3 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
2023-10-03 09:09:54 -04:00
|
|
|
.btn.close {
|
|
|
|
flex-direction: row-reverse;
|
2019-02-25 17:03:29 -05:00
|
|
|
align-items: center;
|
2017-08-18 15:40:34 -04:00
|
|
|
position: absolute;
|
2023-11-30 02:51:50 -05:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2023-10-03 09:09:54 -04:00
|
|
|
color: var(--primary-medium);
|
2022-09-27 08:52:09 -04:00
|
|
|
font-size: var(--font-0);
|
|
|
|
.d-icon {
|
2023-10-03 09:09:54 -04:00
|
|
|
color: currentColor;
|
2022-09-27 08:52:09 -04:00
|
|
|
font-size: var(--font-up-1);
|
2023-10-03 09:09:54 -04:00
|
|
|
margin: 0 0 0 0.25em;
|
2022-09-27 08:52:09 -04:00
|
|
|
}
|
2023-10-03 09:09:54 -04:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2017-08-18 15:40:34 -04:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
|
2019-02-25 17:03:29 -05:00
|
|
|
ul {
|
2013-09-05 15:37:07 -04:00
|
|
|
margin: 0;
|
2021-02-18 18:47:27 -05:00
|
|
|
padding: 0 0 0 1.5em;
|
|
|
|
&.list,
|
|
|
|
&.topics {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
|
|
|
|
li {
|
|
|
|
font-weight: normal;
|
2015-06-26 04:53:19 -04:00
|
|
|
margin-top: 8px;
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-27 15:23:18 -05:00
|
|
|
.composer-controls {
|
|
|
|
.d-chevron-down {
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
2017-11-08 04:39:26 -05:00
|
|
|
}
|
|
|
|
|
2016-06-06 16:58:35 -04:00
|
|
|
.custom-body {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary-low);
|
2016-06-06 16:58:35 -04:00
|
|
|
p {
|
|
|
|
max-width: 98%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-09 16:54:33 -04:00
|
|
|
.similar-topics {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary-low);
|
2013-09-05 15:37:07 -04:00
|
|
|
|
2024-02-07 02:15:54 -05:00
|
|
|
.similar-topic {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2013-09-05 15:37:07 -04:00
|
|
|
a[href] {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.posts-count {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--tertiary);
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
2015-06-24 15:08:22 -04:00
|
|
|
|
2024-02-07 02:15:54 -05: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-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2015-06-24 15:08:22 -04:00
|
|
|
}
|
2024-02-07 02:15:54 -05:00
|
|
|
}
|
|
|
|
span.topic {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-07-02 05:26:43 -04:00
|
|
|
|
2024-02-07 02:15:54 -05:00
|
|
|
.first-line {
|
|
|
|
flex: 1;
|
|
|
|
}
|
2019-07-02 05:26:43 -04:00
|
|
|
|
2024-02-07 02:15:54 -05:00
|
|
|
.second-line {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: baseline;
|
|
|
|
gap: 0.5em;
|
2019-07-02 05:26:43 -04:00
|
|
|
|
2024-02-07 02:15:54 -05:00
|
|
|
.discourse-tags {
|
|
|
|
font-size: var(--font-down-1);
|
2019-07-02 05:26:43 -04:00
|
|
|
}
|
2018-01-18 13:52:40 -05:00
|
|
|
}
|
2015-06-24 15:08:22 -04:00
|
|
|
}
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.composer-popup:nth-of-type(2) {
|
2015-12-28 16:51:07 -05:00
|
|
|
width: calc(50% - 65px);
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
|
2019-05-29 14:37:32 -04:00
|
|
|
a.toggle-preview {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-high);
|
2019-05-29 14:37:32 -04:00
|
|
|
&:hover {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--tertiary);
|
2013-09-05 15:37:07 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-08 04:39:26 -05:00
|
|
|
#draft-status,
|
|
|
|
#file-uploading {
|
|
|
|
text-align: right;
|
2014-04-21 11:54:57 -04:00
|
|
|
}
|
2024-02-23 12:21:26 -05: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)
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|