-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathReactionSelector.scss
More file actions
95 lines (81 loc) · 2.55 KB
/
ReactionSelector.scss
File metadata and controls
95 lines (81 loc) · 2.55 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@use '../../../styling/utils' as utils;
@use './common' as common;
.str-chat__reaction-selector {
display: flex;
padding-inline: var(--str-chat__spacing-xxs);
padding-block: var(--str-chat__spacing-xxs);
align-items: center;
gap: var(--str-chat__spacing-xs);
border-radius: var(--str-chat__radius-4xl);
background: var(--str-chat__background-core-elevation-2);
box-shadow: var(--str-chat__box-shadow-3);
&:has(.str-chat__reaction-selector-extended-list) {
padding: 0;
display: block;
@include utils.scrollable-y;
scrollbar-width: none;
border-radius: var(--str-chat__radius-lg);
max-height: 320px;
@include common.clipping-fade;
}
.str-chat__reaction-selector__add-button {
width: 32px;
aspect-ratio: 1/1;
.str-chat__icon {
width: var(--str-chat__icon-size-sm);
height: var(--str-chat__icon-size-sm);
}
}
&:has(.str-chat__reaction-selector__add-button) {
padding-inline-end: var(--str-chat__spacing-xs);
}
.str-chat__reaction-selector-list {
list-style: none;
margin: var(--str-chat__spacing-none);
padding: var(--str-chat__spacing-none);
display: flex;
gap: var(--str-chat__space-2);
.str-chat__reaction-selector-list__item {
display: flex;
}
.str-chat__reaction-selector-list__item-button {
background-color: transparent;
border: none;
border-radius: var(--str-chat__radius-max);
cursor: pointer;
display: flex;
min-width: 40px;
min-height: 40px;
padding: var(--str-chat__spacing-none, 0);
justify-content: center;
align-items: center;
gap: var(--str-chat__spacing-none, 0);
&:not(:disabled):hover {
background-color: var(--str-chat__background-utility-hover);
}
&:not(:disabled):active {
background-color: var(--str-chat__background-utility-pressed);
}
&:not(:disabled):focus-visible {
outline: var(
--str-chat__focus-outline,
2px solid var(--str-chat__border-utility-focused)
);
outline-offset: -2px;
}
&:not(:disabled)[aria-pressed='true'] {
background-color: var(--str-chat__background-utility-selected);
}
.str-chat__reaction-icon {
font-size: var(--str-chat__typography-font-size-2xl);
height: var(--str-chat__typography-font-size-2xl);
width: var(--str-chat__typography-font-size-2xl);
font-family: system-ui;
line-height: 0;
display: flex;
justify-content: center;
align-items: center;
}
}
}
}