mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
added gpx dialog
This commit is contained in:
parent
947ec69e60
commit
e995b46641
33 changed files with 11687 additions and 131 deletions
|
@ -14,6 +14,12 @@
|
|||
color: white;
|
||||
font-weight: 400;
|
||||
border: none;
|
||||
position: relative;
|
||||
|
||||
&.outline {
|
||||
box-shadow: inset #444444 0 0 0 1px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&.primary {
|
||||
background: #3c78db;
|
||||
|
@ -29,6 +35,21 @@
|
|||
background: #17bf6d;
|
||||
color: white;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
opacity: 0.5;
|
||||
touch-action: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.button-group {
|
||||
|
|
81
src/styles/gpx.less
Normal file
81
src/styles/gpx.less
Normal file
|
@ -0,0 +1,81 @@
|
|||
.gpx-title {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.gpx-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
flex-direction: row;
|
||||
padding: 10px;
|
||||
min-width: 0;
|
||||
|
||||
&_disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&__title {
|
||||
flex: 1;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
margin: 0 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&__buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
svg {
|
||||
fill: white;
|
||||
}
|
||||
|
||||
> div {
|
||||
padding: 0 5px;
|
||||
cursor: pointer;
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__color {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.gpx-buttons {
|
||||
padding: 10px;
|
||||
|
||||
& > * {
|
||||
margin: 5px 0;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
& > .button {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
height: 32px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
|
@ -13,6 +13,7 @@
|
|||
@import 'progress.less';
|
||||
@import 'slider.less';
|
||||
@import 'switch.less';
|
||||
@import 'gpx.less';
|
||||
|
||||
body {
|
||||
font-family: 'Rubik', sans-serif;
|
||||
|
|
|
@ -290,47 +290,11 @@
|
|||
top: 52px;
|
||||
}
|
||||
|
||||
&.left {
|
||||
&.left, &__left {
|
||||
right: auto;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
// &.control-dialog-big {
|
||||
// min-width: 555px;
|
||||
|
||||
// @media (max-width: @mobile_breakpoint) {
|
||||
// min-width: 100%;
|
||||
// max-width: 100%;
|
||||
// width: 100% !important;
|
||||
// left: 0;
|
||||
// padding: 0 10px;
|
||||
// }
|
||||
// }
|
||||
|
||||
// &.control-dialog-medium {
|
||||
// min-width: 460px;
|
||||
|
||||
// @media (max-width: @mobile_breakpoint) {
|
||||
// min-width: 100%;
|
||||
// max-width: 100%;
|
||||
// width: 100% !important;
|
||||
// left: 0;
|
||||
// padding: 0 10px;
|
||||
// }
|
||||
// }
|
||||
|
||||
// &.control-dialog-small {
|
||||
// min-width: 270px;
|
||||
|
||||
// @media (max-width: @mobile_breakpoint) {
|
||||
// min-width: 100%;
|
||||
// max-width: 100%;
|
||||
// width: 100% !important;
|
||||
// left: 0;
|
||||
// padding: 0 10px;
|
||||
// }
|
||||
// }
|
||||
|
||||
.helper:first-child {
|
||||
border-radius: @panel_radius @panel_radius 0 0;
|
||||
}
|
||||
|
@ -352,6 +316,11 @@
|
|||
width: calc(100% - 20px);
|
||||
max-width: 417px;
|
||||
}
|
||||
|
||||
&__small {
|
||||
width: calc(100% - 20px);
|
||||
max-width: 324px;
|
||||
}
|
||||
}
|
||||
|
||||
.control-dialog-provider {
|
||||
|
|
|
@ -146,6 +146,10 @@
|
|||
padding: 0 10px 2px 10px;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
.switch {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.save-description {
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
vertical-align: text-top;
|
||||
position: relative;
|
||||
top: 0.05em;
|
||||
margin-right: 0.5em;
|
||||
transition: all 500ms;
|
||||
|
||||
&::after {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue