198 lines
3.2 KiB
SCSS
198 lines
3.2 KiB
SCSS
.emoji-mart {
|
|
|
|
&,
|
|
* {
|
|
box-sizing: border-box;
|
|
line-height: 1.15;
|
|
}
|
|
|
|
font-size: 13px;
|
|
display: inline-block;
|
|
color: $inverted-text-color;
|
|
|
|
.emoji-mart-emoji {
|
|
padding: 6px;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-bar {{
|
|
border: 0 solid darken($ui-secondary-color, 8%);
|
|
|
|
&:first-child {
|
|
border-bottom-width: 1px;
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
background: $ui-secondary-color;
|
|
}
|
|
|
|
&:last-child {
|
|
border-top-width: 1px;
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-anchors {
|
|
padding: 0 6px;
|
|
color: $lighter-text-color;
|
|
line-height: 0;
|
|
|
|
@include flex(space-between);
|
|
}
|
|
|
|
.emoji-mart-anchor {
|
|
position: relative;
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 12px 4px;
|
|
overflow: hidden;
|
|
transition: color .1s ease-out;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
color: darken($lighter-text-color, 4%);
|
|
}
|
|
}
|
|
|
|
.emoji-mart-anchor-selected {
|
|
color: $highlight-text-color;
|
|
|
|
&:hover {
|
|
color: darken($highlight-text-color, 4%);
|
|
}
|
|
|
|
.emoji-mart-anchor-bar {
|
|
bottom: -1px;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-anchor-bar {
|
|
background-color: $highlight-text-color;
|
|
|
|
@include size(100%, 4px);
|
|
@include abs-position(auto, auto, -5px, 0);
|
|
}
|
|
|
|
.emoji-mart-anchors {
|
|
i {
|
|
display: inline-block;
|
|
width: 100%;
|
|
max-width: 22px;
|
|
}
|
|
|
|
svg {
|
|
fill: currentColor;
|
|
max-height: 18px;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-scroll {
|
|
overflow-y: scroll;
|
|
height: 270px;
|
|
max-height: 35vh;
|
|
padding: 0 6px 6px;
|
|
background: $simple-background-color;
|
|
will-change: transform;
|
|
|
|
&::-webkit-scrollbar-track:hover,
|
|
&::-webkit-scrollbar-track:active {
|
|
background-color: rgba($base-overlay-background, 0.3);
|
|
}
|
|
}
|
|
|
|
.emoji-mart-search {
|
|
padding: 10px 45px 10px 10px;
|
|
background: $simple-background-color;
|
|
|
|
input {
|
|
padding: 7px 9px;
|
|
font-family: inherit;
|
|
display: block;
|
|
width: 100%;
|
|
background: rgba($ui-secondary-color, 0.3);
|
|
color: $inverted-text-color;
|
|
|
|
@include text-sizing(14px, 400);
|
|
@include border-design($ui-secondary-color, 1px, 4px);
|
|
|
|
&::-moz-focus-inner {
|
|
border: 0;
|
|
}
|
|
|
|
&::-moz-focus-inner,
|
|
&:focus,
|
|
&:active {
|
|
outline: 0 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.emoji-mart-category .emoji-mart-emoji {
|
|
cursor: pointer;
|
|
|
|
span {
|
|
z-index: 1;
|
|
position: relative;
|
|
text-align: center;
|
|
}
|
|
|
|
&:hover::before {
|
|
z-index: 0;
|
|
background-color: rgba($ui-secondary-color, 0.7);
|
|
border-radius: 100%;
|
|
|
|
@include pseudo;
|
|
@include size(100%);
|
|
@include abs-position(0, auto, auto, 0, false);
|
|
}
|
|
}
|
|
|
|
.emoji-mart-category-label {
|
|
z-index: 2;
|
|
position: relative;
|
|
position: -webkit-sticky;
|
|
position: sticky;
|
|
top: 0;
|
|
|
|
span {
|
|
display: block;
|
|
width: 100%;
|
|
font-weight: 500;
|
|
padding: 5px 6px;
|
|
background: $simple-background-color;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-emoji {
|
|
position: relative;
|
|
display: inline-block;
|
|
font-size: 0;
|
|
|
|
span {
|
|
@include size(22px);
|
|
}
|
|
}
|
|
|
|
.emoji-mart-no-results {
|
|
font-size: 14px;
|
|
text-align: center;
|
|
padding-top: 70px;
|
|
color: $light-text-color;
|
|
|
|
.emoji-mart-category-label {
|
|
display: none;
|
|
}
|
|
|
|
.emoji-mart-no-results-label {
|
|
margin-top: .2em;
|
|
}
|
|
|
|
.emoji-mart-emoji:hover::before {
|
|
content: none;
|
|
}
|
|
}
|
|
|
|
.emoji-mart-preview {
|
|
display: none;
|
|
} |