forked from clp-research/clembench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat-two-tracks.css
114 lines (92 loc) · 2.02 KB
/
chat-two-tracks.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
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
/* This CSS is an adaptation from the answer by Roko C. Buljan in https://stackoverflow.com/a/71155446 */
* {margin: 0; box-sizing: border-box;}
body {background-color: rgb(157, 152, 150);}
/* dialogue header */
.top-info {
text-align: center;
--rad: 20px;
--rad-sm: 3px;
font: 20px/1.5 sans-serif;
display: flex;
flex-direction: column;
padding: 20px;
max-width: 900px;
margin: auto;
background: #3f3e3e;
color: #fff;
}
.chat {
--rad: 20px;
--rad-sm: 3px;
font: 16px/1.5 sans-serif;
display: flex;
flex-direction: column;
padding: 20px;
max-width: 900px;
margin: auto;
background: #fff;
}
.msg {
position: relative;
max-width: 75%;
padding: 7px 15px;
margin-bottom: 30px;
}
/* 5 levels, two players to/from game master and meta messages form game master */
.msg.b-gm {
border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
background: #874aaf;
color: #fff;
margin-left: 60%;
}
.msg.a-gm {
border-radius: var(--rad-sm) var(--rad) var(--rad) var(--rad-sm);
background: #f39109;
color: #fff;
margin-right: 60%;
}
.msg.gm-a {
border-radius: var(--rad) var(--rad-sm) var(--rad-sm) var(--rad);
background: #c4c3c3;
color: #0c0c0c;
margin-right: 40%;
margin-left: 20%;
}
.msg.gm-b {
border-radius: var(--rad-sm) var(--rad) var(--rad) var(--rad-sm);
background: #c4c3c3;
color: #0c0c0c;
margin-right: 20%;
margin-left: 40%;
}
.msg.gm-gm {
background: #f1f1f1;
color: #373636;
margin-left: 40%;
margin-right: 40%;
font-size: 0.8rem;
}
/* speaker labels */
.msg::before {
content: attr(speaker);
font-size: 0.8rem;
position: absolute;
bottom: 100%;
color: #888;
white-space: nowrap;
}
.msg.b-gm::before {
right: 15px;
}
.msg.gm-a::before {
right: 15px;
}
.msg.a-gm::before {
left: 15px;
}
.msg.gm-b::before {
left: 15px;
}
.msg.gm-gm::before {
left: 0px;
}