mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-06 00:16:40 +07:00
basic router
This commit is contained in:
parent
0d8a507620
commit
e477f50283
12 changed files with 215 additions and 15 deletions
src/styles
|
@ -28,6 +28,32 @@ const vertexMixin = css`
|
|||
}
|
||||
`;
|
||||
|
||||
const routerMixin = css`
|
||||
.leaflet-control-container .leaflet-routing-container-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.router-waypoint {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
margin-left: -20px;
|
||||
margin-top: -20px;
|
||||
outline: none;
|
||||
z-index: 10001;
|
||||
|
||||
::after {
|
||||
content: ' ';
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 0 2px #4597d0;
|
||||
margin-left: 10px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const stickers = css`
|
||||
.sticker-container {
|
||||
outline: none;
|
||||
|
@ -132,4 +158,5 @@ export const MapScreen = styled.div.attrs({ id: 'map' })`
|
|||
|
||||
${vertexMixin}
|
||||
${stickers}
|
||||
${routerMixin}
|
||||
`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue