2023-01-09 18:02:16 +00:00
|
|
|
@import "../../variables";
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2021-10-08 18:10:17 +00:00
|
|
|
$emoji-picker-header-height: 36px;
|
|
|
|
$emoji-picker-header-picture-width: 32px;
|
|
|
|
$emoji-picker-header-picture-height: 32px;
|
|
|
|
$emoji-picker-emoji-size: 32px;
|
|
|
|
|
2019-08-12 11:20:08 +00:00
|
|
|
.emoji-picker {
|
2022-10-09 20:42:36 +00:00
|
|
|
width: 25em;
|
2023-01-06 18:14:38 +00:00
|
|
|
max-width: calc(100vw - 20px); // popover gives 10px margin from window edge
|
2019-08-12 17:01:38 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-01-23 22:36:32 +00:00
|
|
|
background-color: $fallback--bg;
|
|
|
|
background-color: var(--popover, $fallback--bg);
|
|
|
|
color: $fallback--link;
|
|
|
|
color: var(--popoverText, $fallback--link);
|
2023-01-09 18:02:16 +00:00
|
|
|
|
2020-01-23 22:36:32 +00:00
|
|
|
--faint: var(--popoverFaintText, $fallback--faint);
|
|
|
|
--faintLink: var(--popoverFaintLink, $fallback--faint);
|
|
|
|
--lightText: var(--popoverLightText, $fallback--lightText);
|
|
|
|
--icon: var(--popoverIcon, $fallback--icon);
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2021-08-15 01:10:24 +00:00
|
|
|
&-header-image {
|
|
|
|
display: inline-flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-10-08 18:10:17 +00:00
|
|
|
width: $emoji-picker-header-picture-width;
|
|
|
|
max-width: $emoji-picker-header-picture-width;
|
|
|
|
height: $emoji-picker-header-picture-height;
|
|
|
|
max-height: $emoji-picker-header-picture-height;
|
2023-01-09 18:02:16 +00:00
|
|
|
|
2021-10-08 18:10:17 +00:00
|
|
|
.still-image {
|
2021-08-15 01:10:24 +00:00
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
2022-08-18 13:10:24 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-08-15 01:10:24 +00:00
|
|
|
object-fit: contain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-07 20:46:40 +00:00
|
|
|
.keep-open,
|
|
|
|
.too-many-emoji {
|
2019-09-08 12:51:17 +00:00
|
|
|
padding: 7px;
|
|
|
|
line-height: normal;
|
|
|
|
}
|
2019-10-07 20:46:40 +00:00
|
|
|
|
|
|
|
.too-many-emoji {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2019-09-23 17:29:01 +00:00
|
|
|
.keep-open-label {
|
2019-09-15 09:09:19 +00:00
|
|
|
padding: 0 7px;
|
|
|
|
display: flex;
|
2019-09-08 12:51:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.heading {
|
|
|
|
display: flex;
|
|
|
|
padding: 10px 7px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
2019-08-12 17:01:38 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-10-07 20:46:40 +00:00
|
|
|
flex: 1 1 auto;
|
2023-01-09 18:02:16 +00:00
|
|
|
min-height: 0;
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
|
|
|
|
2019-09-08 12:51:17 +00:00
|
|
|
.emoji-tabs {
|
|
|
|
flex-grow: 1;
|
2021-08-15 01:50:58 +00:00
|
|
|
display: flex;
|
2023-01-09 18:02:16 +00:00
|
|
|
flex-flow: row nowrap;
|
2021-10-08 18:46:00 +00:00
|
|
|
overflow-x: auto;
|
2019-09-08 12:51:17 +00:00
|
|
|
}
|
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
.additional-tabs {
|
2021-10-08 18:46:00 +00:00
|
|
|
display: flex;
|
2019-08-12 17:01:38 +00:00
|
|
|
border-left: 1px solid;
|
|
|
|
border-left-color: $fallback--icon;
|
|
|
|
border-left-color: var(--icon, $fallback--icon);
|
2019-09-08 12:51:17 +00:00
|
|
|
padding-left: 7px;
|
2019-10-07 20:46:40 +00:00
|
|
|
flex: 0 0 auto;
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.additional-tabs,
|
|
|
|
.emoji-tabs {
|
2019-09-08 12:51:17 +00:00
|
|
|
flex-basis: auto;
|
2021-10-08 18:10:17 +00:00
|
|
|
display: flex;
|
|
|
|
align-content: center;
|
2019-09-08 12:51:17 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
&-item {
|
2019-09-08 12:51:17 +00:00
|
|
|
padding: 0 7px;
|
2019-08-12 17:01:38 +00:00
|
|
|
cursor: pointer;
|
2022-04-20 20:44:33 +00:00
|
|
|
font-size: 1.85em;
|
2021-10-08 18:10:17 +00:00
|
|
|
width: $emoji-picker-header-picture-width;
|
|
|
|
max-width: $emoji-picker-header-picture-width;
|
|
|
|
height: $emoji-picker-header-picture-height;
|
|
|
|
max-height: $emoji-picker-header-picture-height;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
&.disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2022-04-20 20:44:33 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
&.active {
|
|
|
|
border-bottom: 4px solid;
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2020-10-19 16:38:49 +00:00
|
|
|
svg {
|
2019-08-12 17:01:38 +00:00
|
|
|
color: $fallback--lightText;
|
|
|
|
color: var(--lightText, $fallback--lightText);
|
2019-08-12 11:20:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
.sticker-picker {
|
2023-01-09 18:02:16 +00:00
|
|
|
flex: 1 1 auto;
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.stickers,
|
|
|
|
.emoji {
|
2019-08-12 11:20:08 +00:00
|
|
|
&-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-10-07 20:46:40 +00:00
|
|
|
flex: 1 1 auto;
|
2019-08-12 17:01:38 +00:00
|
|
|
min-height: 0;
|
|
|
|
|
|
|
|
&.hidden {
|
2019-09-08 12:57:49 +00:00
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
}
|
2019-08-12 17:01:38 +00:00
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
.emoji {
|
2019-08-12 11:20:08 +00:00
|
|
|
&-search {
|
|
|
|
padding: 5px;
|
2019-10-07 20:46:40 +00:00
|
|
|
flex: 0 0 auto;
|
2019-08-12 11:20:08 +00:00
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-groups {
|
2023-01-09 18:02:16 +00:00
|
|
|
height: 100%;
|
|
|
|
min-height: 200px;
|
2019-08-12 11:20:08 +00:00
|
|
|
flex: 1 1 1px;
|
|
|
|
position: relative;
|
|
|
|
overflow: auto;
|
2019-09-15 09:09:19 +00:00
|
|
|
user-select: none;
|
2023-01-09 18:02:16 +00:00
|
|
|
mask:
|
|
|
|
linear-gradient(to top, white 0, transparent 100%) bottom no-repeat,
|
|
|
|
linear-gradient(to bottom, white 0, transparent 100%) top no-repeat,
|
|
|
|
linear-gradient(to top, white, white);
|
2019-09-14 22:16:54 +00:00
|
|
|
transition: mask-size 150ms;
|
|
|
|
mask-size: 100% 20px, 100% 20px, auto;
|
|
|
|
// Autoprefixed seem to ignore this one, and also syntax is different
|
2023-01-09 18:02:16 +00:00
|
|
|
mask-composite: xor;
|
2019-09-14 22:16:54 +00:00
|
|
|
mask-composite: exclude;
|
2023-01-09 18:02:16 +00:00
|
|
|
|
2019-09-14 22:16:54 +00:00
|
|
|
&.scrolled {
|
|
|
|
&-top {
|
|
|
|
mask-size: 100% 20px, 100% 0, auto;
|
|
|
|
}
|
2023-01-09 18:02:16 +00:00
|
|
|
|
2019-09-14 22:16:54 +00:00
|
|
|
&-bottom {
|
|
|
|
mask-size: 100% 0, 100% 20px, auto;
|
|
|
|
}
|
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-group {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
2019-08-12 17:01:38 +00:00
|
|
|
padding-left: 5px;
|
|
|
|
justify-content: left;
|
2019-08-12 11:20:08 +00:00
|
|
|
|
|
|
|
&-title {
|
2022-04-20 20:44:33 +00:00
|
|
|
font-size: 0.85em;
|
2019-08-12 11:20:08 +00:00
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
2022-04-20 20:44:33 +00:00
|
|
|
|
2019-08-12 17:01:38 +00:00
|
|
|
&.disabled {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item {
|
2021-10-08 18:10:17 +00:00
|
|
|
width: $emoji-picker-emoji-size;
|
|
|
|
height: $emoji-picker-emoji-size;
|
2019-08-12 11:20:08 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
2022-04-30 02:40:06 +00:00
|
|
|
line-height: $emoji-picker-emoji-size;
|
2019-08-12 11:20:08 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2019-08-12 17:01:38 +00:00
|
|
|
margin: 4px;
|
2019-08-12 11:20:08 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
2022-04-30 02:40:06 +00:00
|
|
|
.emoji-picker-emoji.-custom {
|
2019-09-08 14:11:45 +00:00
|
|
|
object-fit: contain;
|
2019-08-12 11:20:08 +00:00
|
|
|
max-width: 100%;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
2023-01-09 18:02:16 +00:00
|
|
|
|
2022-04-30 02:40:06 +00:00
|
|
|
.emoji-picker-emoji.-unicode {
|
|
|
|
font-size: 24px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2019-08-12 11:20:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|