2019-10-13 21:32:11 +00:00
|
|
|
/*
|
|
|
|
Copyright 2019 Tulir Asokan <tulir@maunium.net>
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
.mx_EmojiPicker {
|
|
|
|
width: 340px;
|
|
|
|
height: 450px;
|
|
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_body {
|
|
|
|
flex: 1;
|
|
|
|
overflow-y: scroll;
|
|
|
|
scrollbar-width: thin;
|
|
|
|
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_header {
|
|
|
|
padding: 4px 8px 0;
|
|
|
|
border-bottom: 1px solid $message-action-bar-border-color;
|
|
|
|
}
|
|
|
|
|
2019-10-14 17:38:09 +00:00
|
|
|
.mx_EmojiPicker button > svg {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
fill: $primary-fg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker button:disabled > svg {
|
|
|
|
fill: $focus-bg-color;
|
|
|
|
}
|
|
|
|
|
2019-10-13 21:32:11 +00:00
|
|
|
.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 17:38:09 +00:00
|
|
|
width: 36px;
|
|
|
|
height: 38px;
|
2019-10-13 21:32:11 +00:00
|
|
|
|
2019-10-14 17:38:09 +00:00
|
|
|
&:not(:disabled) {
|
|
|
|
cursor: pointer;
|
2019-10-14 16:40:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:disabled):hover {
|
2019-10-13 21:32:11 +00:00
|
|
|
background-color: $focus-bg-color;
|
|
|
|
border-bottom: 2px solid $button-bg-color;
|
|
|
|
}
|
2019-10-14 17:14:40 +00:00
|
|
|
}
|
2019-10-13 21:32:11 +00:00
|
|
|
|
2019-10-14 17:14:40 +00:00
|
|
|
.mx_EmojiPicker_anchor_visible {
|
|
|
|
border-bottom: 2px solid $button-bg-color;
|
2019-10-13 21:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_search {
|
|
|
|
margin: 8px;
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid $input-border-color;
|
|
|
|
background-color: $primary-bg-color;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
input {
|
|
|
|
flex: 1;
|
|
|
|
border: none;
|
|
|
|
padding: 8px 12px;
|
|
|
|
border-radius: 4px 0;
|
|
|
|
}
|
|
|
|
|
2019-10-14 16:40:57 +00:00
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
background-color: inherit;
|
2019-10-14 17:38:09 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 8px;
|
|
|
|
align-self: center;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2019-10-13 21:32:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-14 17:38:09 +00:00
|
|
|
.mx_EmojiPicker_search_clear {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-10-13 21:32:11 +00:00
|
|
|
.mx_EmojiPicker_category {
|
|
|
|
padding: 0 12px;
|
2019-10-14 17:38:09 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2019-10-13 21:32:11 +00:00
|
|
|
}
|
|
|
|
|
2019-10-14 17:38:09 +00:00
|
|
|
.mx_EmojiPicker_category_label {
|
|
|
|
width: 304px;
|
2019-10-13 21:32:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_list {
|
2019-10-14 17:38:09 +00:00
|
|
|
width: 304px;
|
2019-10-13 21:32:11 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_item {
|
|
|
|
list-style: none;
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 20px;
|
|
|
|
margin: 1px;
|
|
|
|
padding: 4px 0;
|
|
|
|
width: 36px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $focus-bg-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-14 17:38:09 +00:00
|
|
|
.mx_EmojiPicker_category_label, .mx_EmojiPicker_preview_name {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: 600;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2019-10-13 21:32:11 +00:00
|
|
|
.mx_EmojiPicker_footer {
|
|
|
|
border-top: 1px solid $message-action-bar-border-color;
|
|
|
|
height: 72px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_preview_emoji {
|
|
|
|
font-size: 32px;
|
|
|
|
padding: 8px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_preview_text {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_name {
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_shortcode {
|
|
|
|
color: $light-fg-color;
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
&::before, &::after {
|
|
|
|
content: ":";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_quick {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: start;
|
|
|
|
justify-content: space-around;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mx_EmojiPicker_quick_header .mx_EmojiPicker_name {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|