Skip to content

Commit

Permalink
minor visual fixes + repository link
Browse files Browse the repository at this point in the history
  • Loading branch information
stefancosquer committed Mar 26, 2021
1 parent e1b572e commit b5b3937
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ This is a custom element to compute web navigation carbon footprint.
### CDN

```html
<!-- pin to a specific version if required -->
<script type="module" src="https://unpkg.com/@digital4better/carbonara@latest/dist/carbonara.js"></script>

<p>Your navigation has emitted <carbon-ara></carbon-ara> so far.</p>
Expand Down
4 changes: 2 additions & 2 deletions carbonara.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ template.innerHTML = `
<style>
#carbonara { display: inline-block; position: relative; }
#carbonara:hover #tooltip { opacity: 1; transform: translateX(-50%) translateY(0)}
#tooltip { font-family: Verdana, sans-serif; font-size: 12px; text-align: left; pointer-events: none; font-weight: normal; transition: all 0.2s ease-in 0.3s; opacity: 0; padding: 10px; color: white; background: rgba(0,0,0,0.75); border-radius: 4px; position: absolute; transform: translateX(-50%) translateY(-5%); bottom: 24px; left: 25%; }
#tooltip { font-family: Verdana, sans-serif; font-size: 12px; text-align: left; pointer-events: none; font-weight: normal; transition: all 0.1s ease-in 0.2s; opacity: 0; padding: 10px; color: white; background: rgba(0,0,0,0.75); border-radius: 4px; position: absolute; transform: translateX(-50%) translateY(5%); bottom: 32px; left: 25%; }
#tooltip:after { content: ''; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid rgba(0,0,0,0.75); position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); }
#tooltip.bottom {top: 24px; bottom: auto; transform: translateX(-50%) translateY(5%); }
#tooltip.bottom {top: 32px; bottom: auto; transform: translateX(-50%) translateY(-5%); }
#tooltip.bottom:after {top:-7px; bottom: auto; border-top: none; border-bottom: 7px solid rgba(0,0,0,0.75);}
#info { margin: 0; padding: 0; list-style: none; }
#reinsurance { margin: 10px 0 0; white-space: pre; }
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@digital4better/carbonara",
"version": "1.0.1",
"version": "1.0.2",
"description": "A carbon footprint web component",
"repository": "[email protected]:digital4better/carbonara.git",
"repository": {
"type": "git",
"url": "https://github.com/digital4better/carbonara.git"
},
"author": "Stefan <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit b5b3937

Please sign in to comment.