2019-10-14 00:32:11 +03:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-10-14 00:32:11 +03:00
|
|
|
Copyright 2019 Tulir Asokan <tulir@maunium.net>
|
|
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-10-14 00:32:11 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker {
|
|
|
|
|
width: 340px;
|
2025-10-30 09:31:02 +00:00
|
|
|
height: min(450px, 80vh);
|
|
|
|
|
max-height: 80vh;
|
2019-10-14 00:32:11 +03:00
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_body {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
scrollbar-width: thin;
|
2025-04-16 08:33:50 +01:00
|
|
|
scrollbar-color: rgb(0, 0, 0, 0.2) transparent;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_header {
|
|
|
|
|
padding: 4px 8px 0;
|
|
|
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_anchor {
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 8px 8px 6px;
|
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
|
|
2019-10-14 20:38:09 +03:00
|
|
|
width: 36px;
|
|
|
|
|
height: 38px;
|
2019-10-14 00:32:11 +03:00
|
|
|
|
2019-10-14 20:38:09 +03:00
|
|
|
&:not(:disabled) {
|
|
|
|
|
cursor: pointer;
|
2019-10-14 19:40:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:not(:disabled):hover {
|
2019-10-14 00:32:11 +03:00
|
|
|
background-color: $focus-bg-color;
|
2021-11-11 14:37:29 +01:00
|
|
|
border-bottom: 2px solid $accent;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
2019-10-14 20:14:40 +03:00
|
|
|
}
|
2019-10-14 00:32:11 +03:00
|
|
|
|
2019-10-20 12:13:32 +03:00
|
|
|
.mx_EmojiPicker_anchor::before {
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2019-10-20 12:13:32 +03:00
|
|
|
content: "";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
mask-size: 100%;
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_anchor:disabled::before {
|
|
|
|
|
background-color: $focus-bg-color;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-22 16:35:36 +01:00
|
|
|
.mx_EmojiPicker_anchor_activity::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/activity.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_flags::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/flags.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_foods::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/foods.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_nature::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/nature.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_objects::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/objects.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_people::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/people.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_places::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/places.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_recent::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/recent.svg");
|
|
|
|
|
}
|
|
|
|
|
.mx_EmojiPicker_anchor_symbols::before {
|
|
|
|
|
mask-image: url("$(res)/img/emojipicker/symbols.svg");
|
|
|
|
|
}
|
2019-10-20 12:13:32 +03:00
|
|
|
|
2019-10-14 20:14:40 +03:00
|
|
|
.mx_EmojiPicker_anchor_visible {
|
2021-11-11 14:37:29 +01:00
|
|
|
border-bottom: 2px solid $accent;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_search {
|
|
|
|
|
margin: 8px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 1px solid $input-border-color;
|
2021-08-12 11:10:47 +02:00
|
|
|
background-color: $background;
|
2019-10-14 00:32:11 +03:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
flex: 1;
|
|
|
|
|
border: none;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
border-radius: 4px 0;
|
2024-11-14 10:19:39 +00:00
|
|
|
|
|
|
|
|
&::placeholder {
|
2024-11-15 11:46:48 +00:00
|
|
|
color: var(--cpd-color-text-secondary);
|
2024-11-14 10:19:39 +00:00
|
|
|
}
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
|
2019-10-14 19:40:57 +03:00
|
|
|
button {
|
|
|
|
|
border: none;
|
|
|
|
|
background-color: inherit;
|
2019-10-14 20:38:09 +03:00
|
|
|
margin: 0;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
align-self: center;
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-14 20:38:09 +03:00
|
|
|
.mx_EmojiPicker_search_clear {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-23 18:39:39 +01:00
|
|
|
.mx_EmojiPicker_search_icon {
|
2026-01-06 13:55:04 +00:00
|
|
|
width: 20px;
|
2019-10-23 18:39:39 +01:00
|
|
|
margin: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_search_icon:not(.mx_EmojiPicker_search_clear) {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-20 12:13:32 +03:00
|
|
|
.mx_EmojiPicker_search_icon::after {
|
2026-01-06 13:55:04 +00:00
|
|
|
mask: url("@vector-im/compound-design-tokens/icons/search.svg") no-repeat;
|
2019-10-20 12:13:32 +03:00
|
|
|
mask-size: 100%;
|
2021-08-12 11:27:12 +02:00
|
|
|
background-color: $primary-content;
|
2019-10-20 12:13:32 +03:00
|
|
|
content: "";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_search_clear::after {
|
2026-01-06 13:55:04 +00:00
|
|
|
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
|
2019-10-20 12:13:32 +03:00
|
|
|
}
|
|
|
|
|
|
2019-10-14 00:32:11 +03:00
|
|
|
.mx_EmojiPicker_category {
|
|
|
|
|
padding: 0 12px;
|
2019-10-14 20:38:09 +03:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
|
2019-10-14 20:38:09 +03:00
|
|
|
.mx_EmojiPicker_category_label {
|
|
|
|
|
width: 304px;
|
2019-10-14 00:32:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_list {
|
2019-10-14 20:38:09 +03:00
|
|
|
width: 304px;
|
2019-10-14 00:32:11 +03:00
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-20 12:31:28 +03:00
|
|
|
.mx_EmojiPicker_item_wrapper {
|
|
|
|
|
display: inline-block;
|
2019-10-14 00:32:11 +03:00
|
|
|
list-style: none;
|
2019-10-20 12:31:28 +03:00
|
|
|
width: 38px;
|
|
|
|
|
cursor: pointer;
|
2023-04-20 15:56:21 +01:00
|
|
|
|
|
|
|
|
&:focus-within {
|
|
|
|
|
background-color: $focus-bg-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-31 17:10:02 +00:00
|
|
|
.mx_EmojiPicker_body_showHighlight .mx_EmojiPicker_item_wrapper [tabindex="0"] .mx_EmojiPicker_item {
|
2023-04-20 15:56:21 +01:00
|
|
|
background-color: $focus-bg-color;
|
2019-10-20 12:31:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_item {
|
2019-10-14 00:32:11 +03:00
|
|
|
display: inline-block;
|
2020-03-31 15:26:23 +01:00
|
|
|
font-size: $font-20px;
|
2019-10-20 12:31:28 +03:00
|
|
|
padding: 5px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2019-10-14 00:32:11 +03:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: $focus-bg-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-15 19:07:04 +03:00
|
|
|
.mx_EmojiPicker_item_selected {
|
2025-04-16 08:33:50 +01:00
|
|
|
color: rgb(0, 0, 0, 0.5);
|
2021-11-11 14:37:29 +01:00
|
|
|
border: 1px solid $accent;
|
2019-10-20 12:31:28 +03:00
|
|
|
padding: 4px;
|
2019-10-15 19:07:04 +03:00
|
|
|
}
|
|
|
|
|
|
2019-10-14 20:38:09 +03:00
|
|
|
.mx_EmojiPicker_category_label,
|
|
|
|
|
.mx_EmojiPicker_preview_name {
|
2020-03-31 15:26:23 +01:00
|
|
|
font-size: $font-16px;
|
2023-06-29 11:30:25 +01:00
|
|
|
font-weight: var(--cpd-font-weight-semibold);
|
2019-10-14 20:38:09 +03:00
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-14 00:32:11 +03:00
|
|
|
.mx_EmojiPicker_footer {
|
|
|
|
|
border-top: 1px solid $message-action-bar-border-color;
|
2020-05-24 20:00:02 +01:00
|
|
|
min-height: 72px;
|
2019-10-14 00:32:11 +03:00
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_preview_emoji {
|
2020-03-31 15:26:23 +01:00
|
|
|
font-size: $font-32px;
|
2019-10-14 00:32:11 +03:00
|
|
|
padding: 8px 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_preview_text {
|
|
|
|
|
display: flex;
|
2023-01-31 21:58:47 +05:30
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
padding-bottom: 1rem;
|
2019-10-14 00:32:11 +03:00
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_name {
|
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_shortcode {
|
|
|
|
|
color: $light-fg-color;
|
2023-01-31 21:58:47 +05:30
|
|
|
overflow-wrap: break-word;
|
2023-06-29 11:30:25 +01:00
|
|
|
font: var(--cpd-font-body-md-regular);
|
2019-10-14 00:32:11 +03:00
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
|
&::after {
|
|
|
|
|
content: ":";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_quick {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mx_EmojiPicker_quick_header .mx_EmojiPicker_name {
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
}
|