Skip to content

Commit 5775552

Browse files
committed
css for e2e look & feel
1 parent dd4617a commit 5775552

File tree

2 files changed

+46
-8
lines changed

2 files changed

+46
-8
lines changed

src/skins/vector/css/matrix-react-sdk/views/rooms/EventTile.css

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ limitations under the License.
4343
padding-top: 0px ! important;
4444
}
4545

46-
.mx_EventTile_verified {
47-
background-color: #eaf5f0;
48-
}
49-
50-
.mx_EventTile_unverified {
51-
background-color: #ffa0a0;
52-
}
53-
5446
.mx_EventTile .mx_SenderProfile {
5547
color: #454545;
5648
opacity: 0.5;
@@ -126,6 +118,10 @@ limitations under the License.
126118
color: #fff;
127119
}
128120

121+
.mx_EventTile_encrypting {
122+
color: #abddbc ! important;
123+
}
124+
129125
.mx_EventTile_sending {
130126
color: #ddd;
131127
}
@@ -231,6 +227,43 @@ limitations under the License.
231227
overflow-y: hidden;
232228
}
233229

230+
/* End to end encryption stuff */
231+
232+
.mx_EventTile_e2eIcon {
233+
display: block;
234+
position: absolute;
235+
top: 9px;
236+
left: 46px;
237+
z-index: 2;
238+
}
239+
240+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line,
241+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
242+
padding-left: 60px;
243+
}
244+
245+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_line {
246+
border-left: #76cfa5 5px solid;
247+
}
248+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_line {
249+
border-left: #e8bf37 5px solid;
250+
}
251+
252+
.mx_EventTile:hover.mx_EventTile_verified .mx_MessageTimestamp,
253+
.mx_EventTile:hover.mx_EventTile_unverified .mx_MessageTimestamp {
254+
left: 3px;
255+
}
256+
257+
.mx_EventTile_verified .mx_EventTile_e2eIcon {
258+
display: none;
259+
}
260+
261+
.mx_EventTile:hover.mx_EventTile_verified .mx_EventTile_e2eIcon,
262+
.mx_EventTile:hover.mx_EventTile_unverified .mx_EventTile_e2eIcon {
263+
display: block;
264+
left: 41px;
265+
}
266+
234267
/* Various markdown overrides */
235268

236269
.mx_EventTile_content .markdown-body {

src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ limitations under the License.
4646
width: 100%;
4747
}
4848

49+
.mx_MessageComposer_e2eIcon {
50+
position: absolute;
51+
left: 46px;
52+
}
53+
4954
.mx_MessageComposer_noperm_error {
5055
width: 100%;
5156
height: 60px;

0 commit comments

Comments
 (0)