UNPKG

1.66 kBSCSSView Raw
1.str-chat__simple-reactions-list {
2 list-style-type: none;
3 padding: var(--xxs-p) var(--xxs-p) calc(var(--xxs-p) / 2) var(--xxs-p);
4 display: inline-flex;
5 margin: var(--xs-m) 0 0 0;
6 border: 1px solid var(--border);
7 border-radius: var(--border-radius-sm);
8 line-height: 1;
9 position: relative;
10
11 &-tooltip {
12 position: absolute;
13 bottom: calc(100% + 10px);
14 left: 50%;
15 transform: translate(-50%, 0);
16 background: var(--overlay-dark);
17 border-radius: var(--border-radius-sm);
18 background-image: linear-gradient(-180deg, transparent, var(--black50));
19 min-height: 24px;
20 width: auto;
21 max-width: 275px;
22 padding: var(--xxs-p) var(--xs-p);
23 font-size: var(--sm-font);
24 color: var(--white);
25 text-align: center;
26
27 > .arrow {
28 position: absolute;
29 top: calc(100%);
30 left: 50%;
31 transform: translate(-50%, 0);
32 width: 0;
33 height: 0;
34 border-left: 4px solid transparent;
35 border-right: 4px solid transparent;
36 border-top: 4px solid var(--overlay-dark);
37 }
38 }
39
40 &-item {
41 margin: 0;
42 cursor: pointer;
43
44 > span {
45 line-height: 1;
46 }
47
48 .emoji-mart-emoji,
49 .str-chat__emoji {
50 &:hover {
51 transition: transform 0.2s ease-in-out;
52 transform: scale(1.2);
53 }
54 }
55
56 &--last-number {
57 font-size: var(--xs-font);
58 display: flex;
59 align-items: center;
60 color: black;
61 }
62 }
63}
64
65.dark.str-chat {
66 .str-chat__simple-reactions-list {
67 border: 1px solid var(--white10);
68 border-radius: var(--border-radius-sm);
69
70 &-item {
71 &--last-number {
72 color: var(--white);
73 }
74 }
75 }
76}