forked from to-omer/newincrementalgame-simulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnig_sim.css
128 lines (123 loc) · 3.09 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
:root {
--challenge-width: 80vh;
}
table.challenge-table {
width: min(100%, var(--challenge-width));
border-collapse: collapse;
}
.challenge-table td, .challenge-table th {
position: relative;
border: 1px solid lightslategrey;
padding: 0;
}
.challenge-table thead tr:first-of-type th, .challenge-table tbody tr:first-of-type th, .challenge-table tbody tr:first-of-type td {
border-top: 1px solid black;
}
.challenge-table tbody tr:last-of-type th, .challenge-table tbody tr:last-of-type td {
border-bottom: 1px solid black;
}
.challenge-table tr th:first-of-type, .challenge-table tr td:first-of-type {
border-left: 1px solid black;
}
.challenge-table tr td:last-of-type, .challenge-table tr th:last-of-type, .challenge-table thead tr:first-of-type th:first-of-type {
border-right: 1px solid black;
}
.challenge-table td::after, .challenge-table th::after {
content: '';
display: block;
width: 100%;
margin-top: 100%;
}
td .challenge-cell, th .challenge-cell {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
vertical-align: middle;
font-weight: normal;
border-width: 0;
}
.show-cleared-challenge td .cleared-challenge {
background-color: orange;
}
.show-cleared-challenge td .now-challenging {
background-color: red;
}
td .unchallengeable {
background-color: darkgray;
}
.challenge-color {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
width: 100%;
height: 100%;
z-index: 1;
}
.show-cleared-challenge .cleared-challenge .challenge-color, .show-cleared-challenge .now-challenging .challenge-color {
width: 80%;
height: 80%;
border-radius: 50%;
}
.challenge-cell .challenge-tooltip {
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;
}
.challenge-cell:hover .challenge-tooltip {
visibility: visible;
}
.challenge-colorbar {
position: relative;
height: 20px;
width: min(100%, var(--challenge-width));
background: linear-gradient(90deg, #00ff00, #11ff52, #23ff9b, #34ffda, #46eeff, #57c2ff, #699fff, #7a86ff, #a18cff, #ca9dff, #e9afff, #ffc0ff);
}
.hide-challenge-color .challenge-color, .hide-challenge-color .challenge-colorbar {
visibility: hidden;
}
#gaBought .btn-sm {
padding: 0.25rem;
}
@media screen and (max-width: 700px) {
td .challenge-cell, th .challenge-cell {
font-size: small;
}
#controlButtons .btn {
padding: .25rem .25rem;
font-size: .725rem;
}
}
.tooltip-cell {
position: relative;
}
.tooltip-cell .up-tooltip {
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;
}
.tooltip-cell:hover .up-tooltip {
visibility: visible;
}