Skip to content

Commit

Permalink
Merge pull request #51 from Plant-for-the-Planet-org/feature/resetChi…
Browse files Browse the repository at this point in the history
…ldStyling

Fix text cluttering in widgets
  • Loading branch information
norbertschuler authored Mar 30, 2021
2 parents a1f1bb0 + 5ad5d0d commit 9eabc7f
Show file tree
Hide file tree
Showing 5 changed files with 749 additions and 748 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ <h5 class="widgetSubTitle" style="margin-bottom: 20px;">Customization Options (O
function updateCode(id) {
var widgetCode = document.getElementById(id + 'Code');
var widgetNode = document.getElementById(id + 'Script');
widgetNode.src = 'https://widgets.plant-for-the-planet.org/build/' + widgetNode.src.split("/")[4];
widgetNode.src = `${window.location.origin}/build/` + widgetNode.src.split("/")[4];
widgetCode.innerHTML = "<code>" +
document.getElementById(id + 'Script').outerHTML.replace(/</g, "&lt;") + '</br>' +
document.getElementById(id).outerHTML.replace(/</g, "&lt;") +
Expand Down
13 changes: 8 additions & 5 deletions src/TreeMap/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
export let community = "true";
export let locale = "en";
export let refresh = "none";
export let tenantkey = 'ten_I9TW3ncG';
export let tenantkey = "ten_I9TW3ncG";
$: primarycolor = primarycolor;
$: counterbgcolor = circlebgcolor
? circlebgcolor
Expand Down Expand Up @@ -278,7 +278,7 @@
</a>
<a
class="footerLinkBold"
href={'https://a.plant-for-the-planet.org/'}
href={"https://a.plant-for-the-planet.org/"}
target="_blank"
>| {language[locale].poweredBy}
</a>
Expand Down Expand Up @@ -337,12 +337,12 @@
>
{#if theme === "dark"}
<img
src={`${__myapp.env.CDN_URL}/logo/svg/planetDark.svg`}
src={`${__myapp.env.CDN_URL}/logo/svg/planetDark.svg`}
alt="Plant-for-the-Planet Logo"
/>
{:else}
<img
src={`${__myapp.env.CDN_URL}/logo/svg/planet.svg`}
src={`${__myapp.env.CDN_URL}/logo/svg/planet.svg`}
alt="Plant-for-the-Planet Logo"
/>
{/if}
Expand All @@ -362,6 +362,9 @@
/* @import "https://api.mapbox.com/mapbox-gl-js/v1.2.0/mapbox-gl.css"; */
@import "https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap";
@import "https://widgets.plant-for-the-planet.org/map.css";
:host {
all: initial;
}
.treemap {
width: 100%;
border-radius: 10px;
Expand Down Expand Up @@ -421,14 +424,14 @@
text-align: center;
color: white;
margin: 0px;
line-height: 72px;
}
.treecountLabel {
font-size: 13px;
font-weight: bold;
text-align: center;
color: white;
margin: 0px;
margin-top: 6px;
}
.planted {
color: var(--primary-color);
Expand Down
Loading

0 comments on commit 9eabc7f

Please sign in to comment.