mirror of
https://github.com/Alexander-D-Karpov/about.git
synced 2026-03-16 22:06:08 +03:00
242 lines
4.4 KiB
CSS
242 lines
4.4 KiB
CSS
.places-section .plugin-header {
|
|
box-shadow: none;
|
|
border: none;
|
|
}
|
|
|
|
.places-map-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 320px;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--edge-0);
|
|
}
|
|
|
|
.places-map {
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
background: var(--bg-2);
|
|
}
|
|
|
|
.map-loading {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
background: var(--bg-2);
|
|
z-index: 10;
|
|
transition: opacity .3s ease;
|
|
}
|
|
|
|
.map-loading.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.map-loading span {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.map-controls {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.map-control-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all .15s ease;
|
|
}
|
|
|
|
.map-control-btn:hover {
|
|
background: var(--accent);
|
|
color: white;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.map-control-btn.active {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.place-popup {
|
|
min-width: 180px;
|
|
max-width: 260px;
|
|
}
|
|
|
|
.place-popup-content {
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.place-popup-name {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--ink);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.place-popup-location {
|
|
font-size: 12px;
|
|
color: var(--muted);
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.place-popup-description {
|
|
font-size: 13px;
|
|
color: var(--ink-2);
|
|
line-height: 1.4;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.place-popup-date {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.place-popup-category {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: .3px;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.plugin--expanded .places-map-container {
|
|
height: 600px;
|
|
}
|
|
|
|
.plugin-overlay .places-map-container {
|
|
height: calc(80vh - 100px);
|
|
min-height: 500px;
|
|
}
|
|
|
|
.leaflet-popup-content-wrapper {
|
|
background: var(--paper) !important;
|
|
border-radius: 12px !important;
|
|
border: 1px solid var(--edge-1) !important;
|
|
}
|
|
|
|
.leaflet-popup-content {
|
|
margin: 12px 14px !important;
|
|
color: var(--ink) !important;
|
|
}
|
|
|
|
.leaflet-popup-tip {
|
|
background: var(--paper) !important;
|
|
border: 1px solid var(--edge-1) !important;
|
|
border-top: none !important;
|
|
border-left: none !important;
|
|
}
|
|
|
|
.leaflet-container {
|
|
font-family: var(--font) !important;
|
|
background: var(--bg-2) !important;
|
|
}
|
|
|
|
.leaflet-tile-pane {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.leaflet-control-zoom {
|
|
border: none !important;
|
|
border-radius: 8px !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.leaflet-control-zoom a {
|
|
background: var(--paper) !important;
|
|
color: var(--ink) !important;
|
|
border: none !important;
|
|
width: 32px !important;
|
|
height: 32px !important;
|
|
line-height: 32px !important;
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
.leaflet-control-zoom a:hover {
|
|
background: var(--bg-2) !important;
|
|
}
|
|
|
|
.leaflet-control-attribution {
|
|
background: rgba(0, 0, 0, .6) !important;
|
|
color: rgba(255, 255, 255, .7) !important;
|
|
padding: 2px 8px !important;
|
|
font-size: 10px !important;
|
|
border-radius: 4px 0 0 0 !important;
|
|
}
|
|
|
|
.leaflet-control-attribution a {
|
|
color: var(--accent) !important;
|
|
}
|
|
|
|
@media (max-width: 780px) {
|
|
.places-map-container {
|
|
height: 260px;
|
|
}
|
|
|
|
.map-control-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.places-map-container {
|
|
height: 220px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
.places-map-container {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.map-control-btn {
|
|
background: white;
|
|
}
|
|
|
|
.leaflet-popup-content-wrapper {
|
|
background: white !important;
|
|
}
|
|
|
|
.leaflet-popup-tip {
|
|
background: white !important;
|
|
}
|
|
|
|
.leaflet-control-attribution {
|
|
background: rgba(255, 255, 255, .8) !important;
|
|
color: rgba(0, 0, 0, .6) !important;
|
|
}
|
|
|
|
.leaflet-container {
|
|
background: #f0f0f0 !important;
|
|
}
|
|
} |