-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAcknowledgmentPicker.scss
More file actions
71 lines (56 loc) · 1.72 KB
/
AcknowledgmentPicker.scss
File metadata and controls
71 lines (56 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
@import "../core";
@mixin acknowledgment-glyph($name) {
&[attr-acknowledgment-name=#{$name}]::after {
--acknowledgment-glyph-url: var(--ack-#{$name}-url);
@content;
}
}
.acknowledgment-picker {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
width: 200px;
column-gap: 5px;
background: var(--tapback-background);
border-radius: 25px;
padding: 2.5px 7.5px;
.acknowledgment-button {
aspect-ratio: 1/1;
border-radius: 50%;
overflow: hidden;
position: relative;
cursor: pointer;
&::before, &::after {
content: '';
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
transition: background-color 100ms linear;
}
&::before {
background-color: var(--tapback-background);
}
&[attr-selected=true] {
&::before {
background-color: var(--active-chat);
}
&[attr-acknowledgment-name=heart] {
--active-ack-color: var(--heart-active);
}
&:not([attr-acknowledgment-name=heart]) {
--active-ack-color: var(--ack-active);
}
}
@include acknowledgment-glyph(heart);
@include acknowledgment-glyph(thumbs-up);
@include acknowledgment-glyph(thumbs-down);
@include acknowledgment-glyph(emphasize);
@include acknowledgment-glyph(question);
@include acknowledgment-glyph(haha-en);
&::after {
mask-border-source: var(--acknowledgment-glyph-url);
background: var(--active-ack-color, #808080);
}
}
}