-
Notifications
You must be signed in to change notification settings - Fork 2
/
map.css
171 lines (140 loc) · 3.44 KB
/
map.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
/* -------------- Basic map styling -------------- */
html, body {
height: 100%;
}
body {
background: black;
margin: 0;
padding: 0;
}
#map {
width: 100%; height: 100%;
background: black;
margin: 0 auto;
z-index: 1;
}
/* Tooltip styling */
.guild-name, p a {
background: transparent !important;
border: transparent !important;
color: white !important;
box-shadow: none !important;
text-align: center !important;
overflow-wrap: break-word !important;
white-space: normal !important;
width: 75px;
}
.identifier {
font-weight: bold !important;
margin: 0 0 0 0 !important;
}
.leaflet-tooltip-left.guild-name::before {
border-left-color: transparent !important;
}
.leaflet-tooltip-right.guild-name::before {
border-right-color: transparent !important;
}
/* -------------- Info overlay styling --------------- */
#info {
position: fixed; /* Sit on top of the page content */
width: 100%; /* Full width (cover the whole page) */
height: 10%; /* Full height (cover the whole page) */
top: 0;
left: 0;
right: 0;
background-color: rgb(0, 0, 0, 0.0); /* White background with opacity */
z-index: 3;
transition: opacity 5s;
opacity: 1;
text-align: center;
}
#info span {
margin: 0 auto;
}
/* -------------- Menu overlay styling -------------- */
#menu {
position: fixed; /* Sit on top of the page content */
display: none; /* Hidden by default */
width: 20%; /* Full width (cover the whole page) */
height: 100%; /* Full height (cover the whole page) */
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgb(255, 255, 255, 0.1); /* White background with opacity */
z-index: 2;
cursor: pointer; /* Add a pointer on hover */
}
.menu-text, p a {
text-align: left !important;
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
width: 100%;
}
p a {
text-decoration: none;
}
.menu-title {
font-weight: bolder;
font-size: 20px;
text-shadow: 0px 0px 3px white, -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
#guild-leaderboard {
max-height: 200px;
overflow-y: auto;
}
.leaderboard-item {
margin-bottom: 5px;
}
/* Slider styling */
.slidecontainer {
width: 100%;
}
.slider {
width: 85%;
margin-right: 5%;
-webkit-appearance: none; /* Override default CSS styles */
appearance: none;
height: 7px; /* Specified height */
border-radius: 10px;
background: #d3d3d3; /* Grey background */
outline: none; /* Remove outline */
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
-webkit-transition: .2s; /* 0.2 seconds transition on hover */
transition: opacity .2s;
}
.slider:hover {
opacity: 1; /* Fully shown on mouse-over */
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
width: 15px; /* Set a specific slider handle width */
height: 15px; /* Slider handle height */
border-radius: 50%;
background: grey; /* Green background */
cursor: pointer; /* Cursor on hover */
}
.slider::-moz-range-thumb {
width: 15px; /* Set a specific slider handle width */
height: 15px; /* Slider handle height */
border-radius: 50%;
background: grey; /* Green background */
cursor: pointer; /* Cursor on hover */
}
/* Scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f2f2f2;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}