blob: 5890c1aa5e05c6c4af7189bfe8315438eb11206a (
plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
.message-run {
position: relative;
border-radius: 0.25rem;
padding: 0 0 0.5rem 0;
margin-top: 1rem;
margin-bottom: 1rem;
box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.own-message,
.own-message :link {
background-color: var(--colour-message-run-self-bg);
color: var(--colour-message-run-self-text);
border: 1px solid var(--colour-message-run-self-border);
margin-left: 1rem;
}
.other-message,
.other-message :link {
background-color: var(--colour-message-run-other-bg);
color: var(--colour-message-run-other-text);
border: 1px solid var(--colour-message-run-other-border);
margin-right: 1rem;
}
.message-run > .username {
background-color: var(--colour-message-run-username-bg);
color: var(--colour-message-run-username-text);
display: inline-block;
border-bottom-right-radius: 0.25rem;
padding: 0.25rem;
border-bottom: 1px solid var(--colour-message-run-username-border);
border-right: 1px solid var(--colour-message-run-username-border);
}
.message {
padding: 0.5rem 0 0 0.5rem;
position: relative;
}
.message.delete-armed,
.message.delete-armed:hover {
background-color: var(--colour-warn);
}
.message:hover {
background-color: var(--colour-message-hover-bg);
}
.message:hover * {
color: var(--colour-message-hover-text);
}
.message .handle {
--text-size: 0.75rem;
float: right;
line-height: var(--text-size);
font-size: var(--text-size);
top: -0.75rem;
right: 0.5rem;
position: absolute;
padding: 0.25rem;
border-radius: 0.25rem;
display: none;
background-color: var(--colour-message-handle-bg);
color: var(--colour-message-handle-text);
border: 1px solid var(--colour-message-handle-border);
}
.message:hover .handle {
display: flex;
}
.message .handle button {
line-height: 0.35rem;
background: none;
border: none;
cursor: pointer;
}
.message-body {
overflow: auto;
max-width: 80vw;
@media (width > 640px) {
/* 21rem is width of the nav bar in full-screen mode. */
max-width: calc(90vw - 21rem);
}
}
.message-body:empty:after {
content: '.';
visibility: hidden;
}
/* For rendered message bodies: */
.message-body blockquote {
margin-left: 0.25rem;
padding-left: 0.5rem;
border-left: 2px solid grey;
border-radius: 0.125rem;
}
.message-body blockquote * {
color: grey;
}
.message-body pre {
border: 1px solid #312e81;
border-radius: 0.25rem;
padding: 0.25rem;
}
.message-body code,
.message-body pre {
font-family: 'FiraCode', monospace;
}
|