diff --git a/bignumber-card.js b/bignumber-card.js index 172125e..baf4960 100644 --- a/bignumber-card.js +++ b/bignumber-card.js @@ -16,6 +16,7 @@ class BigNumberCard extends HTMLElement { const cardConfig = Object.assign({}, config); if (!cardConfig.scale) cardConfig.scale = "50px"; if (!cardConfig.from) cardConfig.from = "left"; + if (!cardConfig.opacity) cardConfig.opacity = "0.5"; if (!cardConfig.noneString) cardConfig.nonestring = null; if (!cardConfig.noneCardClass) cardConfig.noneCardClass = null; if (!cardConfig.noneValueClass) cardConfig.noneValueClass = null; @@ -44,7 +45,7 @@ class BigNumberCard extends HTMLElement { line-height: calc(var(--base-unit) * 1.3); color: var(--bignumber-color); } - #value small{opacity: 0.5} + #value small{opacity: ${cardConfig.opacity}} #title { font-size: calc(var(--base-unit) * 0.5); line-height: calc(var(--base-unit) * 0.5);