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

148 lines
2.1 KiB
SCSS
Raw Normal View History

2020-05-20 11:11:44 -07:00
.emoji-react {
display: inline-block;
transition: 0.1s;
color: var(--primary-text-color--faint);
text-decoration: none;
2020-05-20 11:11:44 -07:00
&__emoji {
img {
width: 20px;
height: 20px;
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 {
display: none;
}
+ .emoji-react {
margin-right: -8px;
}
}
2020-07-08 19:42:34 -07:00
.emoji-react--reblogs {
vertical-align: middle;
display: inline-flex;
i.fa {
color: var(--highlight-text-color);
font-size: 20px;
margin-right: 0.2em;
}
2021-09-12 16:54:38 -07:00
.svg-icon {
margin-right: 0.2em;
}
2020-07-08 19:42:34 -07:00
}
2020-05-20 11:11:44 -07:00
.emoji-reacts {
display: inline-flex;
flex-direction: row-reverse;
}
.status-interaction-bar {
margin-right: auto;
min-height: 20px;
}
2020-05-20 11:11:44 -07:00
.emoji-reacts-container {
display: inline-flex;
margin-right: 0.4em;
2020-05-20 11:11:44 -07:00
&:hover {
.emoji-react {
margin: 0;
&__count {
display: inline;
}
}
.emoji-reacts__count {
display: none;
}
}
}
.emoji-reacts__count,
.emoji-react__count {
font-size: 12px;
font-weight: bold;
2020-07-08 19:42:34 -07:00
transform: translateY(2px);
2020-05-20 11:11:44 -07:00
}
.emoji-react-selector-container {
&:hover,
&:focus {
outline: 0;
}
}
.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 {
width: 30px;
height: 30px;
2020-05-20 14:52:32 -07:00
padding: 3px;
transition: 0.1s;
}
&:hover,
&:focus {
2020-05-20 14:52:32 -07:00
img {
width: 36px;
height: 36px;
padding: 0;
}
}
}
}
.status__action-bar__counter--favourite {
position: relative;
@media (max-width: 455px) {
2020-05-23 10:18:13 -07:00
position: static;
}
}
.detailed-status__wrapper .emoji-react-selector {
bottom: 40px;
right: 10px;
}
.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;
}
}