Clean up popup css
This commit is contained in:
@@ -28,7 +28,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div :class="'info-window '+type">
|
<div :class="type">
|
||||||
<div class="header" v-if="type=='message'">
|
<div class="header" v-if="type=='message'">
|
||||||
<h1>
|
<h1>
|
||||||
<spotIcon :icon="'message'" size="lg" :text="lang.get('feed.counter', options.displayed_id)" width="auto" />
|
<spotIcon :icon="'message'" size="lg" :text="lang.get('feed.counter', options.displayed_id)" width="auto" />
|
||||||
@@ -36,23 +36,23 @@ export default {
|
|||||||
</h1>
|
</h1>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info coordinates">
|
<div class="section coordinates">
|
||||||
<spotIcon :icon="'coords'" fixed-width size="lg" margin="right" />
|
<spotIcon :icon="'coords'" fixed-width size="lg" margin="right" />
|
||||||
<projectMapLink :options="options" />
|
<projectMapLink :options="options" />
|
||||||
</div>
|
</div>
|
||||||
<div class="info altitude" v-if="options.altitude">
|
<div class="section altitude" v-if="options.altitude">
|
||||||
<spotIcon :icon="'altitude'" fixed-width size="lg" :text="options.altitude+'m'" />
|
<spotIcon :icon="'altitude'" fixed-width size="lg" :text="options.altitude+'m'" />
|
||||||
</div>
|
</div>
|
||||||
<div class="info time">
|
<div class="section time">
|
||||||
<projectRelTime :icon="timeIcon" :localTime="options.formatted_time_local" :siteTime="options.formatted_time" :offset="options.day_offset" />
|
<projectRelTime :icon="timeIcon" :localTime="options.formatted_time_local" :siteTime="options.formatted_time" :offset="options.day_offset" />
|
||||||
<span v-if="project.mode==consts.modes.blog"> ({{ options.relative_time }})</span>
|
<span v-if="project.mode==consts.modes.blog"> ({{ options.relative_time }})</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="info weather" v-if="options.weather_icon && options.weather_icon!='unknown'" :title="options.weather_cond==''?'':lang.get('weather.'+options.weather_icon)">
|
<div class="section weather" v-if="options.weather_icon && options.weather_icon!='unknown'" :title="options.weather_cond==''?'':lang.get('weather.'+options.weather_icon)">
|
||||||
<spotIcon :icon="options.weather_icon" fixed-width size="lg" :text="options.weather_temp+'°C'" />
|
<spotIcon :icon="options.weather_icon" fixed-width size="lg" :text="options.weather_temp+'°C'" />
|
||||||
</div>
|
</div>
|
||||||
<div v-if="medias.length > 0" class="info">
|
<div v-if="medias.length > 0" class="section medias">
|
||||||
<spotIcon icon="media" fixed-width size="lg" :text="lang.get('media.nearby')" />
|
<spotIcon v-if="type=='message'" icon="media" fixed-width size="lg" :text="lang.get('media.nearby')" />
|
||||||
<div class="medias">
|
<div class="medias-list">
|
||||||
<projectMediaLink v-for="media in medias" :options="media" :type="'marker'" />
|
<projectMediaLink v-for="media in medias" :options="media" :type="'marker'" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ $thumbnail-max-size: 60px;
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
/* Popup */
|
|
||||||
.maplibregl-popup {
|
.maplibregl-popup {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
@@ -20,36 +19,37 @@ $thumbnail-max-size: 60px;
|
|||||||
padding: var.$block-spacing;
|
padding: var.$block-spacing;
|
||||||
background-color: color.$default-bg-light;
|
background-color: color.$default-bg-light;
|
||||||
|
|
||||||
/* Marker Popup */
|
.header h1 {
|
||||||
.info-window {
|
font-size: 1.4em;
|
||||||
h1 {
|
margin: 0;
|
||||||
font-size: 1.4em;
|
font-weight: bold;
|
||||||
margin: 0;
|
text-align: center;
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
.message-type {
|
.message-type {
|
||||||
color: color.$default;
|
color: color.$default;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: calc(1em / 1.4);
|
font-size: calc(1em / 1.4);
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
vertical-align: center;
|
vertical-align: center;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.separator {
|
.separator {
|
||||||
border-top: 1px solid color.$default-bg;
|
border-top: 1px solid color.$default-bg;
|
||||||
margin: var.$elem-spacing 0;
|
margin: var.$elem-spacing 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section {
|
||||||
|
font-size: 1.0em;
|
||||||
|
margin: var.$elem-spacing 0 0 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: color.$default;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.info {
|
.medias-list {
|
||||||
font-size: 1.0em;
|
line-height: 0;
|
||||||
margin: var.$elem-spacing 0 0 0;
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: color.$default;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
a.media-link {
|
a.media-link {
|
||||||
img {
|
img {
|
||||||
@@ -75,68 +75,37 @@ $thumbnail-max-size: 60px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.message {
|
.message .medias-list {
|
||||||
.medias {
|
display: flex;
|
||||||
line-height: 0;
|
flex-wrap: wrap;
|
||||||
display: flex;
|
gap: var.$elem-spacing;
|
||||||
flex-wrap: wrap;
|
align-items: center;
|
||||||
gap: var.$elem-spacing;
|
margin-top: var.$elem-spacing;
|
||||||
align-items: center;
|
|
||||||
margin-top: var.$elem-spacing;
|
|
||||||
|
|
||||||
a.media-link {
|
a.media-link {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: $thumbnail-max-size;
|
max-width: $thumbnail-max-size;
|
||||||
max-height: calc($thumbnail-max-size * 2/3);
|
max-height: calc($thumbnail-max-size * 2/3);
|
||||||
}
|
|
||||||
|
|
||||||
&.drill .drill-icon {
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.media {
|
|
||||||
.coordinates {
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.medias {
|
&.drill .drill-icon {
|
||||||
a.media-link img {
|
font-size: 1.5em;
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Track Popup */
|
.media {
|
||||||
.track_tooltip {
|
.coordinates {
|
||||||
p {
|
margin-top: 0;
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
&.description {
|
|
||||||
font-size: 1.15em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, .description {
|
.medias-list {
|
||||||
@include common.no-text-overflow();
|
a.media-link img {
|
||||||
}
|
width: 100%;
|
||||||
.body {
|
|
||||||
padding-left: calc(1.25em * 1.4 + var.$elem-spacing );
|
|
||||||
|
|
||||||
.details {
|
|
||||||
margin-top: var.$block-spacing * -1;
|
|
||||||
|
|
||||||
p.detail {
|
|
||||||
margin-top: var.$block-spacing;
|
|
||||||
width: 50%;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user