diff --git a/src/assets/main.scss b/src/assets/main.scss index 23b21cd..fba42a5 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -84,7 +84,7 @@ body{ box-sizing: border-box; width:450px; height: 100%; - padding: 5rem 1rem 1rem; + padding: 1rem 1rem 1rem; overflow-y: auto; overflow-x: hidden; header, section{ @@ -97,10 +97,25 @@ body{ padding: 0 0 1em 0; } header{ + display: flex; + height: 8rem; + flex-direction: column; + justify-content: flex-end; + label, h3{ + // height: 70px; + box-sizing: border-box; + // padding: 0 0 1em 0; + // flex-grow: auto; + } + h3{ + font-weight: 400; + font-size: 1.2em; + } h2{ font-weight: 400; font-size: 1.512em; } + } section>div{ font-size: 1em; @@ -123,6 +138,19 @@ body{ border-radius: 3px; // min-width: 10em; // max-width: 30em; + .concernement-map-popup{ + ul.icons{ + display: flex; + flex-direction: row; + padding: 0; + margin: 0; + li{ + list-style:none; + padding:0; + margin:0; + } + } + } h1{ font-size: 1em; font-weight: 400; diff --git a/src/components/ConcernementMapItem.vue b/src/components/ConcernementMapItem.vue index a4837fb..e166603 100644 --- a/src/components/ConcernementMapItem.vue +++ b/src/components/ConcernementMapItem.vue @@ -121,7 +121,7 @@ export default { }, hover_elmt: { handler (n, o) { - console.log('watch hover_elmt', o, n); + // console.log('watch hover_elmt', o, n); if (n && n.type === 'concernement' && n.id === this.id) { this.isHover = true; } else { @@ -704,7 +704,7 @@ export default { this.ctx.arc(part.position.x, part.position.y, 0.3*this.scale, 0, 2 * Math.PI, false); // console.log(part.id, this.opened_entite_id); if (part.id === this.opened_entite_id) { - this.ctx.fillStyle = "#F00"; + this.ctx.fillStyle = "#01ffe2"; } else { this.ctx.fillStyle = "#000"; } @@ -724,7 +724,7 @@ export default { this.ctx.arc(part.position.x, part.position.y, 1*this.scale, 0, 2 * Math.PI, false); // console.log(part.id, this.opened_entite_id); if (part.id === this.opened_entite_id) { - this.ctx.fillStyle = "#F00"; + this.ctx.fillStyle = "#01ffe2"; } else { this.ctx.fillStyle = "#000"; } diff --git a/src/components/ConcernementMapPopup.vue b/src/components/ConcernementMapPopup.vue index 5a0b50a..65f9e99 100644 --- a/src/components/ConcernementMapPopup.vue +++ b/src/components/ConcernementMapPopup.vue @@ -72,18 +72,18 @@ export default { this.dom.setAttribute("pos", `${v}-${h}`); switch (h) { case "right": - this.dom.style.left = `${e.clientX}px`; + this.dom.style.left = `${e.clientX+2}px`; break; case "left": - this.dom.style.left = `${e.clientX - this.dom.clientWidth}px`; + this.dom.style.left = `${e.clientX - this.dom.clientWidth-2}px`; break; } switch (v) { case "top": - this.dom.style.top = `${e.clientY - this.dom.clientHeight}px`; + this.dom.style.top = `${e.clientY - this.dom.clientHeight-2}px`; break; case "bottom": - this.dom.style.top = `${e.clientY}px`; + this.dom.style.top = `${e.clientY+2}px`; break; } } @@ -100,6 +100,10 @@ export default {