t2-mapper/src/components/MapInfoDialog.module.css

241 lines
4 KiB
CSS
Raw Normal View History

2026-02-19 19:39:01 -08:00
.Dialog {
position: relative;
width: 800px;
height: 600px;
max-width: calc(100dvw - 40px);
max-height: calc(100dvh - 40px);
display: grid;
grid-template-columns: 100%;
grid-template-rows: 1fr auto;
background: rgba(20, 37, 38, 0.8);
border: 1px solid rgba(65, 131, 139, 0.6);
border-radius: 4px;
box-shadow:
0 0 50px rgba(0, 0, 0, 0.4),
inset 0 0 60px rgba(1, 7, 13, 0.6);
color: #bccec3;
font-size: 14px;
line-height: 1.5;
overflow: hidden;
outline: none;
user-select: text;
-webkit-touch-callout: default;
}
.Overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.Body {
display: grid;
grid-template-columns: 1fr auto;
grid-template-rows: 100%;
min-height: 0;
overflow: hidden;
}
.Left {
overflow-y: auto;
padding: 24px 28px;
}
.PreviewImage {
height: 100%;
display: block;
border-left: 1px solid rgba(0, 190, 220, 0.25);
}
.PreviewImageFloating {
float: right;
clear: right;
margin: 0 0 16px 20px;
max-height: 260px;
max-width: 30%;
width: auto;
display: block;
}
.Title {
font-size: 26px;
font-weight: 500;
color: #7dffff;
margin: 0;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.MapMeta {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
margin-bottom: 4px;
font-size: 15px;
font-weight: 400;
/* text-transform: uppercase; */
}
.MapPlanet {
color: rgba(219, 202, 168, 0.7);
}
.MapQuote {
margin: 16px 0;
padding: 0 0 0 14px;
border-left: 2px solid rgba(0, 190, 220, 0.35);
font-style: italic;
}
.MapQuote p {
margin: 0 0 4px;
white-space: pre-line;
}
.MapQuote cite {
font-style: normal;
font-size: 12px;
color: rgba(255, 255, 255, 0.45);
display: block;
}
.MapBlurb {
font-size: 13px;
margin: 0 0 16px;
}
.Section {
margin-top: 20px;
}
.SectionTitle {
font-size: 16px;
font-weight: 500;
color: #7dffff;
margin: 0 0 8px;
letter-spacing: 0.04em;
text-transform: uppercase;
text-shadow: 0 0 16px rgba(0, 210, 240, 0.25);
}
.MusicTrack {
margin-top: 16px;
font-size: 14px;
color: rgba(202, 208, 172, 0.5);
font-style: italic;
display: flex;
align-items: center;
gap: 6px;
}
.MusicTrack[data-playing="true"] {
color: rgba(247, 253, 216, 0.7);
}
.MusicButton {
display: grid;
place-content: center;
background: transparent;
border: 0;
padding: 0;
cursor: pointer;
color: rgb(85, 118, 99);
width: 32px;
height: 32px;
border-radius: 20px;
font-size: 20px;
font-style: normal;
line-height: 1;
flex-shrink: 0;
opacity: 0.5;
}
.MusicTrack[data-playing="true"] .MusicButton {
color: rgb(109, 255, 170);
opacity: 1;
}
.MusicTrack[data-playing="true"] .MusicButton:hover {
opacity: 0.7;
}
.Footer {
display: flex;
align-items: center;
gap: 16px;
padding: 10px 12px;
border-top: 1px solid rgba(0, 190, 220, 0.25);
background: rgba(2, 20, 21, 0.7);
flex-shrink: 0;
}
.CloseButton {
padding: 4px 18px;
background: linear-gradient(
to bottom,
rgba(41, 172, 156, 0.7),
rgba(0, 80, 65, 0.7)
);
border: 1px solid rgba(41, 97, 84, 0.6);
border-top-color: rgba(101, 185, 176, 0.5);
border-radius: 3px;
box-shadow:
inset 0 1px 0 rgba(120, 220, 195, 0.2),
inset 0 -1px 0 rgba(0, 0, 0, 0.3),
0 2px 4px rgba(0, 0, 0, 0.4);
color: rgba(154, 239, 225, 0.9);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
font-size: 14px;
font-weight: 500;
cursor: pointer;
}
.CloseButton:active {
transform: translate(0, 1px);
}
.Hint {
font-size: 12px;
color: rgba(201, 220, 216, 0.3);
margin-left: auto;
}
.MusicTrackName {
text-transform: capitalize;
}
@media (max-width: 719px) {
.Body {
display: block;
overflow: auto;
}
.Hint {
display: none;
}
.Left {
width: 100%;
height: auto;
margin: 0;
overflow: auto;
padding: 16px 20px;
}
.PreviewImage {
width: auto;
height: auto;
margin: 16px auto;
}
.CloseButton {
width: 220px;
height: 36px;
margin: 0 auto;
}
}