forked from OverlayPlugin/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oopsy_summary.css
161 lines (130 loc) · 2.47 KB
/
oopsy_summary.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
:root {
--table-cols: 5;
}
html {
overflow: visible !important;
font-family: Meiryo, sans-serif;
font-size: 16;
}
.mistake-row {
height: 25px;
align-items: center;
}
.mistake-row .mistake-icon {
order: 2;
margin-right: 3px;
font-size: 20px;
}
.mistake-text {
order: 3;
}
.mistake-time {
order: 1;
margin-right: 5px;
}
.mistake-collapser {
order: 5;
margin-left: 5px;
}
.mistake-collapser::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
/* these are icon fonts, so there's no fallback for this */
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f138";
}
.mistake-collapser.expanded::before {
content: "\f13a";
}
.summary {
margin: 5px;
}
.section {
margin-bottom: 20px;
max-width: 800px;
}
.section-header {
display: flex;
font-weight: bold;
font-size: 18;
}
.section-header > div {
margin-right: 5px;
}
.section-rows {
padding-left: 10px;
max-width: 500px;
}
.mistake-table {
display: grid;
grid-template-columns: repeat(var(--table-cols), max-content);
margin: 20px;
}
.mistake-table div {
padding-top: 3px;
padding-bottom: 3px;
text-align: right;
box-sizing: border-box;
/* give all columns a light border, override first column below */
border-right: solid grey 1px;
}
/* first row */
.mistake-table .header {
border-bottom: solid black 2px;
order: -1;
}
/* first row, not first column */
.mistake-table .mistake-icon {
text-align: center;
min-width: 30px;
width: 100%;
}
/* first column */
.mistake-table .name {
padding-right: 5px;
border-right: solid black 2px;
}
/* not first column, not first row */
.mistake-table .number {
/* numbers are aligned right, but "centered" a little with padding */
padding-left: 12px;
padding-right: 12px;
}
.death-details {
display: none;
}
.death-details.expanded {
margin-left: 40px;
display: grid;
grid-template-columns: max-content minmax(50px, max-content) minmax(10px, max-content) max-content max-content;
column-gap: 10px;
}
.death-row-hp {
text-align: right;
}
.death-row-amount {
text-align: right;
font-weight: bold;
}
.death-row-icon {
width: 18px;
}
.death-details .damage {
color: rgb(255 0 0);
}
.death-details .heal {
color: rgb(16 205 16);
}
.death-row-icon.mistake-icon {
order: unset;
}
.death-row-text {
text-align: left;
}
.death-row-time {
text-align: right;
}