This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +44
-16
lines changed Expand file tree Collapse file tree 8 files changed +44
-16
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,20 @@ limitations under the License.
20
20
color : $secondary-content ;
21
21
}
22
22
23
- .mx_ShareLatestLocation_copy {
23
+ // double class to be more specific than the general mx_CopyableText CSS rule
24
+ .mx_CopyableText.mx_ShareLatestLocation_copy {
24
25
// override copyable text style to make compact
25
26
.mx_CopyableText_copyButton {
27
+ height : 13px ;
26
28
margin-left : $spacing-8 !important ;
29
+ position : relative ;
30
+ top : -1px ;
31
+ width : 13px ;
32
+
33
+ & ::before {
34
+ background-color : $secondary-content ;
35
+ height : 13px ;
36
+ width : 13px ;
37
+ }
27
38
}
28
39
}
Original file line number Diff line number Diff line change @@ -91,7 +91,12 @@ limitations under the License.
91
91
}
92
92
93
93
.mx_MessageContextMenu_iconCopy ::before {
94
+ height : 12px ;
95
+ left : 2px ;
94
96
mask-image : url ($copy-button-url );
97
+ position : relative ;
98
+ width : 12px ;
99
+ top : 3px ;
95
100
}
96
101
97
102
.mx_MessageContextMenu_iconEdit ::before {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ limitations under the License.
16
16
*/
17
17
18
18
.mx_CopyableText {
19
+ align-items : flex-start ;
19
20
display : flex ;
20
21
justify-content : space-between ;
21
22
width : max-content ;
@@ -31,19 +32,25 @@ limitations under the License.
31
32
32
33
.mx_CopyableText_copyButton {
33
34
flex-shrink : 0 ;
34
- width : 20px ;
35
- height : 20px ;
35
+ // using em here to adapt to the local font size
36
+ width : 1em ;
37
+ height : 1em ;
36
38
cursor : pointer ;
37
39
margin-left : 20px ;
38
40
display : block ;
41
+ // center to first line
42
+ position : relative ;
43
+ top : .15em ;
39
44
40
45
& ::before {
41
46
content : " " ;
42
-
43
47
mask-image : url ($copy-button-url );
48
+ mask-position : center center ;
49
+ mask-repeat : no-repeat ;
50
+ mask-size : contain ;
44
51
background-color : $message-action-bar-fg-color ;
45
- width : 20 px ;
46
- height : 20 px ;
52
+ width : 1 em ;
53
+ height : 1 em ;
47
54
display : block ;
48
55
background-repeat : no-repeat ;
49
56
}
Original file line number Diff line number Diff line change @@ -611,6 +611,16 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
611
611
mask-size : 75% ;
612
612
}
613
613
}
614
+
615
+ .mx_EventTile_copyButton {
616
+ height : 17px ;
617
+ mask-image : url ($copy-button-url );
618
+ mask-position : center center ;
619
+ mask-repeat : no-repeat ;
620
+ mask-size : contain ;
621
+ right : 9px ;
622
+ width : 17px ;
623
+ }
614
624
}
615
625
}
616
626
@@ -631,10 +641,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
631
641
cursor : pointer ;
632
642
}
633
643
634
- .mx_EventTile_copyButton {
635
- mask-image : url ($copy-button-url );
636
- }
637
-
638
644
.mx_EventTile_collapseButton ,
639
645
.mx_EventTile_expandButton {
640
646
mask-position : center ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ $event-highlight-bg-color: $yellow-background;
210
210
// event timestamp
211
211
$event-timestamp-color : #acacac ;
212
212
213
- $copy-button-url : " $(res)/img/feather-customised/clipboard .svg" ;
213
+ $copy-button-url : " $(res)/img/element-icons/copy .svg" ;
214
214
215
215
// e2e
216
216
$e2e-verified-color : #76cfa5 ; // N.B. *NOT* the same as $accent
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ $focus-brightness: 105%;
325
325
326
326
// Icon URLs
327
327
// ********************
328
- $copy-button-url : " $(res)/img/feather-customised/clipboard .svg" ;
328
+ $copy-button-url : " $(res)/img/element-icons/copy .svg" ;
329
329
// ********************
330
330
331
331
// Location sharing
You can’t perform that action at this time.
0 commit comments