Skip to content

Commit 07b6e21

Browse files
committed
CSS for group invite tiles
1 parent ee6e36c commit 07b6e21

3 files changed

Lines changed: 77 additions & 0 deletions

File tree

‎src/skins/vector/css/_components.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
@import "./matrix-react-sdk/views/elements/_ProgressBar.scss";
3333
@import "./matrix-react-sdk/views/elements/_RichText.scss";
3434
@import "./matrix-react-sdk/views/elements/_RoleButton.scss";
35+
@import "./matrix-react-sdk/views/groups/_GroupInviteTile.scss";
3536
@import "./matrix-react-sdk/views/login/_InteractiveAuthEntryComponents.scss";
3637
@import "./matrix-react-sdk/views/login/_ServerConfig.scss";
3738
@import "./matrix-react-sdk/views/messages/_MEmoteBody.scss";
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
Copyright 2017 New Vector Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_GroupInviteTile {
18+
position: relative;
19+
cursor: pointer;
20+
font-size: 13px;
21+
display: block;
22+
height: 34px;
23+
}
24+
25+
.mx_GroupInviteTile_nameContainer {
26+
display: inline-block;
27+
width: 180px;
28+
height: 24px;
29+
}
30+
31+
.mx_GroupInviteTile_avatarContainer {
32+
display: inline-block;
33+
padding-top: 5px;
34+
padding-bottom: 5px;
35+
padding-left: 16px;
36+
padding-right: 6px;
37+
width: 24px;
38+
height: 24px;
39+
vertical-align: middle;
40+
}
41+
42+
.mx_GroupInviteTile_name {
43+
display: inline-block;
44+
position: relative;
45+
width: 165px;
46+
vertical-align: middle;
47+
padding-left: 6px;
48+
padding-right: 6px;
49+
padding-top: 2px;
50+
padding-bottom: 3px;
51+
color: $roomtile-name-color;
52+
white-space: nowrap;
53+
overflow: hidden;
54+
text-overflow: ellipsis;
55+
}
56+
57+
.mx_GroupInviteTile_badge {
58+
display: inline-block;
59+
min-width: 15px;
60+
height: 15px;
61+
position: absolute;
62+
right: 8px; /*gutter */
63+
top: 9px;
64+
border-radius: 8px;
65+
color: $accent-fg-color;
66+
background-color: $group-alert-color;
67+
font-weight: 600;
68+
font-size: 10px;
69+
text-align: center;
70+
padding-top: 1px;
71+
padding-left: 4px;
72+
padding-right: 4px;
73+
}
74+

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ $warning-color: #ff0064;
2222
$mention-user-pill-bg-color: #ff0064;
2323
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
2424

25+
$group-alert-color: #774f7e;
26+
2527
$preview-bar-bg-color: #f7f7f7;
2628

2729
// left-panel style muted accent color

0 commit comments

Comments
 (0)