2016-10-27 07:40:53 +02:00
|
|
|
#compose_buttons {
|
2016-12-02 01:36:40 +01:00
|
|
|
text-align: right;
|
2021-04-15 02:59:34 +02:00
|
|
|
display: flex;
|
2023-10-05 18:09:38 +02:00
|
|
|
column-gap: 4px;
|
2021-04-15 02:59:34 +02:00
|
|
|
flex-direction: row;
|
2024-06-06 22:14:14 +02:00
|
|
|
/* With precisely controlled line-heights
|
|
|
|
in this area, stretch will both center
|
|
|
|
and maintain uniform heights between the
|
|
|
|
reply button and the new-message button. */
|
|
|
|
align-items: stretch;
|
2018-11-01 00:58:43 +01:00
|
|
|
|
2024-09-17 21:55:34 +02:00
|
|
|
.compose_mobile_button {
|
|
|
|
/* Keep the new message button sized to match
|
|
|
|
adjacent buttons. */
|
|
|
|
min-width: inherit;
|
|
|
|
padding: 3px 10px;
|
|
|
|
border-radius: 4px;
|
|
|
|
outline: none;
|
|
|
|
/* This is ugly, but necessary to use the
|
|
|
|
text + for the compose button. An icon
|
|
|
|
would likely be a better choice here.
|
|
|
|
1.2em is 16.8px at 14px em. */
|
|
|
|
font-size: 1.2em;
|
|
|
|
/* 1.2em is 16.8px at 14px em; this
|
|
|
|
maintains the 20px em-equivalent compose
|
|
|
|
line height, but at a 16.8px em. */
|
|
|
|
line-height: 1.19em;
|
|
|
|
font-weight: 400;
|
|
|
|
color: var(--color-text-default);
|
|
|
|
background-color: var(--color-background-compose-new-message-button);
|
|
|
|
border: 1px solid var(--color-border-compose-new-message-button);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(
|
|
|
|
--color-background-compose-new-message-button-hover
|
|
|
|
);
|
|
|
|
border-color: var(--color-border-compose-new-message-button-hover);
|
2019-08-24 12:37:25 +02:00
|
|
|
}
|
|
|
|
|
2024-09-17 21:55:34 +02:00
|
|
|
&:active {
|
|
|
|
background-color: var(
|
|
|
|
--color-background-compose-new-message-button-active
|
|
|
|
);
|
|
|
|
border-color: var(--color-border-compose-new-message-button-hover);
|
2019-08-24 12:34:35 +02:00
|
|
|
}
|
2021-04-15 02:59:34 +02:00
|
|
|
}
|
2019-08-24 12:55:15 +02:00
|
|
|
|
2021-04-15 02:59:34 +02:00
|
|
|
.reply_button_container {
|
2023-10-05 18:09:38 +02:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
/* Adjust flexbox default `min-width` to allow smaller container sizes. */
|
2021-04-15 02:59:34 +02:00
|
|
|
min-width: 0;
|
|
|
|
|
2023-10-05 18:09:38 +02:00
|
|
|
/* Button-like styling */
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-collapsed-reply-button-area-background
|
|
|
|
);
|
|
|
|
border: 1px solid
|
|
|
|
var(--color-compose-collapsed-reply-button-area-border);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-collapsed-reply-button-area-background-interactive
|
|
|
|
);
|
|
|
|
border-color: var(
|
|
|
|
--color-compose-collapsed-reply-button-area-border-interactive
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
#left_bar_compose_reply_button_big,
|
|
|
|
#new_conversation_button {
|
2024-09-17 21:55:34 +02:00
|
|
|
/* Keep the new message button sized to match
|
|
|
|
adjacent buttons. */
|
|
|
|
font-size: inherit;
|
|
|
|
min-width: inherit;
|
|
|
|
padding: 3px 10px;
|
|
|
|
outline: none;
|
2023-10-05 18:09:38 +02:00
|
|
|
border: none;
|
2024-09-17 21:55:34 +02:00
|
|
|
color: var(--color-text-default);
|
2023-10-05 18:09:38 +02:00
|
|
|
background: var(--color-compose-embedded-button-background);
|
|
|
|
border-radius: 3px;
|
2024-01-26 00:16:00 +01:00
|
|
|
line-height: var(--line-height-compose-buttons);
|
2023-10-05 18:09:38 +02:00
|
|
|
}
|
|
|
|
|
2023-12-20 04:08:58 +01:00
|
|
|
.compose-reply-button-wrapper {
|
2023-10-05 18:09:38 +02:00
|
|
|
flex-grow: 1;
|
2023-12-20 04:08:58 +01:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#left_bar_compose_reply_button_big {
|
|
|
|
width: 100%;
|
2021-04-15 02:59:34 +02:00
|
|
|
text-align: left;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-08-24 12:55:15 +02:00
|
|
|
}
|
2023-10-05 18:09:38 +02:00
|
|
|
|
|
|
|
#new_conversation_button {
|
|
|
|
/* Remove the `padding` to prevent margin from affecting parent height. */
|
|
|
|
padding: 0 10px;
|
|
|
|
min-width: inherit;
|
|
|
|
margin: 1px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
|
|
color: var(--color-compose-embedded-button-text-color);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-embedded-button-background-hover
|
|
|
|
);
|
|
|
|
color: var(--color-compose-embedded-button-text-color-hover);
|
|
|
|
}
|
|
|
|
}
|
2018-11-01 00:58:43 +01:00
|
|
|
}
|
2021-04-15 02:59:34 +02:00
|
|
|
|
|
|
|
.mobile_button_container {
|
|
|
|
@media (width >= $sm_min) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-05 18:09:38 +02:00
|
|
|
#new_conversation_button,
|
2023-10-04 21:06:27 +02:00
|
|
|
.new_direct_message_button_container {
|
2023-10-05 18:09:38 +02:00
|
|
|
flex-shrink: 0;
|
2024-01-26 00:16:00 +01:00
|
|
|
line-height: var(--line-height-compose-buttons);
|
2023-10-05 18:09:38 +02:00
|
|
|
|
2021-04-15 02:59:34 +02:00
|
|
|
@media (width < $sm_min) {
|
2023-10-05 18:09:38 +02:00
|
|
|
/* Override inline style injected by jQuery hide() */
|
|
|
|
display: none !important;
|
2021-04-15 02:59:34 +02:00
|
|
|
}
|
|
|
|
}
|
2024-09-17 21:55:34 +02:00
|
|
|
|
|
|
|
#new_direct_message_button {
|
|
|
|
/* Keep the new message button sized to match
|
|
|
|
adjacent buttons. */
|
|
|
|
font-size: inherit;
|
|
|
|
min-width: inherit;
|
|
|
|
line-height: var(--line-height-compose-buttons);
|
|
|
|
padding: 3px 10px;
|
|
|
|
border-radius: 4px;
|
|
|
|
outline: none;
|
|
|
|
color: var(--color-text-default);
|
|
|
|
background-color: var(--color-background-compose-new-message-button);
|
|
|
|
border: 1px solid var(--color-border-compose-new-message-button);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(
|
|
|
|
--color-background-compose-new-message-button-hover
|
|
|
|
);
|
|
|
|
border-color: var(--color-border-compose-new-message-button-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var(
|
|
|
|
--color-background-compose-new-message-button-active
|
|
|
|
);
|
|
|
|
border-color: var(--color-border-compose-new-message-button-hover);
|
|
|
|
}
|
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2021-04-30 20:11:03 +02:00
|
|
|
/* Main geometry for this element is in zulip.css */
|
2021-06-10 16:52:29 +02:00
|
|
|
#compose-content {
|
2024-08-01 18:51:18 +02:00
|
|
|
background-color: var(--color-compose-box-background);
|
2024-06-24 20:37:45 +02:00
|
|
|
padding: 7px 7px 8px;
|
2023-03-24 00:09:48 +01:00
|
|
|
border: 1px solid hsl(0deg 0% 0% / 10%);
|
|
|
|
border-radius: 9px 9px 0 0;
|
|
|
|
box-shadow: 0 0 0 hsl(236deg 11% 28%);
|
2021-05-17 13:15:11 +02:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2021-09-23 22:17:39 +02:00
|
|
|
box-sizing: border-box;
|
2024-04-23 01:28:39 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.composebox-buttons > button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2019-08-24 12:26:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message_comp {
|
|
|
|
display: none;
|
2024-06-24 20:37:45 +02:00
|
|
|
padding: 0 7px 0 0;
|
2023-04-21 11:33:13 +02:00
|
|
|
|
|
|
|
#compose_banners {
|
|
|
|
max-height: min(25vh, 240px);
|
|
|
|
overflow-y: auto;
|
2024-06-12 14:29:41 +02:00
|
|
|
/* Align to compose controls; that's 112px width,
|
|
|
|
plus 6px of grid gap for 118px here. */
|
|
|
|
margin-right: calc(var(--compose-send-controls-width) + 6px);
|
2023-04-21 11:33:13 +02:00
|
|
|
}
|
2019-08-24 12:26:37 +02:00
|
|
|
}
|
|
|
|
|
2019-08-24 13:13:52 +02:00
|
|
|
.compose_table {
|
2021-05-17 13:15:11 +02:00
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
|
2020-06-13 17:32:03 +02:00
|
|
|
.stream-selection-header-colorblock {
|
2023-03-24 00:09:48 +01:00
|
|
|
box-shadow: none;
|
|
|
|
border: 1px solid hsl(0deg 0% 80%);
|
|
|
|
border-right: none;
|
|
|
|
|
2019-08-24 13:13:52 +02:00
|
|
|
&.message_header_private_message {
|
2020-08-06 02:42:07 +02:00
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
border-bottom: 0;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 27%);
|
2019-08-24 13:13:52 +02:00
|
|
|
}
|
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
|
2023-04-15 03:35:23 +02:00
|
|
|
#compose-recipient {
|
|
|
|
&.compose-recipient-direct-selected {
|
2023-05-07 14:45:04 +02:00
|
|
|
#compose_select_recipient_widget {
|
2023-04-15 03:35:23 +02:00
|
|
|
border-radius: 4px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-25 21:49:18 +02:00
|
|
|
.topic-marker-container {
|
|
|
|
/* Ensure the marker ( < ) stays centered vertically
|
|
|
|
with the dropdown, even when adjacent stacking pills
|
|
|
|
in, e.g., a group DM. */
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-11-14 21:12:15 +01:00
|
|
|
/* Ensure horizontal centering, too. */
|
|
|
|
justify-content: center;
|
|
|
|
/* Disallow shrinking or growth, which can cause
|
|
|
|
little layout shifts with pills. */
|
|
|
|
flex: 0 0 auto;
|
2023-05-25 21:49:18 +02:00
|
|
|
height: var(--compose-recipient-box-min-height);
|
2024-03-25 08:42:02 +01:00
|
|
|
|
2024-05-09 04:50:53 +02:00
|
|
|
.conversation-arrow {
|
2024-03-25 08:42:02 +01:00
|
|
|
font-size: 16px;
|
2024-05-09 04:50:53 +02:00
|
|
|
line-height: 16px;
|
|
|
|
border-radius: 50%;
|
|
|
|
padding: 2px;
|
|
|
|
margin: 0 3px;
|
2024-03-25 08:42:02 +01:00
|
|
|
color: var(--color-compose-chevron-arrow);
|
2024-05-09 04:50:53 +02:00
|
|
|
text-decoration: none;
|
|
|
|
cursor: default;
|
2024-10-23 21:41:16 +02:00
|
|
|
transition: none 0.2s ease-in-out;
|
|
|
|
transition-property: background, color;
|
2024-05-09 04:50:53 +02:00
|
|
|
|
|
|
|
&.narrow_to_compose_recipients {
|
|
|
|
background: var(
|
|
|
|
--color-narrow-to-compose-recipients-background
|
|
|
|
);
|
|
|
|
color: var(--color-narrow-to-compose-recipients);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(
|
|
|
|
--color-narrow-to-compose-recipients-background-hover
|
|
|
|
);
|
|
|
|
color: var(--color-narrow-to-compose-recipients-hover);
|
|
|
|
}
|
|
|
|
}
|
2021-08-16 17:10:43 +02:00
|
|
|
}
|
|
|
|
}
|
2019-08-24 13:13:52 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
|
2023-04-15 03:35:23 +02:00
|
|
|
#compose-direct-recipient {
|
|
|
|
flex-grow: 1;
|
2024-02-16 10:00:54 +01:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
align-items: stretch;
|
2019-08-24 13:13:52 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
|
2019-08-24 13:13:52 +02:00
|
|
|
.message_header {
|
|
|
|
background: none;
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 92%);
|
2019-08-24 13:13:52 +02:00
|
|
|
border: none;
|
2020-08-06 02:42:07 +02:00
|
|
|
border-radius: 0;
|
2019-08-24 13:13:52 +02:00
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
|
2019-08-24 13:13:52 +02:00
|
|
|
.messagebox {
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#send_message_form {
|
2020-08-06 02:42:07 +02:00
|
|
|
margin: 0;
|
2021-05-17 13:15:11 +02:00
|
|
|
height: 100%;
|
|
|
|
|
2019-08-24 13:37:32 +02:00
|
|
|
.messagebox {
|
|
|
|
/* normally 5px 14px; pull in the right and bottom a bit */
|
|
|
|
cursor: default;
|
2024-06-13 23:08:53 +02:00
|
|
|
flex: 1;
|
2020-08-06 02:42:07 +02:00
|
|
|
padding: 0;
|
2019-08-24 13:37:32 +02:00
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
2021-05-17 13:15:11 +02:00
|
|
|
height: 100%;
|
2023-11-01 20:01:26 +01:00
|
|
|
display: grid;
|
|
|
|
/* Vlad's design calls for 122px for the send column
|
|
|
|
at its widest; 112px accounts for 6px of gap and
|
2024-06-12 14:29:41 +02:00
|
|
|
4px outside padding. */
|
2024-05-18 10:30:24 +02:00
|
|
|
grid-template:
|
|
|
|
minmax(0, 1fr) var(--compose-formatting-buttons-row-height)
|
|
|
|
/ minmax(0, 1fr) var(--compose-send-controls-width);
|
2023-11-01 20:01:26 +01:00
|
|
|
grid-template-areas:
|
2024-04-22 19:03:08 +02:00
|
|
|
"message-content-container message-send-controls-container"
|
2024-05-18 10:30:24 +02:00
|
|
|
"message-formatting-controls-container message-send-controls-container";
|
|
|
|
gap: 0 6px;
|
2019-08-24 13:37:32 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
|
2019-08-24 13:37:32 +02:00
|
|
|
.message_content {
|
2020-08-06 02:42:07 +02:00
|
|
|
margin-right: 0;
|
2019-08-24 13:37:32 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2024-04-22 19:03:08 +02:00
|
|
|
#message-content-container {
|
|
|
|
grid-area: message-content-container;
|
|
|
|
display: grid;
|
2024-04-23 01:28:39 +02:00
|
|
|
grid-template: minmax(0, 1fr) / minmax(0, 1fr) var(
|
|
|
|
--composebox-buttons-width
|
|
|
|
);
|
|
|
|
grid-template-areas: "message-content composebox-buttons";
|
2024-05-18 10:30:24 +02:00
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid var(--color-message-content-container-border);
|
2024-10-23 21:41:16 +02:00
|
|
|
transition: border-color 0.2s ease;
|
2024-05-18 10:30:24 +02:00
|
|
|
|
|
|
|
&:has(.new_message_textarea:focus) {
|
|
|
|
border-color: var(--color-message-content-container-border-focus);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:has(.new_message_textarea.over_limit),
|
|
|
|
&:has(.new_message_textarea.over_limit:focus) {
|
|
|
|
box-shadow: 0 0 0 1pt hsl(0deg 76% 65%);
|
2024-07-03 22:43:43 +02:00
|
|
|
}
|
2024-05-18 10:30:24 +02:00
|
|
|
|
2024-07-03 22:43:43 +02:00
|
|
|
&:has(.new_message_textarea.over_limit.flash) {
|
|
|
|
animation: message-limit-flash 0.5s ease-in-out 3;
|
2024-05-18 10:30:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:has(.new_message_textarea.invalid),
|
|
|
|
&:has(.new_message_textarea.invalid:focus) {
|
|
|
|
border-color: hsl(3deg 57% 33%);
|
|
|
|
box-shadow: 0 0 2px hsl(3deg 57% 33%);
|
|
|
|
}
|
2024-04-23 01:28:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-content-container .composebox-buttons {
|
|
|
|
grid-area: composebox-buttons;
|
|
|
|
/* z-index is needed to avoid flickering of cursor and the
|
|
|
|
button when hovering it in preview mode. */
|
|
|
|
z-index: 1;
|
|
|
|
height: max-content;
|
|
|
|
|
|
|
|
button {
|
|
|
|
width: 24px;
|
2024-06-24 16:54:45 +02:00
|
|
|
/* Override any UA stylesheet padding, such as that
|
|
|
|
added by mobile Safari. */
|
|
|
|
padding: 0;
|
2024-04-23 01:28:39 +02:00
|
|
|
border: none;
|
|
|
|
aspect-ratio: 1 / 1;
|
|
|
|
background-color: var(--color-composebox-button-background);
|
|
|
|
color: var(--color-composebox-button);
|
|
|
|
border-radius: 3px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
opacity: 0;
|
|
|
|
transition:
|
|
|
|
opacity 0.4s ease-in,
|
|
|
|
color 0.1s ease-in,
|
|
|
|
background-color 0.1s ease-in;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-composebox-button-background-hover);
|
|
|
|
color: var(--color-composebox-button-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
outline: 2px solid var(--color-outline-focus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-10 18:18:28 +02:00
|
|
|
.collapse-composebox-button,
|
|
|
|
.maximize-composebox-button {
|
2024-04-23 01:28:39 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-textarea,
|
|
|
|
#preview-message-area-container {
|
|
|
|
grid-area: message-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-textarea,
|
|
|
|
#preview_message_area {
|
|
|
|
margin-right: calc(var(--composebox-buttons-width) * -1);
|
|
|
|
padding-right: var(--composebox-buttons-width);
|
2024-08-01 18:51:18 +02:00
|
|
|
background-color: var(--color-compose-message-content-background);
|
2024-07-16 20:36:18 +02:00
|
|
|
color: var(--color-text-default);
|
2023-11-01 21:40:50 +01:00
|
|
|
}
|
|
|
|
|
2024-05-18 10:30:24 +02:00
|
|
|
.surround-formatting-buttons-row {
|
|
|
|
/* This is to extend it under the formatting buttons
|
|
|
|
row, so that any border / box-shadow styles applied
|
|
|
|
to it surround the formatting buttons row as well. */
|
|
|
|
padding-bottom: var(--compose-formatting-buttons-row-height);
|
|
|
|
/* The extra 1px of margin-bottom is to ensure the 1px of
|
|
|
|
border-bottom shows below the formatting buttons row. */
|
|
|
|
margin-bottom: calc(
|
|
|
|
(var(--compose-formatting-buttons-row-height) + 1px) * -1
|
|
|
|
);
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
/* Flatten the bottom edge of the textarea to
|
|
|
|
merge with the flat top edge of the buttons row */
|
|
|
|
border-radius: 3px 3px 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-01 21:40:50 +01:00
|
|
|
#preview-message-area-container {
|
|
|
|
/* Keep preview container invisible outside
|
|
|
|
of preview mode. */
|
|
|
|
display: none;
|
2023-11-01 20:01:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#message-send-controls-container {
|
|
|
|
grid-area: message-send-controls-container;
|
2023-11-01 20:13:52 +01:00
|
|
|
/* A columnar flex does a nice job here
|
|
|
|
holding Drafts to the top of the
|
|
|
|
container, and the send button to
|
|
|
|
the bottom--even as the compose box
|
|
|
|
expands or contracts. */
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-05-22 19:19:25 +02:00
|
|
|
/* With a columnar flex, this ensures that
|
|
|
|
send controls occupy the same space as
|
|
|
|
the adjacent textbox. */
|
|
|
|
justify-content: space-between;
|
2023-11-02 19:07:32 +01:00
|
|
|
/* We add 6px of margin to the grid-gap of
|
|
|
|
6px, for 12px of space between the Send
|
|
|
|
button and the textarea. */
|
|
|
|
margin-left: 6px;
|
2023-11-03 22:12:09 +01:00
|
|
|
|
|
|
|
@media (width < $sm_min), ((width >= $sm_min) and (width < $mc_min)) {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2023-11-01 20:01:26 +01:00
|
|
|
}
|
|
|
|
|
2023-11-01 18:43:48 +01:00
|
|
|
#message-formatting-controls-container {
|
2023-11-01 20:01:26 +01:00
|
|
|
grid-area: message-formatting-controls-container;
|
2024-05-18 10:30:24 +02:00
|
|
|
border-radius: 0 0 3px 3px;
|
|
|
|
background-color: var(--color-message-formatting-controls-container);
|
|
|
|
/* margin on either side to let the border of
|
|
|
|
.message-content-container show through. */
|
|
|
|
margin: 0 1px;
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2024-05-22 19:19:25 +02:00
|
|
|
#compose-limit-indicator:not(:empty) {
|
2021-07-07 12:13:19 +02:00
|
|
|
font-size: 12px;
|
2024-04-24 08:46:47 +02:00
|
|
|
color: var(--color-limit-indicator);
|
|
|
|
width: max-content;
|
2023-11-01 20:13:52 +01:00
|
|
|
|
2024-04-24 08:46:47 +02:00
|
|
|
/* Keep the limit indicator just above
|
2024-05-22 19:19:25 +02:00
|
|
|
and aligned with the send button.
|
|
|
|
`:not(:empty)` prevents the padding
|
|
|
|
and margin-top from affecting layout
|
|
|
|
in the controls area when no indicator
|
|
|
|
is present. */
|
2023-11-01 20:13:52 +01:00
|
|
|
margin-top: auto;
|
2024-04-24 08:46:47 +02:00
|
|
|
padding: 3px 3px 3px 0;
|
2021-07-07 12:13:19 +02:00
|
|
|
|
|
|
|
&.over_limit {
|
2024-04-24 08:46:47 +02:00
|
|
|
color: var(--color-limit-indicator-over-limit);
|
2021-07-07 12:13:19 +02:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-27 07:40:53 +02:00
|
|
|
#compose {
|
|
|
|
position: fixed;
|
2020-08-06 02:42:07 +02:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2022-11-16 20:00:48 +01:00
|
|
|
z-index: 4;
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#compose-container {
|
2022-02-14 17:43:32 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2016-10-27 07:40:53 +02:00
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
2022-02-01 14:29:57 +01:00
|
|
|
#compose_top {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2023-05-25 21:49:18 +02:00
|
|
|
align-items: flex-start;
|
2023-11-01 20:01:26 +01:00
|
|
|
/* Matched to 6px grid-gap on .messagebox grid. */
|
|
|
|
padding-bottom: 6px;
|
|
|
|
/* Align to compose controls; that's 112px width,
|
2024-06-12 14:29:41 +02:00
|
|
|
plus 6px of grid gap for 118px here. */
|
|
|
|
margin-right: calc(var(--compose-send-controls-width) + 6px);
|
2021-05-17 13:15:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#compose_close {
|
2024-06-12 14:29:41 +02:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
color: var(--color-compose-send-control-button);
|
|
|
|
background: transparent;
|
2024-06-24 20:38:37 +02:00
|
|
|
font-size: 12.5px;
|
2024-06-12 14:29:41 +02:00
|
|
|
font-weight: normal;
|
|
|
|
line-height: 20px;
|
|
|
|
opacity: 0.7;
|
|
|
|
border: 0;
|
2024-06-24 20:38:37 +02:00
|
|
|
padding: 3px 7px;
|
2024-06-12 14:29:41 +02:00
|
|
|
border-radius: 8px;
|
|
|
|
vertical-align: unset;
|
|
|
|
text-shadow: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
background: var(--color-compose-embedded-button-background-hover);
|
|
|
|
color: var(--color-compose-send-control-button-interactive);
|
|
|
|
}
|
2024-06-19 19:34:00 +02:00
|
|
|
|
2024-06-24 20:38:37 +02:00
|
|
|
&:active {
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-embedded-button-background-interactive
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-06-19 19:34:00 +02:00
|
|
|
&:focus:not(:focus-visible) {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
2024-06-28 22:44:17 +02:00
|
|
|
outline-color: var(--color-compose-focus-ring);
|
2024-06-19 19:34:00 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2023-05-20 01:23:33 +02:00
|
|
|
.main-view-banner {
|
2022-08-19 21:36:33 +02:00
|
|
|
margin-bottom: 20px;
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 1px solid;
|
|
|
|
display: flex;
|
2023-10-06 19:39:16 +02:00
|
|
|
align-items: center;
|
2024-06-10 22:55:39 +02:00
|
|
|
/* Banners should carry at least a minimum
|
|
|
|
legacy font-size of 15px, and a line-height
|
|
|
|
of 18px. 1.2em is 18px at 15px/1em. */
|
|
|
|
font-size: max(15px, var(--base-font-size-px));
|
|
|
|
line-height: max(18px, 1.2em);
|
2022-08-19 21:36:33 +02:00
|
|
|
|
2023-09-13 20:54:12 +02:00
|
|
|
.main-view-banner-elements-wrapper {
|
|
|
|
display: flex;
|
2023-10-06 19:39:16 +02:00
|
|
|
align-items: center;
|
2023-09-13 20:54:12 +02:00
|
|
|
/* Allow this flex container to grow or
|
|
|
|
shrink to fit the outer container. */
|
|
|
|
flex: 1 1 auto;
|
|
|
|
/* Allow items to wrap; this supports an
|
|
|
|
intrinsic layout for banner text and
|
|
|
|
buttons, which will always occupy the
|
|
|
|
space available, without our having
|
|
|
|
to fiddle with tons of media queries. */
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2023-10-06 23:07:46 +02:00
|
|
|
& .banner_content {
|
|
|
|
/* Override Bootstrap when .banner_content is
|
|
|
|
a paragraph element. */
|
|
|
|
margin: 0;
|
2022-08-19 21:36:33 +02:00
|
|
|
/* 5px right padding + 10px left-margin of the neighbouring button will match the left padding */
|
2023-03-15 05:52:54 +01:00
|
|
|
padding: 8px 5px 8px 15px;
|
2023-09-13 20:54:12 +02:00
|
|
|
/* The banner text uses a flex-basis of 150px,
|
|
|
|
which is roughly the width at which banner
|
|
|
|
text lines are still comfortably readable.
|
|
|
|
Still, it can grow and shrink as needed. */
|
|
|
|
flex: 1 1 150px;
|
2023-10-06 23:07:46 +02:00
|
|
|
|
|
|
|
& .banner_message {
|
|
|
|
/* Override Bootstrap when .banner_content
|
|
|
|
contains an inner .banner_message
|
|
|
|
paragraph. */
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
2023-06-06 14:37:19 +02:00
|
|
|
.main-view-banner-action-button,
|
|
|
|
.upload_banner_cancel_button {
|
2022-08-19 21:36:33 +02:00
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin-top: 4.5px;
|
|
|
|
margin-bottom: 4.5px;
|
2023-09-13 20:54:12 +02:00
|
|
|
/* Buttons take a minimum height for
|
|
|
|
when their text fits on a single
|
2024-06-10 22:55:39 +02:00
|
|
|
line. 2.1333em is 32px at 15px/1em. */
|
|
|
|
min-height: 2.1333em;
|
2023-09-13 20:54:12 +02:00
|
|
|
/* When we're larger than large mobile
|
|
|
|
scales ($ml_min), flex the button to
|
|
|
|
its max-content, i.e., all its text
|
|
|
|
on a single line. But do not grow in
|
|
|
|
order to avoid awkward, oversized
|
|
|
|
buttons within the flex group. */
|
|
|
|
flex: 0 1 max-content;
|
|
|
|
/* Use this margin-left hack to keep
|
|
|
|
the button to the righthand side of
|
|
|
|
the banner. */
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
|
|
@media (width < $ml_min) {
|
|
|
|
/* When we're smaller than large mobile
|
|
|
|
scales, we allow the button to grow,
|
|
|
|
so that it can span the full width of
|
|
|
|
narrow, mobile-scale banners as it
|
|
|
|
wraps onto a second line.
|
|
|
|
|
|
|
|
We also allow the button to shrink,
|
|
|
|
so that, for example, the text can
|
|
|
|
wrap on the schedule-message button
|
|
|
|
that appears when undoing a scheduled
|
|
|
|
message. */
|
|
|
|
flex: 1 1 max-content;
|
|
|
|
/* Use a 10px left margin to keep the
|
|
|
|
button away from the edge of the
|
|
|
|
banner box to match the banner text;
|
|
|
|
we need this only at small scales,
|
|
|
|
when the button grows to the full
|
|
|
|
width of the flex container. */
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
2022-12-12 23:10:06 +01:00
|
|
|
/* Extra margin to ensure the layout is identical when there is no
|
|
|
|
close button. */
|
|
|
|
&.right_edge {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
2023-10-06 19:39:16 +02:00
|
|
|
.main-view-banner-action-button {
|
|
|
|
/* Establish a uniform top and bottom
|
|
|
|
space around the button, which also
|
|
|
|
works with the space around the message
|
|
|
|
text. */
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
/* Make as tall as two lines of banner message
|
|
|
|
text, which have a line-height of 18px, but
|
2024-06-10 22:55:39 +02:00
|
|
|
no more. 2.4em is two 1.2em lines in the
|
|
|
|
banner area. */
|
|
|
|
max-height: 2.4em;
|
2023-10-06 19:39:16 +02:00
|
|
|
/* Keep to the top of the box, but stretch
|
|
|
|
taller based on how the box is flexing. */
|
|
|
|
min-height: 0;
|
|
|
|
align-self: stretch;
|
|
|
|
}
|
|
|
|
|
2023-05-15 19:57:31 +02:00
|
|
|
.main-view-banner-close-button {
|
2022-08-19 21:36:33 +02:00
|
|
|
text-decoration: none;
|
2024-06-10 22:55:39 +02:00
|
|
|
/* Set same top and bottom margin
|
|
|
|
as action buttons. */
|
|
|
|
margin: 8px 0;
|
2023-10-06 19:39:16 +02:00
|
|
|
padding: 0 8px;
|
|
|
|
/* Let the close button's box stretch,
|
|
|
|
but no larger than the height of the
|
|
|
|
banner box when the action button
|
|
|
|
achieves its full height (margin,
|
|
|
|
padding, and height), which keeps
|
|
|
|
the X vertically centered with it. */
|
|
|
|
align-self: stretch;
|
2024-06-10 22:55:39 +02:00
|
|
|
/* 2.4em is two 1.2em lines in the
|
|
|
|
banner area. */
|
|
|
|
max-height: 2.4em;
|
2023-10-06 19:39:16 +02:00
|
|
|
/* Display as flexbox to better control
|
|
|
|
the X icon's position. This creates
|
|
|
|
an anonymous flexbox item out of the
|
|
|
|
::before content where the icon sits. */
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-10 22:55:39 +02:00
|
|
|
|
|
|
|
/* Set the font-size for the close button
|
|
|
|
on the ::before element, so that it doesn't
|
|
|
|
impact the em units above. */
|
|
|
|
&::before {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2023-10-06 19:39:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.banner_content + .main-view-banner-close-button {
|
|
|
|
/* When there's no action button, set the max
|
|
|
|
height for the typical height of the box
|
|
|
|
when it contains only banner message text.
|
|
|
|
This will keep the action button aligned
|
2024-06-10 22:55:39 +02:00
|
|
|
with the first or only line of text.
|
|
|
|
2.2667 is 34px at 15px/1em; */
|
|
|
|
max-height: 2.2667em;
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
2022-12-07 01:33:29 +01:00
|
|
|
&.success {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(147deg 43% 92%);
|
|
|
|
border: 1px solid hsl(147deg 57% 25% / 40%);
|
|
|
|
color: hsl(147deg 57% 25%);
|
2022-12-07 01:33:29 +01:00
|
|
|
|
2023-05-15 19:57:31 +02:00
|
|
|
.main-view-banner-close-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(147deg 57% 25% / 50%);
|
2022-12-07 01:33:29 +01:00
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(147deg 57% 25%);
|
2022-12-07 01:33:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(147deg 57% 25% / 75%);
|
2022-12-07 01:33:29 +01:00
|
|
|
}
|
|
|
|
}
|
2023-05-01 14:44:41 +02:00
|
|
|
|
2023-05-15 21:58:45 +02:00
|
|
|
.main-view-banner-action-button {
|
2023-05-01 14:44:41 +02:00
|
|
|
background-color: hsl(147deg 57% 25% / 10%);
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: hsl(147deg 57% 25% / 12%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: hsl(147deg 57% 25% / 15%);
|
|
|
|
}
|
|
|
|
}
|
2022-12-07 01:33:29 +01:00
|
|
|
}
|
|
|
|
|
2023-04-13 18:40:17 +02:00
|
|
|
/* warning and warning-style classes have the same CSS; this is since
|
|
|
|
the warning class has some associated javascript which we do not want
|
|
|
|
for some of the banners, for which we use the warning-style class. */
|
|
|
|
&.warning,
|
|
|
|
&.warning-style {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(50deg 75% 92%);
|
|
|
|
border-color: hsl(38deg 44% 27% / 40%);
|
|
|
|
color: hsl(38deg 44% 27%);
|
2022-08-19 21:36:33 +02:00
|
|
|
|
2023-05-15 19:57:31 +02:00
|
|
|
.main-view-banner-close-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(38deg 44% 27% / 50%);
|
2022-08-19 21:36:33 +02:00
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(38deg 44% 27%);
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(38deg 44% 27% / 75%);
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-15 21:58:45 +02:00
|
|
|
.main-view-banner-action-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(38deg 44% 27% / 10%);
|
2022-08-19 21:36:33 +02:00
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(38deg 44% 27% / 12%);
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(38deg 44% 27% / 15%);
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-08-19 22:24:06 +02:00
|
|
|
|
|
|
|
&.error {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(4deg 35% 90%);
|
|
|
|
border-color: hsl(3deg 57% 33% / 40%);
|
|
|
|
color: hsl(4deg 58% 33%);
|
2022-08-19 22:24:06 +02:00
|
|
|
|
2023-05-15 19:57:31 +02:00
|
|
|
.main-view-banner-close-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(4deg 58% 33% / 50%);
|
2022-08-19 22:24:06 +02:00
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(4deg 58% 33%);
|
2022-08-19 22:24:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(4deg 58% 33% / 75%);
|
2022-08-19 22:24:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-15 21:58:45 +02:00
|
|
|
.main-view-banner-action-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(3deg 57% 33% / 10%);
|
2022-08-19 22:24:06 +02:00
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(3deg 57% 33% / 12%);
|
2022-08-19 22:24:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(3deg 57% 33% / 15%);
|
2022-08-19 22:24:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-09 07:43:39 +01:00
|
|
|
|
|
|
|
&.info {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(204deg 58% 92%);
|
|
|
|
border-color: hsl(204deg 49% 29% / 40%);
|
2023-01-09 07:43:39 +01:00
|
|
|
position: relative;
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(204deg 49% 29%);
|
2023-01-09 07:43:39 +01:00
|
|
|
|
2023-05-15 19:57:31 +02:00
|
|
|
.main-view-banner-close-button {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(204deg 49% 29% / 50%);
|
2023-01-09 07:43:39 +01:00
|
|
|
|
|
|
|
&:hover {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(204deg 49% 29%);
|
2023-01-09 07:43:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
2023-03-20 22:08:47 +01:00
|
|
|
color: hsl(204deg 49% 29% / 75%);
|
2023-01-09 07:43:39 +01:00
|
|
|
}
|
|
|
|
}
|
2023-05-20 01:47:08 +02:00
|
|
|
|
2023-06-06 14:37:19 +02:00
|
|
|
.main-view-banner-action-button,
|
|
|
|
.upload_banner_cancel_button {
|
2023-05-20 01:47:08 +02:00
|
|
|
background-color: hsl(204deg 49% 29% / 10%);
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: hsl(204deg 49% 29% / 12%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: hsl(204deg 49% 29% / 15%);
|
|
|
|
}
|
|
|
|
}
|
2023-01-09 07:43:39 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.upload_banner {
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.moving_bar {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
/* The progress updates seem to come every second or so,
|
|
|
|
so this is the smoothest it can probably get. */
|
2024-10-23 21:41:57 +02:00
|
|
|
transition: width 1s ease-in-out; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
2023-03-20 22:08:47 +01:00
|
|
|
background: hsl(204deg 63% 85%);
|
2023-01-09 07:43:39 +01:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2023-10-10 16:03:15 +02:00
|
|
|
|
|
|
|
/* Keep these elements visible above the
|
|
|
|
.moving_bar element on file uploads. */
|
|
|
|
.upload_msg,
|
|
|
|
.main-view-banner-close-button,
|
|
|
|
.upload_banner_cancel_button {
|
|
|
|
z-index: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
2022-08-19 21:36:33 +02:00
|
|
|
}
|
|
|
|
|
2016-10-27 07:40:53 +02:00
|
|
|
.composition-area {
|
|
|
|
position: relative;
|
2021-05-17 13:15:11 +02:00
|
|
|
flex: 1;
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2023-02-16 11:14:13 +01:00
|
|
|
@keyframes message-limit-flash {
|
|
|
|
0% {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
2023-03-20 22:08:47 +01:00
|
|
|
box-shadow: 0 0 0 1pt hsl(0deg 76% 65%);
|
2023-02-16 11:14:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-27 07:40:53 +02:00
|
|
|
textarea.new_message_textarea {
|
|
|
|
display: table-cell;
|
2024-07-30 17:49:21 +02:00
|
|
|
padding: 5px 5px 0;
|
2016-10-27 07:40:53 +02:00
|
|
|
height: 1.5em;
|
|
|
|
max-height: 22em;
|
2024-04-22 19:03:08 +02:00
|
|
|
margin: 0;
|
2024-06-10 18:18:28 +02:00
|
|
|
resize: none !important;
|
2024-05-18 10:30:24 +02:00
|
|
|
border-radius: 3px 3px 0 0;
|
|
|
|
border: none;
|
2024-04-23 01:28:39 +02:00
|
|
|
scrollbar-width: thin;
|
|
|
|
scrollbar-color: hsl(0deg 0% 50%) transparent;
|
2024-05-18 10:30:24 +02:00
|
|
|
box-shadow: none;
|
2021-07-07 12:13:19 +02:00
|
|
|
|
2024-05-18 10:30:24 +02:00
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
2021-07-07 12:13:19 +02:00
|
|
|
}
|
2022-11-29 18:47:34 +01:00
|
|
|
|
|
|
|
&:read-only,
|
|
|
|
&:disabled {
|
2023-03-20 22:08:47 +01:00
|
|
|
background-color: hsl(0deg 0% 93%);
|
2022-11-29 18:47:34 +01:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2024-05-18 10:30:24 +02:00
|
|
|
#message-content-container,
|
2023-10-03 18:18:55 +02:00
|
|
|
#compose_recipient_box {
|
2023-05-25 18:28:23 +02:00
|
|
|
color: var(--color-text-default);
|
2016-12-02 01:36:40 +01:00
|
|
|
}
|
|
|
|
|
2023-10-03 18:18:55 +02:00
|
|
|
#compose_recipient_box {
|
2024-02-16 10:00:54 +01:00
|
|
|
display: grid;
|
2024-06-11 16:43:49 +02:00
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2024-02-16 10:00:54 +01:00
|
|
|
align-items: stretch;
|
2023-10-03 18:18:55 +02:00
|
|
|
flex: 1 1 0;
|
2024-10-30 17:56:00 +01:00
|
|
|
border: 1px solid var(--color-compose-recipient-box-border-color);
|
2016-10-27 07:40:53 +02:00
|
|
|
border-radius: 3px;
|
2024-10-23 21:41:16 +02:00
|
|
|
transition: border-color 0.2s ease;
|
2024-10-30 17:56:00 +01:00
|
|
|
background: var(--color-compose-recipient-box-background-color);
|
2023-10-03 18:18:55 +02:00
|
|
|
|
|
|
|
/* Give the recipient box, a `<div>`, the
|
|
|
|
correct styles when focus is in the
|
|
|
|
#stream_message_recipient_topic `<input>` */
|
|
|
|
&:focus-within {
|
2024-10-30 17:56:00 +01:00
|
|
|
border-color: var(--color-compose-recipient-box-has-focus);
|
2023-10-03 18:18:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#stream_message_recipient_topic,
|
|
|
|
#recipient_box_clear_topic_button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles for input in the recipient_box */
|
|
|
|
#stream_message_recipient_topic {
|
2024-02-16 10:00:54 +01:00
|
|
|
/* Override grid's effective `max-content` min-width */
|
2023-10-03 18:18:55 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
padding: 4px 6px;
|
2024-02-16 10:00:54 +01:00
|
|
|
/* Reset height to let `align-items: stretch` on the grid parent handle this. */
|
|
|
|
height: auto;
|
2023-10-03 18:18:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles for new conversation button in the recipient_box */
|
|
|
|
#recipient_box_clear_topic_button {
|
|
|
|
/* Set the border radius smaller, relative to the parent */
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 6px;
|
|
|
|
margin: 1px;
|
2023-10-05 18:09:38 +02:00
|
|
|
color: var(--color-compose-embedded-button-text-color);
|
2023-10-03 18:18:55 +02:00
|
|
|
|
|
|
|
.zulip-icon {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2023-10-05 18:09:38 +02:00
|
|
|
background-color: var(
|
|
|
|
--color-compose-embedded-button-background-hover
|
|
|
|
);
|
|
|
|
color: var(--color-compose-embedded-button-text-color-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
2023-10-03 18:18:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-24 01:04:10 +02:00
|
|
|
#stream_message_recipient_topic:placeholder-shown
|
|
|
|
+ #recipient_box_clear_topic_button {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-10-03 18:18:55 +02:00
|
|
|
/* This will reset the bootstrap margin-bottom: 10px value for the inputs */
|
|
|
|
& input {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2023-05-07 14:45:04 +02:00
|
|
|
#compose_select_recipient_widget {
|
|
|
|
width: auto;
|
2023-05-14 11:06:17 +02:00
|
|
|
outline: none;
|
2024-10-30 17:56:00 +01:00
|
|
|
/* We override the component-level colors to
|
|
|
|
ensure concord with the topic box. */
|
|
|
|
color: var(--color-compose-recipient-box-text-color);
|
|
|
|
background-color: var(--color-compose-recipient-box-background-color);
|
|
|
|
border-color: var(--color-compose-recipient-box-border-color);
|
2023-05-25 18:09:39 +02:00
|
|
|
|
|
|
|
&.dropdown-widget-button {
|
|
|
|
padding: 0 6px;
|
2024-02-04 18:55:46 +01:00
|
|
|
border-radius: 4px;
|
2023-05-25 18:09:39 +02:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#private_message_recipient.recipient_box {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-11-02 16:26:32 +01:00
|
|
|
.compose-send-or-save-button {
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 0;
|
2020-08-11 08:11:14 +02:00
|
|
|
margin-bottom: 0;
|
2023-11-02 16:26:32 +01:00
|
|
|
color: var(--color-compose-send-button-icon-color);
|
|
|
|
background-color: var(--color-compose-send-button-background);
|
|
|
|
|
|
|
|
&:active {
|
2024-10-23 21:41:16 +02:00
|
|
|
transition: transform 80ms;
|
2023-11-02 16:26:32 +01:00
|
|
|
transform: scale(0.96);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
border: 1px solid var(--color-compose-send-button-focus-border);
|
|
|
|
box-shadow: 0 0 5px var(--color-compose-send-button-focus-shadow);
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-send-button-background-interactive
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(
|
|
|
|
--color-compose-send-button-background-interactive
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose-send-button {
|
|
|
|
width: 74px;
|
2024-07-01 22:34:08 +02:00
|
|
|
height: var(--compose-formatting-buttons-row-height);
|
2023-11-02 16:26:32 +01:00
|
|
|
/* Allow to grow but not shrink */
|
|
|
|
flex: 1 0 auto;
|
|
|
|
/* Override inherited styles
|
|
|
|
so that flexbox can do the
|
|
|
|
job of positioning the icon. */
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-11-02 19:07:32 +01:00
|
|
|
/* Flex items respect z-index values;
|
|
|
|
this is needed to keep the send
|
|
|
|
button over top of the vdots
|
|
|
|
background */
|
|
|
|
z-index: 1;
|
2023-11-02 16:26:32 +01:00
|
|
|
|
2023-11-03 22:12:09 +01:00
|
|
|
@media (width < $sm_min), ((width >= $sm_min) and (width < $mc_min)) {
|
2023-11-10 20:50:19 +01:00
|
|
|
/* Drop to a square button,
|
|
|
|
and don't flex any wider. */
|
|
|
|
width: 30px;
|
|
|
|
flex-grow: 0;
|
2023-11-03 22:12:09 +01:00
|
|
|
}
|
|
|
|
|
2023-11-02 16:26:32 +01:00
|
|
|
.zulip-icon-send {
|
|
|
|
display: block;
|
|
|
|
font-size: 17px;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
2021-11-30 06:26:05 +01:00
|
|
|
|
|
|
|
.loader {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-08-11 08:11:14 +02:00
|
|
|
}
|
|
|
|
|
2021-12-10 09:07:42 +01:00
|
|
|
.enter_sends_choices {
|
2024-06-26 17:43:20 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
color: var(--color-text-popover-menu);
|
|
|
|
|
2021-12-10 09:07:42 +01:00
|
|
|
.enter_sends_choice {
|
|
|
|
display: flex;
|
|
|
|
gap: 8px;
|
2024-06-26 17:43:20 +02:00
|
|
|
padding: 4px 10px;
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-background-hover-popover-menu);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var(--color-background-active-popover-menu);
|
|
|
|
}
|
2021-12-10 09:07:42 +01:00
|
|
|
|
2024-10-02 11:17:55 +02:00
|
|
|
&:focus-visible {
|
|
|
|
background: var(--color-background-hover-popover-menu);
|
|
|
|
border-radius: 4px;
|
|
|
|
outline: 1px solid var(--color-outline-focus) !important;
|
|
|
|
outline-offset: -1px;
|
|
|
|
}
|
|
|
|
|
2024-06-26 17:43:20 +02:00
|
|
|
& .enter_sends_choice_radio {
|
2022-11-22 11:15:03 +01:00
|
|
|
width: auto;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 4px 0 0;
|
2024-06-26 17:43:20 +02:00
|
|
|
accent-color: hsl(217deg 100% 60%);
|
2022-11-22 11:15:03 +01:00
|
|
|
|
|
|
|
&:focus {
|
2023-03-20 22:08:47 +01:00
|
|
|
outline: 1px dotted hsl(0deg 0% 20%);
|
2022-11-22 11:15:03 +01:00
|
|
|
outline: 5px auto -webkit-focus-ring-color;
|
|
|
|
outline-offset: -2px;
|
|
|
|
}
|
2021-12-10 09:07:42 +01:00
|
|
|
|
2024-06-26 17:43:20 +02:00
|
|
|
&:checked
|
|
|
|
+ .enter_sends_choice_text_container
|
|
|
|
.popover-menu-hotkey-hint {
|
|
|
|
color: hsl(217deg 100% 60%);
|
|
|
|
border: 1px solid hsl(217deg 100% 60% / 50%);
|
|
|
|
}
|
2021-12-10 09:07:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-26 17:43:20 +02:00
|
|
|
.enter_sends_choice_text_container {
|
2021-12-10 09:07:42 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-06-26 17:43:20 +02:00
|
|
|
flex-shrink: 0;
|
|
|
|
gap: 3px;
|
|
|
|
white-space: nowrap;
|
2021-12-10 09:07:42 +01:00
|
|
|
}
|
|
|
|
|
2024-06-26 17:43:20 +02:00
|
|
|
.enter_sends_choice_text {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popover-menu-hotkey-hints {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.popover-menu-hotkey-hint {
|
|
|
|
padding: 2px 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.enter_sends_major {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.enter_sends_minor {
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
.popover-menu-hotkey-hint {
|
|
|
|
font-size: 12px;
|
|
|
|
padding: 1px 4px;
|
|
|
|
}
|
2021-12-10 09:07:42 +01:00
|
|
|
}
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2023-11-06 20:15:45 +01:00
|
|
|
.drafts-item-in-popover {
|
|
|
|
display: none;
|
|
|
|
/* Only show the Drafts item in the popover when it's not visible
|
|
|
|
in the compose box. */
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-06-26 17:43:20 +02:00
|
|
|
|
|
|
|
.unread_count {
|
|
|
|
margin: 1px 0 0 6px;
|
|
|
|
border: 0.5px solid var(--color-border-unread-counter);
|
|
|
|
background-color: unset;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2023-11-06 20:15:45 +01:00
|
|
|
}
|
|
|
|
|
2023-04-15 03:35:23 +02:00
|
|
|
#compose-recipient {
|
2018-03-31 01:46:43 +02:00
|
|
|
display: flex;
|
2023-10-03 18:18:55 +02:00
|
|
|
flex: 1 1 0;
|
2023-05-25 18:09:39 +02:00
|
|
|
/* Use this containing flex element to
|
|
|
|
establish the minimum height of all its
|
|
|
|
children; the default `align-items: stretch`
|
|
|
|
(which is set on any flexbox without specifying
|
|
|
|
it) ensures that the child flex items will
|
|
|
|
always stretch to fit the height set here;
|
|
|
|
larger heights, such as on group-DM pills,
|
|
|
|
will allow this to grow as needed.
|
|
|
|
Child flex items like chevrons take
|
|
|
|
`align-self: center` to center only
|
|
|
|
themselves, where necessary. */
|
|
|
|
min-height: var(--compose-recipient-box-min-height);
|
2024-04-05 16:34:48 +02:00
|
|
|
min-width: 0;
|
2018-07-11 18:29:48 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 18:43:48 +01:00
|
|
|
.compose-control-buttons-container {
|
2021-11-12 06:29:37 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2023-06-22 17:31:32 +02:00
|
|
|
.compose_control_button {
|
2024-07-01 22:33:49 +02:00
|
|
|
/* 22px at 14px/1em */
|
|
|
|
font-size: 1.5714em;
|
|
|
|
/* Coordinate with the value of
|
|
|
|
--compose-formatting-buttons-row-height */
|
|
|
|
/* 28px at 22px/1em */
|
|
|
|
height: 1.2727em;
|
|
|
|
/* 30px at 22px/1em */
|
|
|
|
width: 1.3636em;
|
2023-11-19 22:23:37 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-06-22 17:31:32 +02:00
|
|
|
opacity: 0.7;
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
2024-05-18 10:30:24 +02:00
|
|
|
background-color: var(
|
|
|
|
--color-compose-control-button-background-hover
|
|
|
|
);
|
2023-06-22 17:31:32 +02:00
|
|
|
}
|
2024-06-19 19:34:00 +02:00
|
|
|
|
|
|
|
&:focus:not(:focus-visible) {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-visible {
|
2024-06-28 22:44:17 +02:00
|
|
|
outline-color: var(--color-compose-focus-ring);
|
2024-06-19 19:34:00 +02:00
|
|
|
}
|
2021-11-12 06:29:37 +01:00
|
|
|
}
|
|
|
|
|
2022-07-16 14:40:59 +02:00
|
|
|
.compose_control_button_container.disabled-on-hover:hover {
|
|
|
|
opacity: 0.3;
|
|
|
|
|
|
|
|
.compose_control_button {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 13:15:03 +01:00
|
|
|
.fa-eye {
|
|
|
|
position: relative;
|
|
|
|
top: -0.7px;
|
|
|
|
}
|
|
|
|
|
2021-11-23 19:01:36 +01:00
|
|
|
.compose_control_menu {
|
2023-09-01 19:51:02 +02:00
|
|
|
padding: 0 1px;
|
2024-07-01 22:33:49 +02:00
|
|
|
/* 18px at 14px/1em */
|
|
|
|
font-size: 1.2957em;
|
|
|
|
/* Coordinate with the value of
|
|
|
|
--compose-formatting-buttons-row-height */
|
|
|
|
/* 28px at 18px/1em */
|
|
|
|
height: 1.5556em;
|
2021-11-23 19:01:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.compose_control_menu_wrapper {
|
2024-05-21 07:11:28 +02:00
|
|
|
/* Since `compose_control_menu_wrapper` is the reference for the tippy popover, it is
|
|
|
|
important to set it's display correctly so that tippy knows when to hide / show popover
|
|
|
|
on window resize. */
|
|
|
|
display: none;
|
2022-03-08 07:22:44 +01:00
|
|
|
opacity: 0.7;
|
2021-11-23 19:01:36 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2022-03-08 07:22:44 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.compose_control_menu {
|
|
|
|
opacity: 1;
|
2023-11-20 12:34:13 +01:00
|
|
|
display: none;
|
2024-05-21 07:11:28 +02:00
|
|
|
}
|
2021-11-23 19:01:36 +01:00
|
|
|
}
|
|
|
|
|
2021-11-13 05:44:28 +01:00
|
|
|
.divider {
|
2023-03-24 00:09:48 +01:00
|
|
|
color: hsl(0deg 0% 75%);
|
2024-07-01 22:33:49 +02:00
|
|
|
/* 20px at 14px/1em */
|
|
|
|
font-size: 1.4286em;
|
2021-11-13 05:44:28 +01:00
|
|
|
margin: 0 3px;
|
2024-07-01 22:33:49 +02:00
|
|
|
/* Coordinate with the value of
|
|
|
|
--compose-formatting-buttons-row-height */
|
|
|
|
/* 28px at 20px/1em */
|
|
|
|
height: 1.4em;
|
2024-07-09 21:15:35 +02:00
|
|
|
|
|
|
|
@media (width < 400px) {
|
|
|
|
/* Remove at mobile widths to make more space
|
|
|
|
for compose buttons */
|
|
|
|
display: none;
|
|
|
|
}
|
2021-11-13 05:44:28 +01:00
|
|
|
}
|
2022-02-03 12:53:14 +01:00
|
|
|
|
|
|
|
.compose_draft_button {
|
|
|
|
font-size: 15px;
|
|
|
|
font-weight: 600;
|
2023-03-27 12:47:59 +02:00
|
|
|
font-family: "Source Sans 3 VF", sans-serif;
|
2022-02-18 14:50:59 +01:00
|
|
|
padding: 0 5px;
|
2022-02-21 13:15:03 +01:00
|
|
|
position: relative;
|
|
|
|
top: 0.7px;
|
2022-02-03 12:53:14 +01:00
|
|
|
}
|
2022-02-03 12:54:49 +01:00
|
|
|
|
|
|
|
.compose_help_button {
|
2022-02-18 14:51:25 +01:00
|
|
|
font-size: 20px;
|
|
|
|
line-height: 17px;
|
2022-02-03 12:54:49 +01:00
|
|
|
}
|
2023-11-20 12:34:13 +01:00
|
|
|
|
|
|
|
.show_popover_buttons {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
|
|
|
|
.show_popover_buttons_2 {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2024-07-04 19:05:34 +02:00
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
|
2024-07-04 19:05:34 +02:00
|
|
|
&.show_in_popover {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
|
2024-07-04 19:05:34 +02:00
|
|
|
.less-dense-mode {
|
|
|
|
.compose-control-buttons-container {
|
|
|
|
.compose_control_menu_wrapper {
|
|
|
|
/* The media query below handles the hiding and showing of the
|
|
|
|
vdot menu icon, so that it is hidden when all compose buttons fit
|
|
|
|
in the main row below the compose box. So, this is the same as
|
|
|
|
the media query for .show_popover_buttons. */
|
2024-07-22 20:20:02 +02:00
|
|
|
@media (((width < 1418px) and (width >= $xl_min)) or (width < 1178px)) {
|
2024-07-04 19:05:34 +02:00
|
|
|
display: block;
|
|
|
|
|
|
|
|
.compose_control_menu {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show_popover_buttons {
|
|
|
|
/* We use this class for the div containing those compose buttons, which
|
|
|
|
we hide and show in a popover instead when they no longer fit in a
|
|
|
|
single row. The media query below handles the hiding and showing of the
|
|
|
|
buttons from the main row of compose buttons below the compose box. */
|
2024-07-22 20:20:02 +02:00
|
|
|
@media (((width < 1418px) and (width >= $xl_min)) or (width < 1178px)) {
|
2024-07-04 19:05:34 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show_popover_buttons_2 {
|
|
|
|
/* This is similar to show_popover_buttons, but it's only for those
|
|
|
|
compose buttons that we hide, and show in the popover only when the
|
|
|
|
screen gets extremely narrow. */
|
2024-07-22 20:20:02 +02:00
|
|
|
@media ((width < 596px) or ((width < 939px) and (width >= $md_min))) {
|
2024-07-04 19:05:34 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.show_in_popover {
|
|
|
|
/* This is to show the popover 2 buttons in the popover, only when
|
|
|
|
they are hidden in the main row below the compose box. */
|
2024-07-22 20:20:02 +02:00
|
|
|
@media ((width < 596px) or ((width < 939px) and (width >= $md_min))) {
|
2024-07-04 19:05:34 +02:00
|
|
|
display: flex;
|
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
}
|
2024-07-09 21:15:35 +02:00
|
|
|
|
|
|
|
.compose_control_button {
|
|
|
|
/* Slightly reduce width so that buttons don't overflow the available
|
|
|
|
space at mobile widths */
|
|
|
|
@media (width < 400px) {
|
|
|
|
width: 1.28em;
|
|
|
|
}
|
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
}
|
2024-07-04 19:05:34 +02:00
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
|
2024-07-04 19:05:34 +02:00
|
|
|
.more-dense-mode {
|
|
|
|
.compose-control-buttons-container {
|
|
|
|
.compose_control_menu_wrapper {
|
|
|
|
@media (((width < $cb1_min) and (width >= $xl_min)) or ((width < $cb2_min) and (width >= $md_min)) or (width < $cb4_min)) {
|
|
|
|
display: block;
|
2023-11-22 01:38:46 +01:00
|
|
|
|
2024-07-04 19:05:34 +02:00
|
|
|
.compose_control_menu {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-11-22 08:25:31 +01:00
|
|
|
|
2024-07-04 19:05:34 +02:00
|
|
|
.show_popover_buttons {
|
|
|
|
@media (((width < $cb1_min) and (width >= $xl_min)) or ((width < $cb2_min) and (width >= $md_min)) or (width < $cb4_min)) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.show_popover_buttons_2 {
|
|
|
|
@media ((width < $cb5_min) or ((width < $cb3_min) and (width >= $md_min))) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.show_in_popover {
|
|
|
|
@media ((width < $cb5_min) or ((width < $cb3_min) and (width >= $md_min))) {
|
|
|
|
display: flex;
|
|
|
|
}
|
2023-11-22 01:38:46 +01:00
|
|
|
}
|
|
|
|
}
|
2021-11-12 06:29:37 +01:00
|
|
|
}
|
|
|
|
|
2023-11-01 18:16:47 +01:00
|
|
|
.message-send-controls {
|
2021-11-12 06:29:37 +01:00
|
|
|
display: flex;
|
2023-04-23 14:18:48 +02:00
|
|
|
|
2023-11-03 22:12:09 +01:00
|
|
|
@media (width < $sm_min) {
|
|
|
|
/* At small widths, we display the
|
|
|
|
diminutive Send button and vdots
|
|
|
|
in a column, using `column-reverse`
|
|
|
|
to put the vdots above Send. */
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
|
2023-11-01 18:16:47 +01:00
|
|
|
&.disabled-message-send-controls {
|
2023-04-23 14:18:48 +02:00
|
|
|
& button {
|
|
|
|
pointer-events: none;
|
2024-04-15 08:44:30 +02:00
|
|
|
opacity: 0.5;
|
2023-11-03 21:04:57 +01:00
|
|
|
}
|
2023-04-23 14:18:48 +02:00
|
|
|
}
|
2021-03-19 13:21:18 +01:00
|
|
|
}
|
|
|
|
|
2016-10-27 07:40:53 +02:00
|
|
|
.drag {
|
|
|
|
display: none;
|
|
|
|
height: 18px;
|
|
|
|
width: 100%;
|
|
|
|
top: 23px;
|
|
|
|
position: relative;
|
|
|
|
cursor: ns-resize;
|
|
|
|
}
|
|
|
|
|
2019-02-05 14:44:16 +01:00
|
|
|
.preview_message_area {
|
2024-07-30 17:49:21 +02:00
|
|
|
padding: 5px 5px 0;
|
2016-10-27 07:40:53 +02:00
|
|
|
overflow: auto;
|
|
|
|
|
2024-05-18 10:30:24 +02:00
|
|
|
border-radius: 3px 3px 0 0;
|
2016-10-27 07:40:53 +02:00
|
|
|
}
|
|
|
|
|
2021-04-20 19:50:01 +02:00
|
|
|
.markdown_preview_spinner {
|
2016-10-27 07:40:53 +02:00
|
|
|
margin: auto;
|
|
|
|
}
|
2017-12-11 11:39:49 +01:00
|
|
|
|
2023-07-19 16:09:53 +02:00
|
|
|
#compose_select_recipient_widget_wrapper {
|
2022-10-21 00:44:55 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-start;
|
2023-05-25 21:49:18 +02:00
|
|
|
height: var(--compose-recipient-box-min-height);
|
2022-10-21 00:44:55 +02:00
|
|
|
|
2024-10-30 17:56:37 +01:00
|
|
|
&:focus-visible {
|
|
|
|
outline: 0;
|
|
|
|
|
|
|
|
#compose_select_recipient_widget {
|
|
|
|
border-color: var(--color-compose-recipient-box-has-focus);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-19 16:09:53 +02:00
|
|
|
.dropdown_widget_value {
|
2022-10-21 00:44:55 +02:00
|
|
|
flex-grow: 1;
|
2023-02-13 22:59:13 +01:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2023-05-25 18:28:23 +02:00
|
|
|
color: var(--color-text-default);
|
2023-05-10 10:42:00 +02:00
|
|
|
|
|
|
|
.stream-privacy-type-icon {
|
|
|
|
font-size: 13px;
|
|
|
|
width: 13px;
|
|
|
|
height: 13px;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
}
|
2022-10-21 00:44:55 +02:00
|
|
|
}
|
|
|
|
|
2024-02-20 21:49:28 +01:00
|
|
|
.zulip-icon-chevron-down {
|
2022-10-21 00:44:55 +02:00
|
|
|
padding-left: 5px;
|
2024-03-25 08:42:02 +01:00
|
|
|
color: var(--color-compose-chevron-arrow);
|
2022-10-21 00:44:55 +02:00
|
|
|
font-weight: lighter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-02 16:26:32 +01:00
|
|
|
/* Class for send-area buttons, such as
|
|
|
|
Drafts and the send-adjacent vdots */
|
2023-11-14 15:46:37 +01:00
|
|
|
.send-control-button {
|
2023-11-02 16:26:32 +01:00
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 4px;
|
2023-11-14 15:46:37 +01:00
|
|
|
color: var(--color-compose-send-control-button);
|
|
|
|
background-color: var(--color-compose-send-control-button-background);
|
2023-11-02 16:26:32 +01:00
|
|
|
font-weight: 450;
|
|
|
|
|
|
|
|
&:active {
|
2024-10-23 21:41:16 +02:00
|
|
|
transition: transform 80ms;
|
2023-11-02 16:26:32 +01:00
|
|
|
transform: scale(0.96);
|
|
|
|
}
|
|
|
|
|
2024-06-19 19:34:00 +02:00
|
|
|
&:focus:not(:focus-visible) {
|
|
|
|
outline: none;
|
2023-11-02 16:26:32 +01:00
|
|
|
}
|
|
|
|
|
2023-11-02 19:07:32 +01:00
|
|
|
&:focus-visible {
|
2024-06-28 22:44:17 +02:00
|
|
|
outline-color: var(--color-compose-focus-ring);
|
2023-11-02 19:07:32 +01:00
|
|
|
}
|
|
|
|
|
2023-11-02 16:26:32 +01:00
|
|
|
&:hover {
|
|
|
|
/* We need to use !important here, regrettably, to keep the default
|
|
|
|
dark-mode hover colors from showing. */
|
2023-11-14 15:46:37 +01:00
|
|
|
color: var(--color-compose-send-control-button-interactive) !important;
|
2023-11-02 16:26:32 +01:00
|
|
|
background-color: var(
|
2023-11-14 15:46:37 +01:00
|
|
|
--color-compose-send-control-button-background-interactive
|
2023-11-02 16:26:32 +01:00
|
|
|
);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-02 19:07:32 +01:00
|
|
|
/* vdots icon located next to `Send` button which shows
|
2023-04-14 21:34:41 +02:00
|
|
|
options to schedule the message. */
|
|
|
|
#send_later {
|
2023-05-02 19:04:39 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-11-02 19:07:32 +01:00
|
|
|
justify-content: center;
|
|
|
|
width: 40px;
|
|
|
|
/* Allow to grow but not shrink */
|
|
|
|
flex: 1 0 auto;
|
2024-07-01 22:34:08 +02:00
|
|
|
height: var(--compose-formatting-buttons-row-height);
|
2023-11-02 19:07:32 +01:00
|
|
|
/* Make the vdots appear to extend from
|
|
|
|
beneath the send button when an
|
2023-11-14 16:09:13 +01:00
|
|
|
interactive background is present.
|
|
|
|
Compensatory padding for this negative
|
|
|
|
margin is handled on the vdots icon
|
|
|
|
below, so as to make for a maximum
|
|
|
|
clickable vdots area. */
|
2023-11-02 19:07:32 +01:00
|
|
|
margin-left: -4px;
|
2023-04-14 21:34:41 +02:00
|
|
|
border-radius: 0 4px 4px 0;
|
2023-11-02 19:07:32 +01:00
|
|
|
/* Flex items respect z-index values;
|
|
|
|
this is needed to keep the vdots
|
|
|
|
background beneath the send button. */
|
|
|
|
z-index: 0;
|
|
|
|
|
|
|
|
&:focus-visible {
|
|
|
|
/* Use a border, not an outline, to preserve the
|
|
|
|
conjoined layout with the Send button. Flexbox
|
|
|
|
will handle the dimension change, so there won't
|
|
|
|
be any movement of the vdots in this state. */
|
|
|
|
outline: 0;
|
2024-06-28 22:44:17 +02:00
|
|
|
border: 2px solid var(--color-compose-focus-ring);
|
2023-11-02 19:07:32 +01:00
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
|
2023-11-03 22:12:09 +01:00
|
|
|
@media ((width >= $sm_min) and (width < $mc_min)) {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
/* Drop to a square, rounded button. */
|
2023-11-10 20:50:19 +01:00
|
|
|
width: 30px;
|
2024-05-22 19:20:12 +02:00
|
|
|
/* This reduces the vdots button so that
|
|
|
|
it and the send button fit within the
|
2024-05-18 10:30:24 +02:00
|
|
|
53px height the compose textarea occupies,
|
|
|
|
including its top border. */
|
|
|
|
height: 25px;
|
2023-11-03 22:12:09 +01:00
|
|
|
margin-left: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2023-04-27 19:43:08 +02:00
|
|
|
.zulip-icon {
|
2023-11-14 16:09:13 +01:00
|
|
|
padding: 5px 0 5px 4px;
|
2024-07-01 22:34:08 +02:00
|
|
|
/* 17px at 14px/1em */
|
|
|
|
font-size: 1.2143em;
|
2023-11-14 16:09:13 +01:00
|
|
|
flex-grow: 1;
|
2024-05-22 19:20:12 +02:00
|
|
|
|
|
|
|
@media (width < $sm_min) {
|
|
|
|
/* Keep vdots centered above the
|
|
|
|
Send button at smallest sizes. */
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2023-05-02 19:04:39 +02:00
|
|
|
}
|
2023-11-02 19:07:32 +01:00
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
|
2023-11-02 19:07:32 +01:00
|
|
|
#compose-drafts-button {
|
2023-11-10 23:04:42 +01:00
|
|
|
/* Use border-box sizing to make
|
|
|
|
width calculations more predictable
|
|
|
|
in a flex context. */
|
|
|
|
box-sizing: border-box;
|
2023-11-02 19:07:32 +01:00
|
|
|
/* In a columnar flex, we need to
|
|
|
|
use alignment to keep the Drafts
|
|
|
|
button from expanding the full
|
|
|
|
width of the column. */
|
|
|
|
align-self: flex-start;
|
|
|
|
/* Keep the Drafts button text
|
|
|
|
aligned with the Send button's
|
|
|
|
lefthand edge */
|
|
|
|
padding: 0 8px;
|
|
|
|
margin-left: -8px;
|
2023-11-10 23:04:42 +01:00
|
|
|
/* Allow the button to occupy as much
|
|
|
|
as 100% of the container width, plus
|
|
|
|
the 8px from the negative left margin. */
|
|
|
|
max-width: calc(100% + 8px);
|
2024-02-07 08:14:58 +01:00
|
|
|
display: flex;
|
2024-04-01 18:56:37 +02:00
|
|
|
gap: 2px;
|
2024-02-07 08:14:58 +01:00
|
|
|
|
|
|
|
.compose-drafts-text {
|
|
|
|
/* Set an ellipsis when the translated
|
|
|
|
version of `Drafts` exceeds the width,
|
|
|
|
and keep button text to a single line. */
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2023-11-03 22:12:09 +01:00
|
|
|
|
|
|
|
@media (width < $mc_min) {
|
2024-04-01 18:51:54 +02:00
|
|
|
/* Reduce the padding on the sides so the
|
|
|
|
button's edge isn't too close to the textarea */
|
|
|
|
margin-left: -3px;
|
|
|
|
max-width: calc(100% + 3px);
|
2023-11-10 20:50:19 +01:00
|
|
|
/* Align the `Drafts` text with the
|
|
|
|
send icon below. */
|
2024-04-01 18:51:54 +02:00
|
|
|
padding: 0 3px;
|
2023-11-03 22:12:09 +01:00
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
}
|
2024-09-27 23:34:31 +02:00
|
|
|
|
|
|
|
.saved_snippets-dropdown-list-container {
|
|
|
|
width: 250px;
|
|
|
|
|
|
|
|
.dropdown-list .dropdown-list-item-common-styles {
|
|
|
|
padding: 5px 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.dropdown-list-item-name {
|
|
|
|
line-height: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-list-item-description {
|
|
|
|
white-space: nowrap;
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 13px;
|
|
|
|
opacity: 0.8;
|
|
|
|
padding: 0;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-list-bold-selected {
|
|
|
|
font-weight: 500;
|
|
|
|
max-width: 210px;
|
|
|
|
display: inline-block;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#add-new-saved-snippet-modal {
|
|
|
|
& .saved-snippet-title {
|
|
|
|
width: 97%;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .saved-snippet-content {
|
|
|
|
width: 97%;
|
|
|
|
resize: vertical;
|
|
|
|
}
|
|
|
|
}
|
2023-04-14 21:34:41 +02:00
|
|
|
|
2024-06-10 18:18:28 +02:00
|
|
|
#compose.compose-fullscreen,
|
|
|
|
#compose.compose-intermediate {
|
2021-05-17 13:15:11 +02:00
|
|
|
z-index: 99;
|
|
|
|
|
|
|
|
#compose-container {
|
2021-07-15 21:26:16 +02:00
|
|
|
height: 100%;
|
2021-05-17 13:15:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.message_comp {
|
|
|
|
flex: 1;
|
|
|
|
display: flex !important;
|
|
|
|
flex-flow: column;
|
|
|
|
}
|
|
|
|
|
2022-01-31 11:57:30 +01:00
|
|
|
#compose-textarea,
|
2023-11-01 21:40:50 +01:00
|
|
|
#preview_message_area {
|
2023-11-15 16:17:23 +01:00
|
|
|
/* When in full screen, override max-height
|
2023-11-15 22:06:34 +01:00
|
|
|
properties set from manually resizing. */
|
2023-11-01 21:40:50 +01:00
|
|
|
max-height: none !important;
|
|
|
|
}
|
|
|
|
|
2023-11-15 22:06:34 +01:00
|
|
|
#compose-textarea {
|
|
|
|
/* Additionally, override the height properties
|
|
|
|
on the textarea. This is essential if the
|
|
|
|
textarea has been manually resized prior
|
|
|
|
to going into fullscreen. */
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
|
2021-07-19 10:56:08 +02:00
|
|
|
#preview_message_area {
|
2022-12-07 12:19:31 +01:00
|
|
|
/* Setting height to 0 is necessary to make the flex+Simplebar
|
|
|
|
combination work correctly, without pushing the compose
|
|
|
|
controls offscreen when previewing a very tall message. */
|
|
|
|
height: 0;
|
2021-07-19 10:56:08 +02:00
|
|
|
flex: 1;
|
|
|
|
}
|
2024-06-10 18:18:28 +02:00
|
|
|
}
|
2024-04-23 01:28:39 +02:00
|
|
|
|
2024-06-10 18:18:28 +02:00
|
|
|
#compose.compose-fullscreen {
|
|
|
|
.maximize-composebox-button,
|
2024-04-23 01:28:39 +02:00
|
|
|
.expand-composebox-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.collapse-composebox-button {
|
|
|
|
display: flex;
|
|
|
|
}
|
2021-05-17 13:15:11 +02:00
|
|
|
}
|
2022-01-30 16:00:45 +01:00
|
|
|
|
2024-06-10 18:18:28 +02:00
|
|
|
#compose.compose-intermediate,
|
|
|
|
#compose.automatically-expanded {
|
|
|
|
.collapse-composebox-button,
|
|
|
|
.expand-composebox-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.maximize-composebox-button {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#compose.compose-intermediate {
|
|
|
|
height: var(--max-unmaximized-compose-height);
|
|
|
|
}
|
|
|
|
|
2022-01-30 16:00:45 +01:00
|
|
|
.preview_mode {
|
2023-11-01 21:40:50 +01:00
|
|
|
#preview-message-area-container {
|
|
|
|
/* When in preview mode, we display the
|
|
|
|
preview container as a columnar flexbox.
|
|
|
|
This containing element is necessary
|
|
|
|
because Simplebar on its own will cause
|
|
|
|
a grid blowout despite a minmax(0, 1fr)
|
|
|
|
row definition. */
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
}
|
|
|
|
|
2022-01-30 16:00:45 +01:00
|
|
|
.preview_mode_disabled {
|
|
|
|
opacity: 0.3;
|
|
|
|
|
|
|
|
.compose_control_button {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|