-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathRoomListSectionHeaderView.module.css
More file actions
79 lines (65 loc) · 1.56 KB
/
RoomListSectionHeaderView.module.css
File metadata and controls
79 lines (65 loc) · 1.56 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
/*
* Copyright 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
.header {
/* Remove button default style */
background: unset;
border: none;
text-align: unset;
width: 100%;
cursor: pointer;
font: var(--cpd-font-body-sm-regular);
color: var(--cpd-color-text-secondary);
padding: var(--cpd-space-1x) 0;
background-color: var(--cpd-color-bg-canvas-default);
&:hover,
&:focus-visible {
color: var(--cpd-color-text-primary);
svg {
fill: var(--cpd-color-icon-primary);
}
.container {
background-color: var(--cpd-color-bg-action-tertiary-hovered);
}
}
svg {
transition: transform 0.05s linear;
}
@media (prefers-reduced-motion: reduce) {
svg {
transition: none;
}
}
&[aria-expanded="true"] {
svg {
transform: rotate(90deg);
}
}
&.unread {
font: var(--cpd-font-body-sm-semibold);
color: var(--cpd-color-text-primary);
}
}
.container {
margin: 0 var(--cpd-space-3x);
padding: var(--cpd-space-1-5x) var(--cpd-space-2x) var(--cpd-space-1-5x) var(--cpd-space-1x);
border-radius: 8px;
svg {
flex-shrink: 0;
}
}
.title {
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.firstHeader {
padding-top: 0;
}
.lastHeader {
padding-bottom: 0;
}