Open hanbollar opened 2 months ago
@lobau 's notes:
element.computedStyleMap().get('padding-left'); .card { --color: var(--border); border: 1px solid var(--color); color: currentColor; text-decoration: none; border-radius: 1rem; overflow: hidden; transition: transform var(--bounce) 0.5s; } .card:hover { --color: var(--faded); transform: scale(0.98); }
@michaelthatsit notes:
customEntity extends Entity { constructor() { this.css.getVar('--color') mrjs.app.css.getVar('--color') } .... }
mrjs.css.getVar('selector', '--variable')
related to https://github.com/Volumetrics-io/mrjs/pull/605
@lobau 's notes:
@michaelthatsit notes:
related to https://github.com/Volumetrics-io/mrjs/pull/605