-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing inner and outer text font size #45
Comments
hello!! possibly full config? |
@M4v3r1cK87 Although I'm currently not actively working on this card I'm always open for pull request. |
Pull request for: custom-cards#45
@M4v3r1cK87 Hello, I tried to add lines you've mentionned. But it doesn't work. |
I've created now a Pull request with the modification. Thank you |
thx |
Did this ever get merged? both fontsize: as font-size: don't work for me after merging the code? |
Hello,
I've changed the js source code to receipt font-size value (in pixel) for the inner and the outer gauge.
This is my code:
if (!this.config.fontsize) { this.config.fontsize = 20; } if (!this.config.outer.fontsize) { this.config.outer.fontsize = this.config.fontsize; } if (!this.config.inner.fontsize) { this.config.inner.fontsize = this.config.fontsize; }
if (this.config.outer.fontsize) { this._setCssVariable(this.nodes.content, 'outer-font-size', this.config.outer.fontsize + 'px'); } if (this.config.inner.fontsize) { this._setCssVariable(this.nodes.content, 'inner-font-size', this.config.inner.fontsize + 'px'); }
--outer-font-size: var(--outer-font-size); --inner-font-size: var(--inner-font-size);
and
font-size: var(--inner-font-size);
font-size: var(--outer-font-size);
The text was updated successfully, but these errors were encountered: