-
Notifications
You must be signed in to change notification settings - Fork 6
/
style.css
206 lines (162 loc) · 3.29 KB
/
style.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
:root {
--color-todo: rgb(255, 242, 242);
--color-ident: rgb(175, 200, 220); /* same as vZome default background */
--color-ident-selected: rgb(87, 100, 110); /* each RGB channel is 1/2 of unselected value */
--color-balls: rgb(255, 255, 255);
--color-balls-selected: rgb(127, 127, 127);
--color-blu-strut: rgb(0, 118, 149);
--color-yel-strut: rgb(240, 160, 0);
--color-red-strut: rgb(175, 0, 0);
--color-grn-strut: rgb(0, 141, 54);
--color-blu-panel: rgb(127, 186, 202);
--color-yel-panel: rgb(247, 207, 127);
--color-red-panel: rgb(215, 127, 127);
--color-grn-panel: rgb(127, 198, 154);
}
html, body {
height: 100%;
width: 100%;
margin: 0; /* This is essential to avoid a small white border around the whole main div. */
}
.main-grid {
display: grid;
grid-template-columns: minmax( 0, 3fr ) minmax( 0, 5fr );
grid-template-rows: min-content minmax( 0, 1fr );
grid-template-areas:
"intro intro"
"table viewer";
gap: 7px;
height: 100vh;
}
.intro {
grid-area: intro;
max-width: 800px;
margin: auto;
}
.viewer {
position: relative;
grid-area: viewer;
width: 100%;
}
#viewer {
width: 99%;
height: 99%;
}
.viewer h1 {
cursor: default; /* disable the "I-beam" text cursor */
position: absolute;
z-index: 300;
top: 1rem;
left: 3rem;
}
.table {
grid-area: table; /* added for the grid above */
overflow: auto;
}
/*
This CSS originally copied largely as-is from:
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Styling_tables
*/
/* spacing */
table {
border-collapse: collapse;
cursor: default; /* disable the "I-beam" text cursor */
table-layout: fixed;
width: 100%;
}
thead th:nth-child(1) {
width: 10%;
}
thead th {
width: 9%;
}
th,
td {
border: 1px solid gray;
padding: 3px;
}
th.ident, td.done {
background-color: var(--color-ident);
font-weight: bold;
}
td.todo {
background-color: var(--color-todo);
font-style: italic;
}
th.balls, td.balls {
background-color: var(--color-balls);
}
th.blu, td.blu {
background-color: var(--color-blu-panel);
}
th.yel, td.yel {
background-color: var(--color-yel-panel);
}
th.red, td.red {
background-color: var(--color-red-panel);
}
th.grn, td.grn {
background-color: var(--color-grn-panel);
}
/* selected table row */
tr.selected,
tr.selected td {
border: 1px solid black;
color: white;
font-weight: bold;
}
tr.selected td.done {
background-color: var(--color-ident-selected)
}
tr.selected td.balls {
background-color: var(--color-balls-selected);
}
tr.selected td.blu {
background-color: var(--color-blu-strut);
}
tr.selected td.yel {
background-color: var(--color-yel-strut);
}
tr.selected td.red {
background-color: var(--color-red-strut);
}
tr.selected td.grn {
background-color: var(--color-grn-strut);
}
/* typography */
td.chiral::before {
content: '*';
}
html {
font-family: "helvetica neue", helvetica, arial, sans-serif;
}
th {
letter-spacing: 2px;
}
td {
letter-spacing: 1px;
}
thead td {
text-align: center;
}
tbody td {
text-align: center;
}
tfoot th {
text-align: right;
}
/* graphics and colors */
thead,
tfoot {
/* position:fixed; */
background: whitesmoke;
}
thead th,
tfoot th,
tfoot td {
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0.2)
);
}