This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
255 lines (239 loc) · 6.98 KB
/
main.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
/* ==UserStyle==
@name Better EarthMC Map UI
@version 20220824.23.06
@namespace userstyles.world/user/egeesin
@description Better alternative look for EarthMC live map UI.
@author egeesin
@license WTFPL
==/UserStyle== */
@-moz-document url-prefix("https://earthmc.net/") {
/*
* Tip: If you want to prevent map tiles from loading, open Web Inspector, go to Network tab and add new block ".webp" requests. Make sure Web Inspector is open at all time. You might want to change to the window view instead of bottom view for the convience.
*/
/*
* Change body font-family
*/
.leaflet-container {
/* font-family: Iosevka Aegean Aile, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important; */
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}
/* Map background */
.map.leaflet-container{
background: black none repeat scroll 0% 0% !important;
}
/* Filter the map tiles or hide
*/
.leaflet-container .leaflet-tile-pane img, .leaflet-container img.leaflet-image-layer, .leaflet-container .leaflet-tile {
/* width: 0 !important;
height: 0 !important; */
/* Eye Calming */
/* filter:contrast(10%) saturate(3000%) brightness(130%) saturate(20%) contrast(225%) invert(.85) hue-rotate(180deg) sepia(50%) ; */
/* Google Maps */
/* filter:contrast(10%) saturate(3000%) brightness(115%) saturate(10%) contrast(440%); */
/* Old Map */
/* filter:contrast(115%) sepia(65%); */
/* Slightly Darker */
filter:contrast(115%) saturate(55%) brightness(70%);
/* No Map */
/* filter:opacity(0); */
}
/* Make claim areas more vibrant */
.leaflet-overlay-pane{
mix-blend-mode: hard-light;
/* mix-blend-mode: normal; */
/* mix-blend-mode: overlay; */
/* mix-blend-mode: color-burn; */
/* mix-blend-mode: hard-light; */
}
/* All Marker Pins and Labels */
.leaflet-marker-pane{
mix-blend-mode:normal;
/* Looks good only on dark surface */
/* mix-blend-mode: hard-light; */
}
/* Claim Areas
*/
svg path.leaflet-interactive:not(:first-child){ /* Not including map border */
/*fill: auto;*/
fill-opacity: .25;
/* fill-opacity: 1; */
stroke-opacity: 1;
/* stroke-width: 0px; */
stroke-width: 1.5px;
stroke-linecap: square;
stroke-linejoin: miter;
/* stroke-dasharray: 3px; */
stroke-dasharray: 3px;
/* filter:drop-shadow(2px 2px 0px white); */
}
.leaflet-left {
display:flex;
flex-direction: column;
align-items:flex-start;
}
.coord-control{
order:-1; /* Coordinates to the top */
}
/* Hide useless control menus, I mean people don't really care
* it's day or night or which way is north, like wow.
*/
/* .leaflet-control-container,.largeclock,.compass,.dynmap .sidebar{ */
.leaflet-control-zoom, .largeclock,.compass,.dynmap .sidebar{
display:none!important
}
/* Capital Mark
*/
.markerIcon16x16{
display: block;
width: 0px !important;
height: 0px !important;
/* background: rgba(0,0,0,.3); */
/* background: goldenrod; */
background: white;
position: relative;
border-radius: 50%;
padding: 2px !important;
box-sizing: border-box;
border: solid 1px;
/* opacity:1; */
/* box-shadow: 2px 2px 0 black, 1px 1px 0 black inset; */
box-shadow: 2px 2px 0 black;
/* Ring Style */
/* border-color: gold white white gold; */
/* Dot Style */
/* border-color: white gold gold white;*/
border-color: black;
}
/* Nation Capital Labels
*/
.dynmap .mapMarker .markerName, .dynmap .mapMarker .markerName-show {
width:150px;
height:20px;
margin-left:-75px;
display: block;
position: absolute;
z-index: 16;
white-space: nowrap;
color: #FFF;
opacity:.70;
text-transform: uppercase;
text-shadow: 1px 1px 1px black, -1px -1px 4px rgba(30,30,30,.85);
/* font-weight: 300; */
font-weight: 400;
font-style:italic;
font-size:8px;
padding: 0;
text-align: center;
letter-spacing: 1px;
line-height: 1;
}
.dynmap .mapMarker .markerName16x16 {
top: 6px;
/*top: -23px;*/
left: 0px;
}
.dynmap .mapmarker .markerName {
display: block !important;
}
.dynmap .mapMarker:hover .markerName, .dynmap .mapMarker .markerName-show {
/* Hover style overrides */
background: none;
padding: 0 !important;
color: currentColor;
}
/* Hide capital marker and label */
/* .markerIcon16x16,.dynmap .mapMarker .markerName, .dynmap .mapMarker .markerName-show{
display:none;
}
*/
/* Player Skin Face Frame
*/
.dynmap .playerIconSm {
border: 1px solid currentColor;
border-radius: 50%;
box-shadow: 2px 2px 0px black;
}
/* Random Rainbow Player Names */
/* div.playerMarker:nth-child(7n+1){color: rgb(248.52, 144.08, 177.65);}
div.playerMarker:nth-child(7n+2){color: rgb(250.42, 152.03, 110.7)}
div.playerMarker:nth-child(7n+3){color: rgb(230.35, 167.66, 74.48)}
div.playerMarker:nth-child(7n+4){color: rgb(199.48, 183.22, 72.62)}
div.playerMarker:nth-child(7n+5){color: rgb(155.52, 197.25, 103.13)}
div.playerMarker:nth-child(7n+6){color: rgb(98.98, 206.19, 148.07)}
div.playerMarker:nth-child(7n+7){color: rgb(28.57, 207.54, 195.79)} */
/* Player Name Label
*/
.dynmap .playerNameSm {
position: absolute;
top: auto !important;
left: 10px;
white-space: nowrap;
background: none !important;
padding: 2px;
border-radius: 0!important;
line-height: 24px;
text-shadow: 2px 2px 2px black;
font-size: 1.5em;
/* color: currentColor; */
color:yellow;
-webkit-text-stroke: .25px black;
font-weight:500;
font-family: "Compliance Sans" !important;
}
/* Popup Content
*/
.leaflet-popup-content{
min-width:240px
}
/* All control and popup content box */
.leaflet-popup-content-wrapper, .leaflet-popup-tip, .dynmap .coord-control, .leaflet-control-layers, .leaflet-control-layers:hover, .dynmap-link.leaflet-control {
border:1px solid rgba(125,125,125,.5);
background-color:rgba(0,0,0,.5);
backdrop-filter:blur(4px);
box-shadow:0 2px 5px rgba(0,0,0,.35);
color:white;}
.leaflet-popup-content-wrapper{
padding:8px 10px;
}
.leaflet-popup-content{
font-weight:600;
font-style:italic;
}
/* Default format inside popup text */
.leaflet-popup-content span{
font-weight:300!important;
font-style:normal;
}
/* Capital Title */
.leaflet-popup-content span:first-child{
font-weight:700!important;
font-size:1.5em!important;
letter-spacing:-.05ex
}
.leaflet-popup-content span:last-child{
opacity: .65;
text-align:right;
display:block;
column-count:2;
column-gap: 4px;
font-family: monospace;
}
/* Members Section */
.leaflet-popup-content span:nth-child(5) {
display: block;
max-height: 6em;
overflow-y: auto; /* Make it scrollable */
}
.leaflet-popup-content-wrapper, .leaflet-popup-content{
margin:0px;
}
/* Coordinates */
.dynmap .coord-control :is(.coord-control-label,br){
display:none;
}
.dynmap .coord-control{
font-family:monospace;
padding: .75em;
width:max-content;
}
}