bigbuffet-rw/app/styles/components/emoji-reacts.scss

99 lines
1.4 KiB
SCSS
Raw Normal View History

2020-05-20 11:11:44 -07:00
.emoji-react {
@apply inline-block text-gray-900 dark:text-gray-300 no-underline;
transition: 0.2s;
2020-05-20 11:11:44 -07:00
&__emoji {
img {
@apply w-5 h-5;
2020-05-31 19:05:00 -07:00
filter: drop-shadow(2px 0 0 var(--foreground-color));
2020-05-20 11:11:44 -07:00
}
}
&__count {
@apply hidden;
2020-05-20 11:11:44 -07:00
}
+ .emoji-react {
@apply -mr-3;
2020-05-20 11:11:44 -07:00
}
&[type='button'] {
cursor: pointer;
}
2020-05-20 11:11:44 -07:00
}
.emoji-reacts {
display: inline-flex;
flex-direction: row-reverse;
}
.emoji-reacts-container {
display: inline-flex;
&:hover {
.emoji-react {
margin: 0;
&__count {
display: inline;
}
}
.emoji-reacts__count {
display: none;
}
}
}
.emoji-react-selector {
position: absolute;
display: flex;
2020-06-02 14:49:42 -07:00
background-color: var(--foreground-color);
2020-05-20 14:52:32 -07:00
padding: 5px 8px;
border-radius: 9999px;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
opacity: 0;
pointer-events: none;
transition: 0.1s;
z-index: 999;
&--visible,
&--focused {
opacity: 1;
pointer-events: all;
}
&__emoji {
display: block;
2020-05-20 14:52:32 -07:00
padding: 0;
margin: 0;
border: 0;
background: transparent;
img {
2022-03-29 13:17:39 -07:00
width: 36px;
height: 36px;
2020-05-20 14:52:32 -07:00
padding: 3px;
transition: 0.1s;
}
&:hover,
&:focus {
2020-05-20 14:52:32 -07:00
img {
2021-09-23 16:45:55 -07:00
transform: scale(1.2);
2020-05-20 14:52:32 -07:00
}
}
}
}
.status .emoji-react-selector {
2020-05-23 10:18:13 -07:00
bottom: 100%;
left: -20px;
2020-05-23 10:18:13 -07:00
@media (max-width: 455px) {
2020-05-23 10:18:13 -07:00
bottom: 31px;
right: 10px;
left: auto;
}
}