mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-03 12:30:35 +00:00
176 lines
2.9 KiB
CSS
176 lines
2.9 KiB
CSS
|
|
.Controls {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
background: rgba(0, 0, 0, 0.5);
|
||
|
|
color: #fff;
|
||
|
|
padding: 8px 12px 8px 8px;
|
||
|
|
border-radius: 0 0 4px 0;
|
||
|
|
font-size: 13px;
|
||
|
|
z-index: 2;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Dropdown {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Group {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.CheckboxField,
|
||
|
|
.LabelledButton {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Field {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.IconButton {
|
||
|
|
position: relative;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 28px;
|
||
|
|
height: 28px;
|
||
|
|
margin: 0 0 0 -12px;
|
||
|
|
font-size: 15px;
|
||
|
|
padding: 0;
|
||
|
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
||
|
|
border-left: 1px solid rgba(255, 255, 255, 0.3);
|
||
|
|
border-right: 1px solid rgba(200, 200, 200, 0.3);
|
||
|
|
border-bottom: 1px solid rgba(200, 200, 200, 0.3);
|
||
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||
|
|
border-radius: 4px;
|
||
|
|
background: rgba(3, 82, 147, 0.6);
|
||
|
|
color: #fff;
|
||
|
|
cursor: pointer;
|
||
|
|
transform: translate(0, 0);
|
||
|
|
transition:
|
||
|
|
background 0.2s,
|
||
|
|
border-color 0.2s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.IconButton svg {
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (hover: hover) {
|
||
|
|
.IconButton:hover {
|
||
|
|
background: rgba(0, 98, 179, 0.8);
|
||
|
|
border-color: rgba(255, 255, 255, 0.4);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.IconButton:active,
|
||
|
|
.IconButton[aria-expanded="true"] {
|
||
|
|
background: rgba(0, 98, 179, 0.7);
|
||
|
|
border-color: rgba(255, 255, 255, 0.3);
|
||
|
|
transform: translate(0, 1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.IconButton[data-active="true"] {
|
||
|
|
background: rgba(0, 117, 213, 0.9);
|
||
|
|
border-color: rgba(255, 255, 255, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ButtonLabel {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Toggle {
|
||
|
|
composes: IconButton;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.MapInfoButton {
|
||
|
|
composes: IconButton;
|
||
|
|
composes: LabelledButton;
|
||
|
|
}
|
||
|
|
|
||
|
|
.MissionSelectWrapper {
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 1279px) {
|
||
|
|
.Dropdown[data-open="false"] {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Dropdown {
|
||
|
|
position: absolute;
|
||
|
|
top: calc(100% + 2px);
|
||
|
|
left: 2px;
|
||
|
|
right: 2px;
|
||
|
|
display: flex;
|
||
|
|
overflow: auto;
|
||
|
|
max-height: calc(100dvh - 56px);
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
background: rgba(0, 0, 0, 0.8);
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||
|
|
border-radius: 4px;
|
||
|
|
padding: 12px;
|
||
|
|
box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
|
||
|
|
}
|
||
|
|
|
||
|
|
.Group {
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 12px 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.LabelledButton {
|
||
|
|
width: auto;
|
||
|
|
padding: 0 10px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 639px) {
|
||
|
|
.Controls {
|
||
|
|
right: 0;
|
||
|
|
border-radius: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.MissionSelectWrapper {
|
||
|
|
flex: 1 1 0;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.MissionSelectWrapper input {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.Toggle {
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 1280px) {
|
||
|
|
.Toggle {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.LabelledButton .ButtonLabel {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.MapInfoButton {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
}
|