Created
April 26, 2021 04:38
-
-
Save ahoyahoy/d11d47eab9d741afb2442eaa3fe53218 to your computer and use it in GitHub Desktop.
Purple Widget IFRAME -- Small
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://unpkg.com/@purple/pt-widgets/dist/purple-web-components.js"></script> | |
| <!-- Setup here strategy ID and chart height --> | |
| <pt-widget strategy="n651" height="100"></pt-widget> | |
| <style> | |
| /* | |
| * customize style variables | |
| */ | |
| * { | |
| --font-family: arial; | |
| --widget-padding: 10px; | |
| --widget-border: 1px solid #efefef; | |
| --widget-border-radius: 5px; | |
| --name-font-size: 16px; | |
| --name-font-color: black; | |
| --name-font-weight: normal; | |
| --gain-font-size: 14px; | |
| --gain-font-color: gray; | |
| --gain-font-weight: normal; | |
| --currency-font-size: 12px; | |
| --currency-font-color: gray; | |
| --currency-font-weight: normal; | |
| --sparkline-color: #14ad53; | |
| --sparkline-thickness: 2; | |
| --sparkline-tooltip-font-size: 12px; | |
| --sparkline-tooltip-background: rgba(82, 41, 116, .8); | |
| } | |
| /* | |
| * change only if you know what you are doing | |
| */ | |
| body, | |
| html { | |
| margin: 0; | |
| padding: 0; | |
| overflow: hidden; | |
| font-family: var(--font-family); | |
| } | |
| body { | |
| padding: var(--widget-padding); | |
| border: var(--widget-border); | |
| border-radius: var(--widget-border-radius); | |
| } | |
| * { | |
| text-decoration: none; | |
| } | |
| pt-widget .pt-widget .widget--header { | |
| font-weight: var(--name-font-weight); | |
| color: var(--name-font-color); | |
| padding-right: 6rem; | |
| font-size: var(--name-font-size); | |
| } | |
| pt-widget .pt-widget .widget--gain { | |
| font-weight: var(--gain-font-weight); | |
| color: var(--gain-font-color); | |
| font-size: var(--gain-font-size); | |
| } | |
| pt-widget .pt-widget .widget--currency { | |
| font-weight: var(--currency-font-weight); | |
| color: var(--currency-font-color); | |
| font-size: var(--currency-font-size); | |
| } | |
| pt-widget .pt-widget .sparkline { | |
| stroke: var(--sparkline-color); | |
| stroke-width: var(--sparkline-thickness); | |
| } | |
| pt-widget .pt-widget .sparkline--tooltip { | |
| font-size: var(--sparkline-tooltip-font-size); | |
| background: var(--sparkline-tooltip-background); | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment