-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from GeotrekCE/show-user-heading
feat: show user heading
- Loading branch information
Showing
6 changed files
with
223 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* Leaflet.SimpleLocate v1.0.4 - 2024-6-15 | ||
* | ||
* Copyright 2024 mfhsieh | ||
* [email protected] | ||
* | ||
* Licensed under the MIT license. | ||
* | ||
* Demos: | ||
* https://mfhsieh.github.io/leaflet-simple-locate/ | ||
* | ||
* Source: | ||
* [email protected]:mfhsieh/leaflet-simple-locate.git | ||
* | ||
*/ | ||
@-moz-document url-prefix() { | ||
.leaflet-simple-locate .fa, | ||
.leaflet-simple-locate .fab, | ||
.leaflet-simple-locate .far, | ||
.leaflet-simple-locate .fas { | ||
margin-top: 0.05rem; | ||
margin-bottom: -0.05rem; | ||
} | ||
} | ||
|
||
.leaflet-simple-locate { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
/* to make webkit and moz consistent */ | ||
box-sizing: border-box; | ||
width: 2.5rem; | ||
height: 2.5rem; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 1.375rem; | ||
color: rgba(var(--primary-rgb), 1); | ||
background-color: rgba(255, 255, 255, 1) !important; | ||
border: 0.125rem solid rgba(var(--primary-rgb), 1) !important; | ||
border-radius: 2.5rem; | ||
box-shadow: rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem; | ||
/* opacity: .5; | ||
transition: opacity .2s; */ | ||
cursor: pointer; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
-khtml-user-select: none; | ||
text-size-adjust: none; | ||
-webkit-text-size-adjust: none; | ||
-moz-text-size-adjust: none; | ||
-ms-text-size-adjust: none; | ||
-khtml-text-size-adjust: none; | ||
} | ||
|
||
/* .leaflet-simple-locate:hover, | ||
.leaflet-simple-locate:active { | ||
opacity: 1; | ||
} */ | ||
|
||
.leaflet-simple-locate:active { | ||
color: white; | ||
background-color: rgba(var(--primary-rgb), 1) !important; | ||
border-color: white !important; | ||
} | ||
|
||
.leaflet-simple-locate:active svg { | ||
fill: white; | ||
} | ||
|
||
.leaflet-simple-locate:focus { | ||
box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25); | ||
} | ||
|
||
.leaflet-simple-locate:focus-visible { | ||
border: 0.125rem solid rgba(0, 0, 0, 1); | ||
} | ||
|
||
.leaflet-simple-locate svg { | ||
fill: rgba(var(--primary-rgb), 1); | ||
width: 1.375rem; | ||
height: 1.375rem; | ||
} | ||
|
||
.leaflet-simple-locate.button-locate { | ||
position: absolute; | ||
margin: 0 !important; | ||
left: 0.5rem; | ||
top: calc(var(--vh, 1vh) * 50); | ||
transform: translateY(-50%); | ||
} | ||
|
||
.leaflet-simple-locate-icon { | ||
fill: rgba(var(--primary-rgb), 1); | ||
pointer-events: none !important; | ||
cursor: grab; | ||
} | ||
|
||
.leaflet-simple-locate-icon stop { | ||
stop-color: rgba(var(--primary-rgb), 1); | ||
} | ||
|
||
.leaflet-simple-locate-icon .orientation { | ||
transform: rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg))); | ||
} | ||
|
||
.leaflet-simple-locate-circle { | ||
display: var(--leaflet-simple-locate-circle-display); | ||
fill: rgba(var(--primary-rgb), 1); | ||
fill-opacity: 0.1; | ||
stroke: rgba(var(--primary-rgb), 1); | ||
stroke-width: 1; | ||
stroke-opacity: 0.3; | ||
pointer-events: none !important; | ||
cursor: grab; | ||
} | ||
|
||
.leaflet-simple-locate-orientation { | ||
transform: rotate(var(--leaflet-simple-locate-orientation, 0deg)); | ||
} | ||
|
||
#leaflet-simple-locate-icon-spot { | ||
pointer-events: auto; | ||
cursor: pointer; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.