Added external link marker and fix useless is:global
This commit is contained in:
@@ -8,6 +8,22 @@
|
|||||||
background: #f1f5f9;
|
background: #f1f5f9;
|
||||||
|
|
||||||
.leaflet-map-pane {
|
.leaflet-map-pane {
|
||||||
|
.leaflet-popup-pane {
|
||||||
|
.leaflet-popup-content-wrapper {
|
||||||
|
border-radius: .25rem;
|
||||||
|
|
||||||
|
.leaflet-popup-content {
|
||||||
|
strong {
|
||||||
|
margin-bottom: .25em;
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-underline-offset: 2px;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.leaflet-tooltip-pane {
|
.leaflet-tooltip-pane {
|
||||||
.leaflet-tooltip {
|
.leaflet-tooltip {
|
||||||
&.capital-name {
|
&.capital-name {
|
||||||
@@ -30,7 +46,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-popup-content-wrapper {
|
|
||||||
border-radius: .25rem;
|
|
||||||
}
|
|
||||||
@@ -20,3 +20,16 @@ html {
|
|||||||
color: var(--slate-900);
|
color: var(--slate-900);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a[href^='http'] {
|
||||||
|
padding-right: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href^='http']::after {
|
||||||
|
position: absolute;
|
||||||
|
content: "\e972";
|
||||||
|
font-family: 'Phosphor-Fill' !important;
|
||||||
|
display: inline-block;
|
||||||
|
width: 1em;
|
||||||
|
height: 1em;
|
||||||
|
margin-left: .25em;
|
||||||
|
}
|
||||||
@@ -90,11 +90,11 @@ for (let i = 0; i < markers.length; i++) {
|
|||||||
|
|
||||||
const marker = L.marker(coords, { icon: markerIcon }).addTo(map);
|
const marker = L.marker(coords, { icon: markerIcon }).addTo(map);
|
||||||
const popupContent = `
|
const popupContent = `
|
||||||
<b>
|
<strong>
|
||||||
<a href="${m.link}" target="_blank">
|
<a href="${m.link}" target="_blank">
|
||||||
${m.title}
|
${m.title}
|
||||||
</a>
|
</a>
|
||||||
</b>
|
</strong>
|
||||||
<br>
|
<br>
|
||||||
${m.description}
|
${m.description}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -38,6 +38,6 @@ const { title } = Astro.props;
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
<style is:global lang="scss">
|
<style lang="scss">
|
||||||
@import '../assets/scss/theme.scss';
|
@use '../assets/scss/theme.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user