Publish eventLabs 0.5.0
This commit is contained in:
91
assets/calendar-grid.js
Normal file
91
assets/calendar-grid.js
Normal file
@@ -0,0 +1,91 @@
|
||||
(() => {
|
||||
const selector = '[data-be-preview]';
|
||||
const margin = 10;
|
||||
let preview;
|
||||
let tile;
|
||||
let hideTimer;
|
||||
|
||||
function hide() {
|
||||
window.clearTimeout(hideTimer);
|
||||
if (!tile) return;
|
||||
tile.removeAttribute('aria-describedby');
|
||||
tile = null;
|
||||
preview.hidden = true;
|
||||
}
|
||||
|
||||
function position() {
|
||||
if (!tile) return;
|
||||
if (!tile.isConnected) {
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
const viewport = document.documentElement;
|
||||
const anchor = tile.getBoundingClientRect();
|
||||
const grid = tile.closest('.be-grid-scroll').getBoundingClientRect();
|
||||
if (anchor.bottom <= 0 || anchor.top >= viewport.clientHeight ||
|
||||
anchor.right <= grid.left || anchor.left >= grid.right) {
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
|
||||
const {width, height} = preview.getBoundingClientRect();
|
||||
const below = anchor.bottom + margin;
|
||||
const above = anchor.top - height - margin;
|
||||
const maxTop = viewport.clientHeight - height - margin;
|
||||
const top = below <= maxTop || above < margin ? below : above;
|
||||
preview.style.left = Math.max(margin, Math.min(anchor.left, viewport.clientWidth - width - margin)) + 'px';
|
||||
preview.style.top = Math.max(margin, Math.min(top, maxTop)) + 'px';
|
||||
}
|
||||
|
||||
function show(target) {
|
||||
window.clearTimeout(hideTimer);
|
||||
if (target === tile) return;
|
||||
const content = document.getElementById(target.dataset.bePreview);
|
||||
if (!content?.content) return;
|
||||
if (!preview) {
|
||||
preview = document.createElement('div');
|
||||
preview.className = 'be-grid-preview';
|
||||
preview.id = 'be-calendar-event-tooltip';
|
||||
preview.setAttribute('role', 'tooltip');
|
||||
preview.hidden = true;
|
||||
document.body.append(preview);
|
||||
}
|
||||
hide();
|
||||
tile = target;
|
||||
preview.replaceChildren(content.content.cloneNode(true));
|
||||
preview.hidden = false;
|
||||
tile.setAttribute('aria-describedby', preview.id);
|
||||
position();
|
||||
}
|
||||
|
||||
function scheduleHide() {
|
||||
window.clearTimeout(hideTimer);
|
||||
hideTimer = window.setTimeout(() => {
|
||||
if (tile && document.activeElement !== tile && !tile.matches(':hover') && !preview.matches(':hover')) hide();
|
||||
}, 150);
|
||||
}
|
||||
|
||||
document.addEventListener('pointerover', event => {
|
||||
if (event.pointerType === 'touch') return;
|
||||
const target = event.target.closest?.(selector);
|
||||
if (target && !target.contains(event.relatedTarget)) show(target);
|
||||
});
|
||||
document.addEventListener('pointerout', event => {
|
||||
if (event.pointerType !== 'touch' && tile && (tile.contains(event.target) || preview.contains(event.target))) {
|
||||
scheduleHide();
|
||||
}
|
||||
});
|
||||
document.addEventListener('focusin', event => {
|
||||
const target = event.target.closest?.(selector);
|
||||
if (target) show(target);
|
||||
});
|
||||
document.addEventListener('focusout', scheduleHide);
|
||||
document.addEventListener('keydown', event => {
|
||||
if (event.key === 'Escape' && tile) {
|
||||
hide();
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
window.addEventListener('resize', position);
|
||||
document.addEventListener('scroll', position, {capture: true, passive: true});
|
||||
})();
|
||||
148
assets/event-editor.css
Normal file
148
assets/event-editor.css
Normal file
@@ -0,0 +1,148 @@
|
||||
.be-event-editor {
|
||||
--be-editor-ink: #17243a;
|
||||
--be-editor-muted: #526177;
|
||||
--be-editor-accent: #3946ba;
|
||||
--be-editor-border: #d8e1ee;
|
||||
container-type: inline-size;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
padding: 5px 0;
|
||||
color: var(--be-editor-ink);
|
||||
font: 400 13px/1.45 Inter, system-ui, sans-serif;
|
||||
}
|
||||
.be-event-editor *, .be-event-editor *::before, .be-event-editor *::after { box-sizing: border-box; }
|
||||
.be-event-editor [hidden] { display: none !important; }
|
||||
.be-editor-section {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 19px 20px;
|
||||
border: 1px solid var(--be-editor-border);
|
||||
border-radius: 13px;
|
||||
background: #fff;
|
||||
}
|
||||
.be-editor-schedule { border-color: #d5dff0; background: #f7f9fd; }
|
||||
.be-editor-heading {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px 14px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.be-editor-heading h3 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: var(--be-editor-ink);
|
||||
font: 680 16px/1.25 Inter, system-ui, sans-serif;
|
||||
letter-spacing: -.02em;
|
||||
}
|
||||
.be-editor-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
|
||||
gap: 12px 14px;
|
||||
margin: 0;
|
||||
align-items: start;
|
||||
}
|
||||
.be-editor-dates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.be-editor-zone { grid-column: span 2; }
|
||||
.be-event-editor .be-editor-fields > label:not(.be-editor-toggle), .be-editor-location > label {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
color: var(--be-editor-ink);
|
||||
font-size: 13px;
|
||||
font-weight: 630;
|
||||
}
|
||||
.be-event-editor :is(input:not([type=checkbox]), select) {
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: 38px;
|
||||
min-height: 38px;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
border: 1px solid #bfcadc;
|
||||
border-radius: 7px;
|
||||
background-color: #fff;
|
||||
color: var(--be-editor-ink);
|
||||
font: 400 13px/1.3 Inter, system-ui, sans-serif;
|
||||
}
|
||||
.be-event-editor select { padding-inline-end: 26px; }
|
||||
.be-event-editor :is(input, select, summary):focus-visible {
|
||||
border-color: var(--be-editor-accent);
|
||||
outline: 2px solid #6572d3;
|
||||
outline-offset: 2px;
|
||||
box-shadow: none;
|
||||
}
|
||||
.be-editor-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 34px;
|
||||
color: var(--be-editor-ink);
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.be-event-editor input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
|
||||
.be-editor-visibility { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 11px; }
|
||||
.be-editor-recurrence { padding: 0; }
|
||||
.be-editor-recurrence > summary, .be-editor-picker summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.be-editor-recurrence > summary { min-height: 55px; padding: 11px 20px; border-radius: 12px; font-size: 15px; font-weight: 670; }
|
||||
.be-event-editor summary::-webkit-details-marker { display: none; }
|
||||
.be-editor-recurrence > summary::after, .be-editor-picker summary::after {
|
||||
content: '';
|
||||
flex: none;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
margin-inline: auto 3px;
|
||||
border-right: 2px solid #526177;
|
||||
border-bottom: 2px solid #526177;
|
||||
transform: translateY(-2px) rotate(45deg);
|
||||
}
|
||||
.be-event-editor details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
|
||||
.be-editor-frequency { padding: 3px 8px; border-radius: 999px; background: #eef1fc; color: #34449a; font-size: 11px; font-weight: 650; }
|
||||
.be-editor-recurrence[open] > summary { border-bottom: 1px solid var(--be-editor-border); border-radius: 12px 12px 0 0; }
|
||||
.be-editor-recurrence-body { display: grid; gap: 13px; padding: 15px 20px 18px; }
|
||||
.be-editor-recurrence-body .description { margin: 0; color: var(--be-editor-muted); font-size: 12px; }
|
||||
.be-editor-weekdays { min-width: 0; margin: 0; padding: 0; border: 0; }
|
||||
.be-editor-weekdays > div { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.be-editor-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
|
||||
.be-editor-picker legend, .be-editor-weekdays legend { margin: 0 0 5px; padding: 0; color: var(--be-editor-ink); font-size: 13px; font-weight: 630; }
|
||||
.be-editor-weekdays label {
|
||||
position: relative;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid #cbd5e6;
|
||||
border-radius: 7px;
|
||||
background: #fff;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.be-editor-weekdays input[type=checkbox] { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
||||
.be-editor-weekdays label:has(input:checked) { border-color: #abb6f0; background: #edf0ff; color: #26358e; }
|
||||
.be-editor-weekdays label:has(input:focus-visible) { outline: 2px solid #6572d3; outline-offset: 2px; }
|
||||
.be-editor-picker details { border: 1px solid #bfcadc; border-radius: 7px; background: #fff; }
|
||||
.be-editor-picker summary, .be-editor-picker-empty { min-height: 36px; padding: 6px 9px; border-radius: 7px; }
|
||||
.be-editor-picker summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.be-editor-picker-empty { display: flex; align-items: center; min-height: 38px; border: 1px dashed #d6deeb; background: #f6f8fb; color: var(--be-editor-muted); }
|
||||
.be-editor-picker-body { padding: 8px; border-top: 1px solid var(--be-editor-border); }
|
||||
.be-editor-picker-options { max-height: 175px; overflow: auto; }
|
||||
.be-editor-picker-options label { display: flex; align-items: start; gap: 8px; padding: 6px 4px; cursor: pointer; overflow-wrap: anywhere; }
|
||||
.be-editor-picker-options input { flex: none; }
|
||||
.be-editor-no-matches { margin: 4px 0; color: var(--be-editor-muted); }
|
||||
.be-editor-location { margin-top: 13px; }
|
||||
|
||||
@container (max-width: 640px) {
|
||||
.be-editor-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
@container (max-width: 335px) {
|
||||
.be-editor-section:not(.be-editor-recurrence), .be-editor-recurrence-body { padding: 13px; }
|
||||
.be-editor-recurrence > summary { padding-inline: 13px; }
|
||||
.be-editor-dates { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-editor-zone { grid-column: auto; }
|
||||
}
|
||||
63
assets/event-editor.js
Normal file
63
assets/event-editor.js
Normal file
@@ -0,0 +1,63 @@
|
||||
(() => {
|
||||
const editorSelector = '[data-be-event-editor]';
|
||||
|
||||
function showFields(group, visible) {
|
||||
group.hidden = !visible;
|
||||
for (const control of group.querySelectorAll('input, select')) {
|
||||
control.disabled = !visible;
|
||||
}
|
||||
}
|
||||
|
||||
function updateSchedule(editor) {
|
||||
const allDay = editor.querySelector('[name="be[all_day]"]').checked;
|
||||
for (const time of editor.querySelectorAll('[data-be-time]')) {
|
||||
showFields(time, !allDay);
|
||||
}
|
||||
|
||||
const repeat = editor.querySelector('[name="be[repeat]"]');
|
||||
for (const group of editor.querySelectorAll('[data-be-repeat]')) {
|
||||
const mode = group.dataset.beRepeat;
|
||||
showFields(group, mode === repeat.value || (mode === 'enabled' && repeat.value !== 'none'));
|
||||
}
|
||||
editor.querySelector('[data-be-frequency]').textContent = repeat.selectedOptions[0].textContent;
|
||||
}
|
||||
|
||||
function updateSelection(picker) {
|
||||
const summary = picker.querySelector('[data-be-picker-selection]');
|
||||
const labels = [...picker.querySelectorAll('[data-be-picker-option] input:checked')]
|
||||
.map(input => input.nextElementSibling.textContent);
|
||||
summary.textContent = labels.join(', ') || summary.dataset.beEmpty;
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
for (const editor of document.querySelectorAll(editorSelector)) updateSchedule(editor);
|
||||
}
|
||||
|
||||
document.addEventListener('change', event => {
|
||||
const editor = event.target.closest(editorSelector);
|
||||
if (!editor) return;
|
||||
if (event.target.name === 'be[all_day]' || event.target.name === 'be[repeat]') {
|
||||
updateSchedule(editor);
|
||||
} else if (event.target.closest('[data-be-picker-option]')) {
|
||||
updateSelection(event.target.closest('[data-be-picker]'));
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('input', event => {
|
||||
if (!event.target.matches('[data-be-picker-search]')) return;
|
||||
const picker = event.target.closest('[data-be-picker]');
|
||||
const search = event.target.value.trim().toLocaleLowerCase();
|
||||
let found = false;
|
||||
for (const option of picker.querySelectorAll('[data-be-picker-option]')) {
|
||||
option.hidden = !option.textContent.toLocaleLowerCase().includes(search);
|
||||
found = found || !option.hidden;
|
||||
}
|
||||
picker.querySelector('[data-be-no-options]').hidden = found;
|
||||
});
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initialize, {once: true});
|
||||
} else {
|
||||
initialize();
|
||||
}
|
||||
})();
|
||||
411
assets/events.css
Normal file
411
assets/events.css
Normal file
@@ -0,0 +1,411 @@
|
||||
.be-page, .be-calendar, .be-community, .be-starter {
|
||||
--be-ink: #142033;
|
||||
--be-muted: #4e5d72;
|
||||
--be-accent: #3946ba;
|
||||
--be-accent-dark: #293585;
|
||||
--be-border: #dfe5ee;
|
||||
--be-bg: #f5f7fc;
|
||||
--be-white: #fff;
|
||||
--be-radius: 18px;
|
||||
color: var(--be-ink);
|
||||
font-family: Inter, system-ui, sans-serif;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.be-page *, .be-calendar *, .be-community *, .be-starter * { box-sizing: border-box; }
|
||||
.be-page { box-sizing: border-box; margin: 0 auto; padding: clamp(28px, 6vw, 84px) clamp(16px, 4vw, 44px); width: min(100%, 1280px); }
|
||||
.be-calendar, .be-community { min-width: 0; }
|
||||
.be-calendar-header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 0 0 24px; }
|
||||
.be-calendar-header h1, .be-event-title, .be-linked-header h1 {
|
||||
margin: 0;
|
||||
color: var(--be-ink);
|
||||
font: 700 clamp(2rem, 5.3vw, 4rem)/1.06 Inter, system-ui, sans-serif;
|
||||
letter-spacing: -.055em;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.be-calendar a, .be-community a, .be-single a, .be-starter a, .be-linked-header a { color: var(--be-accent-dark); }
|
||||
.be-calendar a:focus-visible, .be-page :is(a, button, input, select, textarea):focus-visible,
|
||||
.be-community :is(a, button, input, select, textarea):focus-visible {
|
||||
outline: 3px solid #717bde;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
.be-calendar-subscribe { white-space: nowrap; font-size: .875rem; }
|
||||
.be-button, .be-calendar .be-button, .be-community .be-button, .be-single .be-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 44px;
|
||||
border: 1px solid var(--be-accent);
|
||||
border-radius: 10px;
|
||||
padding: .62em 1.2em;
|
||||
background: var(--be-accent);
|
||||
color: white;
|
||||
font: 650 .94rem/1.3 Inter, system-ui, sans-serif;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
.be-button:hover, .be-calendar .be-button:hover, .be-community .be-button:hover, .be-single .be-button:hover { background: var(--be-accent-dark); color: white; }
|
||||
|
||||
.be-search {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px;
|
||||
align-items: end;
|
||||
padding: clamp(14px, 2.6vw, 24px);
|
||||
border: 1px solid var(--be-border);
|
||||
border-radius: var(--be-radius);
|
||||
background: var(--be-bg);
|
||||
}
|
||||
.be-search label, .be-submission label { display: grid; gap: .38rem; font-size: .88rem; font-weight: 600; }
|
||||
.be-search label { flex: 1 1 140px; }
|
||||
.be-search :is(input, select), .be-submission :is(input:not([type=checkbox]), select, textarea) {
|
||||
min-height: 44px;
|
||||
width: 100%;
|
||||
border: 1px solid #bfcadb;
|
||||
border-radius: 9px;
|
||||
padding: .62em .82em;
|
||||
background: white;
|
||||
color: var(--be-ink);
|
||||
font: 400 .96rem/1.3 Inter, system-ui, sans-serif;
|
||||
}
|
||||
.be-search input::placeholder { color: #5b687a; }
|
||||
.be-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
|
||||
.be-calendar-toolbar > a { font-size: .88rem; }
|
||||
.be-view-tabs { display: flex; flex-wrap: wrap; gap: 3px; }
|
||||
.be-view-tabs a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: .44em .85em;
|
||||
min-height: 38px;
|
||||
border-radius: 8px;
|
||||
color: var(--be-muted);
|
||||
font-size: .9rem;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
.be-view-tabs a:hover, .be-view-tabs a[aria-current] { background: #e8ecfc; color: #283477; }
|
||||
.be-date-nav { display: flex; align-items: center; gap: .75rem; margin: 0 0 16px; }
|
||||
.be-date-nav h2 { margin: 0; font: 650 clamp(1.15rem, 3vw, 1.55rem)/1.15 Inter, system-ui, sans-serif; letter-spacing: -.035em; }
|
||||
.be-date-nav > a:not(.be-today) {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 1px solid var(--be-border);
|
||||
border-radius: 9px;
|
||||
font-size: 1.4rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
.be-date-nav .be-today { margin-left: auto; font-size: .9rem; }
|
||||
.be-pagination { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; }
|
||||
.be-empty { padding: 28px; border: 1px dashed #c0cbe2; border-radius: var(--be-radius); color: var(--be-muted); background: var(--be-bg); }
|
||||
.be-event-list { display: grid; gap: 12px; }
|
||||
.be-event-card {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
gap: clamp(.8rem, 2.8vw, 1.5rem);
|
||||
align-items: start;
|
||||
padding: clamp(14px, 3vw, 24px);
|
||||
border: 1px solid var(--be-border);
|
||||
border-radius: var(--be-radius);
|
||||
background: var(--be-white);
|
||||
box-shadow: 0 3px 14px rgb(23 42 75 / 3%);
|
||||
}
|
||||
.be-event-card:hover { border-color: #b0bce7; }
|
||||
.be-date-tile {
|
||||
display: grid;
|
||||
flex: 0 0 60px;
|
||||
min-height: 61px;
|
||||
align-content: center;
|
||||
justify-items: center;
|
||||
border-radius: 11px;
|
||||
background: #e9edfc;
|
||||
color: #2e3b91;
|
||||
line-height: 1.15;
|
||||
}
|
||||
.be-date-tile span { font-size: .75rem; font-weight: 650; text-transform: uppercase; }
|
||||
.be-date-tile strong { font-size: 1.45rem; }
|
||||
.be-card-body { min-width: 0; overflow-wrap: anywhere; }
|
||||
.be-card-body h3 { margin: .1em 0 .2em; font: 650 clamp(1.12rem, 2vw, 1.55rem)/1.2 Inter, system-ui, sans-serif; letter-spacing: -.028em; }
|
||||
.be-card-body h3 a { color: var(--be-ink); text-decoration: none; }
|
||||
.be-card-body h3 a:hover { text-decoration: underline; }
|
||||
.be-card-body p { margin: .35em 0 0; }
|
||||
.be-meta { color: var(--be-muted); font-size: .88rem; }
|
||||
.be-status { display: inline-block; margin-top: .5em; padding: .2em .58em; border-radius: 6px; color: #273782; background: #e9edfc; font-size: .81rem; font-weight: 650; }
|
||||
.be-view-photo { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
|
||||
.be-view-photo .be-event-card { display: grid; gap: .8rem; align-content: start; }
|
||||
.be-view-photo .be-date-tile { width: 60px; }
|
||||
.be-card-image img, .be-single-image img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 12px; }
|
||||
.be-card-image img { aspect-ratio: 16 / 10; }
|
||||
.be-view-summary .be-event-card { padding-block: 12px; }
|
||||
|
||||
.be-grid-color {
|
||||
--be-category-accent: var(--be-category-custom, hsl(var(--be-category-hue, 223) var(--be-category-saturation, 13%) 36%));
|
||||
--be-category-fill: color-mix(in srgb, var(--be-category-accent) 11%, white);
|
||||
--be-category-text: color-mix(in srgb, var(--be-category-accent) 31%, #142033);
|
||||
}
|
||||
.be-grid-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
|
||||
.be-grid-legend li { display: flex; align-items: center; gap: .45em; color: var(--be-category-text); font-size: .8rem; font-weight: 650; }
|
||||
.be-grid-legend li::before { content: ''; width: .65em; height: .65em; border-radius: 50%; background: var(--be-category-accent); }
|
||||
.be-grid-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--be-border); border-radius: var(--be-radius); }
|
||||
.be-grid-scroll:focus-visible { outline: 3px solid #717bde; outline-offset: 3px; }
|
||||
.be-grid { min-width: 540px; }
|
||||
.be-grid-weekdays, .be-grid-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
|
||||
.be-weekday { padding: .66rem .75rem; background: #edf1f9; color: var(--be-muted); font-size: .8rem; font-weight: 700; }
|
||||
.be-grid-week { grid-template-rows: 37px repeat(var(--be-tracks), minmax(29px, auto)) minmax(8px, 1fr); min-height: 108px; border-top: 1px solid var(--be-border); }
|
||||
.be-grid-day { grid-column: var(--be-day); grid-row: 1 / -1; min-width: 0; padding: 4px 7px; border-inline-end: 1px solid var(--be-border); background: white; }
|
||||
.be-grid-day:nth-child(7) { border-inline-end: 0; }
|
||||
.be-grid-day.be-grid-other { background: #f5f7fc; color: var(--be-muted); }
|
||||
.be-grid-day time { display: inline-grid; place-items: center; min-width: 27px; height: 27px; font: 650 .86rem/1 Inter, system-ui, sans-serif; }
|
||||
.be-grid-day time[aria-current] { border-radius: 50%; background: var(--be-accent); color: white; }
|
||||
.be-grid a.be-grid-event {
|
||||
grid-column: var(--be-start) / span var(--be-span);
|
||||
grid-row: var(--be-track);
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
margin: 0 4px 4px;
|
||||
padding: 3px 7px;
|
||||
border-inline-start: 3px solid var(--be-category-accent);
|
||||
border-radius: 6px;
|
||||
background: var(--be-category-fill);
|
||||
color: var(--be-category-text);
|
||||
font: 650 .79rem/1.35 Inter, system-ui, sans-serif;
|
||||
text-decoration: none;
|
||||
}
|
||||
.be-grid-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.be-grid a.be-grid-event:hover { box-shadow: inset 0 0 0 1px var(--be-category-accent); }
|
||||
.be-grid a.be-grid-event:focus-visible { outline-offset: -2px; outline-color: var(--be-category-accent); }
|
||||
.be-grid a.be-grid-continued { margin-inline-start: 0; border-inline-start-width: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
|
||||
.be-grid a.be-grid-continues { margin-inline-end: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
|
||||
.be-grid-preview {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
box-sizing: border-box;
|
||||
width: min(330px, calc(100vw - 20px));
|
||||
max-height: calc(100vh - 20px);
|
||||
overflow: auto;
|
||||
border: 1px solid #d8e0ec;
|
||||
border-radius: 13px;
|
||||
background: white;
|
||||
box-shadow: 0 12px 30px rgb(20 32 51 / 18%);
|
||||
color: #263549;
|
||||
font: 400 .86rem/1.48 Inter, system-ui, sans-serif;
|
||||
}
|
||||
.be-grid-preview[hidden] { display: none; }
|
||||
.be-preview-content { padding: 13px 15px; border-top: 3px solid var(--be-category-accent); overflow-wrap: anywhere; }
|
||||
.be-preview-heading { display: flex; align-items: center; gap: 11px; margin-bottom: .65rem; }
|
||||
.be-preview-heading img { display: block; flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
|
||||
.be-preview-heading strong { display: block; color: #142033; font-size: 1.02rem; line-height: 1.25; }
|
||||
.be-preview-content p { margin: .22rem 0; }
|
||||
.be-preview-content .be-preview-category { margin: 0 0 .23rem; color: var(--be-category-text); font-size: .73rem; font-weight: 700; }
|
||||
.be-preview-time, .be-preview-cost { font-weight: 650; }
|
||||
.be-preview-content .be-preview-excerpt { margin-top: .55rem; color: #4e5d72; }
|
||||
|
||||
.be-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 305px); gap: 16px; align-items: start; }
|
||||
.be-map-layout-list { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-map-count { margin: 0 0 12px; color: var(--be-muted); font-size: .9rem; font-weight: 650; }
|
||||
.be-map { min-width: 0; }
|
||||
.be-map-compact { margin-top: 12px; }
|
||||
.be-map-canvas {
|
||||
height: clamp(360px, 52vw, 555px);
|
||||
border: 1px solid var(--be-border);
|
||||
border-radius: var(--be-radius);
|
||||
background: #edf2f7;
|
||||
isolation: isolate;
|
||||
}
|
||||
.be-map-compact .be-map-canvas { height: 240px; border-radius: 14px; }
|
||||
.be-map .leaflet-control-attribution { color: #23334a; }
|
||||
.be-map .leaflet-control-attribution a { color: #1e4f86; }
|
||||
.be-map-pin {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 50% 50% 50% 12%;
|
||||
background: #4149c4;
|
||||
box-shadow: 0 3px 9px rgb(20 32 51 / 30%);
|
||||
color: #fff;
|
||||
font: 700 .9rem/1 Inter, system-ui, sans-serif;
|
||||
}
|
||||
.be-map-pin span:empty { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
|
||||
.be-map-popup { min-width: 155px; overflow-wrap: anywhere; }
|
||||
.be-map-popup :is(strong, span) { display: block; }
|
||||
.be-map-popup span { color: #4e5d72; }
|
||||
.be-map-popup ul, .be-map-event-links { margin: .65rem 0 0; padding: 0; list-style: none; }
|
||||
.be-map-popup li, .be-map-event-links li { padding: .52rem 0; border-top: 1px solid var(--be-border); }
|
||||
.be-map-popup li a, .be-map-event-links a { font-weight: 650; }
|
||||
.be-map-event-links a { font-size: .94rem; }
|
||||
.be-map-event-links span { display: block; color: var(--be-muted); font-size: .8rem; }
|
||||
.be-map-locations { display: grid; gap: 9px; max-height: 555px; overflow: auto; }
|
||||
.be-map-location { border: 1px solid var(--be-border); border-radius: 12px; background: var(--be-white); }
|
||||
.be-map-location summary {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 13px 14px;
|
||||
color: var(--be-ink);
|
||||
font-size: .98rem;
|
||||
font-weight: 650;
|
||||
cursor: pointer;
|
||||
}
|
||||
.be-map-location summary::-webkit-details-marker { display: none; }
|
||||
.be-map-location summary::before { content: '+'; color: var(--be-accent-dark); font-size: 1.13em; }
|
||||
.be-map-location[open] summary::before { content: '−'; }
|
||||
.be-map-location summary span:first-child { flex: 1; }
|
||||
.be-map-location-count { flex: none; min-width: 1.7rem; padding: .2em .4em; border-radius: 999px; background: #e9edfc; color: #273782; font-size: .78rem; text-align: center; }
|
||||
.be-map-location-body { padding: 0 14px 12px; }
|
||||
.be-map-unmapped { margin-top: 16px; }
|
||||
.be-map-focus { border: 0; padding: 8px 0; background: transparent; color: var(--be-accent-dark); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
|
||||
.be-map-error, .be-map-credit { display: block; margin: .45rem 0 0; color: var(--be-muted); font-size: .75rem; }
|
||||
.be-map-error[hidden] { display: none; }
|
||||
|
||||
.be-single, .be-community, .be-linked-header { max-width: 1100px; margin-inline: auto; }
|
||||
.be-single-header, .be-starter-intro { display: grid; gap: .8rem; margin-bottom: clamp(22px, 4vw, 42px); }
|
||||
.be-starter-intro { --gap: .65rem; }
|
||||
.be-back { font-size: .9rem; font-weight: 650; }
|
||||
.be-single-date { margin: 0; color: var(--be-muted); font-size: 1.02rem; font-weight: 600; }
|
||||
.be-single-image { margin: 0 0 26px; }
|
||||
.be-single-image img { max-height: 520px; aspect-ratio: 2 / 1; border-radius: var(--be-radius); }
|
||||
.be-single-columns, .be-starter .be-single-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 4vw, 50px); margin-bottom: 28px; }
|
||||
.be-single-details { --gap: .8rem; padding: clamp(16px, 2.6vw, 26px); border: 1px solid var(--be-border); border-radius: var(--be-radius); background: var(--be-bg); overflow-wrap: anywhere; }
|
||||
.be-single-details:empty { display: none; }
|
||||
.be-single-details :is(h2, p) { margin: 0 0 .4em; }
|
||||
.be-single-details h2 { font: 650 1.04rem/1.25 Inter, system-ui, sans-serif; }
|
||||
.be-related-detail + .be-related-detail { margin-top: 18px; }
|
||||
.be-description { overflow-wrap: anywhere; line-height: 1.72; }
|
||||
.be-description > :first-child { margin-top: 0; }
|
||||
.be-description > :last-child { margin-bottom: 0; }
|
||||
.be-cost { font-weight: 700; }
|
||||
.be-export-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }
|
||||
.be-custom-fields { display: grid; gap: .3rem 1rem; grid-template-columns: auto minmax(0, 1fr); }
|
||||
.be-custom-fields dt { font-weight: 650; }
|
||||
.be-custom-fields dd { margin: 0; overflow-wrap: anywhere; }
|
||||
.be-widget-preview { padding: .8rem; border: 1px dashed var(--be-border); border-radius: 8px; color: var(--be-muted); }
|
||||
.be-linked-header { margin-bottom: 26px; }
|
||||
.be-countdown { font-size: 1.7rem; font-variant-numeric: tabular-nums; font-weight: 650; }
|
||||
|
||||
.be-single-layout.e-con { --gap: 24px; max-width: 1100px; margin-inline: auto; }
|
||||
.be-single-layout .be-layout-nav.e-con {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
--gap: 10px;
|
||||
}
|
||||
.be-single-layout .be-layout-nav > .elementor-widget { width: auto; }
|
||||
.be-single-layout .be-layout-nav p { margin: 0; font-size: .86rem; font-weight: 650; }
|
||||
.be-single-layout .be-layout-nav a { text-decoration: none; }
|
||||
.be-single-layout .be-layout-nav a:hover { text-decoration: underline; }
|
||||
.be-layout-nav .be-term-links { padding: 5px 12px; border-radius: 999px; background: #eef1fb; }
|
||||
.be-single-layout .be-layout-hero.e-con {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
|
||||
--gap: 0;
|
||||
border-radius: 26px;
|
||||
overflow: hidden;
|
||||
background: #192344;
|
||||
box-shadow: 0 16px 42px rgb(20 32 51 / 14%);
|
||||
}
|
||||
.be-single-layout .be-layout-hero:not(:has(.be-single-image)) { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-single-layout .be-layout-photo:not(:has(.be-single-image)) { display: none; }
|
||||
.be-single-layout .be-layout-title.e-con {
|
||||
justify-content: center;
|
||||
--gap: 15px;
|
||||
padding: clamp(30px, 5vw, 60px);
|
||||
background: radial-gradient(ellipse at 15% 100%, #323b80, transparent 75%);
|
||||
}
|
||||
.be-single-layout .be-event-title { color: #fff; font-size: clamp(2.2rem, 5vw, 4.05rem); line-height: 1.02; text-wrap: pretty; }
|
||||
.be-single-layout .be-single-date { color: #dce4ff; font-size: clamp(.92rem, 1.7vw, 1.06rem); line-height: 1.5; }
|
||||
.be-single-layout .be-layout-title .be-status { margin: 0; border-radius: 999px; padding: .3em .8em; background: #dedfff; color: #272d65; }
|
||||
.be-single-layout .be-layout-photo.e-con { position: relative; min-height: clamp(265px, 33vw, 390px); padding: 0; }
|
||||
.be-single-layout .be-layout-photo > .elementor-widget { position: absolute; inset: 0; width: 100%; }
|
||||
.be-single-layout .be-layout-photo :is(.elementor-widget-container, .be-elementor-field, .be-single-image) { height: 100%; margin: 0; }
|
||||
.be-single-layout .be-layout-photo img { width: 100%; height: 100%; max-height: none; border-radius: 0; aspect-ratio: auto; }
|
||||
.be-single-layout .be-layout-body.e-con {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
|
||||
align-items: start;
|
||||
--gap: clamp(24px, 4vw, 54px);
|
||||
padding-block: clamp(8px, 2vw, 18px);
|
||||
}
|
||||
.be-single-layout .be-layout-reading.e-con { --gap: 30px; }
|
||||
.be-single-layout :is(.be-layout-overview, .be-layout-calendar).e-con { --gap: 12px; }
|
||||
.be-layout-overview:not(:has(.be-description, .be-custom-fields)), .be-layout-calendar:not(:has(.be-export-links)) { display: none; }
|
||||
.be-single-layout :is(.elementor-heading-title, .be-related-events h2, .be-related-detail h2) {
|
||||
margin: 0 0 .4em;
|
||||
color: var(--be-ink);
|
||||
font: 680 clamp(1.18rem, 2.3vw, 1.7rem)/1.2 Inter, system-ui, sans-serif;
|
||||
letter-spacing: -.032em;
|
||||
}
|
||||
.be-single-layout .be-description { font-size: clamp(1rem, 1.55vw, 1.16rem); }
|
||||
.be-single-layout .be-layout-calendar { padding-top: 22px; border-top: 1px solid var(--be-border); }
|
||||
.be-single-layout .be-export-links { margin: 0; gap: 9px; }
|
||||
.be-single-layout .be-export-links a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
border: 1px solid #cad2f2;
|
||||
border-radius: 9px;
|
||||
padding: .55em .9em;
|
||||
background: #f1f3ff;
|
||||
color: var(--be-accent-dark);
|
||||
font-size: .92rem;
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
.be-single-layout .be-export-links a:first-child { border-color: var(--be-accent); background: var(--be-accent); color: #fff; }
|
||||
.be-single-layout .be-export-links a:hover { background: var(--be-accent-dark); color: #fff; }
|
||||
.be-single-layout .be-layout-details.e-con {
|
||||
--gap: 14px;
|
||||
padding: clamp(18px, 3vw, 26px);
|
||||
border: 1px solid var(--be-border);
|
||||
border-radius: var(--be-radius);
|
||||
background: var(--be-bg);
|
||||
}
|
||||
.be-single-layout .be-layout-details p { margin: 0 0 .4em; font-size: .91rem; }
|
||||
.be-single-layout .be-layout-details .be-cost {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: .3em .75em;
|
||||
border: 1px solid #d5dbf6;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: var(--be-accent-dark);
|
||||
}
|
||||
.be-single-layout .be-related-events { border-top: 1px solid var(--be-border); padding-top: 24px; }
|
||||
.be-single-layout .be-related-events .be-event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.be-single-layout .be-related-events .be-event-card { gap: 10px; padding: 13px; }
|
||||
.be-single-layout .be-related-events .be-card-body h3 { font-size: 1.02rem; }
|
||||
.be-single-layout .elementor-widget:has(.be-elementor-field:empty) { display: none; }
|
||||
.be-single-map { margin-top: 24px; }
|
||||
|
||||
.be-submission { display: grid; gap: 18px; max-width: 840px; padding: clamp(16px, 3vw, 34px); border: 1px solid var(--be-border); border-radius: var(--be-radius); background: var(--be-bg); }
|
||||
.be-submission > p:first-of-type { margin-top: 0; }
|
||||
.be-submission .be-button { justify-self: start; }
|
||||
.be-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 10px 0; }
|
||||
.be-fields > label { flex: 1 1 155px; }
|
||||
.be-submission :is(.be-fields, fieldset) label:has(input[type=checkbox]) { display: block; }
|
||||
.be-recurrence summary { font-weight: 650; cursor: pointer; }
|
||||
.be-recurrence fieldset { border: 0; padding: 0; }
|
||||
.be-recurrence fieldset label { display: inline-block; margin-right: .5em; }
|
||||
.be-confirmation { border: 1px solid #b0dbba; border-radius: 10px; padding: .8rem 1rem; color: #153e28; background: #ebf9ef; }
|
||||
.be-submission-list { padding: 0; list-style: none; }
|
||||
.be-submission-list li { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; border-bottom: 1px solid var(--be-border); padding: 1rem 0; }
|
||||
.be-honeypot { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.be-calendar-header { align-items: baseline; }
|
||||
.be-grid-week { min-height: 89px; }
|
||||
.be-single-columns, .be-starter .be-single-columns { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-single-image img { aspect-ratio: 4 / 3; }
|
||||
.be-map-layout { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-map-locations { max-height: none; overflow: visible; }
|
||||
.be-map-canvas { height: 365px; }
|
||||
.be-map-compact .be-map-canvas { height: 230px; }
|
||||
.be-single-layout :is(.be-layout-hero, .be-layout-body).e-con { grid-template-columns: minmax(0, 1fr); }
|
||||
.be-single-layout .be-layout-photo.e-con { min-height: clamp(190px, 61vw, 310px); }
|
||||
.be-single-layout .be-related-events .be-event-list { grid-template-columns: minmax(0, 1fr); }
|
||||
}
|
||||
18
assets/events.js
Normal file
18
assets/events.js
Normal file
@@ -0,0 +1,18 @@
|
||||
function updateCountdowns() {
|
||||
const now = Math.floor(Date.now() / 1000);
|
||||
for (const clock of document.querySelectorAll('[data-be-countdown]')) {
|
||||
const remaining = Number(clock.dataset.beCountdown) - now;
|
||||
if (remaining <= 0) {
|
||||
clock.textContent = clock.dataset.beStarted;
|
||||
continue;
|
||||
}
|
||||
const days = Math.floor(remaining / 86400);
|
||||
const hours = Math.floor(remaining / 3600) % 24;
|
||||
const minutes = Math.floor(remaining / 60) % 60;
|
||||
const seconds = remaining % 60;
|
||||
const time = [hours, minutes, seconds].map((part) => String(part).padStart(2, '0')).join(':');
|
||||
clock.textContent = days ? `${days}d ${time}` : time;
|
||||
}
|
||||
}
|
||||
updateCountdowns();
|
||||
window.setInterval(updateCountdowns, 1000);
|
||||
115
assets/maps.js
Normal file
115
assets/maps.js
Normal file
@@ -0,0 +1,115 @@
|
||||
(() => {
|
||||
const selector = '[data-be-map]';
|
||||
const mounted = new WeakSet();
|
||||
|
||||
function link(text, url) {
|
||||
const anchor = document.createElement('a');
|
||||
anchor.textContent = text;
|
||||
anchor.href = url;
|
||||
return anchor;
|
||||
}
|
||||
|
||||
function popup(pin) {
|
||||
const content = document.createElement('div');
|
||||
content.className = 'be-map-popup';
|
||||
for (const place of Object.values(pin.places)) {
|
||||
const name = document.createElement('strong');
|
||||
name.append(link(place.name, place.url));
|
||||
content.append(name);
|
||||
if (place.address) {
|
||||
const address = document.createElement('span');
|
||||
address.textContent = place.address;
|
||||
content.append(address);
|
||||
}
|
||||
}
|
||||
|
||||
const events = Object.values(pin.events);
|
||||
if (events.length) {
|
||||
const list = document.createElement('ul');
|
||||
for (const event of events) {
|
||||
const item = document.createElement('li');
|
||||
const date = document.createElement('span');
|
||||
date.textContent = event.date;
|
||||
item.append(link(event.title, event.url), date);
|
||||
list.append(item);
|
||||
}
|
||||
content.append(list);
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
function mount(frame) {
|
||||
if (mounted.has(frame) || !window.L) return;
|
||||
const canvas = frame.querySelector('.be-map-canvas');
|
||||
const pins = JSON.parse(frame.querySelector('.be-map-pins').textContent);
|
||||
const map = L.map(canvas, { scrollWheelZoom: false });
|
||||
const markers = new Map();
|
||||
const bounds = L.latLngBounds(pins.map(pin => [pin.latitude, pin.longitude]));
|
||||
map.fitBounds(bounds, { padding: [42, 42], maxZoom: 15 });
|
||||
|
||||
for (const pin of pins) {
|
||||
const count = Object.keys(pin.events).length;
|
||||
const title = Object.values(pin.places).map(place => place.name).join(' / ');
|
||||
const symbol = document.createElement('span');
|
||||
symbol.textContent = count || '';
|
||||
const marker = L.marker([pin.latitude, pin.longitude], {
|
||||
title,
|
||||
icon: L.divIcon({
|
||||
className: 'be-map-pin',
|
||||
html: symbol,
|
||||
iconSize: [36, 36],
|
||||
iconAnchor: [18, 36],
|
||||
popupAnchor: [0, -34],
|
||||
}),
|
||||
}).addTo(map);
|
||||
marker.getElement().setAttribute('aria-label', title);
|
||||
marker.bindPopup(popup(pin), { maxHeight: 260, maxWidth: 300 });
|
||||
markers.set(pin.key, marker);
|
||||
}
|
||||
|
||||
const status = frame.querySelector('.be-map-error');
|
||||
const tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
keepBuffer: 1,
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>',
|
||||
});
|
||||
tiles.on('tileload', () => { status.hidden = true; });
|
||||
tiles.on('tileerror', () => {
|
||||
status.hidden = !!canvas.querySelector('.leaflet-tile-loaded');
|
||||
});
|
||||
tiles.addTo(map);
|
||||
mounted.add(frame);
|
||||
|
||||
for (const button of frame.closest('.be-map-layout')?.querySelectorAll('[data-be-map-focus]') ?? []) {
|
||||
const marker = markers.get(button.dataset.beMapFocus);
|
||||
if (!marker) continue;
|
||||
button.hidden = false;
|
||||
button.addEventListener('click', () => {
|
||||
map.panTo(marker.getLatLng(), { animate: false });
|
||||
marker.openPopup();
|
||||
marker.getElement().focus();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function mountAll(scope) {
|
||||
if (scope.matches?.(selector)) mount(scope);
|
||||
for (const frame of scope.querySelectorAll(selector)) mount(frame);
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', () => mountAll(document), { once: true });
|
||||
} else {
|
||||
mountAll(document);
|
||||
}
|
||||
|
||||
let elementorHook = false;
|
||||
function mountInElementor() {
|
||||
const hooks = window.elementorFrontend?.hooks;
|
||||
if (!hooks || elementorHook) return;
|
||||
hooks.addAction('frontend/element_ready/global', scope => mountAll(scope[0]));
|
||||
elementorHook = true;
|
||||
}
|
||||
mountInElementor();
|
||||
if (window.jQuery) window.jQuery(window).on('elementor/frontend/init', mountInElementor);
|
||||
})();
|
||||
48
assets/migration.js
Normal file
48
assets/migration.js
Normal file
@@ -0,0 +1,48 @@
|
||||
(() => {
|
||||
const form = document.querySelector('[data-be-migrate]');
|
||||
if (!form) return;
|
||||
|
||||
const {__, sprintf} = wp.i18n;
|
||||
const button = form.querySelector('button[type="submit"]');
|
||||
const status = form.querySelector('[data-be-migrate-status]');
|
||||
const errors = form.querySelector('[data-be-migrate-errors]');
|
||||
button.disabled = false;
|
||||
|
||||
form.addEventListener('submit', async event => {
|
||||
event.preventDefault();
|
||||
button.disabled = true;
|
||||
errors.replaceChildren();
|
||||
status.textContent = __('Copying events…', 'burn-events');
|
||||
const body = new FormData(form);
|
||||
let copied = 0;
|
||||
let skipped = 0;
|
||||
let after = 0;
|
||||
try {
|
||||
do {
|
||||
body.set('after', String(after));
|
||||
const response = await fetch(form.action, {method: 'POST', body, credentials: 'same-origin'});
|
||||
const result = await response.json();
|
||||
if (!response.ok || !result.success) {
|
||||
throw new Error(typeof result.data === 'string' ? result.data : '');
|
||||
}
|
||||
copied += result.data.copied;
|
||||
skipped += result.data.skipped;
|
||||
for (const error of result.data.errors) {
|
||||
const item = document.createElement('li');
|
||||
item.textContent = error;
|
||||
errors.append(item);
|
||||
}
|
||||
after = result.data.next;
|
||||
status.textContent = sprintf(
|
||||
after ? __('Copying events. %1$d copied, %2$d already copied, %3$d need review.', 'burn-events')
|
||||
: __('Migration finished. %1$d copied, %2$d already copied, %3$d need review.', 'burn-events'),
|
||||
copied, skipped, errors.childElementCount
|
||||
);
|
||||
} while (after);
|
||||
} catch (error) {
|
||||
status.textContent = error.message || __('Migration stopped. Run it again to continue with events that still need copying.', 'burn-events');
|
||||
} finally {
|
||||
button.disabled = false;
|
||||
}
|
||||
});
|
||||
})();
|
||||
26
assets/vendor/leaflet/LICENSE
vendored
Normal file
26
assets/vendor/leaflet/LICENSE
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2010-2023, Volodymyr Agafonkin
|
||||
Copyright (c) 2010-2011, CloudMade
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
BIN
assets/vendor/leaflet/images/layers-2x.png
vendored
Normal file
BIN
assets/vendor/leaflet/images/layers-2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/vendor/leaflet/images/layers.png
vendored
Normal file
BIN
assets/vendor/leaflet/images/layers.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 696 B |
BIN
assets/vendor/leaflet/images/marker-icon-2x.png
vendored
Normal file
BIN
assets/vendor/leaflet/images/marker-icon-2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/vendor/leaflet/images/marker-icon.png
vendored
Normal file
BIN
assets/vendor/leaflet/images/marker-icon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/vendor/leaflet/images/marker-shadow.png
vendored
Normal file
BIN
assets/vendor/leaflet/images/marker-shadow.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 618 B |
661
assets/vendor/leaflet/leaflet.css
vendored
Normal file
661
assets/vendor/leaflet/leaflet.css
vendored
Normal file
@@ -0,0 +1,661 @@
|
||||
/* required styles */
|
||||
|
||||
.leaflet-pane,
|
||||
.leaflet-tile,
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow,
|
||||
.leaflet-tile-container,
|
||||
.leaflet-pane > svg,
|
||||
.leaflet-pane > canvas,
|
||||
.leaflet-zoom-box,
|
||||
.leaflet-image-layer,
|
||||
.leaflet-layer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.leaflet-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.leaflet-tile,
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
/* Prevents IE11 from highlighting tiles in blue */
|
||||
.leaflet-tile::selection {
|
||||
background: transparent;
|
||||
}
|
||||
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
||||
.leaflet-safari .leaflet-tile {
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
}
|
||||
/* hack that prevents hw layers "stretching" when loading new tiles */
|
||||
.leaflet-safari .leaflet-tile-container {
|
||||
width: 1600px;
|
||||
height: 1600px;
|
||||
-webkit-transform-origin: 0 0;
|
||||
}
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow {
|
||||
display: block;
|
||||
}
|
||||
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
||||
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
||||
.leaflet-container .leaflet-overlay-pane svg {
|
||||
max-width: none !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
.leaflet-container .leaflet-marker-pane img,
|
||||
.leaflet-container .leaflet-shadow-pane img,
|
||||
.leaflet-container .leaflet-tile-pane img,
|
||||
.leaflet-container img.leaflet-image-layer,
|
||||
.leaflet-container .leaflet-tile {
|
||||
max-width: none !important;
|
||||
max-height: none !important;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.leaflet-container img.leaflet-tile {
|
||||
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
|
||||
mix-blend-mode: plus-lighter;
|
||||
}
|
||||
|
||||
.leaflet-container.leaflet-touch-zoom {
|
||||
-ms-touch-action: pan-x pan-y;
|
||||
touch-action: pan-x pan-y;
|
||||
}
|
||||
.leaflet-container.leaflet-touch-drag {
|
||||
-ms-touch-action: pinch-zoom;
|
||||
/* Fallback for FF which doesn't support pinch-zoom */
|
||||
touch-action: none;
|
||||
touch-action: pinch-zoom;
|
||||
}
|
||||
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
}
|
||||
.leaflet-container {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.leaflet-container a {
|
||||
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
||||
}
|
||||
.leaflet-tile {
|
||||
filter: inherit;
|
||||
visibility: hidden;
|
||||
}
|
||||
.leaflet-tile-loaded {
|
||||
visibility: inherit;
|
||||
}
|
||||
.leaflet-zoom-box {
|
||||
width: 0;
|
||||
height: 0;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
z-index: 800;
|
||||
}
|
||||
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
||||
.leaflet-overlay-pane svg {
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
.leaflet-pane { z-index: 400; }
|
||||
|
||||
.leaflet-tile-pane { z-index: 200; }
|
||||
.leaflet-overlay-pane { z-index: 400; }
|
||||
.leaflet-shadow-pane { z-index: 500; }
|
||||
.leaflet-marker-pane { z-index: 600; }
|
||||
.leaflet-tooltip-pane { z-index: 650; }
|
||||
.leaflet-popup-pane { z-index: 700; }
|
||||
|
||||
.leaflet-map-pane canvas { z-index: 100; }
|
||||
.leaflet-map-pane svg { z-index: 200; }
|
||||
|
||||
.leaflet-vml-shape {
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
}
|
||||
.lvml {
|
||||
behavior: url(#default#VML);
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
||||
/* control positioning */
|
||||
|
||||
.leaflet-control {
|
||||
position: relative;
|
||||
z-index: 800;
|
||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||
pointer-events: auto;
|
||||
}
|
||||
.leaflet-top,
|
||||
.leaflet-bottom {
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
}
|
||||
.leaflet-top {
|
||||
top: 0;
|
||||
}
|
||||
.leaflet-right {
|
||||
right: 0;
|
||||
}
|
||||
.leaflet-bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
.leaflet-left {
|
||||
left: 0;
|
||||
}
|
||||
.leaflet-control {
|
||||
float: left;
|
||||
clear: both;
|
||||
}
|
||||
.leaflet-right .leaflet-control {
|
||||
float: right;
|
||||
}
|
||||
.leaflet-top .leaflet-control {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.leaflet-bottom .leaflet-control {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.leaflet-left .leaflet-control {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.leaflet-right .leaflet-control {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* zoom and fade animations */
|
||||
|
||||
.leaflet-fade-anim .leaflet-popup {
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity 0.2s linear;
|
||||
-moz-transition: opacity 0.2s linear;
|
||||
transition: opacity 0.2s linear;
|
||||
}
|
||||
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
||||
opacity: 1;
|
||||
}
|
||||
.leaflet-zoom-animated {
|
||||
-webkit-transform-origin: 0 0;
|
||||
-ms-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
svg.leaflet-zoom-animated {
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
}
|
||||
.leaflet-zoom-anim .leaflet-tile,
|
||||
.leaflet-pan-anim .leaflet-tile {
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.leaflet-zoom-anim .leaflet-zoom-hide {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* cursors */
|
||||
|
||||
.leaflet-interactive {
|
||||
cursor: pointer;
|
||||
}
|
||||
.leaflet-grab {
|
||||
cursor: -webkit-grab;
|
||||
cursor: -moz-grab;
|
||||
cursor: grab;
|
||||
}
|
||||
.leaflet-crosshair,
|
||||
.leaflet-crosshair .leaflet-interactive {
|
||||
cursor: crosshair;
|
||||
}
|
||||
.leaflet-popup-pane,
|
||||
.leaflet-control {
|
||||
cursor: auto;
|
||||
}
|
||||
.leaflet-dragging .leaflet-grab,
|
||||
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
||||
.leaflet-dragging .leaflet-marker-draggable {
|
||||
cursor: move;
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: -moz-grabbing;
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* marker & overlays interactivity */
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow,
|
||||
.leaflet-image-layer,
|
||||
.leaflet-pane > svg path,
|
||||
.leaflet-tile-container {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.leaflet-marker-icon.leaflet-interactive,
|
||||
.leaflet-image-layer.leaflet-interactive,
|
||||
.leaflet-pane > svg path.leaflet-interactive,
|
||||
svg.leaflet-image-layer.leaflet-interactive path {
|
||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* visual tweaks */
|
||||
|
||||
.leaflet-container {
|
||||
background: #ddd;
|
||||
outline-offset: 1px;
|
||||
}
|
||||
.leaflet-container a {
|
||||
color: #0078A8;
|
||||
}
|
||||
.leaflet-zoom-box {
|
||||
border: 2px dotted #38f;
|
||||
background: rgba(255,255,255,0.5);
|
||||
}
|
||||
|
||||
|
||||
/* general typography */
|
||||
.leaflet-container {
|
||||
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
|
||||
/* general toolbar styles */
|
||||
|
||||
.leaflet-bar {
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.leaflet-bar a {
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #ccc;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
.leaflet-bar a,
|
||||
.leaflet-control-layers-toggle {
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
display: block;
|
||||
}
|
||||
.leaflet-bar a:hover,
|
||||
.leaflet-bar a:focus {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.leaflet-bar a:first-child {
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
.leaflet-bar a:last-child {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-bottom: none;
|
||||
}
|
||||
.leaflet-bar a.leaflet-disabled {
|
||||
cursor: default;
|
||||
background-color: #f4f4f4;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-bar a {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.leaflet-touch .leaflet-bar a:first-child {
|
||||
border-top-left-radius: 2px;
|
||||
border-top-right-radius: 2px;
|
||||
}
|
||||
.leaflet-touch .leaflet-bar a:last-child {
|
||||
border-bottom-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
}
|
||||
|
||||
/* zoom control */
|
||||
|
||||
.leaflet-control-zoom-in,
|
||||
.leaflet-control-zoom-out {
|
||||
font: bold 18px 'Lucida Console', Monaco, monospace;
|
||||
text-indent: 1px;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
|
||||
/* layers control */
|
||||
|
||||
.leaflet-control-layers {
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.leaflet-control-layers-toggle {
|
||||
background-image: url(images/layers.png);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
.leaflet-retina .leaflet-control-layers-toggle {
|
||||
background-image: url(images/layers-2x.png);
|
||||
background-size: 26px 26px;
|
||||
}
|
||||
.leaflet-touch .leaflet-control-layers-toggle {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
.leaflet-control-layers .leaflet-control-layers-list,
|
||||
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
||||
display: none;
|
||||
}
|
||||
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
.leaflet-control-layers-expanded {
|
||||
padding: 6px 10px 6px 6px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
}
|
||||
.leaflet-control-layers-scrollbar {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.leaflet-control-layers-selector {
|
||||
margin-top: 2px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.leaflet-control-layers label {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-size: 1.08333em;
|
||||
}
|
||||
.leaflet-control-layers-separator {
|
||||
height: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 5px -10px 5px -6px;
|
||||
}
|
||||
|
||||
/* Default icon URLs */
|
||||
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
|
||||
background-image: url(images/marker-icon.png);
|
||||
}
|
||||
|
||||
|
||||
/* attribution and scale controls */
|
||||
|
||||
.leaflet-container .leaflet-control-attribution {
|
||||
background: #fff;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
margin: 0;
|
||||
}
|
||||
.leaflet-control-attribution,
|
||||
.leaflet-control-scale-line {
|
||||
padding: 0 5px;
|
||||
color: #333;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.leaflet-control-attribution a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.leaflet-control-attribution a:hover,
|
||||
.leaflet-control-attribution a:focus {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.leaflet-attribution-flag {
|
||||
display: inline !important;
|
||||
vertical-align: baseline !important;
|
||||
width: 1em;
|
||||
height: 0.6669em;
|
||||
}
|
||||
.leaflet-left .leaflet-control-scale {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.leaflet-bottom .leaflet-control-scale {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.leaflet-control-scale-line {
|
||||
border: 2px solid #777;
|
||||
border-top: none;
|
||||
line-height: 1.1;
|
||||
padding: 2px 5px 1px;
|
||||
white-space: nowrap;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
text-shadow: 1px 1px #fff;
|
||||
}
|
||||
.leaflet-control-scale-line:not(:first-child) {
|
||||
border-top: 2px solid #777;
|
||||
border-bottom: none;
|
||||
margin-top: -2px;
|
||||
}
|
||||
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
||||
border-bottom: 2px solid #777;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-control-attribution,
|
||||
.leaflet-touch .leaflet-control-layers,
|
||||
.leaflet-touch .leaflet-bar {
|
||||
box-shadow: none;
|
||||
}
|
||||
.leaflet-touch .leaflet-control-layers,
|
||||
.leaflet-touch .leaflet-bar {
|
||||
border: 2px solid rgba(0,0,0,0.2);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
|
||||
/* popup */
|
||||
|
||||
.leaflet-popup {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.leaflet-popup-content-wrapper {
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.leaflet-popup-content {
|
||||
margin: 13px 24px 13px 20px;
|
||||
line-height: 1.3;
|
||||
font-size: 13px;
|
||||
font-size: 1.08333em;
|
||||
min-height: 1px;
|
||||
}
|
||||
.leaflet-popup-content p {
|
||||
margin: 17px 0;
|
||||
margin: 1.3em 0;
|
||||
}
|
||||
.leaflet-popup-tip-container {
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-top: -1px;
|
||||
margin-left: -20px;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
.leaflet-popup-tip {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
padding: 1px;
|
||||
|
||||
margin: -10px auto 0;
|
||||
pointer-events: auto;
|
||||
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.leaflet-popup-content-wrapper,
|
||||
.leaflet-popup-tip {
|
||||
background: white;
|
||||
color: #333;
|
||||
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
||||
}
|
||||
.leaflet-container a.leaflet-popup-close-button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
border: none;
|
||||
text-align: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
font: 16px/24px Tahoma, Verdana, sans-serif;
|
||||
color: #757575;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
}
|
||||
.leaflet-container a.leaflet-popup-close-button:hover,
|
||||
.leaflet-container a.leaflet-popup-close-button:focus {
|
||||
color: #585858;
|
||||
}
|
||||
.leaflet-popup-scrolled {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.leaflet-oldie .leaflet-popup-content-wrapper {
|
||||
-ms-zoom: 1;
|
||||
}
|
||||
.leaflet-oldie .leaflet-popup-tip {
|
||||
width: 24px;
|
||||
margin: 0 auto;
|
||||
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
||||
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
||||
}
|
||||
|
||||
.leaflet-oldie .leaflet-control-zoom,
|
||||
.leaflet-oldie .leaflet-control-layers,
|
||||
.leaflet-oldie .leaflet-popup-content-wrapper,
|
||||
.leaflet-oldie .leaflet-popup-tip {
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
|
||||
/* div icon */
|
||||
|
||||
.leaflet-div-icon {
|
||||
background: #fff;
|
||||
border: 1px solid #666;
|
||||
}
|
||||
|
||||
|
||||
/* Tooltip */
|
||||
/* Base styles for the element that has a tooltip */
|
||||
.leaflet-tooltip {
|
||||
position: absolute;
|
||||
padding: 6px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 3px;
|
||||
color: #222;
|
||||
white-space: nowrap;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
||||
}
|
||||
.leaflet-tooltip.leaflet-interactive {
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.leaflet-tooltip-top:before,
|
||||
.leaflet-tooltip-bottom:before,
|
||||
.leaflet-tooltip-left:before,
|
||||
.leaflet-tooltip-right:before {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
border: 6px solid transparent;
|
||||
background: transparent;
|
||||
content: "";
|
||||
}
|
||||
|
||||
/* Directions */
|
||||
|
||||
.leaflet-tooltip-bottom {
|
||||
margin-top: 6px;
|
||||
}
|
||||
.leaflet-tooltip-top {
|
||||
margin-top: -6px;
|
||||
}
|
||||
.leaflet-tooltip-bottom:before,
|
||||
.leaflet-tooltip-top:before {
|
||||
left: 50%;
|
||||
margin-left: -6px;
|
||||
}
|
||||
.leaflet-tooltip-top:before {
|
||||
bottom: 0;
|
||||
margin-bottom: -12px;
|
||||
border-top-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-bottom:before {
|
||||
top: 0;
|
||||
margin-top: -12px;
|
||||
margin-left: -6px;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-left {
|
||||
margin-left: -6px;
|
||||
}
|
||||
.leaflet-tooltip-right {
|
||||
margin-left: 6px;
|
||||
}
|
||||
.leaflet-tooltip-left:before,
|
||||
.leaflet-tooltip-right:before {
|
||||
top: 50%;
|
||||
margin-top: -6px;
|
||||
}
|
||||
.leaflet-tooltip-left:before {
|
||||
right: 0;
|
||||
margin-right: -12px;
|
||||
border-left-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-right:before {
|
||||
left: 0;
|
||||
margin-left: -12px;
|
||||
border-right-color: #fff;
|
||||
}
|
||||
|
||||
/* Printing */
|
||||
|
||||
@media print {
|
||||
/* Prevent printers from removing background-images of controls. */
|
||||
.leaflet-control {
|
||||
-webkit-print-color-adjust: exact;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
}
|
||||
6
assets/vendor/leaflet/leaflet.js
vendored
Normal file
6
assets/vendor/leaflet/leaflet.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/vendor/leaflet/leaflet.js.map
vendored
Normal file
1
assets/vendor/leaflet/leaflet.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user