mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed router stickers
This commit is contained in:
parent
9a7a038032
commit
5f4d2f9cd2
15 changed files with 95 additions and 63 deletions
|
@ -1,70 +1,72 @@
|
||||||
.button {
|
@import "colors";
|
||||||
background: #444444;
|
|
||||||
padding: 4px 16px;
|
.button {
|
||||||
height: 18px;
|
background: #444444;
|
||||||
line-height: 1em;
|
padding: 4px 16px;
|
||||||
border-radius: $button_radius;
|
height: 18px;
|
||||||
font-family: inherit;
|
line-height: 1em;
|
||||||
font-size: 1em;
|
border-radius: $button_radius;
|
||||||
display: inline-flex;
|
font-family: inherit;
|
||||||
align-items: center;
|
font-size: 1em;
|
||||||
cursor: pointer;
|
display: inline-flex;
|
||||||
user-select: none;
|
align-items: center;
|
||||||
box-shadow: inset rgba(100, 100, 100, 0.3) 1px 0, inset rgba(0,0,0, 0.1) -1px 0;
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
box-shadow: inset rgba(100, 100, 100, 0.3) 1px 0, inset rgba(0,0,0, 0.1) -1px 0;
|
||||||
|
color: white;
|
||||||
|
font-weight: 400;
|
||||||
|
border: none;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&.outline {
|
||||||
|
box-shadow: inset #444444 0 0 0 1px;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.primary {
|
||||||
|
background: #3c78db;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 400;
|
|
||||||
border: none;
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
&.outline {
|
|
||||||
box-shadow: inset #444444 0 0 0 1px;
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.primary {
|
|
||||||
background: #3c78db;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.danger {
|
|
||||||
background: #ed2f3b;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.success {
|
|
||||||
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 {
|
&.danger {
|
||||||
display: flex;
|
background: #ed2f3b;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
&.success {
|
||||||
border-radius: 0;
|
background: #17bf6d;
|
||||||
margin: 0;
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
&:first-child {
|
&.disabled {
|
||||||
border-radius: $button_radius 0 0 $button_radius;
|
opacity: 0.5;
|
||||||
}
|
touch-action: none;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
&:last-child {
|
input[type="file"] {
|
||||||
border-radius: 0 $button_radius $button_radius 0;
|
position: absolute;
|
||||||
}
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-group {
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.button {
|
||||||
|
border-radius: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-radius: $button_radius 0 0 $button_radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-radius: 0 $button_radius $button_radius 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.dialog {
|
.dialog {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.gpx-title {
|
.gpx-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.logo-preview {
|
.logo-preview {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
width: 50% !important;
|
width: 50% !important;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -28,7 +30,7 @@
|
||||||
|
|
||||||
.leaflet-vertex-drag-helper {
|
.leaflet-vertex-drag-helper {
|
||||||
pointer-events: none !important;
|
pointer-events: none !important;
|
||||||
background: fade(red, 50%);
|
background: darken(red, 50%);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.control-bar {
|
.control-bar {
|
||||||
background: $bar_background;
|
background: $bar_background;
|
||||||
border-radius: $panel_radius;
|
border-radius: $panel_radius;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.renderer-shade {
|
.renderer-shade {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.router-waypoint {
|
.router-waypoint {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.save-helper {
|
.save-helper {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
$disabledColor: #ccc;
|
$disabledColor: #ccc;
|
||||||
$border-radius-base: 6px;
|
$border-radius-base: 6px;
|
||||||
$primary-color: transparent;
|
$primary-color: transparent;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.leaflet-dragging .sticker-container {
|
.leaflet-dragging .sticker-container {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.switch {
|
.switch {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 2em;
|
width: 2em;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "colors";
|
||||||
|
|
||||||
.user-bar {
|
.user-bar {
|
||||||
// width: 160px;
|
// width: 160px;
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@ export class DomMarker extends DivIcon {
|
||||||
|
|
||||||
createIcon(oldicon?: HTMLElement) {
|
createIcon(oldicon?: HTMLElement) {
|
||||||
this.element.classList.add('icon')
|
this.element.classList.add('icon')
|
||||||
|
|
||||||
|
if (this.options.className) {
|
||||||
|
this.element.classList.add(this.options.className);
|
||||||
|
}
|
||||||
return this.element;
|
return this.element;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue