-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBetterMessageButtonsAlternate.theme.css
69 lines (60 loc) · 2.46 KB
/
BetterMessageButtonsAlternate.theme.css
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
/**
* @name Better Message Buttons Alternate
* @description Organizes the message buttons in a grid, with Reply, Edit, and Forward buttons separated
* @author Andrew Grant
* @version 2.1
*/
:root {
--msg-solo-button-width: 36px;
--msg-grid-button-padding: 32px;
--msg-grid-columns: 2;
--msg-button-height: 64px;
--msg-button-border-radius: 8px;
--msg-section-spacing: 12px;
--msg-offset-Y: 0px;
}
div[class^="buttonsInner_"] {
grid: repeat(var(--msg-grid-columns), var(--msg-grid-button-padding)) / auto-flow var(--msg-grid-button-padding);
grid-auto-flow: column;
transform: translateX(calc(((var(--msg-section-spacing) / 2) + var(--msg-solo-button-width)) * -1)) translateY(calc(var(--msg-offset-Y) * -1));
border-radius: var(--msg-button-border-radius);
}
/* don't make disconnected buttons have hover styling */
div[class^="buttonsInner_"]:has(div[aria-label="Reply"]:hover),
div[class^="buttonsInner_"]:has(div[aria-label="Edit"]:hover),
div[class^="buttonsInner_"]:has(div[aria-label="Forward"]:hover) {
border: 1px solid var(--border-subtle);
box-shadow: var(--elevation-stroke);
}
div[aria-label="Reply"], div[aria-label="Edit"], div[aria-label="Forward"] {
order: 1;
grid-row: span 2;
height: var(--msg-button-height);
width: var(--msg-solo-button-width);
border: 1px solid var(--border-faint);
border-radius: var(--msg-button-border-radius);
position: absolute;
box-shadow: var(--shadow-low);
background: var(--background-nested-floating);
right: calc((var(--msg-section-spacing) + var(--msg-solo-button-width)) * -1);
}
div[aria-label="Forward"] {
left: calc((var(--msg-section-spacing) + var(--msg-solo-button-width)) * -1);
}
/* for use with ShowAllMessageButtons plugin */
div[class^="buttonsInner_"]:has(div[aria-label="Edit"]):has(div[aria-label="Reply"]) {
transform: translateX(calc(((var(--msg-section-spacing) * 2) + (var(--msg-solo-button-width) * 2)) * -1));
}
/* for use with ShowAllMessageButtons plugin */
div[class^="buttonsInner_"]:has(div[aria-label="Edit"]) div[aria-label="Reply"] {
right: calc(((var(--msg-section-spacing) * 2) + (var(--msg-solo-button-width) * 2)) * -1);
}
div[aria-label="Reply"]:hover, div[aria-label="Edit"]:hover, div[aria-label="Forward"]:hover {
background: var(--background-nested-floating);
box-shadow: var(--elevation-stroke), var(--elevation-medium);
border: 1px solid var(--border-subtle);
opacity: 1;
}
div[class*="popoverReactionHoverBar_"] > div[class^="separator_"] {
display: none;
}