-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.css
156 lines (143 loc) · 2.69 KB
/
index.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
body {
display: flex;
flex-direction: row;
justify-content: center;
align-content: flex-start;
font-family: sans-serif;
}
h1 {
border-bottom: solid black thin;
font-size: 14pt;
}
h2 {
font-size: 12pt;
margin-bottom: 0.2em;
}
#controls {
margin-right: 2em;
}
#controls > div {
position: relative;
}
#controls h1 {
font-variant: small-caps;
text-align: center;
}
#controls button {
width: 100%;
}
#controls th {
white-space: nowrap;
text-align: right;
}
#controls .sliderLabel {
width: 2em;
text-align: center;
overflow: hidden;
}
#controls .sliderLabel input {
width: 2em;
font-size: 12pt;
text-align: center;
overflow: hidden;
border: solid #999 thin;
}
#controls #playerNames, #controls #forbiddenPairs, #controls #discouragedGroups {
width: 100%;
box-sizing: border-box;
resize: none;
}
#controls p {
font-size: 10pt;
max-width: 305px;
}
#results {
width: 50%;
}
#results .conflictScore {
font-size: 10pt;
font-weight: normal;
float: right;
}
#results .groups {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
#results .groups .group {
min-width: 120px;
}
#results .groups .group ul {
margin-top: 0.2em;
padding-left: 20px;
}
.resultsSummary button {
float: right;
margin-left: 1em;
}
input[type=range]::-moz-range-track {
height: 5px;
background: #ddd;
border: none;
border-radius: 3px;
}
input[type=range]:focus::-moz-range-track {
background: #ccc;
}
#hide-help-link {
display: none;
}
.help-text {
display: none;
z-index: 10;
position: absolute;
box-sizing: border-box;
left: 100%;
margin-left: 4px;
width: 425px;
background-color: white;
border: #666 solid thin;
padding: 1em;
font-size: smaller;
}
/*
CSS-only loading spinner
source: https://stephanwagner.me/only-css-loading-spinner
*/
@keyframes spinner {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
.spinner {
position: relative;
}
.spinner:before {
content: '';
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 16px;
height: 16px;
margin-top: -8px;
margin-left: -8px;
border-radius: 50%;
border: 2px solid #ccc;
border-top-color: #000;
animation: spinner .6s linear infinite;
}
/*
Print mode: Something you could hand out to students.
- Full-width results
- Hide controls
- Hide conflict scores
- Hide results footer (timing and export controls)
- Avoid splitting round results across multiple pages
*/
@media print {
#results { width: unset; }
#controls { display: none; }
.conflictScore { display: none; }
.resultsSummary { display: none; }
.round { break-inside: avoid; }
}