Skip to content

Commit

Permalink
Merge pull request #27 from pkscout/master
Browse files Browse the repository at this point in the history
added option to control opacity of unit of measure
  • Loading branch information
iantrich authored Jan 31, 2022
2 parents fee532a + eb11ad2 commit e0d24d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bignumber-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e0d24d2

Please sign in to comment.