Skip to content

Commit 7fb9fa0

Browse files
committed
fix: spinner style
1 parent 5d940ab commit 7fb9fa0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

app/src/components/map/MapOverlay.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,43 @@ export default {
8383
border-bottom: 0;
8484
margin-left: -10px;
8585
margin-bottom: -10px;
86+
}
87+
.loading-indicator {
88+
top: unset;
89+
bottom: 0.5em !important;
90+
left: 0.5em !important;
91+
height: 22px;
92+
pointer-events: none !important;
93+
}
94+
95+
.loading-indicator.hidden {
96+
display: none;
97+
}
98+
99+
@keyframes spinner {
100+
to {
101+
transform: rotate(360deg);
102+
}
103+
}
104+
105+
.spinner:after {
106+
content: "";
107+
box-sizing: border-box;
108+
position: absolute;
109+
top: 50%;
110+
left: 50%;
111+
width: 18px;
112+
height: 18px;
113+
margin-top: -9px;
114+
margin-left: -9px;
115+
border-radius: 50%;
116+
border: 5px solid rgba(180, 180, 180, 0.6);
117+
border-top-color: rgba(0, 0, 0, 0.6);
118+
animation: spinner 0.6s linear infinite;
119+
}
120+
.theme--dark .spinner:after {
121+
border: 5px solid rgba(180, 180, 180, 0.6);
122+
border-top-color: rgba(255, 255, 255, 0.6);
86123
}`;
87124
if ('mapContainer' in this.$parent.$refs && this.$parent.$refs.mapContainer.shadowRoot) {
88125
this.$parent.$refs.mapContainer.shadowRoot.appendChild(style);

0 commit comments

Comments
 (0)