mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
style(geo_map): improve floating buttons
This commit is contained in:
parent
e2c0c6ef92
commit
c649f473b4
@ -7,24 +7,24 @@ const TPL = `
|
|||||||
.floating-buttons {
|
.floating-buttons {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-buttons-children,.show-floating-buttons {
|
.floating-buttons-children,.show-floating-buttons {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.type-canvas .floating-buttons-children {
|
.type-canvas .floating-buttons-children {
|
||||||
top: 70px;
|
top: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-buttons-children > *:not(.hidden-int):not(.no-content-hidden) {
|
.floating-buttons-children > *:not(.hidden-int):not(.no-content-hidden) {
|
||||||
margin-left: 10px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-buttons-children > button, .floating-buttons-children .floating-button {
|
.floating-buttons-children > button, .floating-buttons-children .floating-button {
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
padding: 5px 10px 4px 10px;
|
padding: 5px 10px 4px 10px;
|
||||||
@ -37,17 +37,17 @@ const TPL = `
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-buttons-children > button:hover, .floating-buttons-children .floating-button:hover {
|
.floating-buttons-children > button:hover, .floating-buttons-children .floating-button:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-color: var(--button-border-color);
|
border-color: var(--button-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.floating-buttons .floating-buttons-children.temporarily-hidden {
|
.floating-buttons .floating-buttons-children.temporarily-hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="floating-buttons-children"></div>
|
<div class="floating-buttons-children"></div>
|
||||||
|
|
||||||
<!-- Show button that displays floating button after click on close button -->
|
<!-- Show button that displays floating button after click on close button -->
|
||||||
|
@ -5,6 +5,7 @@ const TPL = `\
|
|||||||
<div class="geo-map-buttons">
|
<div class="geo-map-buttons">
|
||||||
<style>
|
<style>
|
||||||
.geo-map-buttons {
|
.geo-map-buttons {
|
||||||
|
contain: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
@ -12,13 +13,6 @@ const TPL = `\
|
|||||||
.leaflet-pane {
|
.leaflet-pane {
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.geo-map-buttons {
|
|
||||||
contain: none;
|
|
||||||
background: var(--main-background-color);
|
|
||||||
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<button type="button"
|
<button type="button"
|
||||||
|
@ -1604,4 +1604,10 @@ body.electron.platform-darwin:not(.native-titlebar) .tab-row-container {
|
|||||||
border-color: var(--hover-item-border-color);
|
border-color: var(--hover-item-border-color);
|
||||||
background: var(--hover-item-background-color);
|
background: var(--hover-item-background-color);
|
||||||
color: var(--hover-item-text-color);
|
color: var(--hover-item-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.note-split.type-geoMap .floating-buttons-children {
|
||||||
|
background: var(--main-background-color);
|
||||||
|
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user