Skip to content

Commit

Permalink
Info buttons for maps and labels if they're experimentAL or beta (no …
Browse files Browse the repository at this point in the history
…beta maps yet)
  • Loading branch information
RainlessSky committed Oct 31, 2024
1 parent 24ce1cc commit 21b61d2
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 28 deletions.
214 changes: 190 additions & 24 deletions custom-maps/index.html

Large diffs are not rendered by default.

69 changes: 65 additions & 4 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ body {
background-attachment: fixed;
margin: 0px;
font-weight: 475;
overflow: auto;
overflow-y: auto;
overflow-x: hidden;
width: 100vw;
height: 100vh;
}
Expand Down Expand Up @@ -143,6 +144,9 @@ a {
.p-no-margin {
margin: 0
}
.p-one-em {
font-size: 1em !important;
}
/*
||| Main sections |||
*/
Expand All @@ -151,6 +155,7 @@ p {
color: #FFF;
}
h3 {
text-transform: uppercase;
font-weight: 750;
font-family: 'Montserrat', sans-serif;
font-size: 10px;
Expand Down Expand Up @@ -250,7 +255,7 @@ iframe {
font-weight: 500;
text-align: center;
text-rendering: geometricPrecision;
font-size: 14px;
font-size: 0.85em;
margin: auto;
padding: 10px;
line-height: 18px;
Expand Down Expand Up @@ -282,15 +287,27 @@ iframe {
.maps_list > p {
width: 100%;
}
.map-name-label {
position: relative;
image-rendering: crisp-edges;
top: 5px;
height: 12px;
}
.zero-size {
width: 0;
height: 0;
line-height: 0;
}
.map_tile_preview {
line-height: 0;
aspect-ratio: 16 / 9;
background-color: #FFFFFF10;
width: 100%;
margin: 0
}
.map_tile_name, .map_tile_author {
line-height: 5px;
font-size: 12px;
line-height: 1em;
font-size: 0.75em;
margin: 10px;
margin-top: 8px;
}
Expand Down Expand Up @@ -335,6 +352,50 @@ iframe {
height: 18px;
image-rendering: crisp-edges;
}
.map-tile-buttons {
display: grid;
grid-template-columns: 20px 20px 20px;
column-gap: 5px;
padding-bottom: 5px;
justify-content: center;
}

/* Never do this. */
.info-overlay-fix {
width: 0;
height: 0;
}
.map-info-overlay {
display: none;
}
.map-info-header {
position: relative;
text-align: left;
}
.map-info-content {
font-size: 0.9em;
text-align: left;
}
.map-info {
}
.map-info:focus-within {
.map-info-overlay {
display: block;
position: relative;
background-color: #000000C0;
backdrop-filter: blur(1px);
padding: 5px;
right: 65px;
bottom: 182.5px;
width: 190px;
height: 175px;
}
}
.overlay-fix {
width: 0;
height: 0;
display: none;
}

/* Mapmaking table */
table {
Expand Down
Binary file added public/custommaps/beta-label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/custommaps/close-popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/custommaps/experiment-label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/custommaps/map-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/custommaps/official-label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21b61d2

Please sign in to comment.