mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
est time now permanently shown
This commit is contained in:
parent
0c6dc387de
commit
4c10e45c6b
4 changed files with 26 additions and 17 deletions
|
@ -51,19 +51,10 @@ export class EditorPanel extends React.PureComponent {
|
||||||
|
|
||||||
<div className="panel right">
|
<div className="panel right">
|
||||||
<div className="control-dist">
|
<div className="control-dist">
|
||||||
{(totalDistance > 0)
|
|
||||||
?
|
|
||||||
<React.Fragment>
|
|
||||||
{totalDistance} км
|
{totalDistance} км
|
||||||
<Icon icon="icon-cycle" size={32} />
|
<Icon icon="icon-cycle" size={32} />
|
||||||
{
|
{
|
||||||
(estimateTime > 0) && (estimateTime > 0) && <span>{toHours(estimateTime)}</span>
|
<span>{toHours(estimateTime)}</span>
|
||||||
}
|
|
||||||
</React.Fragment>
|
|
||||||
:
|
|
||||||
<div onClick={() => editor.changeMode(MODES.ROUTER)}>
|
|
||||||
<div className="button danger">Начать рисовать</div>
|
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
@blue_primary: #55ddff;
|
@blue_primary: #55ddff;
|
||||||
@blue_secondary: #7137c8;
|
@blue_secondary: #7137c8;
|
||||||
|
|
||||||
|
@router_line: #4597d0;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-vertex-icon, .leaflet-middle-icon {
|
.leaflet-vertex-icon, .leaflet-middle-icon {
|
||||||
|
outline: none !important;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
opacity :1;
|
opacity :1;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -12,10 +12,25 @@
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 0 0 2px #4597d0;
|
box-shadow: 0 0 0 2px @router_line;
|
||||||
margin-left: 10px;
|
position: absolute;
|
||||||
margin-top: 10px;
|
left: 10px;
|
||||||
|
top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: ' ';
|
||||||
|
display: block;
|
||||||
|
width: 5px;
|
||||||
|
height: 5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
box-shadow: 0 0 0 2px @router_line;
|
||||||
|
background: @router_line;
|
||||||
|
position: absolute;
|
||||||
|
left: 18px;
|
||||||
|
top: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.router-helper {
|
.router-helper {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue