EventMapper/assets/styles/style.css

145 lines
2.9 KiB
CSS
Raw Normal View History

2024-06-10 17:37:53 +00:00
@import url("./components.css");
@import url("./elements.css");
2024-06-02 05:39:23 +00:00
@keyframes load {
to { transform: rotate(1turn) }
}
2024-06-10 19:05:24 +00:00
@font-face {
font-family: 'Material Symbols Rounded';
font-style: normal;
font-weight: 400;
src: url("/assets/fonts/MaterialIcons.woff2") format('woff2');
}
2024-06-01 06:31:08 +00:00
body, html {
margin: 0;
2024-06-09 12:23:14 +00:00
height: 100%;
2024-06-01 06:31:08 +00:00
width: 100vw;
box-sizing: border-box;
overflow: hidden;
2024-06-02 05:39:23 +00:00
background-color: #404040;
2024-06-10 17:37:53 +00:00
font-family: sans-serif;
2024-06-02 05:39:23 +00:00
}
#map-ui {
position: absolute;
left: 0;
top: 0;
width: 100vw;
2024-06-09 12:23:14 +00:00
height: 100%;
2024-06-02 05:39:23 +00:00
pointer-events: none;
user-select: none;
}
2024-06-10 19:05:24 +00:00
#map-ui #controls {
transition: right 0.25s;
}
#map-ui #controls.empty {
right: -100%;
}
2024-06-10 17:37:53 +00:00
#map-ui #loading {
2024-06-02 05:39:23 +00:00
display: inline-block;
2024-06-10 17:37:53 +00:00
position: absolute;
width: 96px;
height: 96px;
left: calc(50vw - 48px);
top: calc(50vh - 48px);
background-color: #2228;
border-radius: 8px;
opacity: 0;
z-index: 9;
transition: opacity 0.25s;
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#map-ui.loading #loading {
opacity: 1;
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#map-ui #loading #loading-circle {
display: inline-block;
2024-06-10 17:37:53 +00:00
position: relative;
width: 64px;
height: 64px;
top: 16px;
left: 16px;
background: conic-gradient(from 0deg,#fff0,#fff);
-webkit-mask-image: radial-gradient(circle, #fff0 0%, #fff0 33%, #ffff 33%, #ffff 66%, #fff0 66%, #fff0 100%);
mask-image: radial-gradient(circle, #fff0 0%, #fff0 33%, #ffff 33%, #ffff 66%, #fff0 66%, #fff0 100%);
animation: load 0.5s linear infinite;
2024-06-09 12:23:14 +00:00
}
2024-06-10 19:05:24 +00:00
#search-dialog,
#about-dialog {
2024-06-10 17:37:53 +00:00
width: calc(100% - 16px);
max-width: 624px;
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container #events,
#events-container #events-inspector {
transition: translate 0.25s, bottom 0.25s, border-radius 0.25s;
width: calc(100% - 16px);
max-width: 400px;
max-height: calc(50vh - 16px);
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container.inspector #events,
#events-container:not(.inspector) #events-inspector,
#events-container.empty #events,
#events-container.empty #events-inspector {
translate: 0 calc(100% + 32px);
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container.minimized #events,
#events-container.inspector.minimized #events-inspector {
bottom: 0;
translate: 0 calc(100% - 52px);
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container div.size-fullwidth h1 {
white-space: nowrap;
overflow: clip;
text-overflow: ellipsis;
2024-06-02 05:39:23 +00:00
2024-06-10 17:37:53 +00:00
line-height: 18px;
transition: line-height 0.25s;
2024-06-03 03:54:02 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container div.size-fullwidth p {
white-space: nowrap;
overflow: clip;
text-overflow: ellipsis;
2024-06-03 03:54:02 +00:00
2024-06-10 17:37:53 +00:00
height: 20px;
transition: height 0.25s, opacity 0.25s;
}
2024-06-10 17:37:53 +00:00
#events-container #events-inspector div.size-fullwidth p {
opacity: 0.5;
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container.minimized div.size-fullwidth h1 {
line-height: 36px;
2024-06-02 05:39:23 +00:00
}
2024-06-10 17:37:53 +00:00
#events-container.minimized div.size-fullwidth p {
height: 0;
2024-06-02 05:39:23 +00:00
opacity: 0;
}
2024-06-10 19:05:24 +00:00
#search-dialog div.size-fullwidth h1,
#about-dialog div.size-fullwidth h1 {
2024-06-10 17:37:53 +00:00
line-height: 36px;
}
@media (max-width: 640px) {
2024-06-10 17:37:53 +00:00
#events-container #events,
#events-container #events-inspector {
bottom: 0;
border-radius: 4px 4px 0 0;
2024-06-10 17:37:53 +00:00
max-width: none;
max-height: 33vh;
}
2024-06-01 06:31:08 +00:00
}