-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnig_sim.css
129 lines (124 loc) · 2.94 KB
/
nig_sim.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
:root {
--chal-width: 80vh;
}
table.chaltable {
width: min(100%, var(--chal-width));
border-collapse: collapse;
}
.chaltable td, .chaltable th {
position: relative;
border: 1px solid lightslategrey;
padding: 0px;
}
.chaltable thead tr:first-of-type th, .chaltable tbody tr:first-of-type th, .chaltable tbody tr:first-of-type td {
border-top: 1px solid black;
}
.chaltable tbody tr:last-of-type th, .chaltable tbody tr:last-of-type td {
border-bottom: 1px solid black;
}
.chaltable tr th:first-of-type, .chaltable tr td:first-of-type {
border-left: 1px solid black;
}
.chaltable tr td:last-of-type, .chaltable tr th:last-of-type, .chaltable thead tr:first-of-type th:first-of-type {
border-right: 1px solid black;
}
.chaltable td::after, .chaltable th::after {
content: '';
display: block;
width: 100%;
margin-top: 100%;
}
td .chalcell, th .chalcell {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
vertical-align: middle;
font-weight: normal;
border-width: 0px;
}
.showclearedchallenge td .clearedchallenge {
background-color: orange;
}
.showclearedchallenge td .nowchallenging {
background-color: red;
}
td .unchallengeable {
background-color: darkgray;
}
.chalcolor {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
width: 100%;
height: 100%;
z-index: 1;
}
.showclearedchallenge .clearedchallenge .chalcolor, .showclearedchallenge .nowchallenging .chalcolor {
width: 80%;
height: 80%;
border-radius: 50%;
}
.chalcell .chaltooltip {
visibility: hidden;
background-color: black;
color: #fff;
text-align: center;
padding: 5px 0;
border-radius: 6px;
width: 18ch;
bottom: 130%;
left: 50%;
margin-left: -9ch;
position: absolute;
z-index: 2;
}
.chalcell:hover .chaltooltip {
visibility: visible;
}
.chalcolorbar {
position: relative;
height: 20px;
width: min(100%, var(--chal-width));
background: linear-gradient(90deg, #00ff00, #11ff52, #23ff9b, #34ffda, #46eeff, #57c2ff, #699fff, #7a86ff, #a18cff, #ca9dff, #e9afff, #ffc0ff);
}
.hidechallengecolor .chalcolor, .hidechallengecolor .chalcolorbar {
visibility: hidden;
}
#gabought .btn-sm {
padding: 0.25rem;
}
@media screen and (max-width: 700px) {
td .chalcell, th .chalcell {
font-size: small;
}
#controlButtons .btn {
padding: .25rem .25rem;
font-size: .725rem;
}
}
.tooltipcell {
position: relative;
}
.tooltipcell .uptooltip {
visibility: hidden;
background-color: black;
color: #fff;
text-align: center;
padding: 5px 5px;
border-radius: 6px;
width: 28ch;
bottom: 115%;
left: 50%;
margin-left: -14ch;
position: absolute;
z-index: 1;
}
.tooltipcell:hover .uptooltip {
visibility: visible;
}