UNPKG

3.62 kBSCSSView Raw
1%background-reaction-list {
2 background: url('#{$assetsPath}/str-chat__reaction-list-sprite@1x.png') no-repeat;
3 background-size: 59px 101px;
4
5 @media only screen and (-webkit-min-device-pixel-ratio: 2),
6 only screen and (min-resolution: 2dppx) {
7 background-image: url('#{$assetsPath}/str-chat__reaction-list-sprite@2x.png');
8 }
9
10 @media only screen and (-webkit-min-device-pixel-ratio: 3),
11 only screen and (min-resolution: 3dppx) {
12 background-image: url('#{$assetsPath}/str-chat__reaction-list-sprite@3x.png');
13 }
14}
15
16.str-chat__message,
17.str-chat__message-commerce {
18 .str-chat__reaction-list {
19 @extend %background-reaction-list;
20
21 position: absolute;
22 right: 15px;
23 top: -28px;
24 z-index: 1;
25 height: 33px;
26 width: initial;
27 background-position: 0 -66px;
28 background-repeat: repeat-x;
29
30 &.str-chat__reaction-list-hidden {
31 display: none;
32 }
33
34 ul {
35 position: relative;
36 list-style-type: none;
37 padding: 0;
38 font-size: var(--lg-font);
39 line-height: 26px;
40 display: flex;
41 justify-content: center;
42 margin: -1px -16px 0 0;
43 z-index: 888;
44
45 button {
46 cursor: pointer;
47 background-color: transparent;
48 border: none;
49 display: flex;
50 }
51 }
52
53 .emoji-mart-emoji,
54 .str-chat__emoji {
55 display: flex;
56 }
57
58 &::after,
59 &::before {
60 @extend %background-reaction-list;
61
62 position: absolute;
63 content: '';
64 top: 0;
65 height: 33px;
66 }
67
68 &::after {
69 right: -26px;
70 width: 26px;
71 background-position: -33px -33px;
72 }
73
74 &::before {
75 left: -13px;
76 width: 13px;
77 background-position: -0 -33px;
78 }
79
80 &--reverse {
81 right: initial;
82 left: 15px;
83 position: absolute;
84
85 ul {
86 margin: -1px -4px 0 -16px;
87 }
88
89 &::after {
90 right: -13px;
91 width: 13px;
92 background-position: -46px 0;
93 }
94
95 &::before {
96 left: -26px;
97 width: 26px;
98 background-position: -0 0;
99 }
100 }
101
102 li {
103 display: flex;
104 align-items: center;
105
106 button {
107 padding: 0;
108 }
109 }
110
111 &--counter {
112 color: var(--button-background);
113 font-size: var(--sm-font);
114 }
115
116 // Only displayed in theme-v2
117 .str-chat__message-reaction-count {
118 display: none;
119 }
120
121 // Only displayed in theme-v2
122 .str-chat__tooltip {
123 display: none;
124 }
125 }
126
127 &--me,
128 &--right {
129 .str-chat__message-commerce-inner {
130 > .str-chat__reaction-list {
131 left: 46px;
132 }
133 }
134
135 .str-chat__reaction-list {
136 right: initial;
137 left: 16px;
138
139 ul {
140 margin: -1px 0 0 -16px;
141 }
142
143 &::after {
144 right: -13px;
145 width: 13px;
146 background-position: -46px 0;
147 }
148
149 &::before {
150 left: -26px;
151 width: 26px;
152 background-position: -0 0;
153 }
154
155 &--reverse {
156 right: 15px;
157 left: initial;
158
159 ul {
160 margin: -1px -16px 0 0;
161 }
162
163 &::after {
164 right: -26px;
165 width: 26px;
166 background-position: -33px -33px;
167 }
168
169 &::before {
170 left: -13px;
171 width: 13px;
172 background-position: -0 -33px;
173 }
174 }
175 }
176 }
177}
178
179.str-chat__message-commerce {
180 &-inner {
181 > .str-chat__reaction-list {
182 left: unset;
183 right: 46px;
184 }
185 }
186
187 &--right {
188 .str-chat__message-commerce {
189 &-inner {
190 > .str-chat__reaction-list {
191 right: unset;
192 left: 46px;
193 }
194 }
195 }
196 }
197}