11/*
22Copyright 2015, 2016 OpenMarket Ltd
3+ Copyright 2021 Michael Weimann <mail@michael-weimann.eu>
34
45Licensed under the Apache License, Version 2.0 (the "License");
56you may not use this file except in compliance with the License.
@@ -15,16 +16,69 @@ limitations under the License.
1516*/
1617
1718.mx_MessageContextMenu {
18- padding : 6px ;
19- }
2019
21- .mx_MessageContextMenu_field {
22- display : block ;
23- padding : 3px 6px 3px 6px ;
24- cursor : pointer ;
25- white-space : nowrap ;
26- }
20+ .mx_IconizedContextMenu_icon {
21+ width : 16px ;
22+ height : 16px ;
23+ display : block ;
24+
25+ & ::before {
26+ content : ' ' ;
27+ width : 16px ;
28+ height : 16px ;
29+ display : block ;
30+ mask-position : center ;
31+ mask-size : contain ;
32+ mask-repeat : no-repeat ;
33+ background : $primary-fg-color ;
34+ }
35+ }
36+
37+ .mx_MessageContextMenu_iconCollapse ::before {
38+ mask-image : url (' $(res)/img/element-icons/message/chevron-up.svg' );
39+ }
40+
41+ .mx_MessageContextMenu_iconReport ::before {
42+ mask-image : url (' $(res)/img/element-icons/warning-badge.svg' );
43+ }
44+
45+ .mx_MessageContextMenu_iconLink ::before {
46+ mask-image : url (' $(res)/img/element-icons/link.svg' );
47+ }
48+
49+ .mx_MessageContextMenu_iconPermalink ::before {
50+ mask-image : url (' $(res)/img/element-icons/room/share.svg' );
51+ }
52+
53+ .mx_MessageContextMenu_iconUnhidePreview ::before {
54+ mask-image : url (' $(res)/img/element-icons/settings/appearance.svg' );
55+ }
56+
57+ .mx_MessageContextMenu_iconForward ::before {
58+ mask-image : url (' $(res)/img/element-icons/message/fwd.svg' );
59+ }
60+
61+ .mx_MessageContextMenu_iconRedact ::before {
62+ mask-image : url (' $(res)/img/element-icons/trashcan.svg' );
63+ }
64+
65+ .mx_MessageContextMenu_iconResend ::before {
66+ mask-image : url (' $(res)/img/element-icons/retry.svg' );
67+ }
68+
69+ .mx_MessageContextMenu_iconSource ::before {
70+ mask-image : url (' $(res)/img/element-icons/room/format-bar/code.svg' );
71+ }
72+
73+ .mx_MessageContextMenu_iconQuote ::before {
74+ mask-image : url (' $(res)/img/element-icons/room/format-bar/quote.svg' );
75+ }
76+
77+ .mx_MessageContextMenu_iconPin ::before {
78+ mask-image : url (' $(res)/img/element-icons/room/pin-upright.svg' );
79+ }
2780
28- .mx_MessageContextMenu_field.mx_MessageContextMenu_fieldSet {
29- font-weight : bold ;
81+ .mx_MessageContextMenu_iconUnpin ::before {
82+ mask-image : url (' $(res)/img/element-icons/room/pin.svg' );
83+ }
3084}
0 commit comments