2017-01-07 08:54:17 +01:00
|
|
|
.message_reactions {
|
2017-01-09 21:33:16 +01:00
|
|
|
overflow: hidden;
|
2017-08-22 06:58:31 +02:00
|
|
|
user-select: none;
|
2017-01-07 08:54:17 +01:00
|
|
|
|
2024-04-23 21:54:48 +02:00
|
|
|
&:has(.message_reaction) {
|
2024-06-25 22:25:22 +02:00
|
|
|
margin-bottom: var(--message-box-markdown-aligned-vertical-space);
|
2024-04-23 21:54:48 +02:00
|
|
|
}
|
|
|
|
|
2019-05-18 09:43:28 +02:00
|
|
|
.message_reaction {
|
2022-06-29 20:57:40 +02:00
|
|
|
display: flex;
|
2024-02-28 22:04:11 +01:00
|
|
|
/* Set a pixel and half padding to maintain
|
|
|
|
pill height adjacent own reactions. */
|
|
|
|
padding: 1.5px 4px 1.5px 3px;
|
2023-08-28 18:27:46 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
min-width: 44px;
|
2019-05-18 09:43:28 +02:00
|
|
|
cursor: pointer;
|
2023-08-28 18:27:46 +02:00
|
|
|
color: var(--color-message-reaction-text);
|
2023-08-25 17:32:19 +02:00
|
|
|
background-color: var(--color-message-reaction-background);
|
|
|
|
border: 1px solid var(--color-message-reaction-border);
|
2023-08-28 18:27:46 +02:00
|
|
|
border-radius: 21px;
|
2022-06-29 20:57:40 +02:00
|
|
|
align-items: center;
|
2023-08-28 18:27:46 +02:00
|
|
|
box-shadow: inset 0 0 5px 0 var(--color-message-reaction-shadow-inner);
|
|
|
|
transition:
|
|
|
|
transform 100ms linear,
|
2024-10-23 21:41:57 +02:00
|
|
|
font-weight 100ms linear; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
2019-05-18 09:43:28 +02:00
|
|
|
|
2019-05-20 15:58:00 +02:00
|
|
|
&.reacted {
|
2023-08-28 18:27:46 +02:00
|
|
|
color: var(--color-message-reaction-text-reacted);
|
2023-08-25 17:32:19 +02:00
|
|
|
background-color: var(--color-message-reaction-background-reacted);
|
|
|
|
border-color: var(--color-message-reaction-border-reacted);
|
2024-02-28 22:04:11 +01:00
|
|
|
/* Make this border thicker by half a pixel,
|
|
|
|
to make own reactions more prominent. */
|
|
|
|
border-width: 1.5px;
|
|
|
|
/* Reduce the padding top and bottom by half
|
|
|
|
a pixel accordingly, to maintain the same
|
|
|
|
pill height. */
|
|
|
|
padding: 1px 4px 1px 3px;
|
2023-08-28 18:27:46 +02:00
|
|
|
font-weight: var(--font-weight-message-reaction);
|
|
|
|
box-shadow: none;
|
2019-05-20 15:58:00 +02:00
|
|
|
}
|
2019-05-18 09:43:28 +02:00
|
|
|
|
2019-05-20 15:58:00 +02:00
|
|
|
&:hover {
|
2023-08-28 18:27:46 +02:00
|
|
|
background-color: var(--color-message-reaction-background-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
transform: scale(var(--scale-message-reaction-active));
|
2019-05-20 15:58:00 +02:00
|
|
|
}
|
2019-05-18 15:51:11 +02:00
|
|
|
|
2019-06-03 17:49:06 +02:00
|
|
|
.emoji {
|
|
|
|
margin: 1px 3px;
|
2024-06-24 22:06:18 +02:00
|
|
|
/* 17px at 14px/1em */
|
|
|
|
height: 1.2143em;
|
|
|
|
width: 1.2143em;
|
2023-08-11 20:51:24 +02:00
|
|
|
/* Preserve the emoji's dimensions, no
|
|
|
|
matter what the flexbox does. */
|
|
|
|
flex-shrink: 0;
|
|
|
|
/* Don't inherit position: relative; from
|
|
|
|
the base .emoji class. */
|
|
|
|
position: static;
|
2019-06-03 17:49:06 +02:00
|
|
|
}
|
2023-08-18 20:38:42 +02:00
|
|
|
|
|
|
|
.emoji_alt_code {
|
|
|
|
/* Apply the same margins as on graphical emoji. */
|
|
|
|
margin: 1px 3px;
|
|
|
|
/* Reset some properties from the base .emoji_alt_code
|
|
|
|
class that aren't appropriate in a flexbox context. */
|
|
|
|
position: static;
|
|
|
|
/* Flexbox will handle baselines, so don't mess with the
|
|
|
|
line-height. */
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
2019-05-18 15:51:11 +02:00
|
|
|
}
|
|
|
|
|
2019-05-18 09:43:28 +02:00
|
|
|
.message_reaction_count {
|
2023-10-26 15:37:25 +02:00
|
|
|
/* 90% works out here to 12.6px */
|
2022-02-11 00:35:07 +01:00
|
|
|
font-size: 90%;
|
2023-10-26 15:37:25 +02:00
|
|
|
/* No top and bottom margin; just allow
|
|
|
|
flexbox to handle the vertical alignment. */
|
|
|
|
margin: 0 3px;
|
|
|
|
/* Set the 12.6px text on a 13px line;
|
|
|
|
the goal is to have that 13px line
|
|
|
|
center correctly on the vertical with
|
|
|
|
the 17px-square emoji, resulting in
|
|
|
|
2px of space above and below the
|
|
|
|
reaction count/name. */
|
|
|
|
line-height: 13px;
|
2019-05-18 09:43:28 +02:00
|
|
|
}
|
|
|
|
|
2022-06-01 21:24:25 +02:00
|
|
|
.message_reaction:hover .message_reaction_count {
|
2023-08-25 17:58:20 +02:00
|
|
|
color: var(--color-message-reaction-button-text-hover);
|
2022-06-01 21:24:25 +02:00
|
|
|
}
|
|
|
|
|
2024-04-23 21:29:09 +02:00
|
|
|
&:hover .reaction_button {
|
2019-05-18 09:43:28 +02:00
|
|
|
visibility: visible;
|
|
|
|
pointer-events: all;
|
|
|
|
}
|
|
|
|
|
2023-08-25 12:19:43 +02:00
|
|
|
.emoji-message-control-button-container {
|
2022-06-29 20:57:40 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-08-25 12:19:43 +02:00
|
|
|
}
|
2022-06-29 20:57:40 +02:00
|
|
|
|
2023-08-25 12:19:43 +02:00
|
|
|
.reaction_button {
|
2024-04-23 21:29:09 +02:00
|
|
|
visibility: hidden;
|
|
|
|
pointer-events: none;
|
|
|
|
/* Set top/bottom padding to accommodate borders
|
|
|
|
and padding around reaction pills. */
|
2024-04-23 21:41:23 +02:00
|
|
|
padding: 4px 6px;
|
2024-04-23 21:29:09 +02:00
|
|
|
border-radius: 21px;
|
|
|
|
color: var(--color-message-reaction-button-text);
|
|
|
|
background-color: var(--color-message-reaction-button-background);
|
|
|
|
border: 1px solid var(--color-message-reaction-button-border);
|
|
|
|
|
2023-03-17 22:10:10 +01:00
|
|
|
& i {
|
2019-05-20 16:02:46 +02:00
|
|
|
font-size: 1em;
|
2024-04-23 21:42:19 +02:00
|
|
|
color: var(--color-message-reaction-button-text);
|
2019-05-20 16:02:46 +02:00
|
|
|
}
|
2019-05-18 09:43:28 +02:00
|
|
|
|
2019-05-20 16:02:46 +02:00
|
|
|
&:hover i {
|
2023-08-25 17:58:20 +02:00
|
|
|
color: var(--color-message-reaction-button-text-hover);
|
2019-05-20 16:02:46 +02:00
|
|
|
}
|
2019-05-18 09:43:28 +02:00
|
|
|
|
2019-05-20 16:02:46 +02:00
|
|
|
&:hover {
|
2024-04-23 21:29:09 +02:00
|
|
|
color: var(--color-message-reaction-button-text-hover);
|
2023-08-25 17:58:20 +02:00
|
|
|
background-color: var(
|
|
|
|
--color-message-reaction-button-background-hover
|
|
|
|
);
|
2024-04-23 21:29:09 +02:00
|
|
|
border: 1px solid var(--color-message-reaction-button-border-hover);
|
|
|
|
border-color: var(--color-message-reaction-button-border-hover);
|
|
|
|
box-shadow: inset 0 0 5px 0
|
|
|
|
var(--color-message-reaction-shadow-inner);
|
2019-05-20 16:02:46 +02:00
|
|
|
cursor: pointer;
|
2020-08-04 23:58:56 +02:00
|
|
|
opacity: 1;
|
2019-05-20 16:02:46 +02:00
|
|
|
}
|
2019-05-18 09:43:28 +02:00
|
|
|
|
2019-05-20 16:02:46 +02:00
|
|
|
.message_reaction_count {
|
2023-08-28 18:27:46 +02:00
|
|
|
font-weight: 700;
|
2023-08-25 17:58:20 +02:00
|
|
|
color: var(--color-message-reaction-button-text);
|
2022-06-29 20:57:40 +02:00
|
|
|
margin-right: 0;
|
2024-04-23 21:41:23 +02:00
|
|
|
line-height: 14px;
|
2019-05-20 16:02:46 +02:00
|
|
|
}
|
2019-05-20 15:59:58 +02:00
|
|
|
|
2019-05-20 16:02:46 +02:00
|
|
|
&:hover .message_reaction_count {
|
2023-08-25 17:58:20 +02:00
|
|
|
color: var(--color-message-reaction-button-text-hover);
|
2019-05-20 16:02:46 +02:00
|
|
|
}
|
2019-05-18 09:43:28 +02:00
|
|
|
}
|
2017-01-07 08:54:17 +01:00
|
|
|
}
|
|
|
|
|
2023-09-15 15:27:41 +02:00
|
|
|
.active-emoji-picker-reference,
|
|
|
|
.active-playground-links-reference {
|
2019-05-18 09:33:04 +02:00
|
|
|
visibility: visible !important;
|
|
|
|
pointer-events: all !important;
|
|
|
|
opacity: 1 !important;
|
|
|
|
}
|
|
|
|
|
2023-08-25 15:26:28 +02:00
|
|
|
.emoji-picker-popover {
|
2017-07-19 00:28:56 +02:00
|
|
|
padding: 0;
|
2017-08-27 22:15:02 +02:00
|
|
|
height: 370px;
|
2020-07-06 22:55:45 +02:00
|
|
|
user-select: none;
|
2017-07-19 00:28:56 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover {
|
|
|
|
width: 250px;
|
2016-12-02 13:23:23 +01:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover-category-tabs {
|
2019-06-03 18:25:42 +02:00
|
|
|
/* Flex needed here to work around #7511 (90% zoom issues in firefox) */
|
2019-06-03 18:30:58 +02:00
|
|
|
display: flex;
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(--color-background-emoji-picker-popover);
|
2019-06-03 18:30:58 +02:00
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.emoji-popover-tab-item {
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 8px;
|
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 16px;
|
|
|
|
cursor: pointer;
|
|
|
|
/* Flex needed here to work around #7511 (90% zoom issues in firefox) */
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
&.active {
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(
|
|
|
|
--color-background-emoji-picker-popover-tab-item-active
|
|
|
|
);
|
2019-06-03 18:30:58 +02:00
|
|
|
}
|
2019-06-03 18:25:42 +02:00
|
|
|
}
|
2019-06-03 18:23:05 +02:00
|
|
|
}
|
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover-emoji-map,
|
|
|
|
.emoji-search-results-container {
|
2020-08-06 02:42:07 +02:00
|
|
|
padding: 0;
|
2019-06-03 18:30:58 +02:00
|
|
|
position: relative;
|
2023-11-09 00:35:32 +01:00
|
|
|
overflow: hidden auto;
|
2019-06-03 18:30:58 +02:00
|
|
|
display: block;
|
|
|
|
width: 247px;
|
|
|
|
padding-left: 3px;
|
|
|
|
}
|
2017-07-19 00:28:56 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover-emoji-map {
|
|
|
|
height: 250px;
|
2019-06-03 18:10:28 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover-subheading {
|
|
|
|
font-weight: 600;
|
|
|
|
padding: 5px 3px;
|
|
|
|
}
|
2019-06-03 18:25:42 +02:00
|
|
|
}
|
2016-12-02 13:23:23 +01:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-popover-emoji {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 6px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
height: 25px;
|
|
|
|
width: 25px;
|
2019-05-18 09:14:46 +02:00
|
|
|
|
2024-01-24 03:34:16 +01:00
|
|
|
&:focus {
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(
|
|
|
|
--color-background-emoji-picker-emoji-focus
|
|
|
|
);
|
|
|
|
/* Only dark mode takes a box shadow on
|
|
|
|
the emoji-picker's focused emoji. */
|
|
|
|
box-shadow: 0 0 1px
|
|
|
|
var(--color-box-shadow-emoji-picker-emoji-focus);
|
2019-06-03 18:30:58 +02:00
|
|
|
outline: none;
|
|
|
|
}
|
2017-10-03 18:20:43 +02:00
|
|
|
|
2024-01-24 03:34:16 +01:00
|
|
|
&.reacted {
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(
|
|
|
|
--color-background-emoji-picker-emoji-reacted
|
|
|
|
);
|
|
|
|
border-color: var(--color-border-emoji-picker-emoji-reacted);
|
2024-01-24 03:34:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.reacted:focus {
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(
|
|
|
|
--color-background-emoji-picker-emoji-reacted-focus
|
|
|
|
);
|
2019-06-03 18:30:58 +02:00
|
|
|
}
|
2017-05-17 18:22:38 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
&.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-06-03 18:25:42 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji {
|
|
|
|
top: 6px;
|
|
|
|
}
|
2019-06-03 18:25:42 +02:00
|
|
|
}
|
2024-03-05 20:45:51 +01:00
|
|
|
|
|
|
|
.emoji-search-results-container {
|
|
|
|
height: 283px;
|
|
|
|
|
|
|
|
.emoji-popover-results-heading {
|
|
|
|
font-weight: 600;
|
|
|
|
padding: 5px 3px 3px 5px;
|
|
|
|
font-size: 17px;
|
|
|
|
}
|
|
|
|
}
|
2019-05-18 09:17:27 +02:00
|
|
|
}
|
2017-08-27 22:15:02 +02:00
|
|
|
|
2019-06-03 18:30:58 +02:00
|
|
|
.emoji-showcase-container {
|
2019-06-03 18:00:29 +02:00
|
|
|
position: relative;
|
2024-03-05 21:22:05 +01:00
|
|
|
background-color: var(--color-background-emoji-picker-popover);
|
2019-06-03 18:30:58 +02:00
|
|
|
min-height: 44px;
|
|
|
|
width: 250px;
|
2023-08-25 12:19:43 +02:00
|
|
|
border-radius: 0 0 3px 3px;
|
2019-06-03 18:30:58 +02:00
|
|
|
|
|
|
|
.emoji-preview {
|
|
|
|
position: absolute;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
left: 5px;
|
|
|
|
top: 6px;
|
2020-08-06 02:42:07 +02:00
|
|
|
margin-top: 0;
|
2019-06-03 18:30:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-canonical-name {
|
|
|
|
position: relative;
|
|
|
|
top: 12px;
|
|
|
|
margin-left: 50px;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 600;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2019-06-03 18:00:29 +02:00
|
|
|
}
|
2017-08-27 22:15:02 +02:00
|
|
|
}
|
2019-06-03 18:30:08 +02:00
|
|
|
|
|
|
|
.emoji_alt_code {
|
|
|
|
position: relative;
|
|
|
|
top: 4px;
|
|
|
|
font-size: 0.8em;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2020-08-06 02:42:07 +02:00
|
|
|
margin: 0 1px 0 0;
|
2019-06-03 18:30:08 +02:00
|
|
|
line-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.typeahead .emoji {
|
|
|
|
top: 2px;
|
|
|
|
}
|